aftership 4.5.0 → 4.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/lib/aftership.rb +1 -1
- data/lib/aftership/v4/base.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b78fa7173ef557fa6c2df76d316a358e2867871758c750b79d7062645ed2f59d
|
4
|
+
data.tar.gz: db3078d7dd058af8c0b1be409e305a153047bfb2af75488bf386e542d84e88f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ae37ae84e6aaecb78c7afbda1ebc0abeb0090d9b3ae45af345e2ccd94b88d4b2e36b1b1d55994d368e24c65c498f6bdede51a4d8f77fd1840f03ca80eee0dbc
|
7
|
+
data.tar.gz: be2b19159da6451ab0e5f767ffc67a1693b2b9d3e39e1f552b5edeb464c4ad67e9fe78f650e5f5dfa8441a44add1c9003860b651127eaac192730840f3ce2bab
|
data/README.md
CHANGED
@@ -8,11 +8,14 @@ This extension helps developers to integrate with AfterShip easily.
|
|
8
8
|
|
9
9
|
AfterShip provides an automated way for online merchants to track packages and send their customers delivery status notifications. Customers no longer need to deal with tracking numbers and track packages on their own. With AfterShip, online merchants extend their customer service after the point of purchase by keeping their customers actively informed, while saving time and money by reducing customers’ questions about the status of their purchase delivery.
|
10
10
|
|
11
|
-
## Migration to 4.5.
|
11
|
+
## Migration to 4.5.1+
|
12
12
|
|
13
|
-
We suggest all users to upgrade your `aftership` gem to v4.5.
|
13
|
+
We suggest all users to upgrade your `aftership` gem to v4.5.1 as any earlier versions are NOT maintained, which also means you will need to upgrade your ruby version to at least 2.3.0 to be able to use `faraday` the new http client of the revamped `aftership` gem.
|
14
14
|
|
15
15
|
### Changes
|
16
|
+
* 2021-02-08 4.5.1
|
17
|
+
- Resolved [#31](https://github.com/AfterShip/aftership-sdk-ruby/issues/31): Deprecation of encryption algorithms below 256 bits
|
18
|
+
|
16
19
|
* 2021-02-08 4.5.0
|
17
20
|
- Downgraded `faraday` to `1.0.1` that accepts ruby 2.3.0+ as required version.
|
18
21
|
- Updated request User agent to follow AfterShip SDK guideline.
|
@@ -21,7 +24,6 @@ We suggest all users to upgrade your `aftership` gem to v4.5.0 as any earlier ve
|
|
21
24
|
* 2021-02-08 4.4.0
|
22
25
|
- Removed `httpclient` and used `faraday` 1.3 as http client
|
23
26
|
- Polished project with prettified formatting
|
24
|
-
- Resolved [#31](https://github.com/AfterShip/aftership-sdk-ruby/issues/31): Deprecation of encryption algorithms below 256 bits
|
25
27
|
- Required ruby version updated to 2.4.0+
|
26
28
|
|
27
29
|
* 2016-01-11 4.3.1
|
@@ -55,7 +57,7 @@ We suggest all users to upgrade your `aftership` gem to v4.5.0 as any earlier ve
|
|
55
57
|
1. Add the following line to your application's Gemfile
|
56
58
|
|
57
59
|
```ruby
|
58
|
-
gem "aftership", "~> 4.5"
|
60
|
+
gem "aftership", "~> 4.5.1"
|
59
61
|
```
|
60
62
|
|
61
63
|
2. Run bundler
|
data/lib/aftership.rb
CHANGED
data/lib/aftership/v4/base.rb
CHANGED
@@ -36,10 +36,10 @@ module AfterShip
|
|
36
36
|
cf_ray = ''
|
37
37
|
output = nil
|
38
38
|
uri = @client.build_url(end_point, query)
|
39
|
+
request_body = body.empty? ? nil : body.to_json
|
39
40
|
|
40
41
|
loop do
|
41
|
-
response = @client.run_request(http_verb_method, uri,
|
42
|
-
|
42
|
+
response = @client.run_request(http_verb_method, uri, request_body, headers)
|
43
43
|
cf_ray = response.headers['cf-ray'] if response.headers
|
44
44
|
|
45
45
|
if response.body
|