clerk-sdk-ruby 2.9.0.beta2 → 2.9.0.beta3

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: ee1ac364b3d249dc1af4fe001f741299bdd8c2595a9a11ceb74bd9e11cc5e8ea
4
- data.tar.gz: 7b70c51ccbf19d40b3e16e2c757f4428dbd36a38e33ee874d54b8c18aa9afae4
3
+ metadata.gz: 50c46c345c5f568169b85b66f259d9aa7757e52aec5c63eea939d2d2fed847dd
4
+ data.tar.gz: 35c2012c34e4c203df5869b94e36c71d2eea4b43a5a8de004ae89779f598e9ce
5
5
  SHA512:
6
- metadata.gz: be34080066812d608ac7a05dbb7b0591922213075bfc33cfc02ab995a51861d061610704c4fdec32ba86b18739dc5cde9ab08d510b958697dea151e343e96b8e
7
- data.tar.gz: 11366141b4b5b585e77e74b85a4307341cb78cb4c2baaa4cc3d42c7bd51ab81d0ea22803cdcc0bcad0d800b3019d3743509bad9e7462f10f34e79463c2bbd959
6
+ metadata.gz: 5f49c0f0de93238553f8e4b0fb09836c5872bc32b494bcfa15f2e904e7fe05940858e165428ede65c690b8bfed56d4a447f586c4ae36c647f85381b221db3757
7
+ data.tar.gz: daa821c730e84dcfb8283dc918af0c6e32e8dfbf7ea9d464667e350559ff5ca11cbf72b0b30eb25aefb4811806a23b999709097acae6098429b44f794c467aa1
data/.gitignore CHANGED
@@ -8,6 +8,8 @@
8
8
  /tmp/
9
9
 
10
10
  .byebug_history
11
+ .ruby-version
11
12
  *.gem
12
13
 
13
14
  .idea
15
+
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## unreleased
2
2
 
3
+ ## 2.9.0.beta3 - 2023-01-17
4
+
5
+ ## Changed
6
+
7
+ - internal: Change request payloads to `application/json` content type [https://github.com/clerkinc/clerk-sdk-ruby/pull/29]
8
+
3
9
  ## 2.9.0.beta2 - 2023-01-05
4
10
 
5
11
  - feat: Support setting the secret key (previously called Backend API key) using
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- clerk-sdk-ruby (2.8.0)
4
+ clerk-sdk-ruby (2.9.0.beta3)
5
5
  concurrent-ruby (~> 1.1)
6
6
  faraday (~> 1.4.1)
7
7
  jwt (~> 2.5)
@@ -24,8 +24,8 @@ GEM
24
24
  faraday-excon (1.1.0)
25
25
  faraday-net_http (1.0.1)
26
26
  faraday-net_http_persistent (1.2.0)
27
- jwt (2.5.0)
28
- minitest (5.16.3)
27
+ jwt (2.6.0)
28
+ minitest (5.17.0)
29
29
  multipart-post (2.2.3)
30
30
  rake (13.0.6)
31
31
  ruby2_keywords (0.0.5)
@@ -7,7 +7,7 @@ module Clerk
7
7
  end
8
8
 
9
9
  def update(changes = {})
10
- @client.request(:patch, @resource_path, body:changes)
10
+ @client.request(:patch, @resource_path, body: changes)
11
11
  end
12
12
  end
13
13
  end
data/lib/clerk/sdk.rb CHANGED
@@ -74,12 +74,14 @@ module Clerk
74
74
  end
75
75
  when :post
76
76
  @conn.post(path, body) do |req|
77
- req.body = body
77
+ req.body = body.to_json
78
+ req.headers[:content_type] = "application/json"
78
79
  req.options.timeout = timeout if timeout
79
80
  end
80
81
  when :patch
81
82
  @conn.patch(path, body) do |req|
82
- req.body = body
83
+ req.body = body.to_json
84
+ req.headers[:content_type] = "application/json"
83
85
  req.options.timeout = timeout if timeout
84
86
  end
85
87
  when :delete
data/lib/clerk/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Clerk
4
- VERSION = "2.9.0.beta2"
4
+ VERSION = "2.9.0.beta3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clerk-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.0.beta2
4
+ version: 2.9.0.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clerk
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-05 00:00:00.000000000 Z
11
+ date: 2023-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  - !ruby/object:Gem::Version
148
148
  version: 1.3.1
149
149
  requirements: []
150
- rubygems_version: 3.2.5
150
+ rubygems_version: 3.3.7
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: Clerk SDK for Ruby.