oauth2c 1.1.1 → 1.1.2.pre1

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: 119083bad261124505a0b2bc3625c95b3ebc33cbc8551a881f3ce851080a868e
4
- data.tar.gz: aad20285a99bcd72ac24f48bcdae7489fb6b999707ca8758faa8a2a4c5fa96bc
3
+ metadata.gz: 5c27f9c1bac2662a474c54977fb888c8019bf837fb4209946884da37d2a942b6
4
+ data.tar.gz: 80580fc2a9134c9bf1a2e492438ee8c7e7bd298e1fa87a28b41c5dfdc266d4c1
5
5
  SHA512:
6
- metadata.gz: e5c1c87d0ede559cfec78667e1642195a273a31f7875759a372ea3a9118966eb684ec14df0a47e3f1cad77e5a40b0d3133d499baa1e51d4997ad0777590f0a01
7
- data.tar.gz: 0ebd17c7870a31f910e7ad653d47c7a8845398bd15f848dd319060697f780ddf8d66e97cabf3077474f814fbbeb910c5a3e25b400df9db0c79dde474400aaf7e
6
+ metadata.gz: 77f41a189a943924570e4f42f877bb40f7abc12d676f27ea2aefa9bfd76bd464f3130912544bc556760f54907d8bb5741f81890635f004448b5cfe68b4039f3e
7
+ data.tar.gz: fe5388c21cc96ded8453211ed161ebb219ac12234f70f2f4533e1193ea90abc311ba7bd30df7fee3cd4334e233746533f66f7d816315589b2126b2d36db28a9d
@@ -0,0 +1,125 @@
1
+ version: 2.1
2
+
3
+ orbs:
4
+ gem: doximity/gem-publisher@0
5
+
6
+ executors:
7
+ ruby-latest:
8
+ resource_class: small
9
+ docker:
10
+ - image: circleci/ruby:latest
11
+ environment:
12
+ BUNDLE_VERSION: "~> 1.17"
13
+
14
+ # yaml anchor filters
15
+ master_only: &master_only
16
+ filters:
17
+ branches:
18
+ only: master
19
+ tags:
20
+ ignore: /.*/
21
+ pr_only: &pr_only
22
+ filters:
23
+ branches:
24
+ ignore: master
25
+ tags:
26
+ ignore: /.*/
27
+ version_tags_only: &version_tags_only
28
+ filters:
29
+ branches:
30
+ ignore: /.*/
31
+ tags:
32
+ only: /^v.*/
33
+
34
+ jobs:
35
+ build:
36
+ executor: ruby-latest
37
+ steps:
38
+ - checkout
39
+ - run:
40
+ name: Install Bundler specific version
41
+ command: |
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
59
+ - run:
60
+ name: Build documentation
61
+ command: bundle exec rake ci:doc
62
+ - store_artifacts:
63
+ name: Saves documentation
64
+ path: doc
65
+ - persist_to_workspace:
66
+ root: .
67
+ paths:
68
+ - vendor/bundle
69
+
70
+ workflows:
71
+ version: 2
72
+
73
+ trunk:
74
+ jobs:
75
+ - build:
76
+ <<: *master_only
77
+ - gem/build:
78
+ <<: *master_only
79
+ executor: ruby-latest
80
+ name: gem-build
81
+ requires:
82
+ - build
83
+
84
+ pull-requests:
85
+ jobs:
86
+ - build:
87
+ <<: *pr_only
88
+ - gem/build:
89
+ <<: *pr_only
90
+ executor: ruby-latest
91
+ name: gem-build
92
+ requires:
93
+ - build
94
+ - pre-release-approval:
95
+ <<: *pr_only
96
+ type: approval
97
+ requires:
98
+ - gem-build
99
+ - gem/publish:
100
+ <<: *pr_only
101
+ name: gem-publish
102
+ to_rubygems: true
103
+ pre_release: true
104
+ requires:
105
+ - pre-release-approval
106
+ context: artifact_publishing
107
+
108
+ final-release:
109
+ jobs:
110
+ - build:
111
+ <<: *version_tags_only
112
+ - gem/build:
113
+ <<: *version_tags_only
114
+ executor: ruby-latest
115
+ name: gem-build
116
+ requires:
117
+ - build
118
+ - gem/publish:
119
+ <<: *version_tags_only
120
+ name: gem-publish
121
+ to_rubygems: true
122
+ pre_release: false
123
+ requires:
124
+ - gem-build
125
+ context: artifact_publishing
data/.gitignore CHANGED
@@ -1,12 +1,12 @@
1
+ .rspec_status
2
+ /*.gem
1
3
  /.bundle/
4
+ /.ruby-version
2
5
  /.yardoc
3
- /Gemfile.lock
4
6
  /_yardoc/
5
7
  /coverage/
6
8
  /doc/
7
9
  /pkg/
8
10
  /spec/reports/
9
11
  /tmp/
10
-
11
- # rspec failure tracking
12
- .rspec_status
12
+ /vendor/bundle/
data/CHANGELOG.md CHANGED
@@ -1,37 +1,55 @@
1
- ## 1.1.1 01/16/2020
2
- * Removed doximity references from code
3
-
4
- ## 1.1.0 - 12/16/2019
5
- * Set User-Agent header on agent requests
6
-
7
- ## 1.0.0 - 01/28/2019
8
- * Allow newer http gem dependency (#3)
9
- * Drop support for Ruby 2.2 and earlier
10
-
11
- ## 0.3.0 - 09/21/2017
12
- * Allow doing auth over body params, instead of basic auth (header) (#1)
13
-
14
- ## 0.2.1 - 04/18/2017
15
- * Fix issue JWT with nbf claim one second in the past
16
-
17
- ## 0.2.0 - 04/14/2017
18
- * Update README with list of cache backends
19
- * Fix manager delegate for client attrs
20
- * Add support for default_scope
21
- * Fix manager call to cache layer
22
- * Don't cache with nil key
23
- * Fix RefreshToken and ResourceOwnerCredentials initializer
24
- * Only cache token when key is not nil
25
- * Return nil from cached, not false
26
- * Add exp leeway to cache expiration
27
- * Dynamically define methods for OAuth2c::Client
28
- * Define respond_to_missing? for OAuth2::Cache::Manager
29
- * Allow three legged token method to receive hash with params
30
- * Allow expires_at to be set on access token
31
- * Add expired? with leeway support to AccessToken
32
- * Define comparison operator for AccessToken to return false for other class
33
- * Properly convert time for access token to handle serialization
34
-
35
-
36
- ## 0.1.0 - 03/10/2017
37
- * Initial release
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [1.1.2.pre1] - 2020-02-06
10
+ ### Changed
11
+ - Release on RubyGems using gem-publisher CircleCI Orb
12
+ - Build doc and make it available on CircleCI's build artifacts
13
+ - Packing gems
14
+
15
+ ## [1.1.1] 2020-01-16
16
+ ### Changed
17
+ - Removed doximity references from code
18
+
19
+ ## [1.1.0] - 2019-12-16
20
+ ### Added
21
+ - Set User-Agent header on agent requests
22
+
23
+ ## [1.0.0] - 2019-01-28
24
+ ### Changed
25
+ - Allow newer http gem dependency (#3)
26
+ - Drop support for Ruby 2.2 and earlier
27
+
28
+ ## [0.3.0] - 2017-09-21
29
+ ### Changed
30
+ - Allow doing auth over body params, instead of basic auth (header) (#1)
31
+
32
+ ## [0.2.1] - 2017-04-18
33
+ ### Changed
34
+ - Fix issue JWT with nbf claim one second in the past
35
+
36
+ ## [0.2.0] - 2017-04-14
37
+ - Update README with list of cache backends
38
+ - Fix manager delegate for client attrs
39
+ - Add support for default_scope
40
+ - Fix manager call to cache layer
41
+ - Don't cache with nil key
42
+ - Fix RefreshToken and ResourceOwnerCredentials initializer
43
+ - Only cache token when key is not nil
44
+ - Return nil from cached, not false
45
+ - Add exp leeway to cache expiration
46
+ - Dynamically define methods for OAuth2c::Client
47
+ - Define respond_to_missing? for OAuth2::Cache::Manager
48
+ - Allow three legged token method to receive hash with params
49
+ - Allow expires_at to be set on access token
50
+ - Add expired? with leeway support to AccessToken
51
+ - Define comparison operator for AccessToken to return false for other class
52
+ - Properly convert time for access token to handle serialization
53
+
54
+ ## [0.1.0] - 2017-03-10
55
+ - Initial release
data/Gemfile.lock ADDED
@@ -0,0 +1,86 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ oauth2c (1.1.2.pre1)
5
+ http (~> 4)
6
+ jwt (~> 1.5)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ addressable (2.7.0)
12
+ public_suffix (>= 2.0.2, < 5.0)
13
+ byebug (11.1.1)
14
+ coderay (1.1.2)
15
+ crack (0.4.3)
16
+ safe_yaml (~> 1.0.0)
17
+ diff-lcs (1.3)
18
+ domain_name (0.5.20190701)
19
+ unf (>= 0.0.5, < 1.0.0)
20
+ ffi (1.12.2)
21
+ ffi-compiler (1.0.1)
22
+ ffi (>= 1.0.0)
23
+ rake
24
+ hashdiff (1.0.0)
25
+ http (4.3.0)
26
+ addressable (~> 2.3)
27
+ http-cookie (~> 1.0)
28
+ http-form_data (~> 2.2)
29
+ http-parser (~> 1.2.0)
30
+ http-cookie (1.0.3)
31
+ domain_name (~> 0.5)
32
+ http-form_data (2.2.0)
33
+ http-parser (1.2.1)
34
+ ffi-compiler (>= 1.0, < 2.0)
35
+ jwt (1.5.6)
36
+ method_source (0.9.2)
37
+ pry (0.12.2)
38
+ coderay (~> 1.1.0)
39
+ method_source (~> 0.9.0)
40
+ public_suffix (4.0.3)
41
+ rake (13.0.1)
42
+ rdoc (6.2.1)
43
+ redis (4.1.3)
44
+ rspec (3.9.0)
45
+ rspec-core (~> 3.9.0)
46
+ rspec-expectations (~> 3.9.0)
47
+ rspec-mocks (~> 3.9.0)
48
+ rspec-core (3.9.1)
49
+ rspec-support (~> 3.9.1)
50
+ rspec-expectations (3.9.0)
51
+ diff-lcs (>= 1.2.0, < 2.0)
52
+ rspec-support (~> 3.9.0)
53
+ rspec-mocks (3.9.1)
54
+ diff-lcs (>= 1.2.0, < 2.0)
55
+ rspec-support (~> 3.9.0)
56
+ rspec-support (3.9.2)
57
+ rspec_junit_formatter (0.4.1)
58
+ rspec-core (>= 2, < 4, != 2.12.0)
59
+ safe_yaml (1.0.5)
60
+ sdoc (1.0.0)
61
+ rdoc (>= 5.0)
62
+ unf (0.1.4)
63
+ unf_ext
64
+ unf_ext (0.0.7.6)
65
+ webmock (3.8.2)
66
+ addressable (>= 2.3.6)
67
+ crack (>= 0.3.2)
68
+ hashdiff (>= 0.4.0, < 2.0.0)
69
+
70
+ PLATFORMS
71
+ ruby
72
+
73
+ DEPENDENCIES
74
+ bundler
75
+ byebug
76
+ oauth2c!
77
+ pry
78
+ rake
79
+ redis
80
+ rspec
81
+ rspec_junit_formatter
82
+ sdoc
83
+ webmock
84
+
85
+ BUNDLED WITH
86
+ 1.17.2
data/Rakefile CHANGED
@@ -1,6 +1,9 @@
1
- require "bundler/gem_tasks"
1
+ # frozen_string_literal: true
2
+
2
3
  require "rspec/core/rake_task"
3
4
 
5
+ FileList["tasks/*.rake"].each { |task| load task }
6
+
4
7
  RSpec::Core::RakeTask.new(:spec)
5
8
 
6
- task :default => :spec
9
+ task default: :spec
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module OAuth2c
16
- VERSION = '1.1.1'.freeze
16
+ VERSION = '1.1.2.pre1'.freeze
17
17
  end
data/oauth2c.gemspec CHANGED
@@ -28,19 +28,10 @@ Gem::Specification.new do |spec|
28
28
  spec.description = %q{OAuth2c is a extensible OAuth2 client implementation}
29
29
  spec.homepage = "https://github.com/doximity/oauth2c"
30
30
 
31
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
32
- # to allow pushing to a single host or delete this section to allow pushing to any host.
33
- # if spec.respond_to?(:metadata)
34
- # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
35
- # else
36
- # raise "RubyGems 2.0 or newer is required to protect against " \
37
- # "public gem pushes."
38
- # end
39
-
40
31
  spec.required_ruby_version = ">= 2.3.0"
41
32
 
42
33
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
43
- f.match(%r{^(test|spec|features)/})
34
+ f.match(%r{^(bin|test|spec|features|vendor|tasks|tmp)/})
44
35
  end
45
36
 
46
37
  spec.bindir = "exe"
@@ -51,10 +42,12 @@ Gem::Specification.new do |spec|
51
42
  spec.add_runtime_dependency "jwt", "~> 1.5"
52
43
 
53
44
  spec.add_development_dependency "bundler"
54
- spec.add_development_dependency "pry"
55
45
  spec.add_development_dependency "byebug"
46
+ spec.add_development_dependency "pry"
56
47
  spec.add_development_dependency "rake"
57
48
  spec.add_development_dependency "redis"
58
49
  spec.add_development_dependency "rspec"
50
+ spec.add_development_dependency "rspec_junit_formatter"
51
+ spec.add_development_dependency "sdoc"
59
52
  spec.add_development_dependency "webmock"
60
53
  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.1
4
+ version: 1.1.2.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doximity
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-21 00:00:00.000000000 Z
11
+ date: 2020-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: pry
56
+ name: byebug
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: byebug
70
+ name: pry
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -122,6 +122,34 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rspec_junit_formatter
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: sdoc
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
125
153
  - !ruby/object:Gem::Dependency
126
154
  name: webmock
127
155
  requirement: !ruby/object:Gem::Requirement
@@ -143,18 +171,17 @@ executables: []
143
171
  extensions: []
144
172
  extra_rdoc_files: []
145
173
  files:
174
+ - ".circleci/config.yml"
146
175
  - ".gitignore"
147
176
  - ".rspec"
148
177
  - ".travis.yml"
149
178
  - CHANGELOG.md
150
179
  - CODE_OF_CONDUCT.md
151
180
  - Gemfile
181
+ - Gemfile.lock
152
182
  - LICENSE.txt
153
183
  - README.md
154
184
  - Rakefile
155
- - bin/console
156
- - bin/rspec
157
- - bin/setup
158
185
  - lib/oauth2c.rb
159
186
  - lib/oauth2c/access_token.rb
160
187
  - lib/oauth2c/agent.rb
@@ -193,12 +220,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
193
220
  version: 2.3.0
194
221
  required_rubygems_version: !ruby/object:Gem::Requirement
195
222
  requirements:
196
- - - ">="
223
+ - - ">"
197
224
  - !ruby/object:Gem::Version
198
- version: '0'
225
+ version: 1.3.1
199
226
  requirements: []
200
- rubyforge_project:
201
- rubygems_version: 2.7.6
227
+ rubygems_version: 3.1.2
202
228
  signing_key:
203
229
  specification_version: 4
204
230
  summary: OAuth2c is a extensible OAuth2 client implementation
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "oauth2c"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- require "pry"
11
- Pry.start
12
-
13
- # require "irb"
14
- # IRB.start(__FILE__)
data/bin/rspec DELETED
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
- #
4
- # This file was generated by Bundler.
5
- #
6
- # The application 'rspec' is installed as part of a gem, and
7
- # this file is here to facilitate running it.
8
- #
9
-
10
- require "pathname"
11
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
- Pathname.new(__FILE__).realpath)
13
-
14
- require "rubygems"
15
- require "bundler/setup"
16
-
17
- load Gem.bin_path("rspec-core", "rspec")
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here