rr 3.0.0 → 3.0.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: a67997dc1e6efa65e6b99101306915242163d3d6b65f73cec7a1ba2e3dbb3229
4
- data.tar.gz: 34ed2995cdf97291cb5f1334737d8fc93dbd9078a420197635a307414d61255c
3
+ metadata.gz: 6d187dcfce0831255213627383d159a05f73412307407dc0b5a1771956780735
4
+ data.tar.gz: d85e6dbbdddc435ff00927e5892f2346ac1057cb48d2f21a2788d65be976b8e6
5
5
  SHA512:
6
- metadata.gz: 0bb271fe1108d5b1fc1b35c8c14d1d38bcf2254e9863a7cc48d8e20ca67aabc3ee6d02e8cb9bcd30875c285a3b5c14e3386faa31b7907f04be501678025a5278
7
- data.tar.gz: 85641d68043365de3f062ef34164492ba69c5be725b14a12eef75f06895df73a05dbea3d53d196e6f3402d1f4ce108bcc2bdc2b8c65e2bfb015d2f7d7f6bff7c
6
+ metadata.gz: cc6bdb14cd6690ed0fd83da54c8165218647896e2bd505c882d2fbdfef424f069f7a67a95b481f5f382ccfde3625b87fbeb023abb70f17e8dd1788e88fb616c2
7
+ data.tar.gz: 13ce13bef3e88bb683083d2680176665368f8862742f956beabf23828a92a378ecadbd6c877f7d35f9e0cff6e84e98ba71450090cc0650e827f2107f3bf1f9ea
data/CHANGES.md CHANGED
@@ -1,5 +1,60 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.0.5 - 2021-06-26
4
+
5
+ ### Improvements
6
+
7
+ * Improved keyword arguments support on Ruby 2.7.
8
+ [GitHub#85][Patch by akira yamada]
9
+
10
+ ### Thanks
11
+
12
+ * akira yamada
13
+
14
+ ## 3.0.4 - 2021-06-23
15
+
16
+ ### Fixes
17
+
18
+ * Fix inverted condition in keyword arguments related code.
19
+ [GitHub#84][Patch by akira yamada]
20
+
21
+ ### Thanks
22
+
23
+ * akira yamada
24
+
25
+ ## 3.0.3 - 2021-06-22
26
+
27
+ ### Improvements
28
+
29
+ * Improved keyword arguments support.
30
+ [GitHub#83][Patch by akira yamada]
31
+
32
+ ### Thanks
33
+
34
+ * akira yamada
35
+
36
+ ## 3.0.2 - 2021-06-18
37
+
38
+ ### Improvements
39
+
40
+ * `stub`: Added support for Ruby 3.0's keyword arguments.
41
+ [GitHub#82][Reported by akira yamada]
42
+
43
+ ### Thanks
44
+
45
+ * akira yamada
46
+
47
+ ## 3.0.1 - 2021-06-18
48
+
49
+ ### Improvements
50
+
51
+ * Suppressed keyword arguments related warnings on Ruby 2.7.
52
+ [GitHub#81][Reported by akira yamada]
53
+
54
+ ### Thanks
55
+
56
+ * akira yamada
57
+
3
58
  ## 3.0.0 - 2021-03-31
4
59
 
5
60
  ### Improvements
data/README.md CHANGED
@@ -151,6 +151,7 @@ RR is designed and tested to work against the following Ruby versions:
151
151
  * 2.5
152
152
  * 2.6
153
153
  * 2.7
154
+ * 3.0
154
155
  * JRuby 1.7.4
155
156
 
156
157
  as well as the following test frameworks:
data/Rakefile CHANGED
@@ -7,6 +7,8 @@ require 'pp'
7
7
  # build, install, release
8
8
  require 'bundler/gem_tasks'
9
9
 
10
+ require_relative "lib/rr/version"
11
+
10
12
  default_tasks = []
11
13
 
12
14
  begin
@@ -40,4 +42,16 @@ task :test do
40
42
  end
41
43
  default_tasks << :test
42
44
 
45
+ namespace :"gh-pages" do
46
+ namespace :version do
47
+ desc "Update version"
48
+ task :update do
49
+ config_yml_path = "gh-pages/_config.yml"
50
+ config_yml = File.read(config_yml_path)
51
+ config_yml = config_yml.gsub(/^version: .*$/, "version: #{RR::VERSION}")
52
+ File.write(config_yml_path, config_yml)
53
+ end
54
+ end
55
+ end
56
+
43
57
  task :default => default_tasks
@@ -22,6 +22,7 @@ module RR
22
22
  def method_missing(method_name, *args, &block)
23
23
  @double_definition_create.call(method_name, args, {}, &block)
24
24
  end
25
+ ruby2_keywords(:method_missing) if respond_to?(:ruby2_keywords, true)
25
26
  end
26
27
 
27
28
  def __double_definition_create__
@@ -144,6 +144,7 @@ module RR
144
144
  end
145
145
  method_missing(:#{method_name}, *args, &block)
146
146
  end
147
+ ruby2_keywords(:#{method_name}) if respond_to?(:ruby2_keywords, true)
147
148
  RUBY
148
149
  self
149
150
  end
@@ -181,6 +182,7 @@ module RR
181
182
  arguments.block
182
183
  )
183
184
  end
185
+ ruby2_keywords(:#{method_name}) if respond_to?(:ruby2_keywords, true)
184
186
  RUBY
185
187
  end
186
188
  self
@@ -106,6 +106,7 @@ module RR
106
106
  ).call
107
107
  end
108
108
  end
109
+ ruby2_keywords(:method_missing) if respond_to?(:ruby2_keywords, true)
109
110
  METHOD
110
111
  end
111
112
  end
data/lib/rr/space.rb CHANGED
@@ -22,6 +22,7 @@ module RR
22
22
  def method_missing(method_name, *args, &block)
23
23
  instance.__send__(method_name, *args, &block)
24
24
  end
25
+ ruby2_keywords(:method_missing) if respond_to?(:ruby2_keywords, true)
25
26
  end
26
27
  end
27
28
 
data/lib/rr/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module RR
2
- VERSION = '3.0.0'.freeze
2
+ VERSION = '3.0.5'.freeze
3
3
  def self.version; VERSION; end
4
4
  end
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.0
4
+ version: 3.0.5
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-03-31 00:00:00.000000000 Z
13
+ date: 2021-06-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler