Skip to content

Commit

Permalink
bumping to 4.1.7
Browse files Browse the repository at this point in the history
and using a safer publish command so I don't forget to push to github next time
  • Loading branch information
JackDanger committed Jul 7, 2016
1 parent 31c7c2f commit 477258b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
spec/support/debug.log
Gemfile.lock
pkg

permanent_records*.gem
*.swp
.bundle
10 changes: 10 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ require 'yaml'
require 'English'
Bundler::GemHelper.install_tasks

version = File.read('./VERSION').chomp
CONFIG = YAML.load_file(
File.expand_path('spec/support/database.yml', File.dirname(__FILE__))
)
Expand Down Expand Up @@ -32,4 +33,13 @@ RSpec::Core::RakeTask.new(:rspec) do |t|
t.rspec_opts = '-f d -c'
end

task :publish do
# Ensure the gem builds
system('gem build permanent_records.gemspec') &&
# And we didn't leave anything (aside from the gem) uncommitted
!system('git status -s | egrep -v .') &&
system('git push') &&
system("gem push permanent_records-#{version}.gem")
end

task default: [:rspec, :rubocop]
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.1.6
4.1.7

0 comments on commit 477258b

Please sign in to comment.