bridge_api 0.3.7 → 0.3.8
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/.gitignore +2 -1
- data/lib/bridge_api/client.rb +1 -1
- data/lib/bridge_api/version.rb +1 -1
- data/spec/bridge_api/client_spec.rb +1 -1
- metadata +55 -55
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 55435b2f86e5116ce69bab8e9059499b5bde821b3bf05953ccebc78e45174b84
|
|
4
|
+
data.tar.gz: 9d96e3b914cd90c16110315b3218fc832b67440c0a23882a41b31a363aaef1aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d732dbc9aa102f0384b23ca0744463010fa32e19b00c31f2d5b9266a22d2c5c8afa97fde457a553a631a4ce5a6c885c7153798e9d753a0b3ca47301f92498645
|
|
7
|
+
data.tar.gz: 2e40338993ff9bf898331a8bed00015dd17f2101eed94402f843331309cae817a424c68c98ab8fd0bcba465b583edaed5d05cb8990af4de6fb9e0761b39df3d8
|
data/.gitignore
CHANGED
data/lib/bridge_api/client.rb
CHANGED
|
@@ -113,7 +113,7 @@ module BridgeAPI
|
|
|
113
113
|
usable_key = keys.find do |key|
|
|
114
114
|
limit = rate_limit(key)
|
|
115
115
|
current_key_limit = limit.present? ? limit.fetch('current') : 0
|
|
116
|
-
|
|
116
|
+
current_key_limit > BridgeAPI.rate_limit_threshold
|
|
117
117
|
end
|
|
118
118
|
usable_key || keys[rand(keys.length)]
|
|
119
119
|
end
|
data/lib/bridge_api/version.rb
CHANGED
|
@@ -88,7 +88,7 @@ describe BridgeAPI::Client do
|
|
|
88
88
|
client = BridgeAPI::Client.new(config)
|
|
89
89
|
expect(client.get_next_key(keys.keys, 'key1')).to eq('key2')
|
|
90
90
|
expect(client.get_next_key(keys.keys, 'key2')).to eq('key1')
|
|
91
|
-
expect(client.get_next_key(keys.keys, 'non-existent-key')).to eq('
|
|
91
|
+
expect(client.get_next_key(keys.keys, 'non-existent-key')).to eq('key2')
|
|
92
92
|
end
|
|
93
93
|
end
|
|
94
94
|
|
metadata
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bridge_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jay Shaffer
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-07-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - ">="
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.0.0
|
|
20
17
|
- - "~>"
|
|
21
18
|
- !ruby/object:Gem::Version
|
|
22
19
|
version: '1.0'
|
|
20
|
+
- - ">="
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: 1.0.0
|
|
23
23
|
type: :development
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
26
|
requirements:
|
|
27
|
-
- - ">="
|
|
28
|
-
- !ruby/object:Gem::Version
|
|
29
|
-
version: 1.0.0
|
|
30
27
|
- - "~>"
|
|
31
28
|
- !ruby/object:Gem::Version
|
|
32
29
|
version: '1.0'
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: 1.0.0
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: byebug
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -104,22 +104,22 @@ dependencies:
|
|
|
104
104
|
name: tilt
|
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
|
106
106
|
requirements:
|
|
107
|
-
- - "~>"
|
|
108
|
-
- !ruby/object:Gem::Version
|
|
109
|
-
version: '1.3'
|
|
110
107
|
- - ">="
|
|
111
108
|
- !ruby/object:Gem::Version
|
|
112
109
|
version: 1.3.4
|
|
110
|
+
- - "~>"
|
|
111
|
+
- !ruby/object:Gem::Version
|
|
112
|
+
version: '1.3'
|
|
113
113
|
type: :development
|
|
114
114
|
prerelease: false
|
|
115
115
|
version_requirements: !ruby/object:Gem::Requirement
|
|
116
116
|
requirements:
|
|
117
|
-
- - "~>"
|
|
118
|
-
- !ruby/object:Gem::Version
|
|
119
|
-
version: '1.3'
|
|
120
117
|
- - ">="
|
|
121
118
|
- !ruby/object:Gem::Version
|
|
122
119
|
version: 1.3.4
|
|
120
|
+
- - "~>"
|
|
121
|
+
- !ruby/object:Gem::Version
|
|
122
|
+
version: '1.3'
|
|
123
123
|
- !ruby/object:Gem::Dependency
|
|
124
124
|
name: webmock
|
|
125
125
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -303,7 +303,7 @@ homepage: https://getbridge.com
|
|
|
303
303
|
licenses:
|
|
304
304
|
- MIT
|
|
305
305
|
metadata: {}
|
|
306
|
-
post_install_message:
|
|
306
|
+
post_install_message:
|
|
307
307
|
rdoc_options: []
|
|
308
308
|
require_paths:
|
|
309
309
|
- lib
|
|
@@ -318,60 +318,60 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
318
318
|
- !ruby/object:Gem::Version
|
|
319
319
|
version: '0'
|
|
320
320
|
requirements: []
|
|
321
|
-
rubygems_version: 3.
|
|
322
|
-
signing_key:
|
|
321
|
+
rubygems_version: 3.4.10
|
|
322
|
+
signing_key:
|
|
323
323
|
specification_version: 4
|
|
324
324
|
summary: Bridge API
|
|
325
325
|
test_files:
|
|
326
|
-
- spec/bridge_api/client_spec.rb
|
|
327
|
-
- spec/bridge_api/client/enrollment_spec.rb
|
|
328
|
-
- spec/bridge_api/client/custom_field_spec.rb
|
|
329
326
|
- spec/bridge_api/client/account_spec.rb
|
|
330
|
-
- spec/bridge_api/client/
|
|
331
|
-
- spec/bridge_api/client/live_course_spec.rb
|
|
327
|
+
- spec/bridge_api/client/affiliations_spec.rb
|
|
332
328
|
- spec/bridge_api/client/clone_object_spec.rb
|
|
333
329
|
- spec/bridge_api/client/course_template_spec.rb
|
|
334
|
-
- spec/bridge_api/client/
|
|
335
|
-
- spec/bridge_api/client/
|
|
330
|
+
- spec/bridge_api/client/custom_field_spec.rb
|
|
331
|
+
- spec/bridge_api/client/data_dump_spec.rb
|
|
332
|
+
- spec/bridge_api/client/enrollment_spec.rb
|
|
336
333
|
- spec/bridge_api/client/group_spec.rb
|
|
334
|
+
- spec/bridge_api/client/learner_items_spec.rb
|
|
335
|
+
- spec/bridge_api/client/live_course_enrollments_spec.rb
|
|
337
336
|
- spec/bridge_api/client/live_course_session_spec.rb
|
|
337
|
+
- spec/bridge_api/client/live_course_spec.rb
|
|
338
|
+
- spec/bridge_api/client/manager_spec.rb
|
|
338
339
|
- spec/bridge_api/client/program_enrollment_spec.rb
|
|
339
|
-
- spec/bridge_api/client/user_spec.rb
|
|
340
340
|
- spec/bridge_api/client/role_spec.rb
|
|
341
|
-
- spec/bridge_api/client/
|
|
342
|
-
- spec/bridge_api/client/
|
|
343
|
-
- spec/bridge_api/
|
|
344
|
-
- spec/
|
|
345
|
-
- spec/fixtures/
|
|
346
|
-
- spec/fixtures/
|
|
347
|
-
- spec/fixtures/managers.json
|
|
348
|
-
- spec/fixtures/temporary_users.json
|
|
349
|
-
- spec/fixtures/program_enrollments.json
|
|
350
|
-
- spec/fixtures/enrollment.json
|
|
351
|
-
- spec/fixtures/sub_accounts.json
|
|
352
|
-
- spec/fixtures/user_roles_add.json
|
|
341
|
+
- spec/bridge_api/client/sub_account_spec.rb
|
|
342
|
+
- spec/bridge_api/client/user_spec.rb
|
|
343
|
+
- spec/bridge_api/client_spec.rb
|
|
344
|
+
- spec/fixtures/accounts.json
|
|
345
|
+
- spec/fixtures/affiliations.json
|
|
346
|
+
- spec/fixtures/clone_objects.json
|
|
353
347
|
- spec/fixtures/course.json
|
|
354
|
-
- spec/fixtures/
|
|
348
|
+
- spec/fixtures/courses.json
|
|
349
|
+
- spec/fixtures/custom_attribute_values.json
|
|
350
|
+
- spec/fixtures/custom_fields.json
|
|
351
|
+
- spec/fixtures/data_dump.json
|
|
355
352
|
- spec/fixtures/data_dumps.json
|
|
356
|
-
- spec/fixtures/
|
|
353
|
+
- spec/fixtures/default_web_conference.json
|
|
357
354
|
- spec/fixtures/direct_reports.json
|
|
355
|
+
- spec/fixtures/enrollment.json
|
|
356
|
+
- spec/fixtures/enrollments.json
|
|
357
|
+
- spec/fixtures/group.json
|
|
358
358
|
- spec/fixtures/learner_enrollments.json
|
|
359
|
+
- spec/fixtures/learner_items.json
|
|
360
|
+
- spec/fixtures/live_course.json
|
|
361
|
+
- spec/fixtures/live_course_enrollments.json
|
|
362
|
+
- spec/fixtures/live_course_sessions.json
|
|
363
|
+
- spec/fixtures/live_courses.json
|
|
364
|
+
- spec/fixtures/managers.json
|
|
365
|
+
- spec/fixtures/program_enrollments.json
|
|
366
|
+
- spec/fixtures/programs.json
|
|
367
|
+
- spec/fixtures/roles.json
|
|
359
368
|
- spec/fixtures/sub_account_lti_config.json
|
|
360
|
-
- spec/fixtures/user.json
|
|
361
|
-
- spec/fixtures/custom_attribute_values.json
|
|
362
|
-
- spec/fixtures/courses.json
|
|
363
369
|
- spec/fixtures/sub_account_lti_config_update.json
|
|
364
|
-
- spec/fixtures/default_web_conference.json
|
|
365
|
-
- spec/fixtures/programs.json
|
|
366
|
-
- spec/fixtures/learner_items.json
|
|
367
370
|
- spec/fixtures/sub_account_new_lti_config.json
|
|
368
|
-
- spec/fixtures/
|
|
369
|
-
- spec/fixtures/
|
|
370
|
-
- spec/fixtures/
|
|
371
|
-
- spec/fixtures/
|
|
372
|
-
- spec/fixtures/
|
|
373
|
-
- spec/
|
|
374
|
-
- spec/fixtures/data_dump.json
|
|
375
|
-
- spec/fixtures/live_course_enrollments.json
|
|
376
|
-
- spec/fixtures/custom_fields.json
|
|
371
|
+
- spec/fixtures/sub_accounts.json
|
|
372
|
+
- spec/fixtures/temporary_users.json
|
|
373
|
+
- spec/fixtures/user.json
|
|
374
|
+
- spec/fixtures/user_roles_add.json
|
|
375
|
+
- spec/fixtures/users.json
|
|
376
|
+
- spec/support/fake_bridge.rb
|
|
377
377
|
- spec/test_helper.rb
|