Skip to content

Commit b3e962f

Browse files
committed
Depend only on activerecord and railties instead of all rails
1 parent 4f704d8 commit b3e962f

12 files changed

+35
-105
lines changed

Gemfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
source "https://rubygems.org"
44
gemspec
55

6-
gem "rails", "~> 7.0.0"
6+
gem "railties", "~> 7.0.0"
7+
gem "activerecord", "~> 7.0.0"

Gemfile.lock

+10-92
Original file line numberDiff line numberDiff line change
@@ -2,71 +2,30 @@ PATH
22
remote: .
33
specs:
44
rails-settings-cached (2.8.2)
5-
rails (>= 5.0.0)
5+
activerecord (>= 5.0.0)
6+
railties (>= 5.0.0)
67

78
GEM
89
remote: https://rubygems.org/
910
specs:
10-
actioncable (7.0.2.2)
11-
actionpack (= 7.0.2.2)
12-
activesupport (= 7.0.2.2)
13-
nio4r (~> 2.0)
14-
websocket-driver (>= 0.6.1)
15-
actionmailbox (7.0.2.2)
16-
actionpack (= 7.0.2.2)
17-
activejob (= 7.0.2.2)
18-
activerecord (= 7.0.2.2)
19-
activestorage (= 7.0.2.2)
20-
activesupport (= 7.0.2.2)
21-
mail (>= 2.7.1)
22-
net-imap
23-
net-pop
24-
net-smtp
25-
actionmailer (7.0.2.2)
26-
actionpack (= 7.0.2.2)
27-
actionview (= 7.0.2.2)
28-
activejob (= 7.0.2.2)
29-
activesupport (= 7.0.2.2)
30-
mail (~> 2.5, >= 2.5.4)
31-
net-imap
32-
net-pop
33-
net-smtp
34-
rails-dom-testing (~> 2.0)
3511
actionpack (7.0.2.2)
3612
actionview (= 7.0.2.2)
3713
activesupport (= 7.0.2.2)
3814
rack (~> 2.0, >= 2.2.0)
3915
rack-test (>= 0.6.3)
4016
rails-dom-testing (~> 2.0)
4117
rails-html-sanitizer (~> 1.0, >= 1.2.0)
42-
actiontext (7.0.2.2)
43-
actionpack (= 7.0.2.2)
44-
activerecord (= 7.0.2.2)
45-
activestorage (= 7.0.2.2)
46-
activesupport (= 7.0.2.2)
47-
globalid (>= 0.6.0)
48-
nokogiri (>= 1.8.5)
4918
actionview (7.0.2.2)
5019
activesupport (= 7.0.2.2)
5120
builder (~> 3.1)
5221
erubi (~> 1.4)
5322
rails-dom-testing (~> 2.0)
5423
rails-html-sanitizer (~> 1.1, >= 1.2.0)
55-
activejob (7.0.2.2)
56-
activesupport (= 7.0.2.2)
57-
globalid (>= 0.3.6)
5824
activemodel (7.0.2.2)
5925
activesupport (= 7.0.2.2)
6026
activerecord (7.0.2.2)
6127
activemodel (= 7.0.2.2)
6228
activesupport (= 7.0.2.2)
63-
activestorage (7.0.2.2)
64-
actionpack (= 7.0.2.2)
65-
activejob (= 7.0.2.2)
66-
activerecord (= 7.0.2.2)
67-
activesupport (= 7.0.2.2)
68-
marcel (~> 1.0)
69-
mini_mime (>= 1.1.0)
7029
activesupport (7.0.2.2)
7130
concurrent-ruby (~> 1.0, >= 1.0.2)
7231
i18n (>= 1.6, < 2)
@@ -76,66 +35,28 @@ GEM
7635
builder (3.2.4)
7736
concurrent-ruby (1.1.9)
7837
crass (1.0.6)
79-
digest (3.1.0)
8038
erubi (1.10.0)
81-
globalid (1.0.0)
82-
activesupport (>= 5.0)
8339
i18n (1.10.0)
8440
concurrent-ruby (~> 1.0)
85-
io-wait (0.2.1)
86-
loofah (2.14.0)
41+
loofah (2.18.0)
8742
crass (~> 1.0.2)
8843
nokogiri (>= 1.5.9)
89-
mail (2.7.1)
90-
mini_mime (>= 0.1.1)
91-
marcel (1.0.2)
9244
method_source (1.0.0)
93-
mini_mime (1.1.2)
9445
mini_portile2 (2.8.0)
9546
minitest (5.15.0)
96-
net-imap (0.2.3)
97-
digest
98-
net-protocol
99-
strscan
100-
net-pop (0.1.1)
101-
digest
102-
net-protocol
103-
timeout
104-
net-protocol (0.1.2)
105-
io-wait
106-
timeout
107-
net-smtp (0.3.1)
108-
digest
109-
net-protocol
110-
timeout
111-
nio4r (2.5.8)
112-
nokogiri (1.13.3)
47+
nokogiri (1.13.6)
11348
mini_portile2 (~> 2.8.0)
11449
racc (~> 1.4)
115-
nokogiri (1.13.3-x86_64-darwin)
50+
nokogiri (1.13.6-x86_64-darwin)
11651
racc (~> 1.4)
11752
parallel (1.21.0)
11853
parser (3.1.0.0)
11954
ast (~> 2.4.1)
12055
pg (1.2.3)
12156
racc (1.6.0)
122-
rack (2.2.3)
57+
rack (2.2.3.1)
12358
rack-test (1.1.0)
12459
rack (>= 1.0, < 3)
125-
rails (7.0.2.2)
126-
actioncable (= 7.0.2.2)
127-
actionmailbox (= 7.0.2.2)
128-
actionmailer (= 7.0.2.2)
129-
actionpack (= 7.0.2.2)
130-
actiontext (= 7.0.2.2)
131-
actionview (= 7.0.2.2)
132-
activejob (= 7.0.2.2)
133-
activemodel (= 7.0.2.2)
134-
activerecord (= 7.0.2.2)
135-
activestorage (= 7.0.2.2)
136-
activesupport (= 7.0.2.2)
137-
bundler (>= 1.15.0)
138-
railties (= 7.0.2.2)
13960
rails-dom-testing (2.0.3)
14061
activesupport (>= 4.2.0)
14162
nokogiri (>= 1.6)
@@ -165,28 +86,25 @@ GEM
16586
parser (>= 3.0.1.1)
16687
ruby-progressbar (1.11.0)
16788
sqlite3 (1.4.2)
168-
strscan (3.0.1)
16989
thor (1.2.1)
170-
timeout (0.2.0)
17190
tzinfo (2.0.4)
17291
concurrent-ruby (~> 1.0)
17392
unicode-display_width (2.1.0)
174-
websocket-driver (0.7.5)
175-
websocket-extensions (>= 0.1.0)
176-
websocket-extensions (0.1.5)
17793
zeitwerk (2.5.4)
17894

17995
PLATFORMS
18096
ruby
18197
x86_64-darwin-20
18298

18399
DEPENDENCIES
100+
activerecord (~> 7.0.0)
184101
minitest
185102
pg
186-
rails (~> 7.0.0)
187103
rails-settings-cached!
104+
railties (~> 7.0.0)
105+
rake
188106
rubocop
189107
sqlite3
190108

191109
BUNDLED WITH
192-
2.2.23
110+
2.2.31

gemfiles/Gemfile-5-0

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
source 'https://rubygems.org'
22

3-
gem 'rails', "~> 5.0.0"
3+
gem 'railties', "~> 5.0.0"
4+
gem 'activerecord', "~> 5.0.0"
45
gem 'sqlite3', "~> 1.3.13"
56
gem 'request_store'
67

gemfiles/Gemfile-5-2

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
source 'https://rubygems.org'
22

3-
gem 'rails', "~> 5.2.0"
3+
gem 'railties', "~> 5.2.0"
4+
gem 'activerecord', "~> 5.2.0"
45
gem 'sqlite3', "~> 1.3.13"
56

67
gemspec :path => '..'

gemfiles/Gemfile-6-0

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
source "https://rubygems.org"
22

3-
gem "rails", "~> 6.0.4"
3+
gem "railties", "~> 6.0.4"
4+
gem "activerecord", "~> 6.0.4"
45
gem "sqlite3", "~> 1.4.2"
56

