Skip to content

Commit

Permalink
Release 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ginty committed May 23, 2010
1 parent 7fd97fc commit 5e5f657
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/cranky.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 10 additions & 2 deletions rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5e5f657

Please sign in to comment.