Skip to content

Commit

Permalink
Extracted VERSION constant for gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Aug 12, 2019
1 parent e2f1ec8 commit 387758d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions forwardable.gemspec
@@ -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|
Expand Down
5 changes: 1 addition & 4 deletions lib/forwardable.rb
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions lib/forwardable/version.rb
@@ -0,0 +1,5 @@
module Forwardable
# Version of +forwardable.rb+
VERSION = "1.2.0"
FORWARDABLE_VERSION = VERSION
end

0 comments on commit 387758d

Please sign in to comment.