rr 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +11 -0
- data/lib/rr/injections/double_injection.rb +18 -7
- data/lib/rr/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: 2b7ca60f4fec0c9f87e1710f6b7faf5ed8a1d52d6c8dd7a8ba82667c1ba920d7
|
4
|
+
data.tar.gz: 8c80f469725cc6875ea30384439dc6347e2c998f042c9522eb2c8964a9f7f316
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '07490a4037a941546b5b8c2139520d3c0d91d752a73e59cc52ef1bdae2ba2b0579deb57cd202db69eb96b67f89a5c5533699a0f6d439a787f8c999cf10f5bf7d'
|
7
|
+
data.tar.gz: '094e48f18e353e818ed21492f95fdc9fb15c23d01ae17689e0c044f86e6282736a73622451633daf88b04602f31b2848a84996cdd62965be717187dcc1f36b08'
|
data/CHANGES.md
CHANGED
@@ -137,14 +137,25 @@ module RR
|
|
137
137
|
id = BoundObjects.size
|
138
138
|
BoundObjects[id] = subject_class
|
139
139
|
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
140
|
+
if KeywordArguments.fully_supported?
|
141
|
+
subject_class.class_eval(<<-RUBY, __FILE__, __LINE__ + 1)
|
142
|
+
def #{method_name}(*args, **kwargs, &block)
|
143
|
+
::RR::Injections::DoubleInjection::BoundObjects[#{id}].class_eval do
|
144
|
+
remove_method(:#{method_name})
|
145
|
+
end
|
146
|
+
method_missing(:#{method_name}, *args, **kwargs, &block)
|
144
147
|
end
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
+
RUBY
|
149
|
+
else
|
150
|
+
subject_class.class_eval(<<-RUBY, __FILE__, __LINE__ + 1)
|
151
|
+
def #{method_name}(*args, &block)
|
152
|
+
::RR::Injections::DoubleInjection::BoundObjects[#{id}].class_eval do
|
153
|
+
remove_method(:#{method_name})
|
154
|
+
end
|
155
|
+
method_missing(:#{method_name}, *args, &block)
|
156
|
+
end
|
157
|
+
RUBY
|
158
|
+
end
|
148
159
|
self
|
149
160
|
end
|
150
161
|
|
data/lib/rr/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-06-
|
13
|
+
date: 2021-06-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|