clerk-sdk-ruby 2.9.0.beta2 → 2.9.0

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: cbaa98cd305b04c0b904e1a2c86d3443f366aa9dba7f71c5c0a0bc7696da3934
4
+ data.tar.gz: da3b5c3910d7d04453ce910a1e56a5d3057e7b6971aa9e25944e45ac4552d99f
5
5
  SHA512:
6
- metadata.gz: be34080066812d608ac7a05dbb7b0591922213075bfc33cfc02ab995a51861d061610704c4fdec32ba86b18739dc5cde9ab08d510b958697dea151e343e96b8e
7
- data.tar.gz: 11366141b4b5b585e77e74b85a4307341cb78cb4c2baaa4cc3d42c7bd51ab81d0ea22803cdcc0bcad0d800b3019d3743509bad9e7462f10f34e79463c2bbd959
6
+ metadata.gz: bbede149e1d228a36ca7bcc38dee963498364f770c1facda036b14a183ef7abd0281b627399db911b44c73d22247969845b53db23808c0631628b550a630a69d
7
+ data.tar.gz: 5b4156f656adf0db7b92a718fd171b6d6b861624df5f9f1b56dd0b6c25ed8b2b18a4af73bb771e79c1ae22420a06beaa486941549757a4a3a858f527f17a421b
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,15 @@
1
1
  ## unreleased
2
2
 
3
+ ## 2.9.0
4
+
5
+ Identical to 2.9.0.beta3
6
+
7
+ ## 2.9.0.beta3 - 2023-01-17
8
+
9
+ ## Changed
10
+
11
+ - internal: Change request payloads to `application/json` content type [https://github.com/clerkinc/clerk-sdk-ruby/pull/29]
12
+
3
13
  ## 2.9.0.beta2 - 2023-01-05
4
14
 
5
15
  - 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"
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
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-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -143,11 +143,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
143
  version: 2.4.0
144
144
  required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  requirements:
146
- - - ">"
146
+ - - ">="
147
147
  - !ruby/object:Gem::Version
148
- version: 1.3.1
148
+ version: '0'
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.