Rakefile in highcharts-rails-5.0.4 vs Rakefile in highcharts-rails-5.0.5

- old
+ new

@@ -1,9 +1,23 @@ require 'bundler/gem_tasks' require 'open-uri' require 'zip' +module Bundler + class GemHelper + def tag_version + sh "git tag -s -m \"Version #{version}\" #{version_tag}" + Bundler.ui.confirm "Tagged #{version_tag}." + yield if block_given? + rescue + Bundler.ui.error "Untagging #{version_tag} due to error." + sh_with_code "git tag -d #{version_tag}" + raise + end + end +end + desc 'Update to the latest version of Highcharts' task :update, :version do |_, args| # After highcharts 5.0.0, chart code was was seperated into to files: code/ # containing classic mode with styling in the code, and code/js containing # styled mode, where presentational code is removed. Prior to 5.0.0 this code @@ -79,7 +93,8 @@ system "git add CHANGELOG.markdown lib/highcharts/version.rb app/assets" system "git commit -m '#{message}'" # Tag, build and release + load 'lib/highcharts/version.rb' # Re-load this so Bundler gets the right version Rake::Task["release"].invoke end \ No newline at end of file