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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e290f58d38534b293261b1dcc9bdde6c4db06663c73eebc277db93939533f173
4
- data.tar.gz: 4a848b707e8a6dd8c56130f8937a93e70f9d04b094911b844e1167bcd92d3266
3
+ metadata.gz: b78fa7173ef557fa6c2df76d316a358e2867871758c750b79d7062645ed2f59d
4
+ data.tar.gz: db3078d7dd058af8c0b1be409e305a153047bfb2af75488bf386e542d84e88f4
5
5
  SHA512:
6
- metadata.gz: 27e51d324f901739b724e28a3e51416c51c8a46404b56d43cfae82a421fb6f99fcb15e263f5340efdd265c0bc9a178b0b90f0b286d85351ed4ba0d1755b4c9ce
7
- data.tar.gz: 9302f3835df2bf1dbf80b4ab7bad7b598fe7aff0a8cc1afb2fa6106f60c04ee437e32f06224cc705ecbc38df14196f55b6728cb51dd60569eed36dce402267b9
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.0+
11
+ ## Migration to 4.5.1+
12
12
 
13
- We suggest all users to upgrade your `aftership` gem to v4.5.0 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.
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
@@ -10,5 +10,5 @@ module AfterShip
10
10
  end
11
11
 
12
12
  URL = ENV['AFTERSHIP_API_ENDPOINT'] || 'https://api.aftership.com'
13
- VERSION = '4.5.0'
13
+ VERSION = '4.5.1'
14
14
  end
@@ -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, body.to_json, headers)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aftership
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.0
4
+ version: 4.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - AfterShip Limited