activerecord_touchy 0.1.0 → 0.1.3

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
- SHA1:
3
- metadata.gz: 8b2cbdc30e00bd2ec20aaee11d4bced2d57b1470
4
- data.tar.gz: 05a7eaa39c121d77eedf834f8fba5daea1547544
2
+ SHA256:
3
+ metadata.gz: adf119f725488392d59ccba20e1b30de7b5be554f1ee782f98b64addd1981c45
4
+ data.tar.gz: 3d4baa428e3b5c48ece7693eccf0c00b3547524872138f8362c354f9a661902d
5
5
  SHA512:
6
- metadata.gz: 6bc1bae5c2ad62e3b9c5bc28e68ceddd710dc3480d14e46fd5d11c086e86f9cfc487c54731c5dd8dbf4708d52efce14132745057056f4fb7093fc7670dd4c7b1
7
- data.tar.gz: 135d6393d0f168eed2d583c775051c735367113b3aeb6a7a00e960b95a162f47582755001ab4bb30c79e1e6a1f0d7e01e20153e74b67835160b11100788b0ad2
6
+ metadata.gz: 882f594faac192736255e99229309fa5b62881138d91753c485627254c31a16e188fdd366382f848758255b07c6b339f78228ebbbc1c896b7b6f2e910a41e634
7
+ data.tar.gz: 57104a509d8a09ce7a61057aa8f593e2e7855326be3d27ad2db3003417014382eab194c6d36ed22593d403779daba13133b98b1412e3b9a02c8f4f8e0ee2f45f
@@ -27,5 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency 'rubocop', '~> 0.50'
28
28
  spec.add_development_dependency 'sqlite3', '~> 1.3'
29
29
 
30
- spec.add_runtime_dependency 'activerecord', '>= 4.0.0', '<= 6.0'
30
+ spec.add_runtime_dependency 'activerecord', '>= 4.0.0', '< 7.1'
31
31
  end
@@ -7,7 +7,7 @@ module ActiverecordTouchy
7
7
  end
8
8
 
9
9
  module ClassMethods
10
- def has_many(name, scope = nil, options = {}, &extension)
10
+ def has_many(name, scope = nil, **options, &extension)
11
11
  touch = (scope.is_a?(Hash) ? scope : options).delete(:touch)
12
12
  result = super
13
13
 
@@ -20,7 +20,7 @@ module ActiverecordTouchy
20
20
  result
21
21
  end
22
22
 
23
- def has_one(name, scope = nil, options = {})
23
+ def has_one(name, scope = nil, **options)
24
24
  touch = (scope.is_a?(Hash) ? scope : options).delete(:touch)
25
25
  result = super
26
26
 
@@ -1,3 +1,3 @@
1
1
  module ActiverecordTouchy
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord_touchy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vital Ryabchinskiy
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-17 00:00:00.000000000 Z
11
+ date: 2022-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -87,9 +87,9 @@ dependencies:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: 4.0.0
90
- - - "<="
90
+ - - "<"
91
91
  - !ruby/object:Gem::Version
92
- version: '6.0'
92
+ version: '7.1'
93
93
  type: :runtime
94
94
  prerelease: false
95
95
  version_requirements: !ruby/object:Gem::Requirement
@@ -97,10 +97,10 @@ dependencies:
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
99
  version: 4.0.0
100
- - - "<="
100
+ - - "<"
101
101
  - !ruby/object:Gem::Version
102
- version: '6.0'
103
- description:
102
+ version: '7.1'
103
+ description:
104
104
  email:
105
105
  - vital.ryabchinskiy@gmail.com
106
106
  executables: []
@@ -125,7 +125,7 @@ homepage: https://github.com/vitalinfo/activerecord_touchy
125
125
  licenses:
126
126
  - MIT
127
127
  metadata: {}
128
- post_install_message:
128
+ post_install_message:
129
129
  rdoc_options: []
130
130
  require_paths:
131
131
  - lib
@@ -140,9 +140,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  requirements: []
143
- rubyforge_project:
144
- rubygems_version: 2.6.13
145
- signing_key:
143
+ rubygems_version: 3.2.32
144
+ signing_key:
146
145
  specification_version: 4
147
146
  summary: Extend AR to use touch for has_many and has_one relations
148
147
  test_files: []