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 +4 -4
- data/after_ship.gemspec +3 -3
- data/lib/after_ship/core/error.rb +1 -0
- data/lib/after_ship/core/request.rb +10 -0
- data/lib/after_ship/core/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29d2735d9a69556418755d901e384966e009e67c
|
4
|
+
data.tar.gz: 1bf65c74d5596099cf67407caa1b5af8193a939e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b08f410a3fb95b9a02571b6ef2613fecd2473f0bab53e8b90e5d155a356efc8dd58ff1cf38efedf86ecd69720d494e18fe58e1b0453d719eff9f6375018c6b9
|
7
|
+
data.tar.gz: f5336941dce75dc8553eebbaebb928ad70733ddb50b9359a522699da0278202c75e63cf477ea8dce115d67511c347d1f197b7761f4479dc69bd98e39dee186c6
|
data/after_ship.gemspec
CHANGED
@@ -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.
|
27
|
-
spec.add_development_dependency 'webmock', '~> 1.
|
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.
|
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'
|
@@ -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
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
82
|
+
version: '0.35'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: pry
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|