HornsAndHooves-moribus 0.8.0 → 0.9.0

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: f9ed8306d0cb942466108234ba8408229a24b58155a0d49766343474f9b4f846
4
- data.tar.gz: 44c7ecd497ac5cb564874f5278cd24ecfaf708cecd1efd65d12b7159c80f7ffc
3
+ metadata.gz: 458dd43da4a7bb700075f307e8bac67beea88ac91cc103d01dbc873e754c53ee
4
+ data.tar.gz: 699fd07e4333c5cea0c317c43f82d1f33e6b1f9629d32ff55099dd280f28a4f8
5
5
  SHA512:
6
- metadata.gz: 9fa73e79e461f240134469e04c80a5f6d7baddb9b0638e010ddd24b2316c9123ebb25d220dccd80463f689f340fbe92b05795a2786e8e317fc780d787c872a0d
7
- data.tar.gz: 96b2e59ab096002ab9ddb9c1e88305aa9c0127f61f4c19d75eb63206def9a8e8dceb4ce13e13a9aeb53ec4733167d3792a2facf582f695862dd599d42333656a
6
+ metadata.gz: 8379ba55ec3c949f21961b50ac3d2979a093fa2790e3e9bd134574d76f7f2ed9cd82eb06ee752771f5e265a63568fc3cb69fe01502e38fdd5ff829d5df279add
7
+ data.tar.gz: 533dc47aa565a5ce7b84ef924eea7a18d0a3d4776c29d6a971e1a430b7a3dd713143b7e9d4db253d00777dc5b430571dd62d3b7b3c64fd01a45b09b9ae8790a2
@@ -45,7 +45,7 @@ module Moribus
45
45
  options = scope if scope.is_a?(Hash)
46
46
 
47
47
  alias_name = options.delete(:alias)
48
- reflection = super(name, scope, options, &extension)
48
+ reflection = super(name, scope, **options, &extension)
49
49
  alias_association(alias_name, name) if alias_name
50
50
  reflection
51
51
  end
@@ -55,7 +55,7 @@ module Moribus
55
55
  options = scope if scope.is_a?(Hash)
56
56
 
57
57
  alias_name = options.delete(:alias)
58
- reflection = super(name, scope, options)
58
+ reflection = super(name, scope, **options)
59
59
  alias_association(alias_name, name) if alias_name
60
60
  reflection
61
61
  end
@@ -91,7 +91,7 @@ module Moribus
91
91
  scope = current_scope
92
92
  end
93
93
 
94
- reflection = has_one(name, scope, options)
94
+ reflection = has_one(name, scope, **options)
95
95
  reflection = normalize_reflection(reflection, name)
96
96
  reflection.options[:is_current] = true
97
97
  accepts_nested_attributes_for name
@@ -106,7 +106,7 @@ module Moribus
106
106
  # by special aggregated functionality (attribute delegation. See
107
107
  # Extensions::HasAggregatedExtension)
108
108
  def has_aggregated(name, options = {})
109
- reflection = belongs_to(name, options)
109
+ reflection = belongs_to(name, **options)
110
110
  reflection = normalize_reflection(reflection, name)
111
111
  reflection.options[:aggregated] = true
112
112
  accepts_nested_attributes_for name
@@ -1,3 +1,3 @@
1
1
  module Moribus # :nodoc:
2
- VERSION = "0.8.0" # :nodoc:
2
+ VERSION = "0.9.0" # :nodoc:
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: HornsAndHooves-moribus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - HornsAndHooves
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2021-09-30 00:00:00.000000000 Z
14
+ date: 2022-08-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
208
  - !ruby/object:Gem::Version
209
209
  version: '0'
210
210
  requirements: []
211
- rubygems_version: 3.0.3
211
+ rubygems_version: 3.0.9
212
212
  signing_key:
213
213
  specification_version: 4
214
214
  summary: Introduces Aggregated and Tracked behavior to ActiveRecord::Base models