oeh-client 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/oehclient/helper.rb +1 -1
- data/lib/oehclient/version.rb +1 -1
- data/lib/oehclient.rb +1 -0
- 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: 7c1becb519a0be3ffdb8cd3f9845292c91a826cd
|
4
|
+
data.tar.gz: 9fb57347bea09ff50996e298b46b7a0638a99d37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3af352f19d4faeaaaac88662428ccd2d36ea85f54bd1e8640cac522ebe03a6ea7dfa40686e1c5037ee4091bf4def9cabef8ce59d7696232fdfa23b2465707779
|
7
|
+
data.tar.gz: 47786c288281f258a234f4b31a9f38f8f2d0ff2f8e61f972b6c58c8c24268a9b10fb4e5b080df6560eec8017a5fe3c9cbfa48fae805ad89d99e16ed9a6280b03
|
data/lib/oehclient/helper.rb
CHANGED
@@ -62,7 +62,7 @@ module OEHClient
|
|
62
62
|
|
63
63
|
valid_response_codes = [100, 200, 204, 302]
|
64
64
|
# raise a generic HTTPRequestException if the the status code is not 100 (Continue) or 200 (OK)
|
65
|
-
raise OEHClient::Exception::HTTPRequestException.new("HTTP Request Exception with code #{rest_response.code}", rest_response.code) unless (valid_response_codes.include?(rest_response.code))
|
65
|
+
raise OEHClient::Exception::HTTPRequestException.new("HTTP Request Exception with code #{rest_response.code} -- details: #{rest_response.body}", rest_response.code) unless (valid_response_codes.include?(rest_response.code))
|
66
66
|
|
67
67
|
api_response = Hash.new
|
68
68
|
|
data/lib/oehclient/version.rb
CHANGED
data/lib/oehclient.rb
CHANGED
@@ -62,6 +62,7 @@ module OEHClient
|
|
62
62
|
|
63
63
|
# post wraps the POST method of the access token and manages the response that is returned
|
64
64
|
def post(url, oauth_consumer=nil, *args)
|
65
|
+
|
65
66
|
# retrieved the passed options from the SPLAT
|
66
67
|
options = (args.length > 0 ? args[0] : Hash.new)
|
67
68
|
# if the oauth_consumer is not a proper OAuth::Consumer, then raise the Oeh::Exception::InvalidTokenException
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oeh-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Balliet
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|