Rakefile in transistor-0.1.1 vs Rakefile in transistor-0.1.2

- old
+ new

@@ -13,11 +13,11 @@ task.browser = true # predefine Browser globals end desc 'Build min and src version of transistor' task :build do - system "rm -fr build/* && jake && cp build/src/*.js lib/assets/javascripts/ && git add build lib/assets/javascripts" + system "rm -fr build/* && jake && cp build/src/*.js lib/assets/javascripts/ && git add build lib/assets/javascripts && git commit -m 'js build.'" end end begin require 'jasmine' @@ -32,22 +32,20 @@ require "rubygems" require "rubygems/package_task" require "rdoc/task" -task :default => ["spec"] - # This builds the actual gem. For details of what all these options # mean, and other ones you can add, check the documentation here: # # http://rubygems.org/read/chapter/20 # spec = Gem::Specification.new do |s| # Change these as appropriate s.name = "transistor" - s.version = "0.1.1" + s.version = "0.1.2" s.summary = "Client for the radiotower.io service" s.author = "Jakob Holderbaum" s.email = "jakob@featurefabrik.de" s.homepage = "http://featurefabrik.com" @@ -106,16 +104,16 @@ task :clean => [:clobber_rdoc, :clobber_package] do rm "#{spec.name}.gemspec" end desc 'Tag the repository in git with gem version number' -task :tag => [:gemspec, :build] do +task :tag => [:gemspec, "js:build", :package] do if `git diff --cached`.empty? if `git tag`.split("\n").include?("v#{spec.version}") raise "Version #{spec.version} has already been released" end - `git add #{File.expand_path("../#{spec.name}.gemspec", __FILE__)}` + `git add #{File.expand_path("../#{spec.name}.gemspec", __FILE__)} Gemfile.lock` `git commit -m "Released version #{spec.version}"` `git tag v#{spec.version}` `git push --tags` `git push` else @@ -125,7 +123,5 @@ desc "Tag and publish the gem to rubygems.org" task :publish => :tag do `gem push pkg/#{spec.name}-#{spec.version}.gem` end - -task :build => ['js:build', :package]