after_ship 0.0.7 → 0.0.8
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 +2 -2
- data/lib/after_ship/core/request.rb +1 -1
- data/lib/after_ship/core/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2902f0f38fdbd12eddd548c3f496fe14e9a337f9
|
4
|
+
data.tar.gz: f673bbed8d26363d4bdb4f9680e8926db31d842e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77f0ea2762a062b6582a349b9631bcb244fdf85d6c917c216668bdc42aef1b73ddc08635cc8baf01b01b4adced02b38f924b03f7fa010e9880ccef99e10ca788
|
7
|
+
data.tar.gz: cdd3c7605c1e8d67f59240cc376f9fe86c5084dc6c56c6b0732394bddc663c8944e34841c9127ecce8eadd3efe93b0bf720248aa9709ede3faa95ef87bcd9dcf
|
data/after_ship.gemspec
CHANGED
@@ -28,14 +28,14 @@ Gem::Specification.new do |spec|
|
|
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.34'
|
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'
|
35
35
|
|
36
36
|
# Networking
|
37
37
|
# Fast networking
|
38
|
-
spec.add_runtime_dependency 'typhoeus', '~> 0.
|
38
|
+
spec.add_runtime_dependency 'typhoeus', '~> 0.8'
|
39
39
|
# A common interface to multiple JSON libraries
|
40
40
|
spec.add_runtime_dependency 'multi_json', '~> 1.11'
|
41
41
|
end
|
@@ -70,7 +70,7 @@ class AfterShip
|
|
70
70
|
|
71
71
|
# Do the request to the server and handle the response.
|
72
72
|
def response
|
73
|
-
response
|
73
|
+
response = typhoeus_response
|
74
74
|
ErrorHandler.precheck(response)
|
75
75
|
parsed_body = MultiJson.load(response.body, JSON_OPTIONS)
|
76
76
|
ErrorHandler.check(parsed_body.fetch(:meta))
|
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.8
|
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-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0.
|
75
|
+
version: '0.34'
|
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.34'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: pry
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '0.
|
131
|
+
version: '0.8'
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '0.
|
138
|
+
version: '0.8'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: multi_json
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|