schema_plus_indexes 1.0.0 → 1.0.1.beta.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: decc66bcf6d7441ebc8722b1f6391d13240d897df6f940fc0543f6450cee507b
4
- data.tar.gz: 429fb39c11a09a551d65fb8f8fd88b9baee2e4508c422cbfbaeddc0b630f3c56
3
+ metadata.gz: ae9c92be40f007f2a0abca44e57811a656f522994ea91fdb8d4d93b9888f4388
4
+ data.tar.gz: 69500fc76a9781e9432d0cf151b16f98b66f9df732a5cbeeb95ee20541c118ca
5
5
  SHA512:
6
- metadata.gz: 1579a9a36aaee5fc3445f5c239bf6a245ae88bd4628b96af588ec0c83cec1e2e7dca6b8bc895ca574038ab9d895cc62b193b1fcbfc3208d98d706c0ffb3b23f9
7
- data.tar.gz: e896e9910e9773aba80263462ad1c03c9b9517c376797ac6afa17f37d66a0e1a34c2b976eb9a81284b6e2a640cb9259e479bc848baed9b4c171998c3bc584a8b
6
+ metadata.gz: 56cfb3212bde9bf4422cc079b99ac647dbbcf80defe6930a507aa0f7eefda21f6abfe981cdcda5bdd7b3f64691ef676ab32a0869d233e0f776fa22272d1a1959
7
+ data.tar.gz: aaca9da71db99846cc7639e550cb3e7694bd839b5bdbf3c4e0754c574977a0d40295160e1a3a7f050a8fdfe76ad2410871052f9141e13e52d3ba35b86f2715e3
@@ -22,9 +22,12 @@ jobs:
22
22
  - '2.5'
23
23
  - '2.7'
24
24
  - '3.0'
25
+ - '3.1'
25
26
  activerecord:
26
27
  - '5.2'
27
28
  - '6.0'
29
+ - '6.1'
30
+ - '7.0'
28
31
  db:
29
32
  - mysql2
30
33
  - sqlite3
@@ -34,6 +37,10 @@ jobs:
34
37
  exclude:
35
38
  - ruby: '3.0'
36
39
  activerecord: '5.2'
40
+ - ruby: '3.1'
41
+ activerecord: '5.2'
42
+ - ruby: '2.5'
43
+ activerecord: '7.0'
37
44
  - db: skip
38
45
  dbversion: skip
39
46
  include:
@@ -45,6 +52,10 @@ jobs:
45
52
  activerecord: '6.0'
46
53
  db: postgresql
47
54
  dbversion: '9.6'
55
+ - ruby: '2.5'
56
+ activerecord: '6.1'
57
+ db: postgresql
58
+ dbversion: '9.6'
48
59
  - ruby: '2.7'
49
60
  activerecord: '5.2'
50
61
  db: postgresql
@@ -53,10 +64,38 @@ jobs:
53
64
  activerecord: '6.0'
54
65
  db: postgresql
55
66
  dbversion: '9.6'
67
+ - ruby: '2.7'
68
+ activerecord: '6.1'
69
+ db: postgresql
70
+ dbversion: '9.6'
71
+ - ruby: '2.7'
72
+ activerecord: '7.0'
73
+ db: postgresql
74
+ dbversion: '9.6'
75
+ - ruby: '3.0'
76
+ activerecord: '6.0'
77
+ db: postgresql
78
+ dbversion: '9.6'
79
+ - ruby: '3.0'
80
+ activerecord: '6.1'
81
+ db: postgresql
82
+ dbversion: '9.6'
56
83
  - ruby: '3.0'
84
+ activerecord: '7.0'
85
+ db: postgresql
86
+ dbversion: '9.6'
87
+ - ruby: '3.1'
57
88
  activerecord: '6.0'
58
89
  db: postgresql
59
90
  dbversion: '9.6'
91
+ - ruby: '3.1'
92
+ activerecord: '6.1'
93
+ db: postgresql
94
+ dbversion: '9.6'
95
+ - ruby: '3.1'
96
+ activerecord: '7.0'
97
+ db: postgresql
98
+ dbversion: '9.6'
60
99
  env:
61
100
  BUNDLE_GEMFILE: "${{ github.workspace }}/gemfiles/activerecord-${{ matrix.activerecord }}/Gemfile.${{ matrix.db }}"
62
101
  MYSQL_DB_HOST: 127.0.0.1
data/README.md CHANGED
@@ -107,9 +107,17 @@ schema_plus_indexes is tested on
107
107
  <!-- These lines are auto-generated by schema_dev based on schema_dev.yml -->
108
108
  * ruby **2.5** with activerecord **5.2**, using **mysql2**, **sqlite3** or **postgresql:9.6**
109
109
  * ruby **2.5** with activerecord **6.0**, using **mysql2**, **sqlite3** or **postgresql:9.6**
110
+ * ruby **2.5** with activerecord **6.1**, using **mysql2**, **sqlite3** or **postgresql:9.6**
110
111
  * ruby **2.7** with activerecord **5.2**, using **mysql2**, **sqlite3** or **postgresql:9.6**
111
112
  * ruby **2.7** with activerecord **6.0**, using **mysql2**, **sqlite3** or **postgresql:9.6**
113
+ * ruby **2.7** with activerecord **6.1**, using **mysql2**, **sqlite3** or **postgresql:9.6**
114
+ * ruby **2.7** with activerecord **7.0**, using **mysql2**, **sqlite3** or **postgresql:9.6**
112
115
  * ruby **3.0** with activerecord **6.0**, using **mysql2**, **sqlite3** or **postgresql:9.6**
116
+ * ruby **3.0** with activerecord **6.1**, using **mysql2**, **sqlite3** or **postgresql:9.6**
117
+ * ruby **3.0** with activerecord **7.0**, using **mysql2**, **sqlite3** or **postgresql:9.6**
118
+ * ruby **3.1** with activerecord **6.0**, using **mysql2**, **sqlite3** or **postgresql:9.6**
119
+ * ruby **3.1** with activerecord **6.1**, using **mysql2**, **sqlite3** or **postgresql:9.6**
120
+ * ruby **3.1** with activerecord **7.0**, using **mysql2**, **sqlite3** or **postgresql:9.6**
113
121
 
114
122
  <!-- SCHEMA_DEV: MATRIX - end -->
115
123
 
@@ -0,0 +1,4 @@
1
+ base_gemfile = File.expand_path('../../Gemfile.base', __FILE__)
2
+ eval File.read(base_gemfile)
3
+
4
+ gem "activerecord", ">= 6.1", "< 6.2"
@@ -0,0 +1,10 @@
1
+ base_gemfile = File.expand_path('../Gemfile.base', __FILE__)
2
+ eval File.read(base_gemfile), binding, base_gemfile
3
+
4
+ platform :ruby do
5
+ gem "mysql2"
6
+ end
7
+
8
+ platform :jruby do
9
+ gem 'activerecord-jdbcmysql-adapter'
10
+ end
@@ -0,0 +1,10 @@
1
+ base_gemfile = File.expand_path('../Gemfile.base', __FILE__)
2
+ eval File.read(base_gemfile), binding, base_gemfile
3
+
4
+ platform :ruby do
5
+ gem "pg"
6
+ end
7
+
8
+ platform :jruby do
9
+ gem 'activerecord-jdbcpostgresql-adapter'
10
+ end
@@ -0,0 +1,10 @@
1
+ base_gemfile = File.expand_path('../Gemfile.base', __FILE__)
2
+ eval File.read(base_gemfile), binding, base_gemfile
3
+
4
+ platform :ruby do
5
+ gem "sqlite3"
6
+ end
7
+
8
+ platform :jruby do
9
+ gem 'activerecord-jdbcsqlite3-adapter', '>=1.3.0.beta2'
10
+ end
@@ -0,0 +1,4 @@
1
+ base_gemfile = File.expand_path('../../Gemfile.base', __FILE__)
2
+ eval File.read(base_gemfile)
3
+
4
+ gem "activerecord", ">= 7.0", "< 7.1"
@@ -0,0 +1,10 @@
1
+ base_gemfile = File.expand_path('../Gemfile.base', __FILE__)
2
+ eval File.read(base_gemfile), binding, base_gemfile
3
+
4
+ platform :ruby do
5
+ gem "mysql2"
6
+ end
7
+
8
+ platform :jruby do
9
+ gem 'activerecord-jdbcmysql-adapter'
10
+ end
@@ -0,0 +1,10 @@
1
+ base_gemfile = File.expand_path('../Gemfile.base', __FILE__)
2
+ eval File.read(base_gemfile), binding, base_gemfile
3
+
4
+ platform :ruby do
5
+ gem "pg"
6
+ end
7
+
8
+ platform :jruby do
9
+ gem 'activerecord-jdbcpostgresql-adapter'
10
+ end
@@ -0,0 +1,10 @@
1
+ base_gemfile = File.expand_path('../Gemfile.base', __FILE__)
2
+ eval File.read(base_gemfile), binding, base_gemfile
3
+
4
+ platform :ruby do
5
+ gem "sqlite3"
6
+ end
7
+
8
+ platform :jruby do
9
+ gem 'activerecord-jdbcsqlite3-adapter', '>=1.3.0.beta2'
10
+ end
@@ -21,6 +21,10 @@ module SchemaPlus::Indexes
21
21
  end
