Sha256: 0cb621ce5ad07cbfb5f8cf65a23b753bfe329840dd45eed8db743677793d28c5

Contents?: true

Size: 914 Bytes

Versions: 2

Compression:

Stored size: 914 Bytes

Contents

require "rspec/core/rake_task"
require "bundler/gem_tasks"

desc "Starts PRY with gem loaded"
task :pry do
  sh "pry -I lib -r ryodo --no-pager"
end

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

namespace :spec do
  desc "Fetch mozilla_effective_tld_names.dat for specs"
  task :fetch_data do
    system "wget http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/effective_tld_names.dat\?raw\=1 -O spec/_files/mozilla_effective_tld_names.dat"
  end

  desc "Run match check script"
  task :check do
    success = system("bundle exec spec/suffix_checker.rb")
    exit(success)
  end
end

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

task default: [:spec, "spec:check"]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ryodo-0.3.2 Rakefile
ryodo-0.3.1 Rakefile