docile 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -0
- data/HISTORY.md +6 -1
- data/lib/docile/fallback_context_proxy.rb +10 -17
- data/lib/docile/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ecef57f8977694d10721b6f18ece9744d03288b21e67d8fd8a4d3bca2837a57
|
4
|
+
data.tar.gz: e10ccdb31a0ffeb6fca27bb1f54250fd0c0a881afa70d2eac58145b05616a820
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f8331a837ca968790f87bb9cdcc213d35da6c5973f4d9dcb56a604849c476c8d99d20dcdc921388389aed85f3b7eb2894eabcb90abfd42a1f1214817a631264
|
7
|
+
data.tar.gz: cffe4f42680621637b3103607a96c5511712f0d298c30401e04bfce08997a702fdcc5f965b8737e8531f12d330612ada1887818f93e109facfaaac215eb9243c
|
data/.travis.yml
CHANGED
data/HISTORY.md
CHANGED
@@ -1,9 +1,14 @@
|
|
1
1
|
# HISTORY
|
2
2
|
|
3
|
-
## [Unreleased changes](http://github.com/ms-ati/docile/compare/v1.3.
|
3
|
+
## [Unreleased changes](http://github.com/ms-ati/docile/compare/v1.3.4...master)
|
4
4
|
|
5
5
|
- ...
|
6
6
|
|
7
|
+
## [v1.3.4 (Dec 22, 2020)](http://github.com/ms-ati/docile/compare/v1.3.3...v1.3.4)
|
8
|
+
|
9
|
+
- Special thanks to Benoit Daloze (@eregon):
|
10
|
+
- Fix delegation on Ruby 2.7 (issues #45 and #44, PR #52)
|
11
|
+
|
7
12
|
## [v1.3.3 (Dec 18, 2020)](http://github.com/ms-ati/docile/compare/v1.3.2...v1.3.3)
|
8
13
|
|
9
14
|
- Special thanks (again!) to Taichi Ishitani (@taichi-ishitani):
|
@@ -82,25 +82,18 @@ module Docile
|
|
82
82
|
|
83
83
|
# Proxy all methods, excluding {NON_PROXIED_METHODS}, first to `receiver`
|
84
84
|
# and then to `fallback` if not found.
|
85
|
-
|
86
|
-
if
|
87
|
-
|
85
|
+
def method_missing(method, *args, &block)
|
86
|
+
if @__receiver__.respond_to?(method.to_sym)
|
87
|
+
@__receiver__.__send__(method.to_sym, *args, &block)
|
88
88
|
else
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
@__receiver__.__send__(method.to_sym, #{args_string})
|
95
|
-
else
|
96
|
-
begin
|
97
|
-
@__fallback__.__send__(method.to_sym, #{args_string})
|
98
|
-
rescue NoMethodError => e
|
99
|
-
e.extend(BacktraceFilter)
|
100
|
-
raise e
|
101
|
-
end
|
89
|
+
begin
|
90
|
+
@__fallback__.__send__(method.to_sym, *args, &block)
|
91
|
+
rescue NoMethodError => e
|
92
|
+
e.extend(BacktraceFilter)
|
93
|
+
raise e
|
102
94
|
end
|
103
95
|
end
|
104
|
-
|
96
|
+
end
|
97
|
+
ruby2_keywords :method_missing if respond_to?(:ruby2_keywords, true)
|
105
98
|
end
|
106
99
|
end
|
data/lib/docile/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marc Siegel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
|
-
rubygems_version: 3.
|
142
|
+
rubygems_version: 3.1.4
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: Docile keeps your Ruby DSLs tame and well-behaved.
|