widgit_accounts_sdk 0.0.8 → 0.0.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: 2cca68013dcd7b7be838ba5c23de0778245702eab8888660cd8a8581485773af
4
- data.tar.gz: 11e8770755e0a99415186d52953d06a084d9fc3b27b504124ff988528a5f3499
3
+ metadata.gz: 02f0c0fb936f113d9379f36ff88ac51ba25820270698290aed62a2705e2a1242
4
+ data.tar.gz: 95fd39a61dcee7413594bd6805ea7238305588261281ebb3cda2003fbf479d38
5
5
  SHA512:
6
- metadata.gz: 876cc696d2f18c33c2a1a7391503219fc52ee19800fc257f2553c4189849c5c3df519265a56826a3c2021f2552e590146e8a723e619b5b79c62867ad41c32cdd
7
- data.tar.gz: c85cfa7f0bd4809ce60fbb283692963a9be22efbd190248c7eec4a1f90c4b30f856afb1204cdbd6e69962a82045d0ddc8d98be1006217d8a98fcf7404ed12215
6
+ metadata.gz: 9c145bb37a9dfa3ca9cf4d4413f86ea855a1645a17b805e7134399fc3a23bc2896324fb6b35454334f2e03ed6bad4e4f36756d7c0f24cf003524ea5457a90d64
7
+ data.tar.gz: 808949d3120fe509121861a5cb05c292fbe61da77213f0fe0d5029ec4c555827a38395e6ddd08b90229ca9936b47b12db830a550d18de10aea448c63950b9ced
@@ -130,15 +130,19 @@ module WidgitAccountsSdk
130
130
  http.verify_mode = OpenSSL::SSL::VERIFY_PEER
131
131
  http.open_timeout = 30
132
132
  http.read_timeout = 30
133
- case method
134
- when :get
135
- req = Net::HTTP::Get.new(uri.request_uri)
136
- when :post
137
- req = Net::HTTP::Post.new(uri.request_uri)
138
- req.body = params.to_query
139
- when :patch
140
- req = Net::HTTP::Patch.new(uri.request_uri)
141
- req.body = params.to_query
133
+
134
+ req =
135
+ case method
136
+ when :get
137
+ Net::HTTP::Get.new(uri.request_uri)
138
+ when :post
139
+ Net::HTTP::Post.new(uri.request_uri)
140
+ when :patch
141
+ Net::HTTP::Patch.new(uri.request_uri)
142
+ end
143
+ if [:post, :patch].include?(method)
144
+ req.body = params.to_json
145
+ req["Content-Type"] = "application/json"
142
146
  end
143
147
  req["Authorization"] = WidgitAccountsSdk.configuration.api_key
144
148
 
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: widgit_accounts_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stu Wright
8
8
  - James Sherriff
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 1980-01-02 00:00:00.000000000 Z
12
+ date: 2026-03-23 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: jwt
@@ -33,8 +34,10 @@ files:
33
34
  - lib/widgit_accounts_sdk.rb
34
35
  - lib/widgit_accounts_sdk/client.rb
35
36
  - lib/widgit_accounts_sdk/configuration.rb
37
+ homepage:
36
38
  licenses: []
37
39
  metadata: {}
40
+ post_install_message:
38
41
  rdoc_options: []
39
42
  require_paths:
40
43
  - lib
@@ -49,7 +52,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
52
  - !ruby/object:Gem::Version
50
53
  version: '0'
51
54
  requirements: []
52
- rubygems_version: 4.0.6
55
+ rubygems_version: 3.5.22
56
+ signing_key:
53
57
  specification_version: 4
54
58
  summary: Widgit Accounts API Client Ruby Gem
55
59
  test_files: []