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 +4 -4
- data/README.md +4 -0
- data/lib/schema_plus/indexes/version.rb +1 -1
- data/schema_plus_indexes.gemspec +2 -2
- data/spec/schema_dumper_spec.rb +2 -5
- data/spec/spec_helper.rb +0 -5
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7dd63b08c5e89d3d592657305c49c589d9bb9281be5539453570bdc9285d541
|
4
|
+
data.tar.gz: 05cc89c05510acc590589c20d001ef3764979a2f1c2c700e0613988124a737d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62fa2592fc076f50303a908c5d887ce548438090597d6ee1a0c02b5ae607a6432d9570f0a759be12f308ab402cb600b83ff9d3fb31248fc5a41de98acd593bf9
|
7
|
+
data.tar.gz: 01aea7d282df12e3c06265571947e7b9f2839ff820e173ad867ff52e15e1e71a4eb08e4127baaeb89c93d0039d0b2eaa62ad6ef9e64730c5acb8c066c8c00f3c
|
data/README.md
CHANGED
data/schema_plus_indexes.gemspec
CHANGED
@@ -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
|
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.
|
29
|
+
gem.add_development_dependency "schema_dev", "~> 4.2.0"
|
30
30
|
end
|
data/spec/schema_dumper_spec.rb
CHANGED
@@ -80,10 +80,8 @@ describe "Schema dump" do
|
|
80
80
|
Regexp.new(Regexp.escape(string))
|
81
81
|
end
|
82
82
|
|
83
|
-
def with_index(
|
84
|
-
|
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
|
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-
|
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
|
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
|
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.
|
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.
|
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:
|
176
|
+
version: '0'
|
177
177
|
requirements: []
|
178
|
-
rubygems_version: 3.
|
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
|