openname 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openname/version.rb +1 -1
- data/lib/openname.rb +8 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22f1998ae7e18e51b2402bc76f0dd02b757761f1
|
4
|
+
data.tar.gz: 739634c30d6acda9b683f61d7c86d6879a0f108b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa38232d742d410fa545aa0c2884ada2185224812c63ea10421ee3223823900be4d71d0004952ef8578af76979c9ef6c548f53f83e893eb83587967b17c191b7
|
7
|
+
data.tar.gz: 9a0a358db707ed28feeb80d7090f10591b41027e946cd549cde2d7ca7176ce54c37b542a74d24b3b2d53b4d35f4835b5b3c3c655985a0372f5fd88ebc6c48c11
|
data/lib/openname/version.rb
CHANGED
data/lib/openname.rb
CHANGED
@@ -77,7 +77,14 @@ module Openname
|
|
77
77
|
if(json_body["status"] && json_body["status"] == "reserved")
|
78
78
|
NameError.new("Openname \"#{openname}\" does not exist. It is reserved.")
|
79
79
|
else
|
80
|
-
|
80
|
+
# Current ONS resolver wraps profile
|
81
|
+
# so as to also return proof verification
|
82
|
+
# results. openname-ruby ignores verifications
|
83
|
+
if (json_body["profile"])
|
84
|
+
json_body["profile"]
|
85
|
+
else
|
86
|
+
json_body
|
87
|
+
end
|
81
88
|
end
|
82
89
|
else
|
83
90
|
error = JSON.parse(res.body)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openname
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Larry Salibra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|