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.
@@ -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.7
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.7
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.7
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