domainatrix 0.0.7 → 0.0.8

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.
Files changed (3) hide show
  1. data/lib/domainatrix.rb +3 -3
  2. data/spec/spec_helper.rb +2 -2
  3. metadata +10 -8
@@ -5,10 +5,10 @@ require 'domainatrix/domain_parser.rb'
5
5
  require 'domainatrix/url.rb'
6
6
 
7
7
  module Domainatrix
8
- VERSION = "0.0.7"
8
+ VERSION = "0.0.8"
9
+ DOMAIN_PARSER = DomainParser.new("#{File.dirname(__FILE__)}/effective_tld_names.dat")
9
10
 
10
11
  def self.parse(url)
11
- @domain_parser ||= DomainParser.new("#{File.dirname(__FILE__)}/effective_tld_names.dat")
12
- Url.new(@domain_parser.parse(url))
12
+ Url.new(DOMAIN_PARSER.parse(url))
13
13
  end
14
14
  end
@@ -1,5 +1,5 @@
1
1
  require "rubygems"
2
- require "spec"
2
+ require "rspec"
3
3
 
4
4
  # gem install redgreen for colored test output
5
5
  begin require "redgreen" unless ENV['TM_CURRENT_LINE']; rescue LoadError; end
@@ -7,4 +7,4 @@ begin require "redgreen" unless ENV['TM_CURRENT_LINE']; rescue LoadError; end
7
7
  path = File.expand_path(File.dirname(__FILE__) + "/../lib/")
8
8
  $LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path)
9
9
 
10
- require "lib/domainatrix"
10
+ require "#{File.dirname(__FILE__)}/../lib/domainatrix"
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domainatrix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ prerelease:
5
+ version: 0.0.8
5
6
  platform: ruby
6
7
  authors:
7
8
  - Paul Dix
@@ -14,14 +15,15 @@ default_executable:
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: addressable
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
20
21
  requirements:
21
22
  - - ">="
22
23
  - !ruby/object:Gem::Version
23
24
  version: "0"
24
- version:
25
+ type: :runtime
26
+ version_requirements: *id001
25
27
  description:
26
28
  email: paul@pauldix.net
27
29
  executables: []
@@ -51,21 +53,21 @@ rdoc_options: []
51
53
  require_paths:
52
54
  - lib
53
55
  required_ruby_version: !ruby/object:Gem::Requirement
56
+ none: false
54
57
  requirements:
55
58
  - - ">="
56
59
  - !ruby/object:Gem::Version
57
60
  version: "0"
58
- version:
59
61
  required_rubygems_version: !ruby/object:Gem::Requirement
62
+ none: false
60
63
  requirements:
61
64
  - - ">="
62
65
  - !ruby/object:Gem::Version
63
66
  version: "0"
64
- version:
65
67
  requirements: []
66
68
 
67
69
  rubyforge_project:
68
- rubygems_version: 1.3.5
70
+ rubygems_version: 1.5.2
69
71
  signing_key:
70
72
  specification_version: 2
71
73
  summary: A cruel mistress that uses the public suffix domain list to dominate URLs by canonicalizing, finding the public suffix, and breaking them into their domain parts.