Skip to content

Commit

Permalink
Bump version and start publishing automatically.
Browse files Browse the repository at this point in the history
  • Loading branch information
threedaymonk committed May 11, 2012
1 parent ed63d75 commit 29a32f9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ Rake::TestTask.new("test") do |t|
t.verbose = true
end

require "gem_publisher"
task :publish_gem do |t|
gem = GemPublisher.publish_if_updated("slimmer.gemspec", :rubygems)
puts "Published #{gem}" if gem
end

task :default => :test
2 changes: 2 additions & 0 deletions jenkins.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash -x
set -e
rm -f Gemfile.lock
bundle install --path "${HOME}/bundles/${JOB_NAME}"
bundle exec rake test --trace
bundle exec rake publish_gem
2 changes: 1 addition & 1 deletion lib/slimmer/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Slimmer
VERSION = '1.1.39'
VERSION = '1.1.40'
end
1 change: 1 addition & 0 deletions slimmer.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'mocha', '~> 0.9.12'
s.add_development_dependency 'webmock', '~> 1.7'
s.add_development_dependency 'therubyracer'
s.add_development_dependency 'gem_publisher', '~> 1.0.0'

s.files = Dir[
'README.md',
Expand Down

0 comments on commit 29a32f9

Please sign in to comment.