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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c126c927e1b619f3df9df4fb8366780db1a2970
4
- data.tar.gz: 435a499ceab87376728ba4e74c3e1a1841faf99b
3
+ metadata.gz: 7c1becb519a0be3ffdb8cd3f9845292c91a826cd
4
+ data.tar.gz: 9fb57347bea09ff50996e298b46b7a0638a99d37
5
5
  SHA512:
6
- metadata.gz: 17a27257fb4cd825ebf954eb6fa92c87043da060a15683e191e1222ce60397767e6910cffb4efba41fd6f49f47105c18b4f7032b2cffcd58dc84d794e0c8a644
7
- data.tar.gz: 37f23852bee261289c53c540d59355d1bbf15e20add57269ab32de32b379e159e4f431ca28de7f49fd59665fb0e6ab7c93650e266dd69f76f8d12b1b972ad159
6
+ metadata.gz: 3af352f19d4faeaaaac88662428ccd2d36ea85f54bd1e8640cac522ebe03a6ea7dfa40686e1c5037ee4091bf4def9cabef8ce59d7696232fdfa23b2465707779
7
+ data.tar.gz: 47786c288281f258a234f4b31a9f38f8f2d0ff2f8e61f972b6c58c8c24268a9b10fb4e5b080df6560eec8017a5fe3c9cbfa48fae805ad89d99e16ed9a6280b03
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module OEHClient
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
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.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-04-04 00:00:00.000000000 Z
11
+ date: 2016-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler