From 8625020fec5b8c9663e83944dfe9c0be4f2e3a12 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 22 May 2015 11:09:20 +0200 Subject: Move gem version to separate file. --- capistrano-refinerycms.gemspec | 6 +++++- lib/capistrano/refinerycms.rb | 2 ++ lib/capistrano/refinerycms/version.rb | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 lib/capistrano/refinerycms/version.rb diff --git a/capistrano-refinerycms.gemspec b/capistrano-refinerycms.gemspec index 85782f9..32142c2 100644 --- a/capistrano-refinerycms.gemspec +++ b/capistrano-refinerycms.gemspec @@ -14,9 +14,12 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # + +require_relative 'lib/capistrano/refinerycms/version' + Gem::Specification.new do |s| s.name = 'capistrano-refinerycms' - s.version = '0.1.0' + s.version = ::Capistrano::RefineryCMS::VERSION s.date = '2015-02-08' s.summary = "Capistrano 3.x recipes for RefineryCMS." s.description = "Recipes for installing RefineryCMS using Capistrano 3.x" @@ -25,6 +28,7 @@ Gem::Specification.new do |s| s.files = ["lib/capistrano-refinerycms.rb", "lib/capistrano/refinerycms.rb", "lib/capistrano/refinerycms/helpers.rb", + "lib/capistrano/refinerycms/version.rb", "lib/capistrano/tasks/refinerycms.rake", "lib/generators/capistrano/refinerycms/templates/config_initializers_refinery_core.rb.erb", "lib/generators/capistrano/refinerycms/template_generator.rb"] diff --git a/lib/capistrano/refinerycms.rb b/lib/capistrano/refinerycms.rb index f60e9ec..e17add6 100644 --- a/lib/capistrano/refinerycms.rb +++ b/lib/capistrano/refinerycms.rb @@ -14,4 +14,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # + +require_relative 'refinerycms/version' load File.expand_path('../tasks/refinerycms.rake', __FILE__) diff --git a/lib/capistrano/refinerycms/version.rb b/lib/capistrano/refinerycms/version.rb new file mode 100644 index 0000000..8b06ed2 --- /dev/null +++ b/lib/capistrano/refinerycms/version.rb @@ -0,0 +1,5 @@ +module Capistrano + module RefineryCMS + VERSION = "0.1.1" + end +end \ No newline at end of file -- cgit v1.2.3