oauth2c 1.1.2 → 1.2.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: baaa6f175d0f02ae8b0f8b696db6fd47634a0c5b4500e9478d1112dd29d51a41
4
- data.tar.gz: 4850c14130f948008cbf5282b73795c8c935512a33ee5d295cfbd4182ba11418
3
+ metadata.gz: 62f1c5de2eca8f9b10a8a5a840a1511fdf971709cbb82019ee4778a9630b7ac9
4
+ data.tar.gz: 96043ef766b35cec8442d14e4ca461a7ff61783d0c792aab035be234bf62a3c9
5
5
  SHA512:
6
- metadata.gz: bffc3b992695ca8832798491fc71e51da72c29f75036540bee5edb69f77ba9b193a83904aeb1006392f90e4b422224c7aeca30b72b4d09e66eb3a4c62b6a853e
7
- data.tar.gz: 9b2a2603f3eb09202d6115b09b4a43acc3fc3a68b3f1bfbee88bcce0205780938918b79deb6e32db7cff95482b688fed7da47e77f7273182fe59d94901c972b9
6
+ metadata.gz: ee63dfe9758149d89a90322a4346c624dcd092a368d61210bfc1a56fbb3c21c34aa4bce3a90fa08306eee00098dec555f43edcd954b75ee9bf183260ca704bf4
7
+ data.tar.gz: 27f007dbfc017bf322332c31d81da64b9ca04877312e79dd4a68d47dc0b65fdaa377af0baec971fe37ce2244d26e8394a054365834038b85e5a4aa345ae31a1f
data/.circleci/config.yml CHANGED
@@ -4,12 +4,12 @@ orbs:
4
4
  gem: doximity/gem-publisher@0
5
5
 
6
6
  executors:
7
- ruby-latest:
7
+ ruby-2-7:
8
8
  resource_class: small
9
9
  docker:
10
- - image: circleci/ruby:latest
10
+ - image: cimg/ruby:2.7
11
11
  environment:
12
- BUNDLE_VERSION: "~> 1.17"
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-latest
36
+ executor: ruby-2-7
37
37
  steps:
38
38
  - checkout
39
39
  - run:
40
- name: Install Bundler specific version
40
+ name: Install Dependencies
41
41
  command: |
42
42
  gem install bundler --version "${BUNDLE_VERSION}" --force
43
- - restore_cache:
44
- keys:
45
- - v1-bundle-{{ checksum "Gemfile.lock" }}-
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
- - persist_to_workspace:
66
- root: .
67
- paths:
68
- - vendor/bundle
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-latest
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-latest
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-latest
133
+ executor: ruby-2-7
115
134
  name: gem-build
116
135
  requires:
117
136
  - build
data/CHANGELOG.md CHANGED
@@ -4,7 +4,15 @@ 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
- ## [Unreleased]
7
+ ## [1.2.0] - 2022-09-01
8
+
9
+ ### Added
10
+ - Adds tests for ruby 3/3.1 in conjunction with 2.7
11
+ - Add regxml gem (this was removed from ruby in 3)
12
+
13
+ ### Changed
14
+ - Updates gem to support both ruby3/ruby 2.7 keyword args
15
+ - Anywhere using an access token will have to splat inside of ruby 3
8
16
 
9
17
  ## [1.1.2] - 2020-02-24
10
18
  ### Changed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oauth2c (1.1.2)
4
+ oauth2c (1.2.0)
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
- 1.17.2
88
+ 2.3.20
@@ -21,7 +21,7 @@ module OAuth2c
21
21
  { response_type: "code" }
22
22
  end
23
23
 
24
- def token_params(code:, **_)
24
+ def token_params(*args, code:, **_)
25
25
  { grant_type: "authorization_code", code: code }
26
26
  end
27
27
  end
@@ -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
@@ -29,7 +29,7 @@ module OAuth2c
29
29
  end
30
30
 
31
31
  def token
32
- ok, response = @agent.token({ **token_params, scope: @scope })
32
+ ok, response = @agent.token(**token_params, scope: @scope)
33
33
  handle_token_response(ok, response)
34
34
  end
35
35
 
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module OAuth2c
16
- VERSION = '1.1.2'.freeze
16
+ VERSION = '1.2.0'.freeze
17
17
  end
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.1.2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doximity
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-24 00:00:00.000000000 Z
11
+ date: 2022-09-01 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: '0'
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: '0'
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
@@ -224,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
238
  - !ruby/object:Gem::Version
225
239
  version: '0'
226
240
  requirements: []
227
- rubygems_version: 3.1.2
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