diff --git a/lib/cranky.rb b/lib/cranky.rb index 8f882cc..a5e47d6 100644 --- a/lib/cranky.rb +++ b/lib/cranky.rb @@ -1,6 +1,6 @@ class Cranky - VERSION = "0.0.1" + VERSION = "0.0.2" # Dir.glob("#{File.expand_path(File.dirname(__FILE__))}/*.rb").each do |file| # require file diff --git a/rakefile b/rakefile index 447f114..e7d94d1 100644 --- a/rakefile +++ b/rakefile @@ -11,17 +11,25 @@ end task :default => :spec +task :commit do + system "git commit -a -m 'Release #{Cranky::VERSION}'" +end + +task :tag do + system "git tag -a v#{Cranky::VERSION} -m 'version #{Cranky::VERSION}'" +end + +# Push to github task :push do system "git push origin master" end - task :build do system "gem build cranky.gemspec" end desc "Release version #{Cranky::VERSION}" -task :release => :build do +task :release => [:build, :commit, :tag, :push] do system "gem push cranky-#{Cranky::VERSION}.gem" end