domainatrix 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ module Domainatrix
10
10
  def read_dat_file(file_name)
11
11
  File.readlines(file_name).each do |line|
12
12
  line = line.strip
13
- unless line.start_with? "//" || line.empty?
13
+ unless (line =~ /\/\//) || line.empty?
14
14
  parts = line.split(".").reverse
15
15
 
16
16
  sub_hash = @tlds
data/lib/domainatrix.rb CHANGED
@@ -5,7 +5,7 @@ require 'domainatrix/domain_parser.rb'
5
5
  require 'domainatrix/url.rb'
6
6
 
7
7
  module Domainatrix
8
- VERSION = "0.0.4"
8
+ VERSION = "0.0.5"
9
9
 
10
10
  def self.parse(url)
11
11
  @domain_parser ||= DomainParser.new("#{File.dirname(__FILE__)}/effective_tld_names.dat")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domainatrix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Dix