docile 1.3.4 → 1.3.5

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: 3ecef57f8977694d10721b6f18ece9744d03288b21e67d8fd8a4d3bca2837a57
4
- data.tar.gz: e10ccdb31a0ffeb6fca27bb1f54250fd0c0a881afa70d2eac58145b05616a820
3
+ metadata.gz: 3293fa913b3cac5e74f72a8c434b99917a9f7f131fd4afd29688a9dc000bb7dc
4
+ data.tar.gz: 4134e1db62d390e98d06752586a17d39d60417ec32eafb4b41f8f03ce9e8b510
5
5
  SHA512:
6
- metadata.gz: 0f8331a837ca968790f87bb9cdcc213d35da6c5973f4d9dcb56a604849c476c8d99d20dcdc921388389aed85f3b7eb2894eabcb90abfd42a1f1214817a631264
7
- data.tar.gz: cffe4f42680621637b3103607a96c5511712f0d298c30401e04bfce08997a702fdcc5f965b8737e8531f12d330612ada1887818f93e109facfaaac215eb9243c
6
+ metadata.gz: 3ceb48adefed44844c52059c3daebb27d1c5a23d729c9d8a17fa6b54093e374c6856e5bc2bfeff702cc1a315d511542be012b72f306a2cfb2c69252a1229ec45
7
+ data.tar.gz: 6f1c8e2bc1ed5f66510402454173147f951753d5161095e43894e66ffe689ea0045bbb4c02558ef142bfd54a7bd898acf637c49b4bdfa497a11b4298871d78fb
@@ -15,8 +15,6 @@ rvm:
15
15
  - 2.2
16
16
  - 2.1
17
17
  - 1.9.3
18
- - 1.8.7
19
- - ree
20
18
  # JRuby
21
19
  - jruby-head
22
20
  - jruby-9.2
@@ -29,15 +27,5 @@ jobs:
29
27
  - rvm: ruby-head
30
28
  - rvm: jruby-head
31
29
  - rvm: truffleruby-head
32
- # NOTE (2020-12-18): Failing access to Rubygems with following error:
33
- # Unable to download data from https://rubygems.org/ - hostname was not
34
- # match with the server certificate (https://rubygems.org/specs.4.8.gz)
35
- #
36
- # See Travis CI topic here:
37
- # https://travis-ci.community/t/ruby-1-8-7-and-ree-builds-broken-by-ssl-certificate-failure/10866
38
- #
39
- # TODO (2020-12-18): Either find a fix or remove testing of 1.8 versions
40
- - rvm: 1.8.7
41
- - rvm: ree
42
30
 
43
31
  fast_finish: true
data/HISTORY.md CHANGED
@@ -1,17 +1,27 @@
1
1
  # HISTORY
2
2
 
3
- ## [Unreleased changes](http://github.com/ms-ati/docile/compare/v1.3.4...master)
3
+ ## [Unreleased changes](http://github.com/ms-ati/docile/compare/v1.3.5...master)
4
4
 
