friendly_shipping 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f93318bb2f4351daaf01e93d0046f0056b3ef13fac9f52e4e461823ba513a96
4
- data.tar.gz: 5e202a71653f2310800124573a0220ddde35941634f988f9c76e9ecf8cbfa1a0
3
+ metadata.gz: 774450d05e80ad658e9ab8d29ea372b142dca9b712bdf37f3baf4b5faa68d4c0
4
+ data.tar.gz: 1fc8c87b5812e0b31d2f74ff57e24887e0b4ec7b916b3f34371631bac8b897c9
5
5
  SHA512:
6
- metadata.gz: ee13674fe1c960e113ba8590c8c348fcc5bfb67bb04c1b28fadc3a1389347ff49609f52a4b1b14334ebd835cf9b0b17654b72eb0244716a3345fd44fb4db7ede
7
- data.tar.gz: 3126b5a3463bed9d524e6d52b429783b1f3ac0cb631b8723fec82aa5a02152b5e38d61b89c8c19dadd26e85492c8f5419cf7025e241f39177e1648293de2fddf
6
+ metadata.gz: 1d9f8099888cebd49a1c7fcfec69ddeb4170e04bea8d0a3ed0b0c5dcce9d413606b0386ae2034784563dfa628dd5d3b927f9250ef40a6431e28462238476a9e7
7
+ data.tar.gz: 6cac63b02a0f637f68fca0948bb8fa59361b8d13a3752d9de0a9a2cb55ec6aaf9654d89ee9530c0b11e2b81b44b928097defe17acfabe1a92c4635c9f9ab0ad2
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.6.1] - 2020-03-11
8
+
9
+ - Add Content-Type header to UPS Freight API requests, fixing "Name too long" 500 error responses
10
+
7
11
  ## [0.6.0] - 2020-03-11
8
12
 
9
13
  - Changelog additions missed in previous release
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
 
13
13
  spec.summary = "An integration layer for shipping services"
14
14
  spec.description = "Allows you to quote or ship a Physical::Shipment object"
15
- spec.homepage = "https://github.com/friendly_cart/friendly_shipping"
15
+ spec.homepage = "https://github.com/friendlycart/friendly_shipping"
16
16
  spec.license = "MIT"
17
17
 
18
18
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
34
34
  spec.add_development_dependency "dotenv", "~> 2.7"
35
35
  spec.add_development_dependency "factory_bot", "~> 5.0"
36
36
  spec.add_development_dependency "pry", "~> 0.12"
37
- spec.add_development_dependency "rake", "~> 10.0"
37
+ spec.add_development_dependency "rake", ">= 12.3.3"
38
38
  spec.add_development_dependency "rspec", "~> 3.0"
39
39
  spec.add_development_dependency "rspec_junit_formatter", "~> 0.4"
40
40
  spec.add_development_dependency "rubocop", ">= 0.80", "< 1"
@@ -55,7 +55,7 @@ module FriendlyShipping
55
55
  end
56
56
 
57
57
  # Get rates for a shipment
58
- # @param [Physical::Shipment] location The shipment we want to get rates for
58
+ # @param [Physical::Shipment] shipment The shipment we want to get rates for
59
59
  # @param [FriendlyShipping::Services::UpsFreight::RatesOptions] options Options for obtaining rates for this shipment.
60
60
  # @return [Result<ApiResult<Array<Rate>>>] The rates returned from UPS encoded in a
61
61
  # `FriendlyShipping::ApiResult` object.
@@ -69,7 +69,7 @@ module FriendlyShipping
69
69
  end
70
70
 
71
71
  # Get labels for a shipment
72
- # @param [Physical::Shipment] location The shipment we want to get rates for
72
+ # @param [Physical::Shipment] shipment The shipment we want to get rates for
73
73
  # @param [FriendlyShipping::Services::UpsFreight::LabelOptions] options Options for shipping this shipment.
74
74
  # @return [Result<ApiResult<ShipmentInformation>] The information that you need for shipping this shipment.
75
75
  def labels(shipment, options:, debug: false)
@@ -89,6 +89,7 @@ module FriendlyShipping
89
89
  url: url,
90
90
  body: payload.to_json,
91
91
  headers: {
92
+ Content_Type: 'application/json',
92
93
  Accept: 'application/json',
93
94
  Username: login,
94
95
  Password: password,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FriendlyShipping
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: friendly_shipping
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Meyerhoff
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-16 00:00:00.000000000 Z
11
+ date: 2020-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: data_uri
@@ -166,16 +166,16 @@ dependencies:
166
166
  name: rake
167
167
  requirement: !ruby/object:Gem::Requirement
168
168
  requirements:
169
- - - "~>"
169
+ - - ">="
170
170
  - !ruby/object:Gem::Version
171
- version: '10.0'
171
+ version: 12.3.3
172
172
  type: :development
173
173
  prerelease: false
174
174
  version_requirements: !ruby/object:Gem::Requirement
175
175
  requirements:
176
- - - "~>"
176
+ - - ">="
177
177
  - !ruby/object:Gem::Version
178
- version: '10.0'
178
+ version: 12.3.3
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: rspec
181
181
  requirement: !ruby/object:Gem::Requirement
@@ -392,7 +392,7 @@ files:
392
392
  - lib/friendly_shipping/timing.rb
393
393
  - lib/friendly_shipping/types.rb
394
394
  - lib/friendly_shipping/version.rb
395
- homepage: https://github.com/friendly_cart/friendly_shipping
395
+ homepage: https://github.com/friendlycart/friendly_shipping
396
396
  licenses:
397
397
  - MIT
398
398
  metadata: {}