From 95c6bfd401a025861c155c0fd669892e4e170a7d Mon Sep 17 00:00:00 2001 From: Mauro George Date: Wed, 18 Mar 2015 20:02:38 -0300 Subject: [PATCH] Use a single place to define the Gem Version --- awesome_print.gemspec | 4 +++- lib/awesome_print/version.rb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/awesome_print.gemspec b/awesome_print.gemspec index a00b20d..6cdd2f5 100644 --- a/awesome_print.gemspec +++ b/awesome_print.gemspec @@ -1,8 +1,10 @@ require "rake" +require 'awesome_print/version' + Gem::Specification.new do |s| s.name = "awesome_print" - s.version = "1.6.2" + s.version = AwesomePrint.version # s.platform = Gem::Platform::RUBY s.authors = "Michael Dvorkin" s.date = Time.now.strftime("%Y-%m-%d") diff --git a/lib/awesome_print/version.rb b/lib/awesome_print/version.rb index 7bb69fc..9c7a37d 100644 --- a/lib/awesome_print/version.rb +++ b/lib/awesome_print/version.rb @@ -1,5 +1,5 @@ module AwesomePrint def self.version - '1.6.2' + '2.0.0.beta' end end