Sha256: 2e32f570dda0fb13cd33473b077416ccadf1c1ecb4514094f1084c2dcded6e53

Contents?: true

Size: 1.04 KB

Versions: 96

Compression:

Stored size: 1.04 KB

Contents

# frozen_string_literal: true

require "bundler/gem_tasks"

# By default, run tests and linter.
task default: [:test, :rubocop]


require "rake/testtask"

Rake::TestTask.new do |t|
  t.libs = %w( lib test )
  t.pattern = "test/**/*_test.rb"
  t.verbose = !ENV["VERBOSE"].nil?
  t.warning = !ENV["WARNING"].nil?
end

require "rubocop/rake_task"

RuboCop::RakeTask.new


require "yard/rake/yardoc_task"

YARD::Rake::YardocTask.new(:yardoc) do |y|
  y.options = ["--output-dir", "yardoc"]
end

CLOBBER.include "yardoc"


task :benchmarks do
  Dir["benchmarks/bm_*.rb"].each do |file|
    sh "ruby #{file}"
  end
end
task default: [:benchmarks] if ENV["BENCHMARKS"] == "1"


desc "Downloads the Public Suffix List file from the repository and stores it locally."
task :"update-list" do
  require "net/http"

  DEFINITION_URL = "https://raw.githubusercontent.com/publicsuffix/list/master/public_suffix_list.dat"

  File.open("data/list.txt", "w+") do |f|
    response = Net::HTTP.get_response(URI.parse(DEFINITION_URL))
    response.body
    f.write(response.body)
  end
end

Version data entries

96 entries across 83 versions & 11 rubygems

Version Path
cloudsmith-api-0.49.9 vendor/bundle/ruby/2.3.0/gems/public_suffix-4.0.3/Rakefile
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/public_suffix-3.1.0/Rakefile
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/public_suffix-3.1.0/Rakefile
public_suffix-4.0.3 Rakefile
public_suffix-4.0.2 Rakefile
tdiary-5.1.0 vendor/bundle/gems/public_suffix-4.0.1/Rakefile
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.1/Rakefile
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/public_suffix-4.0.1/Rakefile
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/public_suffix-4.0.1/Rakefile
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.1/Rakefile
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.1/Rakefile
cloudsmith-api-0.44.4 vendor/bundle/ruby/2.3.0/gems/public_suffix-4.0.1/Rakefile
public_suffix-4.0.1 Rakefile
public_suffix-4.0.0 Rakefile
public_suffix-3.1.1 Rakefile
public_suffix-3.1.0 Rakefile