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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 705f4e6507cdc4bc319d73049bc0fd86718e6bf7
4
- data.tar.gz: 4a16f225b085126c81554f76fc89a6bee31867f8
3
+ metadata.gz: 22f1998ae7e18e51b2402bc76f0dd02b757761f1
4
+ data.tar.gz: 739634c30d6acda9b683f61d7c86d6879a0f108b
5
5
  SHA512:
6
- metadata.gz: 323f7a3cd7700cbd7facd700caa6b92b7c33d991875d7811c3ff14056bf26f35ac418aaa00b400e97b7ec3657d691ce8e25679ffd3588a6c5850b8ef46ce498d
7
- data.tar.gz: dce4db795b99e89cfd520c98aa97e971909242d10d5de884698bcc136bddc1400c6138c14971d0cf9299ab93bda06fdd14e7c650f3069ba49e7836dc95e02383
6
+ metadata.gz: fa38232d742d410fa545aa0c2884ada2185224812c63ea10421ee3223823900be4d71d0004952ef8578af76979c9ef6c548f53f83e893eb83587967b17c191b7
7
+ data.tar.gz: 9a0a358db707ed28feeb80d7090f10591b41027e946cd549cde2d7ca7176ce54c37b542a74d24b3b2d53b4d35f4835b5b3c3c655985a0372f5fd88ebc6c48c11
@@ -1,3 +1,3 @@
1
1
  module Openname
2
- VERSION = "0.4.6"
2
+ VERSION = "0.4.7"
3
3
  end
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
- json_body
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.6
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-22 00:00:00.000000000 Z
11
+ date: 2015-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler