auth0 5.8.0 → 5.8.1

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: a86bd11253ba07c2bf5d7440e773dbffca4e9c36a606722934aa4e3d649a6461
4
- data.tar.gz: 752e1e0239f3c0282922b7c93c36d79ad903c0f2c0ba98731b84c43a4ac028a5
3
+ metadata.gz: e54c493b04d5d9dcae2e7f60a12a209f772b032bbc2b301d02653fb47562df76
4
+ data.tar.gz: f1c6e009ac351743fea12e8d75c95eb0998fadf0b8bdabf27def1d8f930a5a57
5
5
  SHA512:
6
- metadata.gz: bc9f15b05b0414d83adfa88ada8e815b9d0b50782fdf68c0d8f8ade75da731ab5e564b5a2af0d122cb026ed7443c68769b76bb70fe57585e8c559356a6bcda6b
7
- data.tar.gz: 41893dfa7b2f9223a1e54be8f981512402e51755a0e1ed38f8cd8005f53c6305ac9caf6009b984cbea2c5bff8bc4ffbbc51bb17ce6a399c78016ffc164cc186d
6
+ metadata.gz: 0aa658cbecc69ea43c1016287ebff0e3c5fe048f1ddde87580548a4ae475198e1a8637479007e4e5340d101d2b69a949dd6bccdf5065b10c3cad1f76459d575c
7
+ data.tar.gz: a27dc61f747d7e777b45bbb707724eb58e7a73317403dab70b6eb590d8661cb14a05a7a1761d510fd8b6d41596845689c07abb98d71ba8be853b648c10bfb5f3
data/.circleci/config.yml CHANGED
@@ -1,4 +1,6 @@
1
1
  version: 2.1
2
+ orbs:
3
+ ship: auth0/ship@0.4.0
2
4
 
3
5
  matrix_ruby_versions: &matrix_ruby_versions
4
6
  matrix:
@@ -14,7 +16,7 @@ executors:
14
16
  type: string
15
17
  default: *default_ruby_version
16
18
  docker:
17
- - image: circleci/ruby:<< parameters.ruby_version >>
19
+ - image: cimg/ruby:<< parameters.ruby_version >>
18
20
 
19
21
  jobs:
20
22
  run-tests:
@@ -27,6 +29,7 @@ jobs:
27
29
  ruby_version: << parameters.ruby_version >>
28
30
  steps:
29
31
  - checkout
32
+ - run: gem install bundler:1.17.2
30
33
  - run: rm Gemfile.lock
31
34
  - restore_cache:
32
35
  key: gems-v2-{{ checksum "Gemfile.lock" }}
@@ -43,3 +46,13 @@ workflows:
43
46
  jobs:
44
47
  - run-tests:
45
48
  <<: *matrix_ruby_versions
49
+ - ship/ruby-publish:
50
+ context:
51
+ - publish-rubygems
52
+ - publish-gh
53
+ filters:
54
+ branches:
55
+ only:
56
+ - master
57
+ requires:
58
+ - run-tests
@@ -0,0 +1,10 @@
1
+ version: 2
2
+ updates:
3
+
4
+ - package-ecosystem: "bundler"
5
+ directory: "/"
6
+ schedule:
7
+ interval: "daily"
8
+ ignore:
9
+ - dependency-name: "*"
10
+ update-types: ["version-update:semver-major"]
@@ -0,0 +1,28 @@
1
+ name: Semgrep
2
+
3
+ on:
4
+ pull_request: {}
5
+
6
+ push:
7
+ branches:
8
+ - master
9
+ - main
10
+
11
+ schedule:
12
+ - cron: '0 * * * *'
13
+
14
+ jobs:
15
+ semgrep:
16
+ name: Scan
17
+ runs-on: ubuntu-latest
18
+ container:
19
+ image: returntocorp/semgrep
20
+ if: (github.repository_owner == 'auth0')
21
+
22
+ steps:
23
+ - uses: actions/checkout@v3
24
+
25
+ - if: github.event.pull_request.draft == false && github.actor != 'dependabot[bot]'
26
+ run: semgrep ci
27
+ env:
28
+ SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
data/CHANGELOG.md CHANGED
@@ -1,25 +1,44 @@
1
1
  # Change Log
2
2
 
