Skip to content

Commit

Permalink
Normalize the version constant (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
dazuma authored Oct 8, 2019
1 parent 93a52cd commit 8db8831
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
14 changes: 2 additions & 12 deletions lib/signet/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Used to prevent the class/module from being loaded more than once
unless defined? Signet::VERSION
module Signet
module VERSION
MAJOR = 0
MINOR = 11
TINY = 0
PRE = nil

STRING = [MAJOR, MINOR, TINY, PRE].compact.join "."
end
end
module Signet
VERSION = "0.11.0".freeze
end
6 changes: 3 additions & 3 deletions signet.gemspec
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# stub: signet 0.5.1 ruby lib
require File.join(File.dirname(__FILE__), "lib/signet", "version")
$LOAD_PATH.push File.expand_path("lib", __dir__)
require "signet/version"

Gem::Specification.new do |gem|
gem.name = "signet"
gem.version = Signet::VERSION::STRING
gem.version = Signet::VERSION

gem.required_rubygems_version = ">= 1.3.5"
gem.require_paths = ["lib"]
Expand Down

0 comments on commit 8db8831

Please sign in to comment.