diff options
author | Saku Ytti <saku@ytti.fi> | 2018-04-25 21:14:40 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2018-04-25 21:14:40 +0300 |
commit | 9b22dfeebd5d5f30a8e15be28a00ff84534e9998 (patch) | |
tree | fbd432a95fbca4f5100c8f7333fa5bf6240be07f /Rakefile | |
parent | 96910082ed914ee51f33eaea44dd34f8bf5d11e6 (diff) |
only set version when building packege
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,5 +1,6 @@ require 'bundler/gem_tasks' require 'rake/testtask' +require_relative 'lib/oxidized/version' gemspec = eval(File.read(Dir['*.gemspec'].first)) file = [gemspec.name, gemspec.version].join('-') + '.gem' @@ -31,6 +32,12 @@ task :test do end end +task :build => :version_set +task :version_set do + Oxidized.version_set + Bundler::GemHelper.instance.gemspec.version = Oxidized::VERSION +end + ## desc 'Install gem' ## task :install => :build do ## system "sudo -Es sh -c \'umask 022; gem install gems/#{file}\'" |