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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b71c98d58e860e0b8243aec9b71eb926ab0012fe8fb819fc7510ea28cd21d524
4
- data.tar.gz: 891b5ee4d7f70b073e7fa34843986ecd5ed3b8a319d0fcad854bb91a8e77c18e
3
+ metadata.gz: 8729830e9c34626b9912c4ea6424e9edadd6c86d6dc6816ee4c2b1defc5923a1
4
+ data.tar.gz: 69b7122793c8d0b6dac6a4f03b20c70481f1c1ec3ac4f8641639249d5c7f9024
5
5
  SHA512:
6
- metadata.gz: 638e29024c4ca43e8843a1e2545f6bef2e218d5016d29e52189df5b9cdff887821d607bb1bf4bbbdd501d3c6c746dc88582b1df6cdd05e7293287d1883854934
7
- data.tar.gz: 8fd748a5b48039e6cd73922b6f8324fc60eab8f517a80b927e53170a0e22297baeb959619b4f032fb34d955d535acdbb36e04e1158351171c7242a90daa4abe6
6
+ metadata.gz: 67bb1876e2ac2da9367b3744332ee376de7ffebeaaf20d7bbc01a5af537d087c4bcbed6eebaad140a4c20cd1f8dafa46f1250a14c8617e22ee20eda688683045
7
+ data.tar.gz: 1a244c0a3ce5227258862e7632fd28d224cf1b2d65f9ec67eabb93e2c6369c177a199ea465f366bc5a15d53177ba1b565b591eb6a1c940a4454bb74cc6488d24
@@ -1,22 +1,25 @@
1
- begin
2
- require_relative "lib/forwardable/version"
3
- rescue LoadError
4
- # for Ruby core repository
5
- require_relative "version"
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 = "forwardable"
10
- spec.version = Forwardable::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.license = "BSD-2-Clause"
19
+ spec.licenses = ["Ruby", "BSD-2-Clause"]
18
20
 
19
- spec.files = ["forwardable.gemspec", "lib/forwardable.rb", "lib/forwardable/impl.rb", "lib/forwardable/version.rb"]
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"]
@@ -110,7 +110,10 @@
110
110
  #
111
111
  module Forwardable
112
112
  require 'forwardable/impl'
113
- require "forwardable/version"
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.send(:ruby2_keywords, ali) if RUBY_VERSION >= '2.7'
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.send(:ruby2_keywords, ali) if RUBY_VERSION >= '2.7'
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.1
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: 2019-12-11 00:00:00.000000000 Z
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: '0'
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.0.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: []
@@ -1,5 +0,0 @@
1
- module Forwardable
2
- # Version of +forwardable.rb+
3
- VERSION = "1.3.1"
4
- FORWARDABLE_VERSION = VERSION
5
- end