Sha256: 9b7780c7d132b3dd1eaba841ffa0bca6154c8c29434b04775f12731e96fb4e2a
Contents?: true
Size: 914 Bytes
Versions: 3
Compression:
Stored size: 914 Bytes
Contents
require 'bundler/gem_tasks' require 'rake/testtask' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/test_*.rb' test.verbose = true end task :default => :test task :test => 'lib/domain_name/etld_data.rb' etld_dat = 'data/effective_tld_names.dat' file etld_dat do require 'open-uri' File.open(etld_dat, 'w') { |dat| dat.print URI('http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/effective_tld_names.dat?raw=1').read } end file 'lib/domain_name/etld_data.rb' => [ etld_dat, 'lib/domain_name/etld_data.rb.erb', 'tool/gen_etld_data.rb' ] do ruby 'tool/gen_etld_data.rb' end require 'rdoc/task' Rake::RDocTask.new do |rdoc| version = DomainName::VERSION rdoc.rdoc_dir = 'rdoc' rdoc.title = "domain_name #{version}" rdoc.rdoc_files.include('lib/**/*.rb') rdoc.rdoc_files.include(Bundler::GemHelper.gemspec.extra_rdoc_files) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
domain_name-0.5.6 | Rakefile |
domain_name-0.5.5 | Rakefile |
domain_name-0.5.4 | Rakefile |