schema_plus_indexes 1.0.1.beta.3 → 1.0.1

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: 0baf8c4ca68b9f1ac8e9bab2e5bd9c678208a02edfd25cd045d5cd90b63bd025
4
- data.tar.gz: 9f796632c5eb72aac3f68977c4a5b342a0b577b806d9746deb9e1c1b8446c87e
3
+ metadata.gz: a7dd63b08c5e89d3d592657305c49c589d9bb9281be5539453570bdc9285d541
4
+ data.tar.gz: 05cc89c05510acc590589c20d001ef3764979a2f1c2c700e0613988124a737d9
5
5
  SHA512:
6
- metadata.gz: 368ccbd20c4e3725177b02b6afc2b3b9aaf5a671ae6b1d2d9efc759ceee299d4e8271cb2238e8923b82ac134ff611ff6225e5d6633838ed58cb485fdd606bc95
7
- data.tar.gz: e8b771aef3dd96b244801ea75e6969652f7d3e30afdd072f5161512eae8037bb26fe7277ae8e0603a21e43488a77c34a63a870eb9e2cc92c4afe61b5cbf90212
6
+ metadata.gz: 62fa2592fc076f50303a908c5d887ce548438090597d6ee1a0c02b5ae607a6432d9570f0a759be12f308ab402cb600b83ff9d3fb31248fc5a41de98acd593bf9
7
+ data.tar.gz: 01aea7d282df12e3c06265571947e7b9f2839ff820e173ad867ff52e15e1e71a4eb08e4127baaeb89c93d0039d0b2eaa62ad6ef9e64730c5acb8c066c8c00f3c
data/README.md CHANGED
@@ -123,6 +123,10 @@ schema_plus_indexes is tested on
123
123
 
124
124
  ## Release Notes
125
125
 
126
+ ### v1.0.1
127
+ * Add AR 6.1 and 7.0 support
128
+ * Add Ruby 3.1 support
129
+
126
130
  ### v1.0.0
127
131
 
128
132
  * Drop AR < 5.2 and add 6.0 support
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SchemaPlus
4
4
  module Indexes
5
- VERSION = "1.0.1.beta.3"
5
+ VERSION = "1.0.1"
6
6
  end
7
7
  end
@@ -21,10 +21,10 @@ Gem::Specification.new do |gem|
21
21
  gem.required_ruby_version = ">= 2.5.0"
22
22
 
23
23
  gem.add_dependency "activerecord", ">= 5.2", "< 7.1"
24
- gem.add_dependency "schema_plus_core", "~> 3.1.0.beta.1"
24
+ gem.add_dependency "schema_plus_core", "~> 3.1.0"
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.2.beta.1"
29
+ gem.add_development_dependency "schema_dev", "~> 4.2.0"
30
30
  end
@@ -80,10 +80,8 @@ describe "Schema dump" do
80
80
  Regexp.new(Regexp.escape(string))
81
81
  end
82
82
 
83
- def with_index(*args)
84
- options = args.extract_options!
85
- model, columns = args
86
- ActiveRecord::Migration.add_index(model.table_name, columns, options)
83
+ def with_index(model, columns = nil, **options)
84
+ ActiveRecord::Migration.add_index(model.table_name, columns, **options)
87
85
  model.reset_column_information
88
86
  begin
89
87
  yield
@@ -111,4 +109,3 @@ describe "Schema dump" do
111
109
  end
112
110
 
113
111
  end
114
-
data/spec/spec_helper.rb CHANGED
@@ -24,11 +24,6 @@ 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
- }
32
27
  end
33
28
 
34
29
  # shim to handle connection.tables deprecation in favor of
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.1.beta.3
4
+ version: 1.0.1
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-12 00:00:00.000000000 Z
11
+ date: 2022-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 3.1.0.beta.1
39
+ version: 3.1.0
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.1.0.beta.1
46
+ version: 3.1.0
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.2.beta.1
95
+ version: 4.2.0
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.2.beta.1
102
+ version: 4.2.0
103
103
  description:
104
104
  email:
105
105
  - ronen@barzel.org
@@ -171,11 +171,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
171
171
  version: 2.5.0
172
172
  required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  requirements:
174
- - - ">"
174
+ - - ">="
175
175
  - !ruby/object:Gem::Version
176
- version: 1.3.1
176
+ version: '0'
177
177
  requirements: []
178
- rubygems_version: 3.2.33
178
+ rubygems_version: 3.0.8
179
179
  signing_key:
180
180
  specification_version: 4
181
181
  summary: Adds shorthands and conveniences to ActiveRecord's handling of indexes