Sha256: 011f12f569912c2f9a430081c24b010585f357aa496b2f879579bb6586b2781f

Contents?: true

Size: 1.45 KB

Versions: 1

Compression:

Stored size: 1.45 KB

Contents

# encoding: 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 "jeweler"
require "rspec"
require "rspec/core/rake_task"

Jeweler::Tasks.new do |gem|
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
  gem.name = "ryodo"
  gem.homepage = "http://github.com/asaaki/ryodo"
  gem.license = "MIT"
  gem.summary = %Q{ryōdo【領土】 りょうど — A domain name parser}
  gem.description = %Q{ryōdo【領土】 りょうど — A domain name parser gem}
  gem.email = "chris@dinarrr.com"
  gem.authors = ["Christoph Grabo"]
  # dependencies defined in Gemfile
end
Jeweler::RubygemsDotOrgTasks.new

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

desc "Starts PRY with gem loaded (RYODO_NO_U)"
task :pryu do
  sh "pry -I lib --no-pager -e 'RYODO_NO_U=true;require \"ryodo\"'"
end

desc "Run all specs"
task RSpec::Core::RakeTask.new(:spec) do |t|
  t.pattern = 'spec/**/*_spec.rb'
  t.verbose = false
end

desc "Fetch and save public suffix data (task for updates)"
task :fetch_data do
  require "ryodo"
  require "ryodo/suffix_list_fetcher"
  Ryodo::SuffixListFetcher.fetch_and_save!
end

task :default => :spec

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ryodo-0.1.0 Rakefile