[ruby/forwardable] Extracted VERSION constant for gemspec
https://github.com/ruby/forwardable/commit/387758d45a
This commit is contained in:
parent
0c579b0a97
commit
b25ab3832f
@ -110,10 +110,7 @@
|
|||||||
#
|
#
|
||||||
module Forwardable
|
module Forwardable
|
||||||
require 'forwardable/impl'
|
require 'forwardable/impl'
|
||||||
|
require "forwardable/version"
|
||||||
# Version of +forwardable.rb+
|
|
||||||
VERSION = "1.2.0"
|
|
||||||
FORWARDABLE_VERSION = VERSION
|
|
||||||
|
|
||||||
@debug = nil
|
@debug = nil
|
||||||
class << self
|
class << self
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
begin
|
begin
|
||||||
require_relative "lib/forwardable"
|
require_relative "lib/forwardable/version"
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
# for Ruby core repository
|
# for Ruby core repository
|
||||||
require_relative "../forwardable"
|
require_relative "version"
|
||||||
end
|
end
|
||||||
|
|
||||||
Gem::Specification.new do |spec|
|
Gem::Specification.new do |spec|
|
||||||
|
5
lib/forwardable/version.rb
Normal file
5
lib/forwardable/version.rb
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
module Forwardable
|
||||||
|
# Version of +forwardable.rb+
|
||||||
|
VERSION = "1.2.0"
|
||||||
|
FORWARDABLE_VERSION = VERSION
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user