1
0
Fork 0
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:
Hiroshi SHIBATA 2019-08-12 22:27:13 +09:00
parent 0c579b0a97
commit b25ab3832f
3 changed files with 8 additions and 6 deletions

View file

@ -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

View file

@ -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|

View file

@ -0,0 +1,5 @@
module Forwardable
# Version of +forwardable.rb+
VERSION = "1.2.0"
FORWARDABLE_VERSION = VERSION
end