happi 0.0.12 → 0.1.0

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: 299cad5f6062c82230763027fc28c972166fac65
4
- data.tar.gz: 7f569b830deebb62102547e9a14840c01de4f7e5
3
+ metadata.gz: c253d43249392dcece9180d9df4016fb24fb9703
4
+ data.tar.gz: 8ecf4749f3d5e4f5a835405daee249ed431326c4
5
5
  SHA512:
6
- metadata.gz: 6e89dee05f976a673fd030894a41de63bdb4f4a5e9df7e54db2b1cb7053f6390d20a2d695eed838e0ea054a755f97e91c5ad50ddfe34e7c8abfb194ad0a86abd
7
- data.tar.gz: 88aef7e42786f035d5993464806794e9dedcad31601a4b4d2b1792ff560d7c3dd7993b06c53c84d88ab940c1a0aa5df7756a9fddaa30a311fc16b294ba740330
6
+ metadata.gz: 7edea26416999669e165e569290b1d171c2194d81acf5b3ae0247115218259cc37a0182da22fc30879385e45f6f5a593feb195e3bb49afe5d71f9e8b84ecafd6
7
+ data.tar.gz: 6be9fbded9eb24829e0f310c7cee85553667e27e31ed7b666f23b8082b21b34a709282911418130093199d5c66839816f3f1114678184533f9e58514006940ef
@@ -65,7 +65,7 @@ class Happi::Client
65
65
  message = response.body
66
66
  end
67
67
 
68
- fail errors[response.status].new(message)
68
+ fail errors[response.status].new(message, response)
69
69
  end
70
70
 
71
71
  def logger
@@ -1,5 +1,12 @@
1
1
  class Happi::Error < StandardError
2
2
  class ClientError < self
3
+ attr_reader :response
4
+
5
+ def initialize(msg = nil, response = nil)
6
+ super(msg)
7
+ @response = response
8
+ end
9
+
3
10
  def message
4
11
  "A client error occurred"
5
12
  end
@@ -1,3 +1,3 @@
1
1
  module Happi
2
- VERSION = '0.0.12'
2
+ VERSION = '0.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: happi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John D'Agostino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-10 00:00:00.000000000 Z
11
+ date: 2015-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
225
  version: '0'
226
226
  requirements: []
227
227
  rubyforge_project:
228
- rubygems_version: 2.4.6
228
+ rubygems_version: 2.4.7
229
229
  signing_key:
230
230
  specification_version: 4
231
231
  summary: Simple faraday client wrapper preconfigured for specific usecase