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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e392bcbdfc2f58c8d401f10447c1266a15c16fffee00244f9c8628e81aea379
4
- data.tar.gz: 6f9aedbd9499eb8928c010bbdf881218a56a8931beb157104df38517b0bf3c6a
3
+ metadata.gz: 07dc07f9d324b2e9a0eb1bbe5df6950c1bb13e6b2ce482e3a4c7fb120dd2ed52
4
+ data.tar.gz: 284a9119d3f2435a35eb7264caff017d04840d4839698636ecbef5df6b2311b2
5
5
  SHA512:
6
- metadata.gz: e76fd8bc9db439e5861855f5b027270e889face0f42fc24b4d0fd2f34d442a1b56d68035c310438ff3ffae15cab150d880e17106b5eae28978ef924b5964b6fe
7
- data.tar.gz: 7f0aaf826a1ddd3d506536f6904ce6f09759a65cfd2b3001e4f69253693dcaeca9bd2a0a730ee845d6208d1c730406da939cef391154cc781e355b33cbeb60b2
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]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AnonymousActiveRecord
4
- VERSION = '1.0.6'
4
+ VERSION = '1.0.7'
5
5
  end
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.6
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.9
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