3
+ ## [v5.8.1](https://github.com/auth0/ruby-auth0/tree/v5.8.1) (2022-06-30)
4
+
5
+ [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v5.8.0...v5.8.1)
6
+
7
+ **Fixed**
8
+
9
+ - FIX: delete_organizations_members does not send `members` in body [\#345](https://github.com/auth0/ruby-auth0/pull/345) ([T-800](https://github.com/T-800))
10
+
11
+ **Security**
12
+
13
+ - Security: Update dependencies lockfile [\#348](https://github.com/auth0/ruby-auth0/pull/348) ([evansims](https://github.com/evansims))
14
+
3
15
  ## [v5.8.0](https://github.com/auth0/ruby-auth0/tree/v5.8.0) (2022-03-25)
16
+
4
17
  [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v5.7.0...v5.8.0)
5
18
 
6
19
  **Added**
20
+
7
21
  - Add parameters for pager to device_credentials method [\#318](https://github.com/auth0/ruby-auth0/pull/318) ([shibayu36](https://github.com/shibayu36))
8
22
 
9
23
  **Fixed**
24
+
10
25
  - Cache RS256 JWKS by url to allow for multiple Auth0 tenants per runtime [\#325](https://github.com/auth0/ruby-auth0/pull/325) ([rmm5t](https://github.com/rmm5t))
11
26
  - Allow to pass nil to client_id arg of device_credentials [\#321](https://github.com/auth0/ruby-auth0/pull/321) ([shibayu36](https://github.com/shibayu36))
12
27
 
13
28
  **Security**
29
+
14
30
  - Bump nokogiri from 1.13.1 to 1.13.3 [\#320](https://github.com/auth0/ruby-auth0/pull/320) ([dependabot[bot]](https://github.com/apps/dependabot))
15
31
 
16
32
  ## [v5.7.0](https://github.com/auth0/ruby-auth0/tree/v5.7.0) (2022-02-17)
33
+
17
34
  [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v5.6.1...v5.7.0)
18
35
 
19
36
  **Added**
37
+
20
38
  - [SDK-3118] Add attack protection endpoints [\#316](https://github.com/auth0/ruby-auth0/pull/316) ([stevehobbsdev](https://github.com/stevehobbsdev))
21
39
 
22
40
  **Fixed**
41
+
23
42
  - [SDK-3106] Fix up tests for Ruby 3 and rspec-mocks update [\#313](https://github.com/auth0/ruby-auth0/pull/313) ([stevehobbsdev](https://github.com/stevehobbsdev))
24
43
  - Fix #310: delete_organizations_member_roles should use delete_with_body instead of delete [\#311](https://github.com/auth0/ruby-auth0/pull/311) ([SanterreJo](https://github.com/SanterreJo))
25
44
 
data/Gemfile CHANGED
@@ -8,6 +8,7 @@ group :development do
8
8
  gem 'coveralls', require: false
9
9
  gem 'rubocop', require: false
10
10
  gem 'rubocop-rails', require: false
11
+ gem 'irb', require: false
11
12
  end
12
13
 
13
14
  group :test do
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- auth0 (5.8.0)
4
+ auth0 (5.8.1)
5
5
  addressable (~> 2.8)
6
- jwt (~> 2.2)
6
+ jwt (~> 2.3.0)
7
7
  rest-client (~> 2.1)
8
8
  retryable (~> 3.0)
9
9
  zache (~> 0.12)
@@ -11,20 +11,20 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- actionpack (7.0.2.3)
15
- actionview (= 7.0.2.3)
16
- activesupport (= 7.0.2.3)
14
+ actionpack (7.0.3)
15
+ actionview (= 7.0.3)
16
+ activesupport (= 7.0.3)
17
17
  rack (~> 2.0, >= 2.2.0)
18
18
  rack-test (>= 0.6.3)
19
19
  rails-dom-testing (~> 2.0)
20
20
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
21
- actionview (7.0.2.3)
22
- activesupport (= 7.0.2.3)
21
+ actionview (7.0.3)
22
+ activesupport (= 7.0.3)
23
23
  builder (~> 3.1)
24
24
  erubi (~> 1.4)
25
25
  rails-dom-testing (~> 2.0)
26
26
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
27
- activesupport (7.0.2.3)
27
+ activesupport (7.0.3)
28
28
  concurrent-ruby (~> 1.0, >= 1.0.2)
29
29
  i18n (>= 1.6, < 2)
30
30
  minitest (>= 5.1)
@@ -55,7 +55,7 @@ GEM
55
55
  dotenv (= 2.7.6)
56
56
  railties (>= 3.2)
57
57
  erubi (1.10.0)
58
- faker (2.20.0)
58
+ faker (2.21.0)
59
59
  i18n (>= 1.8.11, < 2)
60
60
  ffi (1.15.5)
61
61
  formatador (1.1.0)
@@ -79,15 +79,19 @@ GEM
79
79
  rspec (>= 2.99.0, < 4.0)
80
80
  hashdiff (1.0.1)
81
81
  http-accept (1.7.0)
82
- http-cookie (1.0.4)
82
+ http-cookie (1.0.5)
83
83
  domain_name (~> 0.5)
84
84
  i18n (1.10.0)
85
85
  concurrent-ruby (~> 1.0)
86
+ io-console (0.5.11)
87
+ irb (1.4.1)
88
+ reline (>= 0.3.0)
89
+ json (2.6.2)
86
90
  jwt (2.3.0)
87
91
  listen (3.7.1)
88
92
  rb-fsevent (~> 0.10, >= 0.10.3)
89
93
  rb-inotify (~> 0.9, >= 0.9.10)
90
- loofah (2.15.0)
94
+ loofah (2.18.0)
91
95
  crass (~> 1.0.2)
92
96
  nokogiri (>= 1.5.9)
93
97
  lumberjack (1.2.8)
@@ -96,37 +100,37 @@ GEM
96
100
  mime-types-data (~> 3.2015)
97
101
  mime-types-data (3.2022.0105)
98
102
  mini_portile2 (2.8.0)
99
- minitest (5.15.0)
103
+ minitest (5.16.1)
100
104
  multi_json (1.15.0)
101
105
  nenv (0.3.0)
102
106
  netrc (0.11.0)
103
- nokogiri (1.13.3)
107
+ nokogiri (1.13.6)
104
108
  mini_portile2 (~> 2.8.0)
105
109
  racc (~> 1.4)
106
110
  notiffany (0.1.3)
107
111
  nenv (~> 0.1)
108
112
  shellany (~> 0.0)
109
- parallel (1.22.0)
110
- parser (3.1.1.0)
113
+ parallel (1.22.1)
114
+ parser (3.1.2.0)
111
115
  ast (~> 2.4.1)
112
116
  pry (0.12.2)
113
117
  coderay (~> 1.1.0)
114
118
  method_source (~> 0.9.0)
115
119
  pry-nav (0.3.0)
116
120
  pry (>= 0.9.10, < 0.13.0)
117
- public_suffix (4.0.6)
121
+ public_suffix (4.0.7)
118
122
  racc (1.6.0)
119
- rack (2.2.3)
123
+ rack (2.2.3.1)
120
124
  rack-test (0.8.3)
121
125
  rack (>= 1.0, < 3)
122
126
  rails-dom-testing (2.0.3)
123
127
  activesupport (>= 4.2.0)
124
128
  nokogiri (>= 1.6)
125
- rails-html-sanitizer (1.4.2)
129
+ rails-html-sanitizer (1.4.3)
126
130
  loofah (~> 2.3)
127
- railties (7.0.2.3)
128
- actionpack (= 7.0.2.3)
129
- activesupport (= 7.0.2.3)
131
+ railties (7.0.3)
132
+ actionpack (= 7.0.3)
133
+ activesupport (= 7.0.3)
130
134
  method_source
131
135
  rake (>= 12.2)
132
136
  thor (~> 1.0)
@@ -136,7 +140,9 @@ GEM
136
140
  rb-fsevent (0.11.1)
137
141
  rb-inotify (0.10.1)
138
142
  ffi (~> 1.0)
139
- regexp_parser (2.2.1)
143
+ regexp_parser (2.5.0)
144
+ reline (0.3.1)
145
+ io-console (~> 0.5)
140
146
  rest-client (2.1.0)
141
147
  http-accept (>= 1.7.0, < 2.0)
142
148
  http-cookie (>= 1.0.2, < 2.0)
@@ -153,22 +159,23 @@ GEM
153
159
  rspec-expectations (3.11.0)
154
160
  diff-lcs (>= 1.2.0, < 2.0)
155
161
  rspec-support (~> 3.11.0)
156
- rspec-mocks (3.11.0)
162
+ rspec-mocks (3.11.1)
157
163
  diff-lcs (>= 1.2.0, < 2.0)
158
164
  rspec-support (~> 3.11.0)
159
165
  rspec-support (3.11.0)
160
- rubocop (1.26.1)
166
+ rubocop (1.31.1)
167
+ json (~> 2.3)
161
168
  parallel (~> 1.10)
162
169
  parser (>= 3.1.0.0)
163
170
  rainbow (>= 2.2.2, < 4.0)
164
171
  regexp_parser (>= 1.8, < 3.0)
165
- rexml
166
- rubocop-ast (>= 1.16.0, < 2.0)
172
+ rexml (>= 3.2.5, < 4.0)
173
+ rubocop-ast (>= 1.18.0, < 2.0)
167
174
  ruby-progressbar (~> 1.7)
168
175
  unicode-display_width (>= 1.4.0, < 3.0)
169
- rubocop-ast (1.16.0)
176
+ rubocop-ast (1.18.0)
170
177
  parser (>= 3.1.1.0)
171
- rubocop-rails (2.14.2)
178
+ rubocop-rails (2.15.1)
172
179
  activesupport (>= 4.2.0)
173
180
  rack (>= 1.1)
174
181
  rubocop (>= 1.7.0, < 2.0)
@@ -186,21 +193,21 @@ GEM
186
193
  terminal-notifier-guard (1.7.0)
187
194
  thor (1.2.1)
188
195
  timecop (0.9.5)
189
- tins (1.31.0)
196
+ tins (1.31.1)
190
197
  sync
191
198
  tzinfo (2.0.4)
192
199
  concurrent-ruby (~> 1.0)
193
200
  unf (0.1.4)
194
201
  unf_ext
195
- unf_ext (0.0.8.1)
196
- unicode-display_width (2.1.0)
202
+ unf_ext (0.0.8.2)
203
+ unicode-display_width (2.2.0)
197
204
  vcr (6.1.0)
198
205
  webmock (3.14.0)
199
206
  addressable (>= 2.8.0)
200
207
  crack (>= 0.3.2)
201
208
  hashdiff (>= 0.4.0, < 2.0.0)
202
209
  zache (0.12.0)
203
- zeitwerk (2.5.4)
210
+ zeitwerk (2.6.0)
204
211
 
205
212
  PLATFORMS
206
213
  ruby
@@ -215,6 +222,7 @@ DEPENDENCIES
215
222
  fuubar (~> 2.0)
216
223
  gem-release (~> 0.7)
217
224
  guard-rspec (~> 4.5)
225
+ irb
218
226
  pry (~> 0.10)
219
227
  pry-nav (~> 0.2)
220
228
  rack (~> 2.1)
data/auth0.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.require_paths = ['lib']
18
18
 
19
19
  s.add_runtime_dependency 'rest-client', '~> 2.1'
20
- s.add_runtime_dependency 'jwt', '~> 2.2'
20
+ s.add_runtime_dependency 'jwt', '~> 2.3.0'
21
21
  s.add_runtime_dependency 'zache', '~> 0.12'
22
22
  s.add_runtime_dependency 'addressable', '~> 2.8'
23
23
  s.add_runtime_dependency 'retryable', '~> 3.0'
@@ -267,7 +267,7 @@ module Auth0
267
267
  body = {}
268
268
  body[:members] = members
269
269
 
270
- delete(path, body)
270
+ delete_with_body(path, body)
271
271
  end
272
272
  alias remove_organizations_members delete_organizations_members
273
273
 
data/lib/auth0/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # current version of gem
2
2
  module Auth0
3
- VERSION = '5.8.0'.freeze
3
+ VERSION = '5.8.1'.freeze
4
4
  end
@@ -514,7 +514,7 @@ describe Auth0::Api::V2::Organizations do
514
514
  end
515
515
 
516
516
  it 'is expected to delete /api/v2/organizations/org_id/members' do
517
- expect(@instance).to receive(:delete).with(
517
+ expect(@instance).to receive(:delete_with_body).with(
518
518
  '/api/v2/organizations/org_id/members', {
519
519
  members: ['123', '456']
520
520
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auth0
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.8.0
4
+ version: 5.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Auth0
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2022-03-29 00:00:00.000000000 Z
14
+ date: 2022-06-30 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rest-client
@@ -33,14 +33,14 @@ dependencies:
33
33
  requirements:
34
34
  - - "~>"
35
35
  - !ruby/object:Gem::Version
36
- version: '2.2'
36
+ version: 2.3.0
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - "~>"
42
42
  - !ruby/object:Gem::Version
43
- version: '2.2'
43
+ version: 2.3.0
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: zache
46
46
  requirement: !ruby/object:Gem::Requirement
@@ -281,7 +281,9 @@ files:
281
281
  - ".github/ISSUE_TEMPLATE/feature_request.md"
282
282
  - ".github/ISSUE_TEMPLATE/report_a_bug.md"
283
283
  - ".github/PULL_REQUEST_TEMPLATE.md"
284
+ - ".github/dependabot.yml"
284
285
  - ".github/stale.yml"
286
+ - ".github/workflows/semgrep.yml"
285
287
  - ".gitignore"
286
288
  - ".rspec"
287
289
  - ".rubocop.yml"