Skip to content

Commit

Permalink
use gem tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan tulino committed Apr 30, 2018
1 parent 100aeb1 commit 4fd7b8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
15 changes: 2 additions & 13 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
#!/usr/bin/env rake
require "bundler/gem_tasks"

$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
require 'active_path/path_hints/version'

desc "Release version #{ActivePath::PathHints::VERSION} of the gem"
task :release do

system "git tag -a v#{ActivePath::PathHints::VERSION} -m 'Tagging #{ActivePath::PathHints::VERSION}'"
system 'git push --tags'

system "gem build active_path-path_hints.gemspec"
system "gem push active_path-path_hints-#{ActivePath::PathHints::VERSION}.gem"
system "rm active_path-path_hints-#{ActivePath::PathHints::VERSION}.gem"
end
task :default => :spec
2 changes: 1 addition & 1 deletion lib/active_path/path_hints/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module ActivePath
module PathHints
VERSION = '0.1.1'
VERSION = '0.1.2'
end
end

0 comments on commit 4fd7b8b

Please sign in to comment.