descope 1.0.7 → 1.1.0
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 +4 -4
- data/.github/workflows/ci.yaml +51 -12
- data/.github/workflows/publish-gem.yaml +6 -33
- data/.github/workflows/release-please.yaml +36 -0
- data/.gitignore +3 -2
- data/.release-please-manifest.json +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +21 -0
- data/Gemfile +7 -6
- data/Gemfile.lock +33 -32
- data/README.md +11 -0
- data/examples/ruby-on-rails-api/descope/package-lock.json +16 -10
- data/examples/ruby-on-rails-api/descope/yarn.lock +3 -3
- data/lib/descope/mixins/http.rb +2 -2
- data/lib/descope/mixins/initializer.rb +4 -2
- data/lib/descope/version.rb +1 -1
- data/spec/integration/lib.descope/api/v1/auth/enchantedlink_spec.rb +19 -21
- data/spec/integration/lib.descope/api/v1/auth/magiclink_spec.rb +5 -1
- data/spec/integration/lib.descope/api/v1/auth/otp_spec.rb +5 -1
- data/spec/integration/lib.descope/api/v1/auth/session_spec.rb +24 -5
- data/spec/integration/lib.descope/api/v1/auth/totp_spec.rb +5 -1
- data/spec/integration/lib.descope/api/v1/management/access_key_spec.rb +10 -2
- data/spec/integration/lib.descope/api/v1/management/authz_spec.rb +26 -5
- data/spec/integration/lib.descope/api/v1/management/permissions_spec.rb +20 -2
- data/spec/integration/lib.descope/api/v1/management/project_spec.rb +16 -2
- data/spec/integration/lib.descope/api/v1/management/roles_spec.rb +114 -36
- data/spec/integration/lib.descope/api/v1/management/user_spec.rb +20 -3
- data/spec/lib.descope/mixins/http_spec.rb +17 -6
- data/spec/support/utils.rb +15 -0
- metadata +4 -3
data/spec/support/utils.rb
CHANGED
|
@@ -35,4 +35,19 @@ module SpecUtils
|
|
|
35
35
|
prefix = ENV['GITHUB_RUN_NUMBER'] || ENV['GITHUB_RUN_ID']
|
|
36
36
|
prefix ? "build#{prefix}-" : "local-#{Time.now.to_i}-"
|
|
37
37
|
end
|
|
38
|
+
|
|
39
|
+
def wait_for_condition(max_wait: 60, interval: 2, description: 'condition')
|
|
40
|
+
start = Time.now
|
|
41
|
+
loop do
|
|
42
|
+
result = yield
|
|
43
|
+
return result if result
|
|
44
|
+
|
|
45
|
+
elapsed = Time.now - start
|
|
46
|
+
if elapsed > max_wait
|
|
47
|
+
raise "Timeout after #{max_wait}s waiting for #{description}"
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
sleep interval
|
|
51
|
+
end
|
|
52
|
+
end
|
|
38
53
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: descope
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Descope Inc.
|
|
@@ -87,6 +87,7 @@ extra_rdoc_files: []
|
|
|
87
87
|
files:
|
|
88
88
|
- ".github/workflows/ci.yaml"
|
|
89
89
|
- ".github/workflows/publish-gem.yaml"
|
|
90
|
+
- ".github/workflows/release-please.yaml"
|
|
90
91
|
- ".gitignore"
|
|
91
92
|
- ".release-please-manifest.json"
|
|
92
93
|
- ".rubocop.yml"
|
|
@@ -346,9 +347,9 @@ licenses:
|
|
|
346
347
|
- MIT
|
|
347
348
|
metadata:
|
|
348
349
|
bug_tracker_uri: https://github.com/descope/descope-ruby-sdk/issues
|
|
349
|
-
changelog_uri: https://github.com/descope/descope-ruby-sdk/releases/tag/1.0
|
|
350
|
+
changelog_uri: https://github.com/descope/descope-ruby-sdk/releases/tag/1.1.0
|
|
350
351
|
documentation_uri: https://docs.descope.com
|
|
351
|
-
source_code_uri: https://github.com/descope/descope-ruby-sdk/tree/1.0
|
|
352
|
+
source_code_uri: https://github.com/descope/descope-ruby-sdk/tree/1.1.0
|
|
352
353
|
rdoc_options: []
|
|
353
354
|
require_paths:
|
|
354
355
|
- lib
|