domain_prefix 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md ADDED
@@ -0,0 +1,20 @@
1
+ # domain_prefix
2
+
3
+ This is a library to determine the registration prefix for a given domain
4
+ and can be used to assert if a given domain name is valid or not.
5
+
6
+ ## Update Task
7
+
8
+ To update the data used to make the domain determinations, there's a
9
+ rake task:
10
+
11
+ rake domain_prefix:update
12
+
13
+ The test case data is pulled from a separate source:
14
+
15
+ http://mxr.mozilla.org/mozilla-central/source/netwerk/test/unit/data/test_psl.txt?raw=1
16
+
17
+ ## Copyright
18
+
19
+ Copyright (c) 2009-2012 Scott Tadman, The Working Group Inc.
20
+ See LICENSE for details.
data/Rakefile CHANGED
@@ -16,6 +16,13 @@ rescue LoadError
16
16
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
17
17
  end
18
18
 
19
+ require 'rake/testtask'
20
+ Rake::TestTask.new(:test) do |test|
21
+ test.libs << 'lib' << 'test'
22
+ test.pattern = 'test/**/test_*.rb'
23
+ test.verbose = true
24
+ end
25
+
19
26
  namespace :domain_prefix do
20
27
  desc "Update the domain information"
21
28
  task :update do
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.1