Rakefile in ryodo-0.2.4.1 vs Rakefile in ryodo-0.2.5
- old
+ new
@@ -1,26 +1,13 @@
# coding: utf-8
-
require "rubygems"
require "bundler"
-begin
- Bundler.setup(:default, :development)
-rescue Bundler::BundlerError => e
- $stderr.puts e.message
- $stderr.puts "Run `bundle install` to install missing gems"
- exit e.status_code
-end
-require "rake"
-require "rspec"
+Bundler.setup(:default, :development)
require "rspec/core/rake_task"
+require "bundler/gem_tasks"
-desc "Starts IRB with gem loaded"
-task :irb do
- sh "irb -I lib -r ryodo"
-end
-
desc "Starts PRY with gem loaded"
task :pry do
sh "pry -I lib -r ryodo --no-pager"
end
@@ -36,36 +23,9 @@
task :fetch_data do
$: << "lib"
require "ryodo"
require "ryodo/suffix_list_fetcher"
Ryodo::SuffixListFetcher.fetch_and_save!
-end
-
-
-namespace :gem do
- $: << "lib"
- require "ryodo/version"
-
- task :tag do
- system "git tag -f v#{Ryodo::VERSION} && git push --tags -f"
- end
-
- task :build do
- system "rm *.gem"
- system "gem build ryodo.gemspec"
- end
-
- task :push => "gem:build" do
- system "gem push ryodo-#{Ryodo::VERSION}.gem"
- end
-
- task :clean do
- system "rm *.gem"
- end
-
- desc "Publish gem to rubygems.org"
- task :publish => ["gem:tag","gem:push","gem:clean"]
-
end
task :default => :spec