nic_ar 0.0.4 → 0.0.5

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.md CHANGED
@@ -22,6 +22,11 @@ Or install it yourself as:
22
22
 
23
23
  The NicAr::Client class supports lookups for domain names, domain transactions, entities, people, DNS servers.
24
24
 
25
+ First, find out what kind of domain names you are allowed to looup.
26
+
27
+ NicAr::Client.domains
28
+ => [".com.ar", ".gov.ar", ".int.ar", ".mil.ar", ".net.ar", ".org.ar", ".tur.ar"]
29
+
25
30
  All the following lookups will raise a NicAr::NotFound exception if the requested resource could not be found.
26
31
 
27
32
  NicAr::Client.domains("vivaserver.com.ar")
@@ -142,8 +147,14 @@ The full documentation of the **nic!alert API** is available at [api.nicalert.co
142
147
 
143
148
  ## Live examples
144
149
 
150
+ ### nic!alert
151
+
145
152
  A live test application is set up at the [nic!alert](http://www.nicalert.com.ar) website that allows for the automatic renewal of ".ar" domain names within their 30-day expiring period. The application also has the added feature of resolving the CAPTCHA challenge for the submission of the renewal request.
146
153
 
154
+ ### Nic.ar Whois domain
155
+
156
+ A very nice Node.js application that provides "typeahead" domain searching capabilities. The wesite is [hosted at Heroku](http://nicar.herokuapp.com/) and it's [code at GitHub](https://github.com/danzajdband/nicar-whois). Credits to Dan Zajdband.
157
+
147
158
  ## Contributing
148
159
 
149
160
  1. Fork it
@@ -1,3 +1,3 @@
1
1
  module NicAr
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/nic_ar.gemspec CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |gem|
8
8
  gem.version = NicAr::VERSION
9
9
  gem.authors = ["Cristian R. Arroyo"]
10
10
  gem.email = ["cristian.arroyo@vivaserver.com"]
11
- gem.description = %q{A simple client for ".ar" (Argentina) domain names lookup}
12
- gem.summary = %q{A simple client for ".ar" (Argentina) domain names lookup using the nic!alert API}
11
+ gem.description = %q{A simple client for ".ar" (Argentina) domain names lookups}
12
+ gem.summary = %q{A simple client for ".ar" (Argentina) domain names lookups using the nic!alert API}
13
13
  gem.homepage = "https://github.com/vivaserver/nic_ar"
14
14
 
15
15
  gem.add_runtime_dependency 'rest-client', '~> 1.6'
data/spec/client_spec.rb CHANGED
@@ -32,6 +32,13 @@ describe 'NicAr::Client' do
32
32
  end
33
33
 
34
34
  describe 'Domains lookups' do
35
+ it 'knows what kind of domains to lookup' do
36
+ stub_request(:get,/domains$/).to_return(:body => '[".com.ar", ".gov.ar", ".int.ar", ".mil.ar", ".net.ar", ".org.ar", ".tur.ar"]')
37
+ result = NicAr::Client.domains
38
+ result.must_be_instance_of Array
39
+ result.wont_be_empty
40
+ end
41
+
35
42
  it 'raises on unexisting domains' do
36
43
  stub_request(:get,/domains\/hispafuentes\.com\.ar$/).to_return(:status => 404)
37
44
  proc { NicAr::Client.domains 'hispafuentes.com.ar' }.must_raise NicAr::NotFound
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.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-11-02 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
16
- requirement: &79831770 !ruby/object:Gem::Requirement
16
+ requirement: &76028530 !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: *79831770
24
+ version_requirements: *76028530
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: minitest
27
- requirement: &79831500 !ruby/object:Gem::Requirement
27
+ requirement: &76028270 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '3.3'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *79831500
35
+ version_requirements: *76028270
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: webmock
38
- requirement: &79831210 !ruby/object:Gem::Requirement
38
+ requirement: &76027960 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,8 +43,8 @@ dependencies:
43
43
  version: '1.8'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *79831210
47
- description: A simple client for ".ar" (Argentina) domain names lookup
46
+ version_requirements: *76027960
47
+ description: A simple client for ".ar" (Argentina) domain names lookups
48
48
  email:
49
49
  - cristian.arroyo@vivaserver.com
50
50
  executables: []
@@ -92,7 +92,7 @@ rubyforge_project:
92
92
  rubygems_version: 1.8.10
93
93
  signing_key:
94
94
  specification_version: 3
95
- summary: A simple client for ".ar" (Argentina) domain names lookup using the nic!alert
95
+ summary: A simple client for ".ar" (Argentina) domain names lookups using the nic!alert
96
96
  API
97
97
  test_files:
98
98
  - spec/client_spec.rb