22
22
  end
23
23
 
24
+ def case_sensitive?
25
+ false
26
+ end
27
+
24
28
  # tests if the corresponding indexes would be the same
25
29
  def ==(other)
26
30
  return false if other.nil?
@@ -8,7 +8,8 @@ module SchemaPlus::Indexes
8
8
  # inversion of add_index will be remove_index. add if_exists
9
9
  # option for cases where the index doesn't actually exist
10
10
  def invert_add_index(args)
11
- super.tap { |(command, (arg, options))|
11
+ super.tap { |(_, args)|
12
+ options = args[-1]
12
13
  options[:if_exists] = true
13
14
  }
14
15
  end
@@ -14,12 +14,23 @@ module SchemaPlus::Indexes
14
14
  end
15
15
  end
16
16
 
17
- # Support :index option in Migration.add_column
18
- def after(env)
19
- return unless env.options[:index]
20
- case env.operation
21
- when :add, :record
22
- env.caller.add_index(env.table_name, env.column_name, env.options[:index])
17
+ if Gem::Version.new(::ActiveRecord::VERSION::STRING) < Gem::Version.new('6.1')
18
+ # Support :index option in Migration.add_column
19
+ def after(env)
20
+ return unless env.options[:index]
21
+ case env.operation
22
+ when :add, :record
23
+ env.caller.add_index(env.table_name, env.column_name, env.options[:index])
24
+ end
25
+ end
26
+ else
27
+ # Support :index option in Migration.add_column
28
+ def after(env)
29
+ return unless env.options[:index]
30
+ case env.operation
31
+ when :add, :record
32
+ env.caller.add_index(env.table_name, env.column_name, **env.options[:index])
33
+ end
23
34
  end
24
35
  end
25
36
  end
@@ -2,14 +2,24 @@
2
2
 
3
3
  module SchemaPlus::Indexes
4
4
  module RemoveIfExists
5
- # Extends rails' remove_index to include this options:
6
- # :if_exists
7
- def remove_index(table_name, *args)
8
- options = args.extract_options!
9
- if_exists = options.delete(:if_exists)
10
- args << options if options.any?
11
- return if if_exists && !index_name_exists?(table_name, options[:name] || index_name(table_name, *args))
12
- super table_name, *args
5
+ if Gem::Version.new(::ActiveRecord::VERSION::STRING) < Gem::Version.new('6.1')
6
+ # Extends rails' remove_index to include this options:
7
+ # :if_exists
8
+ def remove_index(table_name, *args)
9
+ options = args.extract_options!
10
+ if_exists = options.delete(:if_exists)
11
+ args << options if options.any?
12
+ return if if_exists && !index_name_exists?(table_name, options[:name] || index_name(table_name, *args))
13
+ super table_name, *args
14
+ end
15
+ else
16
+ # Extends rails' remove_index to include this options:
17
+ # :if_exists
18
+ def remove_index(table_name, column_name = nil, other = nil, **options)
19
+ if_exists = options.delete(:if_exists)
20
+ return if if_exists && !index_name_exists?(table_name, options[:name] || index_name(table_name, column_name || options))
21
+ super table_name, column_name, **options
22
+ end
13
23
  end
14
24
  end
15
25
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SchemaPlus
4
4
  module Indexes
5
- VERSION = "1.0.0"
5
+ VERSION = "1.0.1.beta.2"
6
6
  end
7
7
  end
data/schema_dev.yml CHANGED
@@ -2,9 +2,12 @@ ruby:
2
2
  - 2.5
3
3
  - 2.7
4
4
  - 3.0
5
+ - 3.1
5
6
  activerecord:
6
7
  - 5.2
7
8
  - 6.0
9
+ - 6.1
10
+ - 7.0
8
11
  db:
9
12
  - mysql2
10
13
  - sqlite3
@@ -20,11 +20,11 @@ Gem::Specification.new do |gem|
20
20
 
21
21
  gem.required_ruby_version = ">= 2.5.0"
22
22
 
23
- gem.add_dependency "activerecord", ">= 5.2", "< 6.1"
24
- gem.add_dependency "schema_plus_core", "~> 3.0"
23
+ gem.add_dependency "activerecord", ">= 5.2", "< 7.1"
24
+ gem.add_dependency "schema_plus_core", "~> 3.1.0.beta.1"
25
25
 
26
26
  gem.add_development_dependency "bundler"
27
27
  gem.add_development_dependency "rake", "~> 13.0"
28
28
  gem.add_development_dependency "rspec", "~> 3.0"
29
- gem.add_development_dependency "schema_dev", "~> 4.1"
29
+ gem.add_development_dependency "schema_dev", "~> 4.2.beta.1"
30
30
  end
data/spec/index_spec.rb CHANGED
@@ -12,14 +12,14 @@ describe "index" do
12
12
  before(:each) do
13
13
  each_table connection do |table| connection.drop_table table, cascade: true end
14
14
 
15
- define_schema(:auto_create => false) do
16
- create_table :users, :force => true do |t|
15
+ define_schema(auto_create: false) do
16
+ create_table :users, force: true do |t|
17
17
  t.string :login
18
18
  t.text :address
19
19
  t.datetime :deleted_at
20
20
  end
21
21
 
22
- create_table :posts, :force => true do |t|
22
+ create_table :posts, force: true do |t|
23
23
  t.text :body
24
24
  t.integer :user_id
25
25
  t.integer :author_id
@@ -32,7 +32,7 @@ describe "index" do
32
32
 
33
33
 
34
34
  after(:each) do
35
- migration.remove_index(:users, :name => @index.name) if (@index ||= nil)
35
+ migration.remove_index(:users, name: @index.name) if (@index ||= nil)
36
36
  end
37
37
 
38
38
  it "should create index when called without additional options" do
@@ -41,26 +41,26 @@ describe "index" do
41
41
  end
42
42
 
43
43
  it "should create unique index" do
44
- add_index(:users, :login, :unique => true)
44
+ add_index(:users, :login, unique: true)
45
45
  expect(index_for(:login).unique).to eq(true)
46
46
  end
47
47
 
48
48
  it "should assign given name" do
49
- add_index(:users, :login, :name => 'users_login_index')
49
+ add_index(:users, :login, name: 'users_login_index')
50
50
  expect(index_for(:login).name).to eq('users_login_index')
51
51
  end
52
52
 
53
- it "should assign order", :mysql => :skip do
54
- add_index(:users, [:login, :deleted_at], :order => {:login => :desc, :deleted_at => :asc})
53
+ it "should assign order", mysql: :skip do
54
+ add_index(:users, [:login, :deleted_at], order: {login: :desc, deleted_at: :asc})
55
55
  expect(index_for([:login, :deleted_at]).orders).to eq({"login" => :desc, "deleted_at" => :asc})
56
56
  end
57
57
 
58
- it "should assign order (all same direction)", :mysql => :skip do
59
- add_index(:users, [:login, :deleted_at], :order => {:login => :desc, :deleted_at => :desc})
58
+ it "should assign order (all same direction)", mysql: :skip do
59
+ add_index(:users, [:login, :deleted_at], order: {login: :desc, deleted_at: :desc})
60
60
  expect(index_for([:login, :deleted_at]).orders).to eq({"login" => :desc, "deleted_at" => :desc})
61
61
  end
62
62
 
63
- context "for duplicate index" do
63
+ context "for duplicate index", rails: '< 6.1' do
64
64
  it "should not complain if the index is the same" do
65
65
  add_index(:users, :login)
66
66
  expect(index_for(:login)).not_to be_nil
@@ -69,13 +69,43 @@ describe "index" do
69
69
  expect(index_for(:login)).not_to be_nil
70
70
  end
71
71
  it "should complain if the index is different" do
72
- add_index(:users, :login, :unique => true)
72
+ add_index(:users, :login, unique: true)
73
73
  expect(index_for(:login)).not_to be_nil
74
74
  expect { add_index(:users, :login) }.to raise_error(ArgumentError, /already exists/)
75
75
  expect(index_for(:login)).not_to be_nil
76
76
  end
77
77
  end
78
78
 
79
+ context "for duplicate index", rails: '>= 6.1' do
80
+ it "should raise a statement invalid if the index is the same", postgresql: :skip do
81
+ add_index(:users, :login)
82
+ expect(index_for(:login)).not_to be_nil
83
+ expect { add_index(:users, :login) }.to raise_error(ActiveRecord::StatementInvalid)
84
+ expect(index_for(:login)).not_to be_nil
85
+ end
86
+ it "should raises a statement invalid if the index is different" do
87
+ add_index(:users, :login, unique: true)
88
+ expect(index_for(:login)).not_to be_nil
89
+ expect { add_index(:users, :login) }.to raise_error(ActiveRecord::StatementInvalid)
90
+ expect(index_for(:login)).not_to be_nil
91
+ end
92
+ context 'when if_not_exists is passed' do
93
+ it "should not raise an error if the index is the same" do
94
+ add_index(:users, :login)
95
+ expect(index_for(:login)).not_to be_nil
96
+ expect { add_index(:users, :login, if_not_exists: true) }.to_not raise_error
97
+ expect(index_for(:login)).not_to be_nil
98
+ end
99
+
100
+ it "should raise an error if the index is different" do
101
+ add_index(:users, :login, unique: true)
102
+ expect(index_for(:login)).not_to be_nil
103
+ expect { add_index(:users, :login) }.to raise_error(ActiveRecord::StatementInvalid)
104
+ expect(index_for(:login)).not_to be_nil
105
+ end
106
+ end
107
+ end
108
+
79
109
  protected
80
110
 
81
111
  def index_for(column_names)
@@ -88,8 +118,8 @@ describe "index" do
88
118
 
89
119
  before(:each) do
90
120
  each_table connection do |table| connection.drop_table table, cascade: true end
91
- define_schema(:auto_create => false) do
92
- create_table :users, :force => true do |t|
121
+ define_schema(auto_create: false) do
122
+ create_table :users, force: true do |t|
93
123
  t.string :login
94
124
  t.datetime :deleted_at
95
125
  end
@@ -136,21 +166,21 @@ describe "index" do
136
166
  it "removes index if_exists" do
137
167
  add_index :users, :login
138
168
  expect(User.indexes.length).to eq(1)
139
- remove_index :users, :login, :if_exists => true
169
+ remove_index :users, :login, if_exists: true
140
170
  expect(User.indexes.length).to eq(0)
141
171
  end
142
172
 
143
173
  it "removes multi-column index if exists" do
144
174
  add_index :users, [:login, :deleted_at]
145
175
  expect(User.indexes.length).to eq(1)
146
- remove_index :users, [:login, :deleted_at], :if_exists => true
176
+ remove_index :users, [:login, :deleted_at], if_exists: true
147
177
  expect(User.indexes.length).to eq(0)
148
178
  end
149
179
 
150
180
  it "removes index if_exists using column option" do
151
181
  add_index :users, :login
152
182
  expect(User.indexes.length).to eq(1)
153
- remove_index :users, column: :login, :if_exists => true
183
+ remove_index :users, column: :login, if_exists: true
154
184
  expect(User.indexes.length).to eq(0)
155
185
  end
156
186
 
@@ -162,19 +192,19 @@ describe "index" do
162
192
 
163
193
  it "doesn't raise exception with :if_exists" do
164
194
  expect {
165
- remove_index :users, :login, :if_exists => true
195
+ remove_index :users, :login, if_exists: true
166
196
  }.to_not raise_error
167
197
  end
168
198
  end
169
199
 
170
200
  protected
171
- def add_index(*args)
172
- migration.add_index(*args)
201
+ def add_index(*args, **kwargs)
202
+ migration.add_index(*args, **kwargs)
173
203
  User.reset_column_information
174
204
  end
175
205
 
176
- def remove_index(*args)
177
- migration.remove_index(*args)
206
+ def remove_index(*args, **kwargs)
207
+ migration.remove_index(*args, **kwargs)
178
208
  User.reset_column_information
179
209
  end
180
210
 
data/spec/spec_helper.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'simplecov'
4
4
 
5
- SimpleCov.start
5
+ SimpleCov.start unless SimpleCov.running
6
6
 
7
7
  $LOAD_PATH.unshift(File.dirname(__FILE__))
8
8
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
@@ -24,6 +24,11 @@ RSpec.configure do |config|
24
24
  example.run
25
25
  end
26
26
  end
27
+ config.filter_run_excluding rails: -> (v) {
28
+ rails_version = Gem::Version.new(ActiveRecord::VERSION::STRING)
29
+ test = Gem::Requirement.new(v)
30
+ !test.satisfied_by?(rails_version)
31
+ }
27
32
  end
28
33
 
29
34
  # shim to handle connection.tables deprecation in favor of
@@ -44,4 +49,3 @@ def define_schema(config={}, &block)
44
49
  end
45
50
 
46
51
  SimpleCov.command_name "[ruby #{RUBY_VERSION} - ActiveRecord #{::ActiveRecord::VERSION::STRING} - #{ActiveRecord::Base.connection.adapter_name}]"
47
-
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schema_plus_indexes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1.beta.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ronen barzel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-05 00:00:00.000000000 Z
11
+ date: 2022-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '5.2'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6.1'
22
+ version: '7.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,21 +29,21 @@ dependencies:
29
29
  version: '5.2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6.1'
32
+ version: '7.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: schema_plus_core
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '3.0'
39
+ version: 3.1.0.beta.1
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '3.0'
46
+ version: 3.1.0.beta.1
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -92,14 +92,14 @@ dependencies:
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '4.1'
95
+ version: 4.2.beta.1
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '4.1'
102
+ version: 4.2.beta.1
103
103
  description:
104
104
  email:
105
105
  - ronen@barzel.org
@@ -123,6 +123,14 @@ files:
123
123
  - gemfiles/activerecord-6.0/Gemfile.mysql2
124
124
  - gemfiles/activerecord-6.0/Gemfile.postgresql
125
125
  - gemfiles/activerecord-6.0/Gemfile.sqlite3
126
+ - gemfiles/activerecord-6.1/Gemfile.base
127
+ - gemfiles/activerecord-6.1/Gemfile.mysql2
128
+ - gemfiles/activerecord-6.1/Gemfile.postgresql
129
+ - gemfiles/activerecord-6.1/Gemfile.sqlite3
130
+ - gemfiles/activerecord-7.0/Gemfile.base
131
+ - gemfiles/activerecord-7.0/Gemfile.mysql2
132
+ - gemfiles/activerecord-7.0/Gemfile.postgresql
133
+ - gemfiles/activerecord-7.0/Gemfile.sqlite3
126
134
  - lib/schema_plus/indexes.rb
127
135
  - lib/schema_plus/indexes/active_record/base.rb
128
136
  - lib/schema_plus/indexes/active_record/connection_adapters/abstract_adapter.rb
@@ -163,11 +171,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
171
  version: 2.5.0
164
172
  required_rubygems_version: !ruby/object:Gem::Requirement
165
173
  requirements:
166
- - - ">="
174
+ - - ">"
167
175
  - !ruby/object:Gem::Version
168
- version: '0'
176
+ version: 1.3.1
169
177
  requirements: []
170
- rubygems_version: 3.0.8
178
+ rubygems_version: 3.3.7
171
179
  signing_key:
172
180
  specification_version: 4
173
181
  summary: Adds shorthands and conveniences to ActiveRecord's handling of indexes