anonymous_active_record 1.0.6 → 1.0.7
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 +4 -4
- data/README.md +5 -0
- data/lib/anonymous_active_record.rb +2 -2
- data/lib/anonymous_active_record/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07dc07f9d324b2e9a0eb1bbe5df6950c1bb13e6b2ce482e3a4c7fb120dd2ed52
|
4
|
+
data.tar.gz: 284a9119d3f2435a35eb7264caff017d04840d4839698636ecbef5df6b2311b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa09c958e0f3bfd13a3da9e66df741c738a23b3766f1991410b7ad929d5bd5a4571e974a9a84e7043a40850c89bc80280238fb95e9d4da9ee8ed7859618b2a8a
|
7
|
+
data.tar.gz: db09ff69d00af99b04f192c43e52491317f44bbafa77c76dd3d34243a03cd7124bfadea8153e8964f5fd475091f273433c87029475479fb4a98d488ca737f3be
|
data/README.md
CHANGED
@@ -36,6 +36,11 @@ Or install it yourself as:
|
|
36
36
|
|
37
37
|
$ gem install anonymous_active_record
|
38
38
|
|
39
|
+
## Compatibility
|
40
|
+
|
41
|
+
This gem is compatible with, as of Feb 2021:
|
42
|
+
• Ruby 2.4, 2.5, 2.6, 2.7, 3.0, ruby-head
|
43
|
+
|
39
44
|
## Usage
|
40
45
|
|
41
46
|
Require the library in your `spec_helper` or other test suite boot file.
|
@@ -55,7 +55,7 @@ module AnonymousActiveRecord
|
|
55
55
|
# :name and :type are required at minimum
|
56
56
|
name = col.delete(:name)
|
57
57
|
type = col.delete(:type)
|
58
|
-
t.column(name, type, col)
|
58
|
+
t.column(name, type, **col)
|
59
59
|
elsif col.is_a?(Array)
|
60
60
|
t.column col[0], col[-1] || :string
|
61
61
|
else
|
@@ -65,7 +65,7 @@ module AnonymousActiveRecord
|
|
65
65
|
indexes.each do |idx_options|
|
66
66
|
if idx_options.is_a?(Hash)
|
67
67
|
column_names = idx_options.delete(:columns)
|
68
|
-
t.index column_names, idx_options
|
68
|
+
t.index column_names, **idx_options
|
69
69
|
elsif idx_options.is_a?(Array)
|
70
70
|
if idx_options.length == 1
|
71
71
|
t.index idx_options[0]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anonymous_active_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
@@ -243,11 +243,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
243
|
- !ruby/object:Gem::Version
|
244
244
|
version: '0'
|
245
245
|
requirements: []
|
246
|
-
rubygems_version: 3.2.
|
246
|
+
rubygems_version: 3.2.3
|
247
247
|
signing_key:
|
248
248
|
specification_version: 4
|
249
249
|
summary: Almost Anonymous ActiveRecord classes
|
250
250
|
test_files:
|
251
|
-
- spec/spec_helper.rb
|
252
251
|
- spec/anonymous_active_record_spec.rb
|
253
252
|
- spec/db/database.yml
|
253
|
+
- spec/spec_helper.rb
|