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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ec44492080efa6904814a34b09c7a93752906ba4070beea5d45c3d76ac18389
4
- data.tar.gz: 9808b41d9302b87b12a1e12c4d54f7868bf36729d4926060428f150bf21c40e3
3
+ metadata.gz: 3ecef57f8977694d10721b6f18ece9744d03288b21e67d8fd8a4d3bca2837a57
4
+ data.tar.gz: e10ccdb31a0ffeb6fca27bb1f54250fd0c0a881afa70d2eac58145b05616a820
5
5
  SHA512:
6
- metadata.gz: 1e7b588573947c3589f24d4f14d6506a44bc96f5000c94d9d1746f59c5d79259fafa4b7bc706a5718fe7bf27fa7233b2568bae51a0721954b1592739d178bc85
7
- data.tar.gz: 84b7e888d30614ef00e123615fbcb4edd2147147eb1e1a0222cf333cb85c74a7ce38e7a1076bd2f33c81f94a0d6f4b9c4342e62f2682cd2a20be016a033274ef
6
+ metadata.gz: 0f8331a837ca968790f87bb9cdcc213d35da6c5973f4d9dcb56a604849c476c8d99d20dcdc921388389aed85f3b7eb2894eabcb90abfd42a1f1214817a631264
7
+ data.tar.gz: cffe4f42680621637b3103607a96c5511712f0d298c30401e04bfce08997a702fdcc5f965b8737e8531f12d330612ada1887818f93e109facfaaac215eb9243c
@@ -1,5 +1,9 @@
1
1
  language: ruby
2
2
 
3
+ branches:
4
+ only:
5
+ - master
6
+
3
7
  rvm:
4
8
  # MRI
5
9
  - ruby-head
@@ -11,6 +15,8 @@ rvm:
11
15
  - 2.2
12
16
  - 2.1
13
17
  - 1.9.3
18
+ - 1.8.7
19
+ - ree
14
20
  # JRuby
15
21
  - jruby-head
16
22
  - jruby-9.2
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...master)
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
- args_string =
86
- if RUBY_VERSION >= "2.7.0"
87
- "*args, **kwargs, &block"
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
- "*args, &block"
90
- end
91
- class_eval(<<-METHOD)
92
- def method_missing(method, #{args_string})
93
- if @__receiver__.respond_to?(method.to_sym)
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
- METHOD
96
+ end
97
+ ruby2_keywords :method_missing if respond_to?(:ruby2_keywords, true)
105
98
  end
106
99
  end
@@ -1,4 +1,4 @@
1
1
  module Docile
2
2
  # The current version of this library
3
- VERSION = "1.3.3"
3
+ VERSION = "1.3.4"
4
4
  end
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.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-18 00:00:00.000000000 Z
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.0.8
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.