Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
something I did some days ago, it was a black night and moon was almo…
…s t full
- Loading branch information
Showing
4 changed files
with
46 additions
and
28 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 |
---|---|---|
@@ -1,41 +1,54 @@ | ||
require 'rspec/core/rake_task' | ||
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__) | ||
require "polvo/menu/version" | ||
|
||
RSpec::Core::RakeTask.new('spec') | ||
|
||
task :default do | ||
puts `rake -T` | ||
|
||
desc "Load development gem and starts IRB" | ||
task :console do | ||
exec 'irb -I lib -r polvomenu.rb' | ||
end | ||
|
||
namespace :test do | ||
desc "Load development gem and starts IRB" | ||
task :console do | ||
exec 'irb -I lib -r polvomenu.rb' | ||
end | ||
desc "Deletes built gem files" | ||
task :clean do | ||
system "rm polvomenu-*.gem" | ||
end | ||
|
||
namespace :gem do | ||
desc "Deletes built gem files" | ||
task :clean do | ||
`rm polvomenu-*.gem ` | ||
end | ||
|
||
desc "Cleans all the gem files, creates a new one, push it to rubygems and installs it " | ||
task :release_new_version do | ||
`rm polvomenu-*.gem ` | ||
`gem build polvomenu.gemspec` | ||
`gem push polvomenu-*.gem` | ||
`gem uninstall polvomenu` | ||
`gem install polvomenu` | ||
end | ||
task :build => :clean do | ||
system "gem build polvomenu.gemspec" | ||
end | ||
|
||
desc "Cleans all the gem files, creates a new one, push it to rubygems and installs it " | ||
task :release => :build do | ||
puts "Tagging #{Polvo::Menu::VERSION}..." | ||
system "git tag -a #{Polvo::Menu::VERSION} -m 'Tagging #{Polvo::Menu::VERSION}'" | ||
puts "Pushing to Github..." | ||
system "git push --tags" | ||
puts "Pushing to rubygems.org..." | ||
system "gem push rails_best_practices-#{Polvo::Menu::VERSION}.gem" | ||
end | ||
|
||
namespace :install do | ||
|
||
task :local => :build do | ||
system "gem uninstall polvomenu" | ||
system "sudo gem install polvo-menu-#{Polvo::Menu::VERSION}.gem" | ||
end | ||
|
||
desc "Cleans all the gem files, creates a new one, installs it " | ||
task :install_local do | ||
`rm polvomenu-*.gem ` | ||
`gem build polvomenu.gemspec` | ||
`gem uninstall polvomenu` | ||
`gem install polvomenu-*.gem` | ||
task :remote do | ||
`rm polvomenu-*.gem ` | ||
`gem build polvomenu.gemspec` | ||
`gem uninstall polvomenu` | ||
`gem install polvomenu-*.gem` | ||
end | ||
|
||
end | ||
|
||
|
||
task :default do | ||
puts `rake -T` | ||
end | ||
|
||
task :test => :spec | ||
|
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,2 @@ | ||
module Polvo | ||
VERSION = "0.0.2" | ||
end |
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,5 @@ | ||
module Polvo | ||
class Menu | ||
VERSION = "0.0.2" | ||
end | ||
end |
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