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 +4 -4
- data/lib/historiographer/history.rb +8 -8
- data/lib/historiographer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd03725f908a2620fb861adcaf012d37475521bd9571251e289c085f103851ae
|
4
|
+
data.tar.gz: a1ee8d9ab91bd575ac5b8bbc83ee0ce7fdc50ac239a0427a857d6e642b4bbfb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2024-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|