muffin_man 1.4.7 → 1.4.9

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: a917d17125d2557b73aec27117dd30327c866382198d202ba9a8d54bff5db82c
4
- data.tar.gz: 46eafd766beab5cd7d300bbd2ad9a2aaf62d47ee48c67b51c0173f07eb657959
3
+ metadata.gz: abe8f107256b455dc589e5e38753d87874c11bf9c92114e4bd11a6497f8d4e3f
4
+ data.tar.gz: 1998aa01640019705052b4fda79dc0508aadc78e58e93b7d7540e8b910a07a92
5
5
  SHA512:
6
- metadata.gz: 56e85f023181739f5946a912483eade11c1e14fe02963dd2ad845b3ddc7e95da36c0490c2cafd3a8d36ec83d6d0156374134a81e83c0e9cbbe8f2b9c8a76c515
7
- data.tar.gz: 3034a2f736e1be8d4c4d0261ce90e76e5f2dba3b7c73572d30d72d90426c177faf483fc72cc9ed4192b2aee1f2364c091dee9a867fc641150f440ade552babef
6
+ metadata.gz: 06c252574d2d49ce4c32c102b38278f481c284cb2984c154d0008406b75bc5a72aac38ba966e08fc2b55e5e3addac470d7cdc84ca79d4a7f4ae5845decb98eb6
7
+ data.tar.gz: 047cdfe79b73a7390123cb32ec9d4b386144059658d17e62936e2fe39cdae1a65c58895aad485f607cb8a81c3daa35b3c909558b23efc57cde24bcf4f7a44423
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 1.4.9
2
+
3
+ - Fix to override global AWS config with credentials that are passed [#26](https://github.com/patterninc/muffin_man/pull/26)
4
+
5
+ # 1.4.8
6
+
7
+ - Support for createInboundShipment [#25](https://github.com/patterninc/muffin_man/pull/25)
8
+
1
9
  # 1.4.7
2
10
 
3
11
  - Support for createInboundShipmentPlan [#24](https://github.com/patterninc/muffin_man/pull/24)
@@ -24,6 +24,17 @@ module MuffinMan
24
24
  @request_type = "POST"
25
25
  call_api
26
26
  end
27
+
28
+ def create_inbound_shipment(shipment_id, marketplace_id, inbound_shipment_header, inbound_shipment_items)
29
+ @local_var_path = "/fba/inbound/v0/shipments/#{shipment_id}"
30
+ @request_body = {
31
+ "MarketplaceId": marketplace_id,
32
+ "InboundShipmentHeader": inbound_shipment_header,
33
+ "InboundShipmentItems": inbound_shipment_items,
34
+ }
35
+ @request_type = "POST"
36
+ call_api
37
+ end
27
38
  end
28
39
  end
29
40
  end
@@ -126,8 +126,7 @@ module MuffinMan
126
126
  def request_sts_token
127
127
  client = Aws::STS::Client.new(
128
128
  region: derive_aws_region,
129
- access_key_id: aws_access_key_id,
130
- secret_access_key: aws_secret_access_key,
129
+ credentials: Aws::Credentials.new(aws_access_key_id, aws_secret_access_key),
131
130
  http_wire_trace: (ENV["AWS_DEBUG"] == "true" || false)
132
131
  )
133
132
  client.assume_role(role_arn: sts_iam_role_arn, role_session_name: SecureRandom.uuid)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MuffinMan
4
- VERSION = "1.4.7"
4
+ VERSION = "1.4.9"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muffin_man
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.7
4
+ version: 1.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2022-09-23 00:00:00.000000000 Z
13
+ date: 2022-09-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec