Sha256: c4ac95d2fc86bc722a27931be4e94154fcb6bcb7bd3fcbf9da1b7a2135bb67d9

Contents?: true

Size: 1.06 KB

Versions: 24

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

24 entries across 24 versions & 6 rubygems

Version Path
whitelabelmachinename-ruby-sdk-3.2.1 vendor/bundle/ruby/2.4.0/gems/public_suffix-4.0.7/Rakefile
wallee-ruby-sdk-3.2.0 vendor/bundle/ruby/2.4.0/gems/public_suffix-4.0.7/Rakefile
postfinancecheckout-ruby-sdk-3.2.0 vendor/bundle/ruby/2.4.0/gems/public_suffix-4.0.7/Rakefile
wallee-ruby-sdk-3.1.5 vendor/bundle/ruby/2.4.0/gems/public_suffix-4.0.7/Rakefile
postfinancecheckout-ruby-sdk-3.1.5 vendor/bundle/ruby/2.4.0/gems/public_suffix-4.0.7/Rakefile
whitelabelmachinename-ruby-sdk-3.2.0 vendor/bundle/ruby/2.4.0/gems/public_suffix-4.0.7/Rakefile
whitelabelmachinename-ruby-sdk-3.1.9 vendor/bundle/ruby/2.4.0/gems/public_suffix-4.0.7/Rakefile
whitelabelmachinename-ruby-sdk-3.1.8 vendor/bundle/ruby/2.4.0/gems/public_suffix-4.0.7/Rakefile
cloudsmith-api-1.120.3 vendor/bundle/ruby/2.6.0/gems/public_suffix-4.0.7/Rakefile
whitelabelmachinename-ruby-sdk-3.1.7 vendor/bundle/ruby/2.4.0/gems/public_suffix-4.0.7/Rakefile
whitelabelmachinename-ruby-sdk-3.1.6 vendor/bundle/ruby/2.4.0/gems/public_suffix-4.0.7/Rakefile
whitelabelmachinename-ruby-sdk-3.1.5 vendor/bundle/ruby/2.4.0/gems/public_suffix-4.0.7/Rakefile
postfinancecheckout-ruby-sdk-3.1.4 vendor/bundle/ruby/2.4.0/gems/public_suffix-4.0.7/Rakefile
whitelabelmachinename-ruby-sdk-3.1.4 vendor/bundle/ruby/2.4.0/gems/public_suffix-4.0.7/Rakefile
wallee-ruby-sdk-3.1.4 vendor/bundle/ruby/2.4.0/gems/public_suffix-4.0.7/Rakefile
wallee-ruby-sdk-3.1.3 vendor/bundle/ruby/2.4.0/gems/public_suffix-4.0.7/Rakefile
whitelabelmachinename-ruby-sdk-3.1.3 vendor/bundle/ruby/2.4.0/gems/public_suffix-4.0.7/Rakefile
whitelabelmachinename-ruby-sdk-3.1.2 vendor/bundle/ruby/2.4.0/gems/public_suffix-4.0.7/Rakefile
wallee-ruby-sdk-3.1.2 vendor/bundle/ruby/2.4.0/gems/public_suffix-4.0.7/Rakefile
wallee-ruby-sdk-3.1.1 vendor/bundle/ruby/2.4.0/gems/public_suffix-4.0.7/Rakefile