Hackfut Security File Manager
Current Path:
/opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/public_suffix-3.1.1
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.4.0
/
gems
/
public_suffix-3.1.1
/
📁
..
📄
.gitignore
(79 B)
📄
.rubocop.yml
(716 B)
📄
.rubocop_defaults.yml
(4.51 KB)
📄
.ruby-gemset
(7 B)
📄
.travis.yml
(431 B)
📄
.yardopts
(47 B)
📄
2.0-Upgrade.md
(2.8 KB)
📄
CHANGELOG.md
(8.16 KB)
📄
Gemfile
(210 B)
📄
LICENSE.txt
(1.07 KB)
📄
README.md
(6.26 KB)
📄
Rakefile
(1.04 KB)
📁
bin
📁
data
📁
lib
📄
public_suffix.gemspec
(936 B)
Editing: Rakefile
# 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
Upload File
Create Folder