Skip to content

Commit 477258b

Browse files
committed
bumping to 4.1.7
and using a safer publish command so I don't forget to push to github next time
1 parent 31c7c2f commit 477258b

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
spec/support/debug.log
22
Gemfile.lock
33
pkg
4-
4+
permanent_records*.gem
55
*.swp
66
.bundle

Rakefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ require 'yaml'
33
require 'English'
44
Bundler::GemHelper.install_tasks
55

6+
version = File.read('./VERSION').chomp
67
CONFIG = 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'
3334
end
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+
3545
task default: [:rspec, :rubocop]

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.1.6
1+
4.1.7

0 commit comments

Comments
 (0)