we_ship_client 1.1.0 → 1.1.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: fb743482ef0f37663b09673e2b78b98e3df631632389e29ab52a16487363b064
4
- data.tar.gz: 0e2054354dec699a6d64df0b9d859889dac113efed755612e12da0328fcc9589
3
+ metadata.gz: 2085010e2a63d6304cec95a3edc485f4cb7376e82cf87d6e3955095e1806977b
4
+ data.tar.gz: dbba31ab58b4d14eac7bf5aa3405fe6f15e36bf7f9cae788951285b80b8f1f1f
5
5
  SHA512:
6
- metadata.gz: e4f0c2d9dd0b12430786014891caa72e59da444b66afa3b5726df24817cbcf57510a384f2cd17a6db3211d98a6fcf9ce9419914868593df4fd1ae63ef6214038
7
- data.tar.gz: b76c1997dd8b7f67843e4cdfc7e0766be4c2d0171004b909a6212ce1b958d775a19a646b651c61afbdca97063bb6829f830c2720587bb31d2e42dc37bcb3f50d
6
+ metadata.gz: bb68b5582678bfd41b172fc8af0842af60fb727af5b32727a1457b6d1f7d431b3b4de6026e70ae740f61c73af59e83b89b27e1ad82d9c636e5f8c5aa9b12bf0d
7
+ data.tar.gz: f72ad4eeb8ef42eb830b8ad80a9411ae175b4c01c25efea3f47cc838a24bc299354e3438cd2d555482776eca83f742e8414ac6d5f3d80414bb118ffaaef55cea
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- we_ship_client (1.1.0)
4
+ we_ship_client (1.1.1)
5
5
  activesupport
6
6
  dry-struct (~> 1.4)
7
7
  dry-types
@@ -94,6 +94,7 @@ GEM
94
94
  zeitwerk (2.6.9)
95
95
 
96
96
  PLATFORMS
97
+ arm64-darwin-21
97
98
  arm64-darwin-22
98
99
  x86_64-darwin-20
99
100
  x86_64-darwin-21
@@ -8,7 +8,7 @@ module WeShipClient
8
8
  class OrderItem < Base
9
9
  attribute :productName, Types::Strict::String
10
10
  attribute :productSKU, Types::Strict::String
11
- attribute :productType, Types::Strict::String.default(ENV['WE_SHIP_DEFAULT_PRODUCT_TYPE'])
11
+ attribute :productType, Types::Strict::String.default { ENV['WE_SHIP_DEFAULT_PRODUCT_TYPE'] }
12
12
  attribute :quantity, Types::Strict::Integer
13
13
  attribute :weight, Types::Strict::String
14
14
  end
@@ -15,9 +15,9 @@ module WeShipClient
15
15
  # :description=>"Invalid content was found starting with element 'clientCode'. One of '{order}' is expected.",
16
16
  # :status=>"Fail"
17
17
  # }}}
18
- attribute :formatVersion, Types::Strict::String.default(ENV['WE_SHIP_FORMAT_VERSION'])
19
- attribute :clientCode, Types::Strict::String.default(ENV['WE_SHIP_CUSTOMER_CODE'])
20
- attribute :allowDuplicates, Types::Strict::String.default(ENV['WE_SHIP_ALLOW_DUPLICATES'])
18
+ attribute :formatVersion, Types::Strict::String.default { ENV['WE_SHIP_FORMAT_VERSION'] }
19
+ attribute :clientCode, Types::Strict::String.default { ENV['WE_SHIP_CUSTOMER_CODE'] }
20
+ attribute :allowDuplicates, Types::Strict::String.default { ENV['WE_SHIP_ALLOW_DUPLICATES'] }
21
21
  attribute :order, Types::Strict::Array.of(Order)
22
22
  end
23
23
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WeShipClient
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
@@ -10,6 +10,6 @@ require 'we_ship_client/transforms/tracking_item'
10
10
 
11
11
  module WeShipClient
12
12
  def self.logger
13
- defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
13
+ @logger ||= defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
14
14
  end
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: we_ship_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juul Labs, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-08 00:00:00.000000000 Z
11
+ date: 2023-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport