scoped_search 4.3.1 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2413a0e2075ccff25188af0a579df4b8cfde593f38ab801b99bd7379b2344c8b
4
- data.tar.gz: edc1ec5d32cc2b410fdf9938e49aca0cfba46807850491c3ee6bba28642dfc5b
3
+ metadata.gz: b246204885d3b4432baebaa00e7dea9407e8938dc078fa0bc726e587f4a12122
4
+ data.tar.gz: 81f9dd75acb77c0d9eb6165528493bdb1e93fbd8ccf71c91bacbe6e2585d3ef7
5
5
  SHA512:
6
- metadata.gz: 4a31a5e76daac85ca7b36cff7fdf38a377258401f38da13fb789afb1d6ca55e01331ce88c78136e7bc4efc64704e59460de267b50bfd8dc47e479c881e2b84b7
7
- data.tar.gz: 87d273283f63fbc83afb0ab29f163a5625f0fc074c551c5220f004eb902c43a407973bf5470395c90442666ff14e1a69b1b0e7b8aba653c997d180da969429ee
6
+ metadata.gz: 714a96861d37c99dac22c3e6d33dccbf18d2287191944abc112048942d2dbef04957ce932ba0f645b3e53e00f702ba70b379512485b0ce96a09d414010d4bf54
7
+ data.tar.gz: 62d2fdfbd14f777db4c0f0f090d061ddcdd775108d948a6c3d796927b7b840b9622197d4e416c46dbbc7ce9d1ad8fdcf35eae5817183e7b48ee481808e7071dc
@@ -7,7 +7,8 @@
7
7
 
8
8
  name: Ruby
9
9
 
10
- on: [pull_request]
10
+ on: # yamllint disable-line rule:truthy
11
+ - pull_request
11
12
 
12
13
  env:
13
14
  TESTOPTS: --verbose
@@ -19,31 +20,18 @@ jobs:
19
20
  fail-fast: false
20
21
  matrix:
21
22
  ruby_version:
22
- - 2.7.1
23
- - 3.0.0
23
+ - '2.7'
24
+ - '3.0'
25
+ - '3.3'
24
26
  - ruby-head
25
27
  - jruby-head
26
- gemfile:
27
- - Gemfile.activerecord52
28
- - Gemfile.activerecord52_with_activesupport52
29
- - Gemfile.activerecord60
30
- - Gemfile.activerecord60_with_activesupport60
31
- - Gemfile.activerecord61
32
- - Gemfile.activerecord61_with_activesupport61
33
-
34
- exclude:
35
- - ruby_version: 2.7.1
36
- gemfile: Gemfile.activerecord52
37
- - ruby_version: 2.7.1
38
- gemfile: Gemfile.activerecord52_with_activesupport52
39
- - ruby_version: 3.0.0
40
- gemfile: Gemfile.activerecord52
41
- - ruby_version: 3.0.0
42
- gemfile: Gemfile.activerecord52_with_activesupport52
43
- - ruby_version: ruby-head
44
- gemfile: Gemfile.activerecord52
45
- - ruby_version: ruby-head
46
- gemfile: Gemfile.activerecord52_with_activesupport52
28
+ appraisal:
29
+ - rails-6.0
30
+ - rails-6.0-activesupport
31
+ - rails-6.1
32
+ - rails-6.1-activesupport
33
+ - rails-7.0
34
+ - rails-7.0-activesupport
47
35
  services:
48
36
  postgres:
49
37
  image: postgres:12.1
@@ -59,18 +47,18 @@ jobs:
59
47
  MYSQL_DATABASE: scoped_search_test
60
48
 
61
49
  env:
62
- BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
50
+ BUNDLE_GEMFILE: appraisal.gemfile
63
51
 
64
52
  steps:
65
- - uses: actions/checkout@v2
66
- - name: Set up Ruby
67
- # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
68
- # change this to (see https://github.com/ruby/setup-ruby#versioning):
69
- uses: ruby/setup-ruby@v1
70
- with:
71
- ruby-version: ${{ matrix.ruby_version }}
72
- bundler-cache: true
73
- # - name: Install dependencies
74
- # run: bundle install
75
- - name: Run tests
76
- run: bundle exec rake
53
+ - uses: actions/checkout@v6
54
+ - name: Set up Ruby ${{ matrix.ruby_version }}
55
+ uses: ruby/setup-ruby@v1
56
+ with:
57
+ ruby-version: ${{ matrix.ruby_version }}
58
+ bundler-cache: true
59
+ - name: Generate gemfiles
60
+ run: bundle exec appraisal generate
61
+ - name: Appraisal for ${{ matrix.ruby_version }} ${{ matrix.appraisal }}
62
+ run: bundle exec appraisal ${{ matrix.appraisal }} bundle
63
+ - name: Tests for ${{ matrix.ruby_version }} ${{ matrix.appraisal }}
64
+ run: bundle exec appraisal ${{ matrix.appraisal }} bundle exec rake
data/.gitignore CHANGED
@@ -6,7 +6,8 @@ scoped_search-*.gem
6
6
  /coverage
7
7
  /classes
8
8
  /files
