addressabler 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
1
+ ## 0.0.3
2
+ * Updated to the latest TLD list from [Paul Dix](https://github.com/pauldix), thanks to [this unbelievably helpful user](https://github.com/flipsasser/addressabler/issues/1)
3
+ * Updated to latest Addressable spec
4
+ *
data/README.markdown CHANGED
@@ -8,7 +8,7 @@ Install
8
8
 
9
9
  Install using Rubygems:
10
10
 
11
- gem install addresabler
11
+ gem install addressabler
12
12
 
13
13
  Then:
14
14
 
data/lib/addressabler.rb CHANGED
@@ -75,7 +75,8 @@ module Addressabler
75
75
  # Thanks Domainatrix for the parsing logic!
76
76
  tlds = {}
77
77
  File.readlines(File.join(File.dirname(__FILE__), 'tlds')).each do |line|
78
- unless !line.strip! == ''
78
+ line.strip!
79
+ unless line == '' || line =~ /^\//
79
80
  parts = line.split(".").reverse
80
81
  sub_hash = tlds
81
82
  parts.each do |part|