nz-whois 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +22 -0
- data/Gemfile +2 -0
- data/Rakefile +2 -0
- data/bin/console +1 -0
- data/lib/nz-whois.rb +2 -0
- data/lib/nz-whois/client.rb +3 -0
- data/lib/nz-whois/contact.rb +2 -0
- data/lib/nz-whois/gem_version.rb +3 -1
- data/lib/nz-whois/invalid_domain_error.rb +2 -0
- data/lib/nz-whois/parser.rb +7 -0
- data/nz-whois.gemspec +4 -2
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f00a0c087d86fca63be8d9e0f3bb4c9eb527ba77666d4ea1e3c87132292705a9
|
4
|
+
data.tar.gz: f27354fe1f772f4bb2609eea82c5b4565856bdb6600077502d936cf224887751
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aeda6ee7f1f505290991c49b9a974ec1b367fc5ac339905a88ec8da0236e7cac0226e864b1e68feeae928c09a93149163e2fd57855de4a29718d7f2839835b19
|
7
|
+
data.tar.gz: ab4c1fc56212e85f3820355eb5e0f325c84c03bbd8e5f576a1557b74096c7ce6849f581869cc9a1654b9ef87d488ce758741b8134b98e33f300998866dcdab33
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## Unreleased
|
4
|
+
- none
|
5
|
+
|
6
|
+
## [0.0.3](releases/tag/v0.0.3) - 2020-03-01
|
7
|
+
### Fixed
|
8
|
+
- Address CVE-2020-8130 - `rake` OS command injection vulnerability
|
9
|
+
|
10
|
+
## [0.0.2](releases/tag/v0.0.2) - 2018-01-05
|
11
|
+
### Added
|
12
|
+
- Handle external request errors better
|
13
|
+
- Handle rate limited responses better
|
14
|
+
- Support for some `documents` APIs (create, check and retrieve)
|
15
|
+
- Travis CI configuration
|
16
|
+
- Spec tests
|
17
|
+
### Fixed
|
18
|
+
- Invalid domain name check
|
19
|
+
|
20
|
+
## [0.0.1](releases/tag/v0.0.1) - 2018-01-04
|
21
|
+
### Added
|
22
|
+
- Base implementation of gem
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/bin/console
CHANGED
data/lib/nz-whois.rb
CHANGED
data/lib/nz-whois/client.rb
CHANGED
data/lib/nz-whois/contact.rb
CHANGED
data/lib/nz-whois/gem_version.rb
CHANGED
data/lib/nz-whois/parser.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'nokogiri'
|
2
4
|
require 'date'
|
3
5
|
|
@@ -12,6 +14,7 @@ module NZWhois
|
|
12
14
|
|
13
15
|
def valid_whois?
|
14
16
|
return @valid_whois if defined? @valid_whois
|
17
|
+
|
15
18
|
@valid_whois = !whois_content.empty? && !request_denied?
|
16
19
|
end
|
17
20
|
|
@@ -41,21 +44,25 @@ module NZWhois
|
|
41
44
|
|
42
45
|
def registrar
|
43
46
|
return unless valid_whois?
|
47
|
+
|
44
48
|
Contact.new self, 'Registrar'
|
45
49
|
end
|
46
50
|
|
47
51
|
def registrant_contact
|
48
52
|
return unless valid_whois?
|
53
|
+
|
49
54
|
Contact.new self, 'Registrant Contact'
|
50
55
|
end
|
51
56
|
|
52
57
|
def admin_contact
|
53
58
|
return unless valid_whois?
|
59
|
+
|
54
60
|
Contact.new self, 'Admin Contact'
|
55
61
|
end
|
56
62
|
|
57
63
|
def technical_contact
|
58
64
|
return unless valid_whois?
|
65
|
+
|
59
66
|
Contact.new self, 'Technical Contact'
|
60
67
|
end
|
61
68
|
|
data/nz-whois.gemspec
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
2
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
5
|
|
4
6
|
require 'nz-whois/gem_version'
|
@@ -23,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
23
25
|
spec.add_runtime_dependency 'nokogiri', '~> 1.0', '>= 1.6.0'
|
24
26
|
|
25
27
|
spec.add_development_dependency 'bundler', '~> 1.11'
|
26
|
-
spec.add_development_dependency 'rake', '~>
|
28
|
+
spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.3'
|
27
29
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
28
30
|
spec.add_development_dependency 'rubocop', '~> 0.52'
|
29
31
|
spec.add_development_dependency 'shoulda-matchers', '~> 3.1'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nz-whois
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- abrom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -50,14 +50,20 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '12.3'
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 12.3.3
|
54
57
|
type: :development
|
55
58
|
prerelease: false
|
56
59
|
version_requirements: !ruby/object:Gem::Requirement
|
57
60
|
requirements:
|
58
61
|
- - "~>"
|
59
62
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
63
|
+
version: '12.3'
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 12.3.3
|
61
67
|
- !ruby/object:Gem::Dependency
|
62
68
|
name: rspec
|
63
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -138,6 +144,7 @@ files:
|
|
138
144
|
- ".gitignore"
|
139
145
|
- ".rubocop.yml"
|
140
146
|
- ".travis.yml"
|
147
|
+
- CHANGELOG.md
|
141
148
|
- Gemfile
|
142
149
|
- LICENSE
|
143
150
|
- README.md
|
@@ -169,8 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
176
|
- !ruby/object:Gem::Version
|
170
177
|
version: '0'
|
171
178
|
requirements: []
|
172
|
-
|
173
|
-
rubygems_version: 2.6.14
|
179
|
+
rubygems_version: 3.0.6
|
174
180
|
signing_key:
|
175
181
|
specification_version: 4
|
176
182
|
summary: NZ WHOIS scraper
|