9
+ /gemfiles/*.gemfile
9
10
  /spec/database.yml
10
11
  .bundle/
11
- Gemfile*.lock
12
+ *.lock
12
13
  .idea/
data/Appraisals ADDED
@@ -0,0 +1,16 @@
1
+ ['6.0', '6.1', '7.0'].each do |version|
2
+ appraise "rails-#{version}" do
3
+ gem 'actionview', "~> #{version}.0"
4
+ gem 'activerecord', "~> #{version}.0"
5
+ eval_gemfile 'modular/rails-6'
6
+ eval_gemfile 'modular/rspec'
7
+ end
8
+
9
+ appraise "rails-#{version}-activesupport" do
10
+ gem 'actionview', "~> #{version}.0"
11
+ gem 'activerecord', "~> #{version}.0"
12
+ gem 'activesupport', "~> #{version}.0"
13
+ eval_gemfile 'modular/rails-6'
14
+ eval_gemfile 'modular/rspec'
15
+ end
16
+ end
data/CHANGELOG.rdoc CHANGED
@@ -6,6 +6,12 @@ Please add an entry to the "Unreleased changes" section in your pull requests.
6
6
 
7
7
  === Unreleased changes
8
8
 
9
+ === Version 5.0.0
10
+
11
+ - Drop Rails versions older than 6.0
12
+ - Add support for Ruby 3.3 and Rails 7.0
13
+ - Add virtual field check to to_null_sql method in query builder
14
+
9
15
  === Version 4.3.1
10
16
  - Autocomplete now offers only relevant options available through scopes set on associations (#233)
11
17
 
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ gemspec
4
4
  gem 'actionview'
5
5
  gem 'activerecord'
6
6
 
7
- gem 'nokogiri', '~> 1.6.0' if RUBY_VERSION.start_with?('2.0')
7
+ gem 'appraisal2'
8
8
 
9
9
  platforms :jruby do
10
10
  gem 'activerecord-jdbcsqlite3-adapter'
data/README.rdoc CHANGED
@@ -22,8 +22,8 @@ Add the following line in your Gemfile, and run <tt>bundle install</tt>:
22
22
 
23
23
  gem "scoped_search"
24
24
 
25
- Scoped search 4.x supports Rails 4.2 to 5.0, with Ruby 2.0.0 or higher. Use
26
- previous versions, e.g. 3.x to support older versions of Rails or Ruby.
25
+ Scoped search 5.x supports Rails 6.
26
+ Use previous versions to support older versions of Rails or Ruby.
27
27
 
28
28
  == Usage
29
29
 
data/appraisal.gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'appraisal2'
@@ -0,0 +1,25 @@
1
+ # Ruby 3 has moved various gems from default gems to bundled gems
2
+ # Prior to activesupport 7.0.9 these were not listed
3
+ # See https://stdgems.org/ for more
4
+ if RUBY_VERSION >= '3.4'
5
+ gem 'base64'
6
+ gem 'benchmark'
7
+ gem 'bigdecimal'
8
+ gem 'logger'
9
+ gem 'mutex_m'
10
+ end
11
+
12
+ group :mysql do
13
+ gem 'activerecord-jdbcmysql-adapter', platforms: :jruby
14
+ gem 'mysql2', '> 0.5', platforms: :ruby
15
+ end
16
+
17
+ group :postgresql do
18
+ gem 'activerecord-jdbcpostgresql-adapter', platforms: :jruby
19
+ gem 'pg', '>= 0.18', '< 2.0', platforms: :ruby
20
+ end
21
+
22
+ group :sqlite do
23
+ gem 'activerecord-jdbcsqlite3-adapter', platforms: :jruby
24
+ gem 'sqlite3', '~> 1.4', platforms: :ruby
25
+ end
@@ -0,0 +1 @@
1
+ gem 'rspec', '~> 3.0'
@@ -307,8 +307,7 @@ module ScopedSearch
307
307
 
308
308
  join_reflections.zip(table_names.zip(join_reflections.drop(1))).reduce(sql) do |acc, (reflection, (previous_table, next_reflection))|
309
309
  fk1, pk1 = if reflection.respond_to?(:join_keys)
310
- klass = reflection.method(:join_keys).arity == 1 ? [reflection.klass] : [] # ActiveRecord <5.2 workaround
311
- reflection.join_keys(*klass).values # We are joining the tables "in reverse", so the PK and FK are swapped
310
+ reflection.join_keys.values # We are joining the tables "in reverse", so the PK and FK are swapped
312
311
  else
313
312
  [reflection.join_primary_key, reflection.join_foreign_key] #ActiveRecord 6.1
314
313
  end
@@ -426,8 +425,7 @@ module ScopedSearch
426
425
  def reflection_keys(reflection)
427
426
  pk = reflection.klass.primary_key
428
427
  fk = reflection.options[:foreign_key]
429
- # activerecord prior to 3.1 doesn't respond to foreign_key method and hold the key name in the reflection primary key
430
- fk ||= reflection.respond_to?(:foreign_key) ? reflection.foreign_key : reflection.primary_key_name
428
+ fk ||= reflection.foreign_key
431
429
  reflection.macro == :belongs_to ? [fk, pk] : [pk, fk]
432
430
  end
433
431
 
@@ -495,6 +493,11 @@ module ScopedSearch
495
493
  field = definition.field_by_name(rhs.value)
496
494
  raise ScopedSearch::QueryNotSupported, "Field '#{rhs.value}' not recognized for searching!" unless field
497
495
 
496
+ if field.virtual?
497
+ sql_operator = operator == :notnull ? 'IS NOT NULL' : 'IS NULL'
498
+ return field.to_ext_method_sql(rhs.value, sql_operator, nil, &block)
499
+ end
500
+
498
501
  if field.key_field
499
502
  yield(:parameter, rhs.value.to_s.sub(/^.*\./,''))
500
503
  end
@@ -1,3 +1,3 @@
1
1
  module ScopedSearch
2
- VERSION = "4.3.1"
2
+ VERSION = "5.0.0"
3
3
  end
@@ -29,8 +29,9 @@ Gem::Specification.new do |gem|
29
29
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
30
30
  gem.require_paths = ["lib"]
31
31
 
32
- gem.required_ruby_version = '>= 2.0.0'
33
- gem.add_runtime_dependency('activerecord', '>= 4.2.0')
32
+ # https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html
33
+ gem.required_ruby_version = '>= 2.5.0'
34
+ gem.add_runtime_dependency('activerecord', '>= 6.0')
34
35
  gem.add_development_dependency('rspec', '~> 3.0')
35
36
  gem.add_development_dependency('rake')
36
37
 
@@ -46,4 +46,131 @@ ScopedSearch::RSpec::Database.test_databases.each do |db|
46
46
  @class.search_for('beta = 42').should == [@two]
47
47
  end
48
48
  end
49
+
50
+ describe ScopedSearch, "ext_method with has/not has on a #{db} database" do
51
+
52
+ before(:all) do
53
+ ScopedSearch::RSpec::Database.establish_named_connection(db)
54
+ end
55
+
56
+ after(:all) do
57
+ ScopedSearch::RSpec::Database.close_connection
58
+ end
59
+
60
+ context 'on a direct field' do
61
+ before(:all) do
62
+ @class = ScopedSearch::RSpec::Database.create_model(alpha: :integer) do |klass|
63
+ klass.send(:define_singleton_method, :test_ext_has) do |key, operator, value|
64
+ if value.nil?
65
+ case operator
66
+ when 'IS NOT NULL'
67
+ { conditions: "#{klass.table_name}.alpha > 1" }
68
+ when 'IS NULL'
69
+ { conditions: "#{klass.table_name}.alpha IS NULL OR #{klass.table_name}.alpha <= 1" }
70
+ end
71
+ else
72
+ { conditions: "#{klass.table_name}.alpha = ?", parameter: [value.to_i] }
73
+ end
74
+ end
75
+ klass.scoped_search on: :alpha, ext_method: :test_ext_has
76
+ end
77
+
78
+ @included = @class.create!(alpha: 2)
79
+ @excluded = @class.create!(alpha: 1)
80
+ @null_record = @class.create!(alpha: nil)
81
+ end
82
+
83
+ after(:all) do
84
+ ScopedSearch::RSpec::Database.drop_model(@class)
85
+ end
86
+
87
+ it 'should delegate set? to ext_method' do
88
+ @class.search_for('set? alpha').should == [@included]
89
+ end
90
+
91
+ it 'should delegate null? to ext_method' do
92
+ results = @class.search_for('null? alpha')
93
+ results.should include(@excluded)
94
+ results.should include(@null_record)
95
+ results.length.should == 2
96
+ end
97
+
98
+ it 'should still find records via value search' do
99
+ @class.search_for('alpha = 2').should == [@included]
100
+ end
101
+ end
102
+
103
+ context 'on a relation field' do
104
+ before(:all) do
105
+ @main = ScopedSearch::RSpec::Database.create_model(name: :string) {}
106
+
107
+ @related = ScopedSearch::RSpec::Database.create_model(
108
+ value: :string,
109
+ promoted: :boolean,
110
+ main_id: :integer
111
+ ) do |klass|
112
+ end
113
+
114
+ related_table = @related.table_name
115
+ main_table = @main.table_name
116
+ related_class = @related
117
+ main_class = @main
118
+
119
+ @related.belongs_to main_table.to_sym, foreign_key: :main_id
120
+ @main.has_many related_table.to_sym, foreign_key: :main_id
121
+
122
+ @main.send(:define_singleton_method, :test_ext_promoted) do |key, operator, value|
123
+ if value.nil?
124
+ subquery = related_class.where(promoted: true).select(:main_id).to_sql
125
+ case operator
126
+ when 'IS NOT NULL'
127
+ { conditions: "#{main_table}.id IN (#{subquery})" }
128
+ when 'IS NULL'
129
+ { conditions: "#{main_table}.id NOT IN (#{subquery})" }
130
+ end
131
+ else
132
+ { joins: related_table.to_sym,
133
+ conditions: "#{related_table}.value #{operator} ? AND #{related_table}.promoted = ?",
134
+ parameter: [value, true] }
135
+ end
136
+ end
137
+
138
+ @main.scoped_search(
139
+ relation: related_table.to_sym,
140
+ on: :value,
141
+ rename: :promoted_items,
142
+ ext_method: :test_ext_promoted
143
+ )
144
+
145
+ @record_a = @main.create!(name: 'a')
146
+ @related.create!(value: 'item1', promoted: true, main_id: @record_a.id)
147
+
148
+ @record_b = @main.create!(name: 'b')
149
+ @related.create!(value: 'item2', promoted: false, main_id: @record_b.id)
150
+
151
+ @record_c = @main.create!(name: 'c')
152
+ end
153
+
154
+ after(:all) do
155
+ ScopedSearch::RSpec::Database.drop_model(@related)
156
+ ScopedSearch::RSpec::Database.drop_model(@main)
157
+ end
158
+
159
+ it 'should delegate set? to ext_method, not raw relation' do
160
+ @main.search_for('set? promoted_items').should == [@record_a]
161
+ end
162
+
163
+ it 'should delegate null? to ext_method, not raw relation' do
164
+ results = @main.search_for('null? promoted_items')
165
+ results.should include(@record_b)
166
+ results.should include(@record_c)
167
+ results.length.should == 2
168
+ end
169
+
170
+ it 'should still use ext_method for value search' do
171
+ @main.search_for('promoted_items = item1').should == [@record_a]
172
+ @main.search_for('promoted_items = item2').should == []
173
+ end
174
+ end
175
+ end
49
176
  end
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,3 @@
1
- require 'rubygems'
2
- require 'bundler/setup'
3
-
4
1
  require 'rspec'
5
2
  require 'scoped_search'
6
3
 
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scoped_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.1
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amos Benari
8
8
  - Willem van Bergen
9
9
  - Wes Hays
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2025-09-30 00:00:00.000000000 Z
13
+ date: 2026-08-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 4.2.0
21
+ version: '6.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: 4.2.0
28
+ version: '6.0'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rspec
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -150,24 +150,19 @@ files:
150
150
  - ".github/workflows/ruby.yml"
151
151
  - ".gitignore"
152
152
  - ".travis.yml"
153
+ - Appraisals
153
154
  - CHANGELOG.rdoc
154
155
  - CONTRIBUTING.rdoc
155
156
  - Gemfile
156
- - Gemfile.activerecord42
157
- - Gemfile.activerecord50
158
- - Gemfile.activerecord51
159
- - Gemfile.activerecord52
160
- - Gemfile.activerecord52_with_activesupport52
161
- - Gemfile.activerecord60
162
- - Gemfile.activerecord60_with_activesupport60
163
- - Gemfile.activerecord61
164
- - Gemfile.activerecord61_with_activesupport61
165
157
  - LICENSE
166
158
  - README.rdoc
167
159
  - Rakefile
168
160
  - app/assets/images/spinner.gif
169
161
  - app/assets/javascripts/scoped_search.js
170
162
  - app/assets/stylesheets/scoped_search.scss
163
+ - appraisal.gemfile
164
+ - gemfiles/modular/rails-6
165
+ - gemfiles/modular/rspec
171
166
  - lib/scoped_search.rb
172
167
  - lib/scoped_search/auto_complete_builder.rb
173
168
  - lib/scoped_search/compass.rb
@@ -214,7 +209,7 @@ homepage: https://github.com/wvanbergen/scoped_search/wiki
214
209
  licenses:
215
210
  - MIT
216
211
  metadata: {}
217
- post_install_message:
212
+ post_install_message:
218
213
  rdoc_options:
219
214
  - "--title"
220
215
  - scoped_search
@@ -228,15 +223,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
228
223
  requirements:
229
224
  - - ">="
230
225
  - !ruby/object:Gem::Version
231
- version: 2.0.0
226
+ version: 2.5.0
232
227
  required_rubygems_version: !ruby/object:Gem::Requirement
233
228
  requirements:
234
229
  - - ">="
235
230
  - !ruby/object:Gem::Version
236
231
  version: '0'
237
232
  requirements: []
238
- rubygems_version: 3.0.3.1
239
- signing_key:
233
+ rubygems_version: 3.5.22
234
+ signing_key:
240
235
  specification_version: 4
241
236
  summary: Easily search you ActiveRecord models with a simple query language using
242
237
  a named scope
@@ -1,19 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec
3
-
4
- gem 'actionview', '~> 4.2.0'
5
- gem 'activerecord', '~> 4.2.0'
6
-
7
- gem 'nokogiri', '~> 1.6.0' if RUBY_VERSION.start_with?('2.0')
8
-
9
- platforms :jruby do
10
- gem 'activerecord-jdbcsqlite3-adapter'
11
- gem 'activerecord-jdbcmysql-adapter'
12
- gem 'activerecord-jdbcpostgresql-adapter'
13
- end
14
-
15
- platforms :ruby do
16
- gem 'sqlite3', '~> 1.3.6'
17
- gem 'mysql2', '>= 0.3.13', '< 0.5'
18
- gem 'pg', '~> 0.15'
19
- end
@@ -1,17 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec
3
-
4
- gem 'actionview', '~> 5.0.0'
5
- gem 'activerecord', '~> 5.0.0'
6
-
7
- platforms :jruby do
8
- gem 'activerecord-jdbcsqlite3-adapter'
9
- gem 'activerecord-jdbcmysql-adapter'
10
- gem 'activerecord-jdbcpostgresql-adapter'
11
- end
12
-
13
- platforms :ruby do
14
- gem 'sqlite3', '~> 1.3.6'
15
- gem 'mysql2', '>= 0.3.18', '< 0.5'
16
- gem 'pg', '~> 0.18'
17
- end
@@ -1,17 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec
3
-
4
- gem 'actionview', '~> 5.1.0'
5
- gem 'activerecord', '~> 5.1.0'
6
-
7
- platforms :jruby do
8
- gem 'activerecord-jdbcsqlite3-adapter'
9
- gem 'activerecord-jdbcmysql-adapter'
10
- gem 'activerecord-jdbcpostgresql-adapter'
11
- end
12
-
13
- platforms :ruby do
14
- gem 'sqlite3', '~> 1.3.6'
15
- gem 'mysql2', '>= 0.3.18', '< 0.5'
16
- gem 'pg', '~> 0.18'
17
- end
@@ -1,17 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec
3
-
4
- gem 'actionview', '~> 5.2.0'
5
- gem 'activerecord', '~> 5.2.0'
6
-
7
- platforms :jruby do
8
- gem 'activerecord-jdbcsqlite3-adapter'
9
- gem 'activerecord-jdbcmysql-adapter'
10
- gem 'activerecord-jdbcpostgresql-adapter'
11
- end
12
-
13
- platforms :ruby do
14
- gem 'sqlite3', '~> 1.3.6'
15
- gem 'mysql2', '>= 0.3.18', '< 0.5'
16
- gem 'pg', '~> 0.18'
17
- end
@@ -1,18 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec
3
-
4
- gem 'actionview', '~> 5.2.0'
5
- gem 'activerecord', '~> 5.2.0'
6
- gem 'activesupport', '~> 5.2.0'
7
-
8
- platforms :jruby do
9
- gem 'activerecord-jdbcsqlite3-adapter'
10
- gem 'activerecord-jdbcmysql-adapter'
11
- gem 'activerecord-jdbcpostgresql-adapter'
12
- end
13
-
14
- platforms :ruby do
15
- gem 'sqlite3', '~> 1.3.6'
16
- gem 'mysql2', '>= 0.3.18', '< 0.5'
17
- gem 'pg', '~> 0.18'
18
- end
@@ -1,17 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec
3
-
4
- gem 'actionview', '~> 6.0.0'
5
- gem 'activerecord', '~> 6.0.0'
6
-
7
- platforms :jruby do
8
- gem 'activerecord-jdbcsqlite3-adapter'
9
- gem 'activerecord-jdbcmysql-adapter'
10
- gem 'activerecord-jdbcpostgresql-adapter'
11
- end
12
-
13
- platforms :ruby do
14
- gem 'sqlite3', '~> 1.4'
15
- gem 'mysql2', '> 0.5'
16
- gem 'pg', '>= 0.18', '< 2.0'
17
- end
@@ -1,18 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec
3
-
4
- gem 'actionview', '~> 6.0.0'
5
- gem 'activerecord', '~> 6.0.0'
6
- gem 'activesupport', '~> 6.0.0'
7
-
8
- platforms :jruby do
9
- gem 'activerecord-jdbcsqlite3-adapter'
10
- gem 'activerecord-jdbcmysql-adapter'
11
- gem 'activerecord-jdbcpostgresql-adapter'
12
- end
13
-
14
- platforms :ruby do
15
- gem 'sqlite3', '~> 1.4'
16
- gem 'mysql2', '> 0.5'
17
- gem 'pg', '>= 0.18', '< 2.0'
18
- end
@@ -1,17 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec
3
-
4
- gem 'actionview', '~> 6.1.0'
5
- gem 'activerecord', '~> 6.1.0'
6
-
7
- platforms :jruby do
8
- gem 'activerecord-jdbcsqlite3-adapter'
9
- gem 'activerecord-jdbcmysql-adapter'
10
- gem 'activerecord-jdbcpostgresql-adapter'
11
- end
12
-
13
- platforms :ruby do
14
- gem 'sqlite3', '~> 1.4'
15
- gem 'mysql2', '> 0.5'
16
- gem 'pg', '>= 0.18', '< 2.0'
17
- end
@@ -1,18 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec
3
-
4
- gem 'actionview', '~> 6.1.0'
5
- gem 'activerecord', '~> 6.1.0'
6
- gem 'activesupport', '~> 6.1.0'
7
-
8
- platforms :jruby do
9
- gem 'activerecord-jdbcsqlite3-adapter'
10
- gem 'activerecord-jdbcmysql-adapter'
11
- gem 'activerecord-jdbcpostgresql-adapter'
12
- end
13
-
14
- platforms :ruby do
15
- gem 'sqlite3', '~> 1.4'
16
- gem 'mysql2', '> 0.5'
17
- gem 'pg', '>= 0.18', '< 2.0'
18
- end