muffin_man 2.4.11 → 2.4.12

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: 33f0611029142ad77dfc45fd3554b68b0579c9ab5aa9aec1764e9e21a208ded2
4
- data.tar.gz: 378875142894a576c71e69628786f473eb83a14f2abc94bc147eceaf0c836a81
3
+ metadata.gz: 1dec8e35106feca73923e8526c0b4275f1af04218c5c1216046d6874890e7529
4
+ data.tar.gz: ff82271a7ceea873c6e4bc35db1352bef6ef853d88cb006040e9e5af284e1a91
5
5
  SHA512:
6
- metadata.gz: ad19739230189a856576ad94d39d41e2c058f97f962f3f718f8d634f2976cbc2b7361ad2648d68ee487f8106f626eaeb977b8adcba3a5d9657a53d59429af6c8
7
- data.tar.gz: 17da668a051fe58d4415b76b4f2b89164ed0e9a23b634ecea84195ec249ba59081e53b85a98d041475a28f4788bad558ac5902db48033c71d558b36309c4b8f2
6
+ metadata.gz: 2ac49e7b36f757656a5c6e198a5fc9ed0f49b18a5d350b5fd8539b08dddfe84e1a888880e31758a068f220dcdc46d410d9fc274d5da0bf0f0815d6c219908e9d
7
+ data.tar.gz: '0956d5f62002e873b3ebb4eb6e0b3732c868e157e1ff3a05958c79bf513df4f7d8612b378521ca25ef4f0749017515f81244490ede7bf7bbaabf1080b56f4559'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # 2.4.12
2
+
3
+ - [#95](https://github.com/patterninc/muffin_man/pull/95)
4
+ - [#94](https://github.com/patterninc/muffin_man/pull/94)
5
+ - [#93](https://github.com/patterninc/muffin_man/pull/93)
6
+ - [#92](https://github.com/patterninc/muffin_man/pull/92)
7
+
1
8
  # 2.4.11
2
9
 
3
10
  - Application Management API v2023-11-30 [#88](https://github.com/patterninc/muffin_man/pull/88)
data/README.md CHANGED
@@ -136,7 +136,7 @@ access_token = MuffinMan::Lwa::AuthHelper.get_access_token(scope, client_id, cli
136
136
  ### Rotating application client secret
137
137
  To rotate client secret for application
138
138
  ```ruby
139
- MuffinMan::ApplicationManagement::V20231130.rotate_application_client_secret(access_token)
139
+ MuffinMan::ApplicationManagement::V20231130.rotate_application_client_secret(client_id,client_secret)
140
140
  ```
141
141
 
142
142
  ### Debugging
@@ -3,10 +3,15 @@
3
3
  module MuffinMan
4
4
  module ApplicationManagement
5
5
  class V20231130
6
- def self.rotate_application_client_secret(access_token)
6
+ def self.rotate_application_client_secret(client_id, client_secret)
7
+ access_token = MuffinMan::Lwa::AuthHelper.get_access_token("sellingpartnerapi::client_credential:rotation",
8
+ client_id, client_secret)
7
9
  Typhoeus.post(
8
10
  "https://sellingpartnerapi-na.amazon.com/applications/2023-11-30/clientSecret",
9
- headers: { "x-amz-access-token" => access_token }
11
+ headers: {
12
+ "x-amz-access-token" => access_token,
13
+ "Content-Type" => "application/json;charset=UTF-8"
14
+ }
10
15
  )
11
16
  end
12
17
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MuffinMan
4
- VERSION = "2.4.11"
4
+ VERSION = "2.4.12"
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: 2.4.11
4
+ version: 2.4.12
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: 2025-01-24 00:00:00.000000000 Z
13
+ date: 2025-02-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec