domain_info 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ class DomainInfo::Domain
6
6
  end
7
7
 
8
8
  def ip
9
- @ip ||= IPSocket::getaddress(domain)
9
+ @ip ||= TCPSocket::getaddress(domain)
10
10
  end
11
11
 
12
12
  def ptr
@@ -1,3 +1,3 @@
1
1
  module DomainInfo
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -4,6 +4,6 @@ describe DomainInfo::SPF do
4
4
  let(:spf) { DomainInfo::SPF.new("plaintracker.com") }
5
5
 
6
6
  it "returns SPF record for ip associated with domain" do
7
- spf.value.should == "v=spf1 mx ip4:178.63.56.8 -all"
7
+ spf.value.should match /v=spf1 mx ip4:/
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domain_info
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ hash: 27
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 2
10
+ version: 0.0.2
5
11
  platform: ruby
6
12
  authors:
7
13
  - Igor Afonov
@@ -9,19 +15,22 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2012-03-15 00:00:00 +02:00
13
- default_executable:
18
+ date: 2012-04-11 00:00:00 Z
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: rspec
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
20
25
  requirements:
21
26
  - - ">="
22
27
  - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
23
31
  version: "0"
24
- version:
32
+ type: :development
33
+ version_requirements: *id001
25
34
  description: Wraps access to basic domain DNS records needed to verify domain configuration
26
35
  email:
27
36
  - afonov@gmail.com
@@ -51,31 +60,38 @@ files:
51
60
  - spec/lib/domain_info/ptr_spec.rb
52
61
  - spec/lib/domain_info/spf_spec.rb
53
62
  - spec/spec_helper.rb
54
- has_rdoc: false
55
63
  homepage: ""
64
+ licenses: []
65
+
56
66
  post_install_message:
57
67
  rdoc_options: []
58
68
 
59
69
  require_paths:
60
70
  - lib
61
71
  required_ruby_version: !ruby/object:Gem::Requirement
72
+ none: false
62
73
  requirements:
63
74
  - - ">="
64
75
  - !ruby/object:Gem::Version
76
+ hash: 3
77
+ segments:
78
+ - 0
65
79
  version: "0"
66
- version:
67
80
  required_rubygems_version: !ruby/object:Gem::Requirement
81
+ none: false
68
82
  requirements:
69
83
  - - ">="
70
84
  - !ruby/object:Gem::Version
85
+ hash: 3
86
+ segments:
87
+ - 0
71
88
  version: "0"
72
- version:
73
89
  requirements: []
74
90
 
75
91
  rubyforge_project: domain_info
76
- rubygems_version: 1.3.1
92
+ rubygems_version: 1.8.10
77
93
  signing_key:
78
- specification_version: 2
94
+ specification_version: 3
79
95
  summary: Wraps access to basic domain DNS records
80
96
  test_files:
81
97
  - spec/lib/domain_info/dkim_spec.rb