blurb 0.5.8 → 0.5.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/blurb.gemspec +1 -1
  3. data/lib/blurb/request.rb +5 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4bbe7e13044fb8056d3f7a82b7ec546c737dccbb5d793012afc19915f27c1df8
4
- data.tar.gz: 7f33345f4038f08a44ec11942f733b6200eae8d611bb44f660f51c48ed9afae7
3
+ metadata.gz: 189f95ae42271c0eb40c991c4f767cb4208b46ce7c96afd95264e1e42aca6fe8
4
+ data.tar.gz: 61364e5de152694f60f68ada4a368c46122155c5f3956d9bf682193b6c99ebf4
5
5
  SHA512:
6
- metadata.gz: cf5ab7852856e0748283f2bbd3ff966a4456800538517e6fdf99ccf0c8b6471f46cf72d113ecb3995197623923007c5cb489e538f72323fb24c8d675e88f6e9a
7
- data.tar.gz: e4699d01634644264c2046ff4c9c109955abea9a9b5f7ce2bea97b151ed87e028f568b232c15d7bccc5ac56342969368ee8fda42a253aba3b99613453a79bbd6
6
+ metadata.gz: fd65504f6683e3fb7080300f78f947072d6124d7a9ae4f2e560d587aaa9d28751704add4e7da5424fff3c56c5e2d4311b69a7d152ae3296a49645bec59617a3f
7
+ data.tar.gz: a7eadcaa4c2843d7dba312a6846bc4285b1d5b44a766c321c4825a23e322b1ab72666c666193bd6cd6a5795fdbca209798c0e483bc643dc056c935fb77fc3d1a
data/blurb.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "blurb"
7
- spec.version = "0.5.8"
7
+ spec.version = "0.5.9"
8
8
  spec.authors = ["dlbunker", "eamigo13", "smithworx"]
9
9
  spec.email = ["evan@pattern.com"]
10
10
 
data/lib/blurb/request.rb CHANGED
@@ -50,7 +50,11 @@ class Blurb
50
50
  raise err
51
51
  end
52
52
  rescue RestClient::ExceptionWithResponse => err
53
- raise FailedRequest.new(JSON.parse(err.response.body))
53
+ if err.response.present?
54
+ raise FailedRequest.new(JSON.parse(err.response.body))
55
+ else
56
+ raise err
57
+ end
54
58
  end
55
59
  resp = convert_response(resp)
56
60
  return resp
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blurb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8
4
+ version: 0.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - dlbunker
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2021-02-16 00:00:00.000000000 Z
13
+ date: 2021-03-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler