Sha256: 9384c9d8a9975185a308b7a45b4eec9c6796ee09f4fc694518ce748c7cac7c84

Contents?: true

Size: 1.06 KB

Versions: 23

Compression:

Stored size: 1.06 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"
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

23 entries across 23 versions & 7 rubygems

Version Path
direct7-0.0.18 vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.3/Rakefile
direct7-0.0.17 vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.3/Rakefile
direct7-0.0.16 vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.3/Rakefile
direct7-0.0.13 vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.3/Rakefile
direct7-0.0.12 vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.3/Rakefile
direct7-0.0.11 vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.3/Rakefile
public_suffix-5.0.3 Rakefile
cloudsmith-api-2.0.7 vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/Rakefile
cloudsmith-api-2.0.6 vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/Rakefile
cloudsmith-api-2.0.5 vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/Rakefile
cloudsmith-api-2.0.4 vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/Rakefile
cloudsmith-api-2.0.3 vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/Rakefile
cloudsmith-api-2.0.2 vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/Rakefile
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/public_suffix-5.0.1/Rakefile
postfinancecheckout-ruby-sdk-3.3.0 vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/Rakefile
wallee-ruby-sdk-3.3.0 vendor/bundle/ruby/2.7.0/gems/public_suffix-5.0.1/Rakefile
cloudsmith-api-2.0.1 vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/Rakefile
cloudsmith-api-2.0.0 vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.1/Rakefile
public_suffix-5.0.1 Rakefile
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/public_suffix-5.0.0/Rakefile