File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 11spec /support /debug.log
22Gemfile.lock
33pkg
4-
4+ permanent_records * .gem
55* .swp
66.bundle
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ require 'yaml'
33require 'English'
44Bundler ::GemHelper . install_tasks
55
6+ version = File . read ( './VERSION' ) . chomp
67CONFIG = YAML . load_file (
78 File . expand_path ( 'spec/support/database.yml' , File . dirname ( __FILE__ ) )
89)
@@ -32,4 +33,13 @@ RSpec::Core::RakeTask.new(:rspec) do |t|
3233 t . rspec_opts = '-f d -c'
3334end
3435
36+ task :publish do
37+ # Ensure the gem builds
38+ system ( 'gem build permanent_records.gemspec' ) &&
39+ # And we didn't leave anything (aside from the gem) uncommitted
40+ !system ( 'git status -s | egrep -v .' ) &&
41+ system ( 'git push' ) &&
42+ system ( "gem push permanent_records-#{ version } .gem" )
43+ end
44+
3545task default : [ :rspec , :rubocop ]
Original file line number Diff line number Diff line change 1- 4.1.6
1+ 4.1.7
You can’t perform that action at this time.
0 commit comments