Sha256: 335b3e99f599bab2f4e663f4fadacfc68005d328a2864de32315ae5825c92400
Contents?: true
Size: 1.11 KB
Versions: 6
Compression:
Stored size: 1.11 KB
Contents
require 'rubygems' require 'rake' begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = "domain_prefix" gem.summary = "Domain Prefix Extraction Library" gem.description = "A library to extract information about top-level domain and registered name from generic and international domain names" gem.email = "github@tadman.ca" gem.homepage = "http://github.com/twg/domain_prefix" gem.authors = %w[ tadman ] end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" end require 'rake/testtask' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/test_*.rb' test.verbose = true end namespace :domain_prefix do desc "Update the domain information" task :update do require 'open-uri' open("http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/effective_tld_names.dat?raw=1") do |source| open(File.expand_path(File.join('data', 'effective_tld_names.dat'), File.dirname(__FILE__)), 'w') do |dest| dest.write(source.read) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
domain_prefix-0.2.2.4 | Rakefile |
domain_prefix-0.2.2.3 | Rakefile |
domain_prefix-0.2.2.2 | Rakefile |
domain_prefix-0.2.2.1 | Rakefile |
domain_prefix-0.2.2 | Rakefile |
domain_prefix-0.2.1 | Rakefile |