67
gemspec path: ".."

gemfiles/Gemfile-6-1

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
source "https://rubygems.org"
22

3-
gem "rails", "~> 6.1.4"
3+
gem "railties", "~> 6.1.4"
4+
gem "activerecord", "~> 6.1.4"
45
gem "sqlite3", "~> 1.4.2"
56

67
gemspec path: ".."

gemfiles/Gemfile-7-0

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
source "https://rubygems.org"
22

3-
gem "rails", "~> 7.0.0"
3+
gem "railties", "~> 7.0.0"
4+
gem "activerecord", "~> 7.0.0"
45
gem "sqlite3", "~> 1.4.2"
56

67
gemspec path: ".."

rails-settings-cached.gemspec

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ Gem::Specification.new do |s|
2525
You can store any kind of object. Strings, numbers, arrays, or any object.
2626
"
2727

28-
s.add_dependency "rails", ">= 5.0.0"
28+
s.add_dependency "railties", ">= 5.0.0"
29+
s.add_dependency "activerecord", ">= 5.0.0"
2930

3031
s.add_development_dependency "pg"
32+
s.add_development_dependency "rake"
3133
s.add_development_dependency "minitest"
3234
s.add_development_dependency "rubocop"
3335
s.add_development_dependency "sqlite3"

test/dummy/config/application.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
require_relative "boot"
22

3-
require "rails/all"
3+
require "rails"
4+
require "active_record/railtie"
5+
require "action_controller/railtie"
46

57
Bundler.require(*Rails.groups)
68
require "rails-settings-cached"

test/dummy/config/environments/development.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# Show full error reports.
1313
config.consider_all_requests_local = true
1414

15+
config.hosts << "www.example.com"
16+
1517
# Enable/disable caching. By default caching is disabled.
1618
config.action_controller.perform_caching = true
1719

@@ -20,9 +22,9 @@
2022
}
2123

2224
# Don't care if the mailer can't send.
23-
config.action_mailer.raise_delivery_errors = false
25+
# config.action_mailer.raise_delivery_errors = false
2426

25-
config.action_mailer.perform_caching = false
27+
# config.action_mailer.perform_caching = false
2628

2729
# Print deprecation notices to the Rails logger.
2830
config.active_support.deprecation = :log

test/dummy/config/environments/production.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
# Use a real queuing backend for Active Job (and separate queues per environment)
4747
# config.active_job.queue_adapter = :resque
4848
# config.active_job.queue_name_prefix = "dummy_#{Rails.env}"
49-
config.action_mailer.perform_caching = false
49+
# config.action_mailer.perform_caching = false
5050

5151
# Ignore bad email addresses and do not raise email delivery errors.
5252
# Set this to true and configure the email server for immediate delivery to raise delivery errors.

test/dummy/config/environments/test.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727

2828
# Disable request forgery protection in test environment.
2929
config.action_controller.allow_forgery_protection = false
30-
config.action_mailer.perform_caching = false
30+
# config.action_mailer.perform_caching = false
3131

3232
# Tell Action Mailer not to deliver emails to the real world.
3333
# The :test delivery method accumulates sent emails in the
3434
# ActionMailer::Base.deliveries array.
35-
config.action_mailer.delivery_method = :test
35+
# config.action_mailer.delivery_method = :test
3636

3737
# Print deprecation notices to the stderr.
3838
config.active_support.deprecation = :stderr

0 commit comments

Comments
 (0)