after_ship 0.0.8 → 0.0.9

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: 2902f0f38fdbd12eddd548c3f496fe14e9a337f9
4
- data.tar.gz: f673bbed8d26363d4bdb4f9680e8926db31d842e
3
+ metadata.gz: 29d2735d9a69556418755d901e384966e009e67c
4
+ data.tar.gz: 1bf65c74d5596099cf67407caa1b5af8193a939e
5
5
  SHA512:
6
- metadata.gz: 77f0ea2762a062b6582a349b9631bcb244fdf85d6c917c216668bdc42aef1b73ddc08635cc8baf01b01b4adced02b38f924b03f7fa010e9880ccef99e10ca788
7
- data.tar.gz: cdd3c7605c1e8d67f59240cc376f9fe86c5084dc6c56c6b0732394bddc663c8944e34841c9127ecce8eadd3efe93b0bf720248aa9709ede3faa95ef87bcd9dcf
6
+ metadata.gz: 8b08f410a3fb95b9a02571b6ef2613fecd2473f0bab53e8b90e5d155a356efc8dd58ff1cf38efedf86ecd69720d494e18fe58e1b0453d719eff9f6375018c6b9
7
+ data.tar.gz: f5336941dce75dc8553eebbaebb928ad70733ddb50b9359a522699da0278202c75e63cf477ea8dce115d67511c347d1f197b7761f4479dc69bd98e39dee186c6
@@ -23,12 +23,12 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency 'bundler', '~> 1.10'
24
24
 
25
25
  # Test
26
- spec.add_development_dependency 'rspec', '~> 3.3'
27
- spec.add_development_dependency 'webmock', '~> 1.21'
26
+ spec.add_development_dependency 'rspec', '~> 3.4'
27
+ spec.add_development_dependency 'webmock', '~> 1.22'
28
28
  spec.add_development_dependency 'simplecov', '~> 0.10'
29
29
 
30
30
  # Code style, debugging, docs
31
- spec.add_development_dependency 'rubocop', '~> 0.34'
31
+ spec.add_development_dependency 'rubocop', '~> 0.35'
32
32
  spec.add_development_dependency 'pry', '~> 0.10'
33
33
  spec.add_development_dependency 'yard', '~> 0.8'
34
34
  spec.add_development_dependency 'rake', '~> 10.4'
@@ -26,5 +26,6 @@ class AfterShip
26
26
 
27
27
  class UnknownError < Error; end # Huh?
28
28
  class Timeout < Error; end # Uh oh.
29
+ class ParseError < Error; end # Something is wrong.
29
30
  end
30
31
  end
@@ -80,6 +80,16 @@ class AfterShip
80
80
  else
81
81
  parsed_body
82
82
  end
83
+ rescue MultiJson::ParseError => e
84
+ logger = Logger.new($stdout)
85
+ logger.error("#{e.class}: #{e.message}")
86
+
87
+ if response
88
+ logger.error('Response body:')
89
+ logger.error(response.body.inspect)
90
+ end
91
+
92
+ raise Error::ParseError, e
83
93
  end
84
94
 
85
95
  protected
@@ -1,4 +1,4 @@
1
1
  class AfterShip
2
2
  # Version number, happy now?
3
- VERSION = '0.0.8'
3
+ VERSION = '0.0.9'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: after_ship
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oldrich Vetesnik
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-23 00:00:00.000000000 Z
11
+ date: 2015-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '3.3'
33
+ version: '3.4'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '3.3'
40
+ version: '3.4'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: webmock
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.21'
47
+ version: '1.22'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.21'
54
+ version: '1.22'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: simplecov
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.34'
75
+ version: '0.35'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.34'
82
+ version: '0.35'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: pry
85
85
  requirement: !ruby/object:Gem::Requirement