mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
remove extra gems from the stack (#5566)
This commit is contained in:
parent
936846ad70
commit
533766aa54
15 changed files with 33 additions and 139 deletions
12
Gemfile
12
Gemfile
|
@ -3,15 +3,15 @@ source "https://rubygems.org"
|
|||
gemspec
|
||||
|
||||
gem "rake"
|
||||
gem "rails"
|
||||
RAILS_VERSION = '~> 7.0.4'
|
||||
gem 'actionmailer', RAILS_VERSION
|
||||
gem 'actionpack', RAILS_VERSION
|
||||
gem 'activejob', RAILS_VERSION
|
||||
gem 'activerecord', RAILS_VERSION
|
||||
gem 'railties', RAILS_VERSION
|
||||
gem "redis-client"
|
||||
# gem "debug"
|
||||
|
||||
# Required for Ruby 3.1
|
||||
# https://github.com/mikel/mail/pull/1439
|
||||
gem "net-smtp"
|
||||
gem "net-imap"
|
||||
gem "net-pop"
|
||||
|
||||
gem "sqlite3", platforms: :ruby
|
||||
gem "activerecord-jdbcsqlite3-adapter", platforms: :jruby
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "sidekiq/job"
|
||||
require 'rails'
|
||||
|
||||
module Sidekiq
|
||||
class Rails < ::Rails::Engine
|
||||
|
|
|
@ -1,11 +1,19 @@
|
|||
source "https://rubygems.org"
|
||||
# frozen_string_literal: true
|
||||
|
||||
source 'https://rubygems.org'
|
||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
||||
|
||||
ruby "3.1.2"
|
||||
ruby '3.1.2'
|
||||
|
||||
gem "rails", "~> 7.0.3", ">= 7.0.3.1"
|
||||
gem "sqlite3", "~> 1.4"
|
||||
gem "puma", "~> 5.0"
|
||||
gem "sidekiq", path: ".."
|
||||
RAILS_VERSION = '~> 7.0.4'
|
||||
gem 'actionmailer', RAILS_VERSION
|
||||
gem 'actionpack', RAILS_VERSION
|
||||
gem 'activejob', RAILS_VERSION
|
||||
gem 'activerecord', RAILS_VERSION
|
||||
gem 'railties', RAILS_VERSION
|
||||
|
||||
gem "after_commit_everywhere"
|
||||
gem 'puma', '~> 5.0'
|
||||
gem 'sidekiq', path: '..'
|
||||
gem 'sqlite3', '~> 1.4'
|
||||
|
||||
gem 'after_commit_everywhere'
|
||||
|
|
|
@ -1,6 +1,16 @@
|
|||
require_relative "boot"
|
||||
|
||||
require "rails/all"
|
||||
require "rails"
|
||||
%w(
|
||||
active_record/railtie
|
||||
action_controller/railtie
|
||||
action_view/railtie
|
||||
action_mailer/railtie
|
||||
active_job/railtie
|
||||
).each do |railtie|
|
||||
require railtie
|
||||
end
|
||||
|
||||
|
||||
# Require the gems listed in Gemfile, including any gems
|
||||
# you've limited to :test, :development, or :production.
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
development:
|
||||
adapter: async
|
||||
|
||||
test:
|
||||
adapter: test
|
||||
|
||||
production:
|
||||
adapter: redis
|
||||
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
|
||||
channel_prefix: myapp_production
|
|
@ -1 +0,0 @@
|
|||
EfD5wxxADj8J5S7rGHbmbuKKgWPGjQGQIEnC8L2I2cpQAXysmeUgjB/gK9VMCUC6Gc4p9hO5AvI/SC6R6/hxIjx51poL/B1NEuYT0W7qD0UZcFCZzvC4CWy4EVsg0AimrR6ihT+iLtptq0fpxXva6KWLx6IFceI6YJR8yaiDcRbnvFa8R6qEHr8aww5ty99geswumHJ65IKhvq+dU+8iEmDDIE7lwov8Qxz5AIG0IGpyIz4a5WEup+JQJQHxjO2BO7PUNZPWb+KbJzXaox9RHvGXwN7h+tf0wOudUn4GNWJaFUvk2jtIwU90/043QoZaBuhS5me7vsSXC6/vZNOv06+GeAdYEZibYnfBEi1rOTRuBkVHK1vmU5pt5jSdCaUDC2fmx+GsAaOLXg49Idx+3VKpFV5VgzPM7oPI--+e3LjH2OqyOtgw6E--G9Ga2O1sdoSkfEhXgCPXuw==
|
|
@ -24,12 +24,6 @@ Rails.application.configure do
|
|||
# Apache or NGINX already handles this.
|
||||
config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present?
|
||||
|
||||
# Compress CSS using a preprocessor.
|
||||
# config.assets.css_compressor = :sass
|
||||
|
||||
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
||||
config.assets.compile = false
|
||||
|
||||
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
||||
# config.asset_host = "http://assets.example.com"
|
||||
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# Version of your assets, change this if you want to expire all your assets.
|
||||
# Rails.application.config.assets.version = "1.0"
|
||||
|
||||
# Add additional assets to the asset load path.
|
||||
# Rails.application.config.assets.paths << Emoji.images_path
|
||||
|
||||
# Precompile additional assets.
|
||||
# application.js, application.css, and all non-JS/CSS in the app/assets
|
||||
# folder are already added.
|
||||
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
|
|
@ -1,25 +0,0 @@
|
|||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# Define an application-wide content security policy.
|
||||
# See the Securing Rails Applications Guide for more information:
|
||||
# https://guides.rubyonrails.org/security.html#content-security-policy-header
|
||||
|
||||
# Rails.application.configure do
|
||||
# config.content_security_policy do |policy|
|
||||
# policy.default_src :self, :https
|
||||
# policy.font_src :self, :https, :data
|
||||
# policy.img_src :self, :https, :data
|
||||
# policy.object_src :none
|
||||
# policy.script_src :self, :https
|
||||
# policy.style_src :self, :https
|
||||
# # Specify URI for violation reports
|
||||
# # policy.report_uri "/csp-violation-report-endpoint"
|
||||
# end
|
||||
#
|
||||
# # Generate session nonces for permitted importmap and inline scripts
|
||||
# config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s }
|
||||
# config.content_security_policy_nonce_directives = %w(script-src)
|
||||
#
|
||||
# # Report violations without enforcing the policy.
|
||||
# # config.content_security_policy_report_only = true
|
||||
# end
|
|
@ -1,16 +0,0 @@
|
|||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# Add new inflection rules using the following format. Inflections
|
||||
# are locale specific, and you may define rules for as many different
|
||||
# locales as you wish. All of these examples are active by default:
|
||||
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
||||
# inflect.plural /^(ox)$/i, "\\1en"
|
||||
# inflect.singular /^(ox)en/i, "\\1"
|
||||
# inflect.irregular "person", "people"
|
||||
# inflect.uncountable %w( fish sheep )
|
||||
# end
|
||||
|
||||
# These inflection rules are supported but not enabled by default:
|
||||
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
||||
# inflect.acronym "RESTful"
|
||||
# end
|
|
@ -1,4 +0,0 @@
|
|||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# Add new mime types for use in respond_to blocks:
|
||||
# Mime::Type.register "text/richtext", :rtf
|
|
@ -1,11 +0,0 @@
|
|||
# Define an application-wide HTTP permissions policy. For further
|
||||
# information see https://developers.google.com/web/updates/2018/06/feature-policy
|
||||
#
|
||||
# Rails.application.config.permissions_policy do |f|
|
||||
# f.camera :none
|
||||
# f.gyroscope :none
|
||||
# f.microphone :none
|
||||
# f.usb :none
|
||||
# f.fullscreen :self
|
||||
# f.payment :self, "https://secure.example.com"
|
||||
# end
|
|
@ -1,34 +0,0 @@
|
|||
test:
|
||||
service: Disk
|
||||
root: <%= Rails.root.join("tmp/storage") %>
|
||||
|
||||
local:
|
||||
service: Disk
|
||||
root: <%= Rails.root.join("storage") %>
|
||||
|
||||
# Use bin/rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
|
||||
# amazon:
|
||||
# service: S3
|
||||
# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
|
||||
# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
|
||||
# region: us-east-1
|
||||
# bucket: your_own_bucket-<%= Rails.env %>
|
||||
|
||||
# Remember not to checkin your GCS keyfile to a repository
|
||||
# google:
|
||||
# service: GCS
|
||||
# project: your_project
|
||||
# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
|
||||
# bucket: your_own_bucket-<%= Rails.env %>
|
||||
|
||||
# Use bin/rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
|
||||
# microsoft:
|
||||
# service: AzureStorage
|
||||
# storage_account_name: your_account_name
|
||||
# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
|
||||
# container: your_container_name-<%= Rails.env %>
|
||||
|
||||
# mirror:
|
||||
# service: Mirror
|
||||
# primary: local
|
||||
# mirrors: [ amazon, google, microsoft ]
|
|
@ -1,6 +0,0 @@
|
|||
#!/usr/bin/env ruby
|
||||
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
||||
|
||||
APP_PATH = File.expand_path("../../config/application", __FILE__)
|
||||
require File.expand_path("../../config/boot", __FILE__)
|
||||
require "rails/commands"
|
Loading…
Add table
Reference in a new issue