openname 0.4.7 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22f1998ae7e18e51b2402bc76f0dd02b757761f1
4
- data.tar.gz: 739634c30d6acda9b683f61d7c86d6879a0f108b
3
+ metadata.gz: 9f37acaebb9cabcb29fc2f7e86be6e170a147bc2
4
+ data.tar.gz: d6ce2d8f644845e332a4b1f2d5547c5ee5b8cc98
5
5
  SHA512:
6
- metadata.gz: fa38232d742d410fa545aa0c2884ada2185224812c63ea10421ee3223823900be4d71d0004952ef8578af76979c9ef6c548f53f83e893eb83587967b17c191b7
7
- data.tar.gz: 9a0a358db707ed28feeb80d7090f10591b41027e946cd549cde2d7ca7176ce54c37b542a74d24b3b2d53b4d35f4835b5b3c3c655985a0372f5fd88ebc6c48c11
6
+ metadata.gz: 857bba05fe8b8cdb20bd080bbfd806637421becae9f8e15baf118bba9d035b498c9e729f1c566fa0560914545d75b52d8b18d93be17798e30a670c50a071fd66
7
+ data.tar.gz: 03628b4315805687e352ad81e6f95ebec144f203b15ea696b4cab2be643807b73398fbe0f3dcbd3da1f6a9de50e2c5e876606344a7e64dc474ddb488651f7412
@@ -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
- # Current ONS resolver wraps profile
80
+
81
+ # Current ONS resolver always returns 200
82
+ # so we need to manually detect names that don't exist
83
+ if (json_body["error"])
84
+ raise NameError.new("Openname \"#{openname}\" does not exist")
85
+ end
86
+
87
+ # Current ONS resolver wraps profile
81
88
  # so as to also return proof verification
82
89
  # results. openname-ruby ignores verifications
83
90
  if (json_body["profile"])
@@ -1,3 +1,3 @@
1
1
  module Openname
2
- VERSION = "0.4.7"
2
+ VERSION = "0.4.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openname
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Larry Salibra