global_registry 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/global_registry/base.rb +3 -1
- data/lib/global_registry/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bccd3cae799baf2b52025f031c42218b8a0179ef
|
4
|
+
data.tar.gz: c579227c80eb70fbfbdcca5b43a78e87cd48d1a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78b5b9195f21212a5906028369f6f3e9454df9682e3db16621023089c796899ac2adbca4d55dd038e2754ccdee7bd19bd5ba12d8ae3e84c059f6a0fc1b9e7397
|
7
|
+
data.tar.gz: 57ab5131c918240b6811d4d501f77f279c949c077c16e7460272ad1c303ad154280c32750c05b5f3b7b522f06e3029419e5b77673a4a1c835ad1d46720f65e63
|
data/lib/global_registry/base.rb
CHANGED
@@ -56,12 +56,14 @@ module GlobalRegistry
|
|
56
56
|
Oj.load(response)
|
57
57
|
when 400
|
58
58
|
raise RestClient::BadRequest, response
|
59
|
+
when 404
|
60
|
+
raise RestClient::ResourceNotFound, response
|
59
61
|
when 500
|
60
62
|
raise RestClient::InternalServerError, response
|
61
63
|
else
|
62
64
|
puts response.inspect
|
63
65
|
puts request.inspect
|
64
|
-
raise result.
|
66
|
+
raise result.to_s
|
65
67
|
end
|
66
68
|
end
|
67
69
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: global_registry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Starcher
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
108
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.
|
109
|
+
rubygems_version: 2.1.11
|
110
110
|
signing_key:
|
111
111
|
specification_version: 4
|
112
112
|
summary: Push and pull data from the Global Registry
|