oauth2c 1.1.2 → 1.2.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +47 -28
- data/CHANGELOG.md +2 -1
- data/Gemfile.lock +5 -3
- data/lib/oauth2c/grants/authorization_code.rb +1 -1
- data/lib/oauth2c/three_legged.rb +1 -1
- data/lib/oauth2c/version.rb +1 -1
- data/oauth2c.gemspec +2 -1
- metadata +23 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37894399e3c3c2e3ad75f4fbd57d8ccb63375d9c83630e19cc590046bb34170c
|
4
|
+
data.tar.gz: 0e98320878f501b2eaef231ae14c8300906b76c189ecc010e0c16a9b42ed99ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7773aebcb978c0f949744c98e4826f8d31f992a3dcf5f9f0087cc4aa3877666fd0dbc335aed5836a0a4bb8cb5a01769216d46d4045c859e4f97239e3e1083691
|
7
|
+
data.tar.gz: 8152904ebe65f3869cc74549632629e7813c53008a92b10f47979741b8866697d5963547351c7b05536fbf5a6624cb404b097e662becadaec597fd4d05151396
|
data/.circleci/config.yml
CHANGED
@@ -4,12 +4,12 @@ orbs:
|
|
4
4
|
gem: doximity/gem-publisher@0
|
5
5
|
|
6
6
|
executors:
|
7
|
-
ruby-
|
7
|
+
ruby-2-7:
|
8
8
|
resource_class: small
|
9
9
|
docker:
|
10
|
-
- image:
|
10
|
+
- image: cimg/ruby:2.7
|
11
11
|
environment:
|
12
|
-
BUNDLE_VERSION: "~>
|
12
|
+
BUNDLE_VERSION: "~> 2.3"
|
13
13
|
|
14
14
|
# yaml anchor filters
|
15
15
|
master_only: &master_only
|
@@ -33,39 +33,50 @@ version_tags_only: &version_tags_only
|
|
33
33
|
|
34
34
|
jobs:
|
35
35
|
build:
|
36
|
-
executor: ruby-
|
36
|
+
executor: ruby-2-7
|
37
37
|
steps:
|
38
38
|
- checkout
|
39
39
|
- run:
|
40
|
-
name: Install
|
40
|
+
name: Install Dependencies
|
41
41
|
command: |
|
42
42
|
gem install bundler --version "${BUNDLE_VERSION}" --force
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
- run:
|
47
|
-
name: Install Ruby Dependencies
|
48
|
-
command: bundle check --path=vendor/bundle || bundle install --local --frozen --path=vendor/bundle --jobs=4 --retry=3 && bundle clean
|
49
|
-
- save_cache:
|
50
|
-
key: v1-bundle-{{ checksum "Gemfile.lock" }}-
|
51
|
-
paths:
|
52
|
-
- vendor/bundle
|
53
|
-
- run:
|
54
|
-
name: Run Tests
|
55
|
-
command: bundle exec rake ci:specs
|
56
|
-
- store_test_results:
|
57
|
-
name: Store test results
|
58
|
-
path: tmp/test-results
|
43
|
+
bundle config set --local jobs '4'
|
44
|
+
bundle config set --local retry '3'
|
45
|
+
bundle install --local
|
59
46
|
- run:
|
60
47
|
name: Build documentation
|
61
48
|
command: bundle exec rake ci:doc
|
62
49
|
- store_artifacts:
|
63
50
|
name: Saves documentation
|
64
51
|
path: doc
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
52
|
+
|
53
|
+
future_version_multivariant:
|
54
|
+
parameters:
|
55
|
+
ruby-version:
|
56
|
+
type: string
|
57
|
+
resource_class: small
|
58
|
+
description: "Rb << parameters.ruby-version >>"
|
59
|
+
docker:
|
60
|
+
- image: cimg/ruby:<< parameters.ruby-version >>
|
61
|
+
environment:
|
62
|
+
BUNDLE_VERSION: "2.3.17"
|
63
|
+
steps:
|
64
|
+
- checkout
|
65
|
+
- run:
|
66
|
+
name: Configure Bundler
|
67
|
+
command: |
|
68
|
+
gem install bundler --version "${BUNDLE_VERSION}" --force
|
69
|
+
bundle config set --local jobs '4'
|
70
|
+
bundle config set --local retry '3'
|
71
|
+
- run:
|
72
|
+
name: Local Bundle Install
|
73
|
+
command: bundle install --local
|
74
|
+
- run:
|
75
|
+
name: Run Tests
|
76
|
+
command: ruby -v && bundle exec rake ci:specs
|
77
|
+
- store_test_results:
|
78
|
+
name: Store test results
|
79
|
+
path: tmp/test-results
|
69
80
|
|
70
81
|
workflows:
|
71
82
|
version: 2
|
@@ -76,20 +87,28 @@ workflows:
|
|
76
87
|
<<: *master_only
|
77
88
|
- gem/build:
|
78
89
|
<<: *master_only
|
79
|
-
executor: ruby-
|
90
|
+
executor: ruby-2-7
|
80
91
|
name: gem-build
|
81
92
|
requires:
|
82
93
|
- build
|
83
94
|
|
84
95
|
pull-requests:
|
85
96
|
jobs:
|
97
|
+
- future_version_multivariant:
|
98
|
+
<<: *pr_only
|
99
|
+
name: "Rb << matrix.ruby-version >>"
|
100
|
+
context: nexus_readonly
|
101
|
+
matrix:
|
102
|
+
parameters:
|
103
|
+
ruby-version: [ "2.7.6", "3.0.3", "3.1.2" ]
|
86
104
|
- build:
|
87
105
|
<<: *pr_only
|
88
106
|
- gem/build:
|
89
107
|
<<: *pr_only
|
90
|
-
executor: ruby-
|
108
|
+
executor: ruby-2-7
|
91
109
|
name: gem-build
|
92
110
|
requires:
|
111
|
+
- future_version_multivariant
|
93
112
|
- build
|
94
113
|
- pre-release-approval:
|
95
114
|
<<: *pr_only
|
@@ -111,7 +130,7 @@ workflows:
|
|
111
130
|
<<: *version_tags_only
|
112
131
|
- gem/build:
|
113
132
|
<<: *version_tags_only
|
114
|
-
executor: ruby-
|
133
|
+
executor: ruby-2-7
|
115
134
|
name: gem-build
|
116
135
|
requires:
|
117
136
|
- build
|
data/CHANGELOG.md
CHANGED
@@ -4,7 +4,8 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
-
## [
|
7
|
+
## [1.2.0.pre] - 2022-08-19
|
8
|
+
- Add support for ruby3/ruby 2.7
|
8
9
|
|
9
10
|
## [1.1.2] - 2020-02-24
|
10
11
|
### Changed
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
oauth2c (1.
|
4
|
+
oauth2c (1.2.0.pre)
|
5
5
|
http (~> 4)
|
6
6
|
jwt (~> 1.5)
|
7
7
|
|
@@ -41,6 +41,7 @@ GEM
|
|
41
41
|
rake (13.0.1)
|
42
42
|
rdoc (6.2.1)
|
43
43
|
redis (4.1.3)
|
44
|
+
rexml (3.2.5)
|
44
45
|
rspec (3.9.0)
|
45
46
|
rspec-core (~> 3.9.0)
|
46
47
|
rspec-expectations (~> 3.9.0)
|
@@ -71,16 +72,17 @@ PLATFORMS
|
|
71
72
|
ruby
|
72
73
|
|
73
74
|
DEPENDENCIES
|
74
|
-
bundler
|
75
|
+
bundler (~> 2.3)
|
75
76
|
byebug
|
76
77
|
oauth2c!
|
77
78
|
pry
|
78
79
|
rake
|
79
80
|
redis
|
81
|
+
rexml
|
80
82
|
rspec
|
81
83
|
rspec_junit_formatter
|
82
84
|
sdoc
|
83
85
|
webmock
|
84
86
|
|
85
87
|
BUNDLED WITH
|
86
|
-
|
88
|
+
2.3.20
|
data/lib/oauth2c/three_legged.rb
CHANGED
@@ -56,7 +56,7 @@ module OAuth2c
|
|
56
56
|
if block_given?
|
57
57
|
yield(query_params, fragment_params)
|
58
58
|
else
|
59
|
-
ok, response = @agent.token(include_redirect_uri: true, **token_params(query_params))
|
59
|
+
ok, response = @agent.token(include_redirect_uri: true, **token_params(**query_params))
|
60
60
|
handle_token_response(ok, response)
|
61
61
|
end
|
62
62
|
end
|
data/lib/oauth2c/version.rb
CHANGED
data/oauth2c.gemspec
CHANGED
@@ -41,7 +41,7 @@ Gem::Specification.new do |spec|
|
|
41
41
|
spec.add_runtime_dependency "http", "~> 4"
|
42
42
|
spec.add_runtime_dependency "jwt", "~> 1.5"
|
43
43
|
|
44
|
-
spec.add_development_dependency "bundler"
|
44
|
+
spec.add_development_dependency "bundler", "~> 2.3"
|
45
45
|
spec.add_development_dependency "byebug"
|
46
46
|
spec.add_development_dependency "pry"
|
47
47
|
spec.add_development_dependency "rake"
|
@@ -50,4 +50,5 @@ Gem::Specification.new do |spec|
|
|
50
50
|
spec.add_development_dependency "rspec_junit_formatter"
|
51
51
|
spec.add_development_dependency "sdoc"
|
52
52
|
spec.add_development_dependency "webmock"
|
53
|
+
spec.add_development_dependency "rexml"
|
53
54
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oauth2c
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Doximity
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '2.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '2.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: byebug
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,6 +164,20 @@ dependencies:
|
|
164
164
|
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rexml
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
167
181
|
description: OAuth2c is a extensible OAuth2 client implementation
|
168
182
|
email:
|
169
183
|
- engineering@doximity.com
|
@@ -220,11 +234,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
220
234
|
version: 2.3.0
|
221
235
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
222
236
|
requirements:
|
223
|
-
- - "
|
237
|
+
- - ">"
|
224
238
|
- !ruby/object:Gem::Version
|
225
|
-
version:
|
239
|
+
version: 1.3.1
|
226
240
|
requirements: []
|
227
|
-
rubygems_version: 3.
|
241
|
+
rubygems_version: 3.3.11
|
228
242
|
signing_key:
|
229
243
|
specification_version: 4
|
230
244
|
summary: OAuth2c is a extensible OAuth2 client implementation
|