nic_ar 0.1.1 → 0.1.2

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.rdoc CHANGED
@@ -127,6 +127,30 @@ Transactions can also be queried by it's unique identifier:
127
127
  "notes"=>"Se envio acuse de recibo al solicitante"
128
128
  }
129
129
 
130
+ You can also check if a given domain name resolves OK to it's DNS servers, thus effectively know if it's available online or not.
131
+
132
+ NicAr::Client.status("www.nic.ar")
133
+ => {
134
+ "domain"=>"www.nic.ar",
135
+ "online"=>true,
136
+ "offline"=>false,
137
+ "ip"=>"200.16.109.19",
138
+ "host"=>"firpo.nic.ar"
139
+ }
140
+
141
+ But also note that a domain name without the "www." may or may not resolve in the same way.
142
+
143
+ NicAr::Client.status("nic.ar")
144
+ => {
145
+ "domain"=>"nic.ar",
146
+ "online"=>true,
147
+ "offline"=>false,
148
+ "ip"=>"200.16.109.25",
149
+ "host"=>"roldan.nic.ar"
150
+ }
151
+
152
+ Lastly, status checking only works for ".ar" (Argentina) domain names.
153
+
130
154
  == Hacking
131
155
 
132
156
  The full documentation of the <b>nic!alert API</b> is available at {api.nicalert.com.ar}[http://api.nicalert.com.ar] if you want to write your own client, use any other language, or just use CURL in a RESTful way.
data/lib/nic_ar/client.rb CHANGED
@@ -20,7 +20,7 @@ module NicAr
20
20
 
21
21
  def respond_to?(resource)
22
22
  return true if %w[dns_servers domains entities people transactions].include? resource.to_s
23
- super(resource)
23
+ super
24
24
  end
25
25
 
26
26
  private
@@ -1,4 +1,4 @@
1
1
  module NicAr
2
2
  # This Gem version does not map the API version in any way.
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nic_ar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-05 00:00:00.000000000Z
12
+ date: 2012-11-14 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
16
- requirement: &74012590 !ruby/object:Gem::Requirement
16
+ requirement: &78075400 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.6'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *74012590
24
+ version_requirements: *78075400
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: minitest
27
- requirement: &74012380 !ruby/object:Gem::Requirement
27
+ requirement: &78075190 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *74012380
35
+ version_requirements: *78075190
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: webmock
38
- requirement: &74012110 !ruby/object:Gem::Requirement
38
+ requirement: &78074900 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '1.8'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *74012110
46
+ version_requirements: *78074900
47
47
  description: A simple client for ".ar" (Argentina) domain names lookups
48
48
  email:
49
49
  - cristian.arroyo@vivaserver.com