forwardable 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/forwardable.gemspec +12 -9
- data/lib/forwardable.rb +6 -3
- metadata +8 -8
- data/lib/forwardable/version.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8729830e9c34626b9912c4ea6424e9edadd6c86d6dc6816ee4c2b1defc5923a1
|
4
|
+
data.tar.gz: 69b7122793c8d0b6dac6a4f03b20c70481f1c1ec3ac4f8641639249d5c7f9024
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67bb1876e2ac2da9367b3744332ee376de7ffebeaaf20d7bbc01a5af537d087c4bcbed6eebaad140a4c20cd1f8dafa46f1250a14c8617e22ee20eda688683045
|
7
|
+
data.tar.gz: 1a244c0a3ce5227258862e7632fd28d224cf1b2d65f9ec67eabb93e2c6369c177a199ea465f366bc5a15d53177ba1b565b591eb6a1c940a4454bb74cc6488d24
|
data/forwardable.gemspec
CHANGED
@@ -1,22 +1,25 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
name = File.basename(__FILE__, ".gemspec")
|
4
|
+
version = ["lib", Array.new(name.count("-")+1, "..").join("/")].find do |dir|
|
5
|
+
break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
|
6
|
+
/^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
|
7
|
+
end rescue nil
|
6
8
|
end
|
7
9
|
|
8
10
|
Gem::Specification.new do |spec|
|
9
|
-
spec.name =
|
10
|
-
spec.version =
|
11
|
+
spec.name = name
|
12
|
+
spec.version = version
|
11
13
|
spec.authors = ["Keiju ISHITSUKA"]
|
12
14
|
spec.email = ["keiju@ruby-lang.org"]
|
13
15
|
|
14
16
|
spec.summary = %q{Provides delegation of specified methods to a designated object.}
|
15
17
|
spec.description = %q{Provides delegation of specified methods to a designated object.}
|
16
18
|
spec.homepage = "https://github.com/ruby/forwardable"
|
17
|
-
spec.
|
19
|
+
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
18
20
|
|
19
|
-
spec.
|
21
|
+
spec.required_ruby_version = '>= 2.4.0'
|
22
|
+
spec.files = ["forwardable.gemspec", "lib/forwardable.rb", "lib/forwardable/impl.rb"]
|
20
23
|
spec.bindir = "exe"
|
21
24
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
25
|
spec.require_paths = ["lib"]
|
data/lib/forwardable.rb
CHANGED
@@ -110,7 +110,10 @@
|
|
110
110
|
#
|
111
111
|
module Forwardable
|
112
112
|
require 'forwardable/impl'
|
113
|
-
|
113
|
+
|
114
|
+
# Version of +forwardable.rb+
|
115
|
+
VERSION = "1.3.2"
|
116
|
+
FORWARDABLE_VERSION = VERSION
|
114
117
|
|
115
118
|
@debug = nil
|
116
119
|
class << self
|
@@ -186,7 +189,7 @@ module Forwardable
|
|
186
189
|
# If it's not a class or module, it's an instance
|
187
190
|
mod = Module === self ? self : singleton_class
|
188
191
|
ret = mod.module_eval(&gen)
|
189
|
-
mod.
|
192
|
+
mod.__send__(:ruby2_keywords, ali) if RUBY_VERSION >= '2.7'
|
190
193
|
ret
|
191
194
|
end
|
192
195
|
|
@@ -306,7 +309,7 @@ module SingleForwardable
|
|
306
309
|
gen = Forwardable._delegator_method(self, accessor, method, ali)
|
307
310
|
|
308
311
|
ret = instance_eval(&gen)
|
309
|
-
singleton_class.
|
312
|
+
singleton_class.__send__(:ruby2_keywords, ali) if RUBY_VERSION >= '2.7'
|
310
313
|
ret
|
311
314
|
end
|
312
315
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forwardable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keiju ISHITSUKA
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Provides delegation of specified methods to a designated object.
|
14
14
|
email:
|
@@ -20,12 +20,12 @@ files:
|
|
20
20
|
- forwardable.gemspec
|
21
21
|
- lib/forwardable.rb
|
22
22
|
- lib/forwardable/impl.rb
|
23
|
-
- lib/forwardable/version.rb
|
24
23
|
homepage: https://github.com/ruby/forwardable
|
25
24
|
licenses:
|
25
|
+
- Ruby
|
26
26
|
- BSD-2-Clause
|
27
27
|
metadata: {}
|
28
|
-
post_install_message:
|
28
|
+
post_install_message:
|
29
29
|
rdoc_options: []
|
30
30
|
require_paths:
|
31
31
|
- lib
|
@@ -33,15 +33,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
33
33
|
requirements:
|
34
34
|
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version:
|
36
|
+
version: 2.4.0
|
37
37
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
requirements: []
|
43
|
-
rubygems_version: 3.
|
44
|
-
signing_key:
|
43
|
+
rubygems_version: 3.2.2
|
44
|
+
signing_key:
|
45
45
|
specification_version: 4
|
46
46
|
summary: Provides delegation of specified methods to a designated object.
|
47
47
|
test_files: []
|