mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/forwardable] Extracted VERSION constant for gemspec
https://github.com/ruby/forwardable/commit/387758d45a
This commit is contained in:
parent
0c579b0a97
commit
b25ab3832f
3 changed files with 8 additions and 6 deletions
|
@ -110,10 +110,7 @@
|
|||
#
|
||||
module Forwardable
|
||||
require 'forwardable/impl'
|
||||
|
||||
# Version of +forwardable.rb+
|
||||
VERSION = "1.2.0"
|
||||
FORWARDABLE_VERSION = VERSION
|
||||
require "forwardable/version"
|
||||
|
||||
@debug = nil
|
||||
class << self
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
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|
|
||||
|
|
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…
Reference in a new issue