5
- - ...
5
+ ...
6
+
7
+ ## [v1.3.5 (Jan 13, 2021)](http://github.com/ms-ati/docile/compare/v1.3.4...v1.3.5)
8
+
9
+ - Special thanks to Jochen Seeber (@jochenseeber):
10
+ - Fix remaining delegation on Ruby 2.7 (PR #62)
11
+ - Remove support for Ruby 1.8.7 and REE, because they
12
+ [are no longer runnable on Travis CI](https://travis-ci.community/t/ruby-1-8-7-and-ree-builds-broken-by-ssl-certificate-failure/10866)
13
+ - Announce that continued support for any EOL Ruby versions (that is, versions
14
+ prior to Ruby 2.5 as of Jan 13 2021) will be decided on **Feb 1, 2021**
15
+ based on comments to [issue #58](https://github.com/ms-ati/docile/issues/58)
6
16
 
7
17
  ## [v1.3.4 (Dec 22, 2020)](http://github.com/ms-ati/docile/compare/v1.3.3...v1.3.4)
8
18
 
9
- - Special thanks to Benoit Daloze (@eregon):
19
+ - Special thanks to Benoit Daloze (@eregon):
10
20
  - Fix delegation on Ruby 2.7 (issues #45 and #44, PR #52)
11
21
 
12
22
  ## [v1.3.3 (Dec 18, 2020)](http://github.com/ms-ati/docile/compare/v1.3.2...v1.3.3)
13
23
 
14
- - Special thanks (again!) to Taichi Ishitani (@taichi-ishitani):
24
+ - Special thanks (again!) to Taichi Ishitani (@taichi-ishitani):
15
25
  - Fix keyword arg warnings on Ruby 2.7 (issue #44, PR #45)
16
26
  - Filter Docile's source files from backtrace (issue #35, PR #36)
17
27
 
data/README.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## ⚠️WARNING⚠️, 🔴IMPORTANT❗🔴
2
+ ### Using Docile on an [end-of-life Ruby version (< **2.5**)](https://www.ruby-lang.org/en/downloads/branches/)?
3
+ #### Please comment on [issue #58](https://github.com/ms-ati/docile/issues/58) this month 📅!
4
+ We'll decide which Ruby versions to continue supporting on **Feb 1st 2021**.
5
+
1
6
  # Docile
2
7
 
3
8
  [![Gem Version](https://img.shields.io/gem/v/docile.svg)](https://rubygems.org/gems/docile)
@@ -351,7 +356,7 @@ $ gem install docile
351
356
 
352
357
  ## Status
353
358
 
354
- Works on [all ruby versions since 1.8.7](https://github.com/ms-ati/docile/blob/master/.travis.yml), or so Travis CI [tells us](https://travis-ci.org/ms-ati/docile).
359
+ Works on [all ruby versions since 1.9.3](https://github.com/ms-ati/docile/blob/master/.travis.yml), or so Travis CI [tells us](https://travis-ci.org/ms-ati/docile).
355
360
 
356
361
  Used by some pretty cool gems to implement their DSLs, notably including [SimpleCov](https://github.com/colszowka/simplecov). Keep an eye out for new gems using Docile at the [Ruby Toolbox](https://www.ruby-toolbox.com/projects/docile).
357
362
 
@@ -44,6 +44,8 @@ module Docile
44
44
  exec_in_proxy_context(dsl, FallbackContextProxy, *args, &block)
45
45
  dsl
46
46
  end
47
+
48
+ ruby2_keywords :dsl_eval if respond_to?(:ruby2_keywords, true)
47
49
  module_function :dsl_eval
48
50
 
49
51
  # Execute a block in the context of an object whose methods represent the
@@ -83,6 +85,8 @@ module Docile
83
85
  def dsl_eval_with_block_return(dsl, *args, &block)
84
86
  exec_in_proxy_context(dsl, FallbackContextProxy, *args, &block)
85
87
  end
88
+
89
+ ruby2_keywords :dsl_eval_with_block_return if respond_to?(:ruby2_keywords, true)
86
90
  module_function :dsl_eval_with_block_return
87
91
 
88
92
  # Execute a block in the context of an immutable object whose methods,
@@ -120,5 +124,7 @@ module Docile
120
124
  def dsl_eval_immutable(dsl, *args, &block)
121
125
  exec_in_proxy_context(dsl, ChainingFallbackContextProxy, *args, &block)
122
126
  end
127
+
128
+ ruby2_keywords :dsl_eval_immutable if respond_to?(:ruby2_keywords, true)
123
129
  module_function :dsl_eval_immutable
124
130
  end
@@ -16,5 +16,7 @@ module Docile
16
16
  def method_missing(method, *args, &block)
17
17
  @__receiver__ = super(method, *args, &block)
18
18
  end
19
+
20
+ ruby2_keywords :method_missing if respond_to?(:ruby2_keywords, true)
19
21
  end
20
22
  end
@@ -36,6 +36,8 @@ module Docile
36
36
  end
37
37
  end
38
38
  end
39
+
40
+ ruby2_keywords :exec_in_proxy_context if respond_to?(:ruby2_keywords, true)
39
41
  module_function :exec_in_proxy_context
40
42
  end
41
43
  end
@@ -61,6 +61,8 @@ module Docile
61
61
  end
62
62
  end
63
63
 
64
+ singleton_class.send(:ruby2_keywords, :method_missing) if singleton_class.respond_to?(:ruby2_keywords, true)
65
+
64
66
  # instrument a helper method to remove the above instrumentation
65
67
  singleton_class.
66
68
  send(:define_method, :__docile_undo_fallback__) do
@@ -94,6 +96,7 @@ module Docile
94
96
  end
95
97
  end
96
98
  end
99
+
97
100
  ruby2_keywords :method_missing if respond_to?(:ruby2_keywords, true)
98
101
  end
99
102
  end
@@ -1,4 +1,4 @@
1
1
  module Docile
2
2
  # The current version of this library
3
- VERSION = "1.3.4"
3
+ VERSION = "1.3.5"
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.4
4
+ version: 1.3.5
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-22 00:00:00.000000000 Z
11
+ date: 2021-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake