rack-oauth2 2.0.0.rc2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ad1e18cb28deffbbf219d716254c27f67a866513d3137faa199c39d892eaf1bb
4
- data.tar.gz: a34dc80d5570e5ab8567daf5956e7a8c6271f088bff8077f99186b6e7125d971
3
+ metadata.gz: 7ef29bbdc348bb5195d4482e65b58f450085c212d3f1b4ad0045f1196973bacd
4
+ data.tar.gz: 51cadd3c2b971bf1399aeaba0957c7acd275c2d1d6409703c8006397b888e649
5
5
  SHA512:
6
- metadata.gz: 74f1143d54005c91583d4b308013e473cc69a82bdb0737564db187bcee0d448847492426fdf91ffa09ad51515c3664451eac3f984b917fefca7c5ced0cfb7ac8
7
- data.tar.gz: f3f5f4a3addeebb7176f7d31915f92e4ca907728add59e9ceef59e1d21e4df01f6dcaf41315e85773a3ae7216e0756ff764c7eebc76cb99873964a355d48dd42
6
+ metadata.gz: a44b88e50ca6b93c4332fe87c2e9c2c35219b64c079218a28c33964f36bc0106788fb6dfaf2ec2e7028a18717c0bdbea86a6f142f94741fb8f4bcf4895a7717a
7
+ data.tar.gz: 78509ce82118c157cd5ef8b7d7be261010947f07d0220d44afd34852b7cdeb2a93eacd310cbd36491dfe63d3d395d2af36f293cb313d11c42eadd532ed8d0903
data/CHANGELOG.md ADDED
@@ -0,0 +1,18 @@
1
+ ## [Unreleased]
2
+
3
+ ## [2.0.0.rc3] - 2022-10-09
4
+
5
+ ## Changed
6
+
7
+ - make url-encoded the default https://github.com/nov/rack-oauth2/commit/98faf139be4f5bf9ec6134d31f65a298259d8a8b
8
+ - let faraday encode params https://github.com/nov/rack-oauth2/commit/f399b3afb8facb3635b8842baee8584bc4d3ce73
9
+
10
+ ## [2.0.0.rc2] - 2022-10-09
11
+
12
+ ### Added
13
+
14
+ - start recording CHANGELOG
15
+
16
+ ### Changed
17
+
18
+ - Switch from httpclient to faraday v2 https://github.com/nov/rack-oauth2/pull/91
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0.rc2
1
+ 2.0.0
@@ -74,11 +74,7 @@ module Rack
74
74
  params.merge! @grant.as_json
75
75
  params.merge! options
76
76
  handle_response do
77
- http_client.post(
78
- absolute_uri_for(token_endpoint),
79
- Util.compact_hash(params).to_query,
80
- headers
81
- )
77
+ http_client.post(absolute_uri_for(token_endpoint), Util.compact_hash(params), headers)
82
78
  end
83
79
  end
84
80
 
data/lib/rack/oauth2.rb CHANGED
@@ -42,6 +42,8 @@ module Rack
42
42
 
43
43
  def self.http_client(agent_name = "Rack::OAuth2 (#{VERSION})", &local_http_config)
44
44
  Faraday.new(headers: {user_agent: agent_name}) do |faraday|
45
+ faraday.request :url_encoded
46
+ faraday.request :json
45
47
  faraday.response :logger, Rack::OAuth2.logger if debugging?
46
48
  faraday.adapter Faraday.default_adapter
47
49
  local_http_config&.call(faraday)
@@ -56,7 +58,6 @@ module Rack
56
58
  def self.reset_http_config!
57
59
  @@http_config = nil
58
60
  end
59
-
60
61
  end
61
62
  end
62
63
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc2
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake
@@ -191,6 +191,7 @@ files:
191
191
  - ".github/workflows/spec.yml"
192
192
  - ".gitignore"
193
193
  - ".rspec"
194
+ - CHANGELOG.md
194
195
  - Gemfile
195
196
  - LICENSE
196
197
  - README.rdoc
@@ -309,9 +310,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
309
310
  version: '0'
310
311
  required_rubygems_version: !ruby/object:Gem::Requirement
311
312
  requirements:
312
- - - ">"
313
+ - - ">="
313
314
  - !ruby/object:Gem::Version
314
- version: 1.3.1
315
+ version: '0'
315
316
  requirements: []
316
317
  rubygems_version: 3.3.7
317
318
  signing_key: