oauth2c 1.1.2.pre1 → 1.2.0.pre.1

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: 5c27f9c1bac2662a474c54977fb888c8019bf837fb4209946884da37d2a942b6
4
- data.tar.gz: 80580fc2a9134c9bf1a2e492438ee8c7e7bd298e1fa87a28b41c5dfdc266d4c1
3
+ metadata.gz: 61c9a1f635eaa52a6a2065c72b2e5f67205b9db64dc73528f80a155276877a51
4
+ data.tar.gz: 685d98faaf0da787bf2a4222378a3e32f3765d712e1d76597a5d0bab11b36d21
5
5
  SHA512:
6
- metadata.gz: 77f41a189a943924570e4f42f877bb40f7abc12d676f27ea2aefa9bfd76bd464f3130912544bc556760f54907d8bb5741f81890635f004448b5cfe68b4039f3e
7
- data.tar.gz: fe5388c21cc96ded8453211ed161ebb219ac12234f70f2f4533e1193ea90abc311ba7bd30df7fee3cd4334e233746533f66f7d816315589b2126b2d36db28a9d
6
+ metadata.gz: bc4518e4e75902c5e03f820f4be863bc5844b04974bbf4dff9f16c6aa4a1523e992baec72a4304c71c9732d6f8467b9e3fb286d67998384785a80141623a3c9c
7
+ data.tar.gz: d220097d09919188217d78c2a8720f28c27cf112fd85fa1a0b7e32c43d08a51bfdb073cdba41287d85fc0852334dbc3f16492b198042d5d9c1cde6a46c4ecaa7
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
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,9 +4,10 @@ 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.pre.1] - 2022-08-19
8
+ - Add support for ruby3/ruby 2.7
8
9
 
9
- ## [1.1.2.pre1] - 2020-02-06
10
+ ## [1.1.2] - 2020-02-24
10
11
  ### Changed
11
12
  - Release on RubyGems using gem-publisher CircleCI Orb
12
13
  - Build doc and make it available on CircleCI's build artifacts
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oauth2c (1.1.2.pre1)
4
+ oauth2c (1.2.0.pre.1)
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.pre1'.freeze
16
+ VERSION = '1.2.0.pre.1'.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.pre1
4
+ version: 1.2.0.pre.1
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-21 00:00:00.000000000 Z
11
+ date: 2022-08-30 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: 1.3.1
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