ruby-changes:58442
From: Hiroshi <ko1@a...>
Date: Sat, 26 Oct 2019 09:29:14 +0900 (JST)
Subject: [ruby-changes:58442] b25ab3832f (master): [ruby/forwardable] Extracted VERSION constant for gemspec
https://git.ruby-lang.org/ruby.git/commit/?id=b25ab3832f From b25ab3832f75f9257d3ea2e450af8a00a28e1acd Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Mon, 12 Aug 2019 22:27:13 +0900 Subject: [ruby/forwardable] Extracted VERSION constant for gemspec https://github.com/ruby/forwardable/commit/387758d45a diff --git a/lib/forwardable.rb b/lib/forwardable.rb index 91c9329..7f21923 100644 --- a/lib/forwardable.rb +++ b/lib/forwardable.rb @@ -110,10 +110,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/forwardable.rb#L110 # module Forwardable require 'forwardable/impl' - - # Version of +forwardable.rb+ - VERSION = "1.2.0" - FORWARDABLE_VERSION = VERSION + require "forwardable/version" @debug = nil class << self diff --git a/lib/forwardable/forwardable.gemspec b/lib/forwardable/forwardable.gemspec index f90b822..a3c7279 100644 --- a/lib/forwardable/forwardable.gemspec +++ b/lib/forwardable/forwardable.gemspec @@ -1,8 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/lib/forwardable/forwardable.gemspec#L1 begin - require_relative "lib/forwardable" + require_relative "lib/forwardable/version" rescue LoadError # for Ruby core repository - require_relative "../forwardable" + require_relative "version" end Gem::Specification.new do |spec| diff --git a/lib/forwardable/version.rb b/lib/forwardable/version.rb new file mode 100644 index 0000000..b0b67a8 --- /dev/null +++ b/lib/forwardable/version.rb @@ -0,0 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/lib/forwardable/version.rb#L1 +module Forwardable + # Version of +forwardable.rb+ + VERSION = "1.2.0" + FORWARDABLE_VERSION = VERSION +end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/