Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Makefile created
- Loading branch information
EBIRIM
authored and
EBIRIM
committed
Mar 10, 2017
1 parent
54b1234
commit 04107fd
Showing
4 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
deploy: | ||
bundle exec rake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,36 @@ | ||
require 'bundler/gem_tasks' | ||
require 'rspec/core/rake_task' | ||
require_relative 'lib/parliament/version' | ||
require 'open3' | ||
|
||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
task default: :spec | ||
GEM_VERSION = Parliament::VERSION | ||
|
||
def run_command(cmd) | ||
Open3.popen3(cmd) do |stdin, stdout, stderr, wait_thr| | ||
exit_status = wait_thr.value | ||
unless exit_status.success? | ||
abort "#{cmd} FAILED !!" | ||
end | ||
end | ||
end | ||
|
||
task :build do | ||
run_command("gem build parliament-ruby.gemspec") | ||
end | ||
|
||
task :push do | ||
run_command("gem push parliament-ruby-#{GEM_VERSION}.gem") | ||
end | ||
|
||
task :clean do | ||
run_command("rm parliament-ruby-#{GEM_VERSION}.gem") | ||
end | ||
|
||
#task default: :build | ||
task :spec => :build | ||
task :push => :spec | ||
task :clean => :push | ||
task default: :clean | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Parliament | ||
VERSION = '0.5.13'.freeze | ||
VERSION = '0.5.16'.freeze | ||
end |