mistral_client 1.2.0 → 1.2.1

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: 1a19078fe9df8fd3f34d6dd6d15bb8f234aa0ed0
4
- data.tar.gz: '0583018c1b59624c00a2a2aebd01e97d4ad92857'
3
+ metadata.gz: a48d760a07649c33f6a9c7bd996753e71e6952d4
4
+ data.tar.gz: 64c519cf94a71af368c6c659d36ef82c43cdc35f
5
5
  SHA512:
6
- metadata.gz: d70023eb0e0d158ca85beea726a6802726e05d04fb4a4721a0f0b2ae993463e235d871b635e8c568ca41e621874c077da54e45084ccad2de9ca939b27b54caed
7
- data.tar.gz: 84ede2404279bddee7186a6caf5ee48ed05780dbfc35468494ff2d5b0407a676a175e32bf93453c2de18ef3f428f92f3f2af8e79b29854b4d3f46ca0017d5f59
6
+ metadata.gz: c00af48da4b14682cdc9038f8ee9864738f35c3f6612120ce17dbb8eea2e1850c8d56dc4cebbd664f51785e5bec9747760336accbd1010c849f6dda00e49bd9b
7
+ data.tar.gz: 29713d2b34e8b13f21793503a39ad93f43331cac43fb54d9b84a4c37d3176b70149d8bd44626c8ae46772fff9ec0d92b4c84279ebc0e712082496ff975e1a9c4
data/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.2.1] - 2019-11-07
9
+
10
+ ### Added
11
+ - A new exception with the request to mistral attached
12
+
8
13
  ## [1.2.0] - 2018-12-17
9
14
 
10
15
  ### Added
@@ -70,7 +70,7 @@ module MistralClient
70
70
  if resp.code == 404
71
71
  raise MissingObjectError, JSON.parse(resp.body)['faultstring']
72
72
  end
73
- raise MistralError,
73
+ raise MistralResponseError.new(resp),
74
74
  "Could not perform the requested operation:\n#{resp.body}"
75
75
  end
76
76
  end
@@ -3,4 +3,12 @@ module MistralClient
3
3
 
4
4
  class ConfigurationError < MistralError; end
5
5
  class MissingObjectError < MistralError; end
6
+ class MistralResponseError < MistralError
7
+ attr_reader :response
8
+
9
+ def initialize(response)
10
+ @response = response
11
+ super(response)
12
+ end
13
+ end
6
14
  end
@@ -1,3 +1,3 @@
1
1
  module MistralClient
2
- VERSION = '1.2.0'.freeze
2
+ VERSION = '1.2.1'.freeze
3
3
  end
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.require_paths = ['lib']
24
24
 
25
25
  spec.add_dependency 'httparty', '~> 0.15.6'
26
- spec.add_development_dependency 'bundler', '~> 1.15'
26
+ spec.add_development_dependency 'bundler', '~> 2.0.2'
27
27
  spec.add_development_dependency 'pry', '~> 0.11.1'
28
28
  spec.add_development_dependency 'rake', '~> 12.1'
29
29
  spec.add_development_dependency 'rspec', '~> 3.6'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mistral_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brennan
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2018-12-17 00:00:00.000000000 Z
13
+ date: 2019-11-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: '1.15'
35
+ version: 2.0.2
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: '1.15'
42
+ version: 2.0.2
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: pry
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  requirements: []
182
182
  rubyforge_project:
183
- rubygems_version: 2.6.13
183
+ rubygems_version: 2.5.2.3
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Ruby client for Mistral.