historiographer 4.1.12 → 4.1.13

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: 8bf0d68cafc68171d60d3ca3c98895fe7493e5dee98f61d98dc3f6c7af25107f
4
- data.tar.gz: 921c92bdb41a6a4fb2676576675487cfb6b1a69db7db6b57455b33be1c222a78
3
+ metadata.gz: fd03725f908a2620fb861adcaf012d37475521bd9571251e289c085f103851ae
4
+ data.tar.gz: a1ee8d9ab91bd575ac5b8bbc83ee0ce7fdc50ac239a0427a857d6e642b4bbfb8
5
5
  SHA512:
6
- metadata.gz: 8a426ce99a92d73ec05809e35c66b4c76cd6a8fab0e588f4733e94a6d18d159717b60f80b32e435957c0e5aec4b1e5c1a05cceead4ce88be209f9877f2253c35
7
- data.tar.gz: 5f0c40ab48ca22082530598a91876f757b2b5b263ca6e39ac0657834194168baeb9924ba341316af63af3a85713d1bf8fdfdf3a8e026ee62858f6096d68cfa84
6
+ metadata.gz: 603a5da6f6cad22c5082f94653de34dbc574adcab3a86d5d843a6fa6c5fdbbab0b4d3ed3fb33e32f46e947101db7f570970c99dfba63eac60410a09b284b30a5
7
+ data.tar.gz: f8d3c0697542b943579cdd79039de1c1723e9e0dcefd3013e03533e82bb68593a4f4ca46f8a62632f2aa945847b1c14ddf813d20db712a0be566a8b1b37df1a9
@@ -123,8 +123,8 @@ module Historiographer
123
123
  return if foreign_class.history_class.method_defined?(method_name)
124
124
 
125
125
  foreign_class.history_class.class_eval do
126
- define_method(method_name) do |*args, &block|
127
- forward_method(method_name, *args, &block)
126
+ define_method(method_name) do |*args, **kwargs, &block|
127
+ forward_method(method_name, *args, **kwargs, &block)
128
128
  end
129
129
  end
130
130
  ensure
@@ -134,16 +134,16 @@ module Historiographer
134
134
  end
135
135
 
136
136
  (foreign_class.columns.map(&:name) - ["id"]).each do |method_name|
137
- define_method(method_name) do |*args, &block|
138
- forward_method(method_name, *args, &block)
137
+ define_method(method_name) do |*args, **kwargs, &block|
138
+ forward_method(method_name, *args, **kwargs, &block)
139
139
  end
140
140
  end
141
141
 
142
142
  # Add method_missing for any methods we might have missed
143
- def method_missing(method_name, *args, &block)
143
+ def method_missing(method_name, *args, **kwargs, &block)
144
144
  original_class = self.class.class_variable_get(:@@original_class)
145
145
  if original_class.method_defined?(method_name)
146
- forward_method(method_name, *args, &block)
146
+ forward_method(method_name, *args, **kwargs, &block)
147
147
  else
148
148
  super
149
149
  end
@@ -400,8 +400,8 @@ module Historiographer
400
400
  @dummy_instance = instance
401
401
  end
402
402
 
403
- def forward_method(method_name, *args, &block)
404
- dummy_instance.send(method_name, *args, &block)
403
+ def forward_method(method_name, *args, **kwargs, &block)
404
+ dummy_instance.send(method_name, *args, **kwargs, &block)
405
405
  end
406
406
  end
407
407
  end
@@ -1,3 +1,3 @@
1
1
  module Historiographer
2
- VERSION = "4.1.12"
2
+ VERSION = "4.1.13"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: historiographer
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.12
4
+ version: 4.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - brettshollenberger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-04 00:00:00.000000000 Z
11
+ date: 2024-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord