canvas_sync 0.17.40 → 0.17.42
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/canvas_sync/concerns/sync_mapping.rb +7 -7
- data/lib/canvas_sync/engine.rb +11 -8
- data/lib/canvas_sync/job_batches/batch.rb +3 -3
- data/lib/canvas_sync/jobs/begin_sync_chain_job.rb +4 -0
- data/lib/canvas_sync/jobs/canvas_process_waiter.rb +73 -0
- data/lib/canvas_sync/jobs/report_checker.rb +7 -3
- data/lib/canvas_sync/jobs/report_processor_job.rb +1 -1
- data/lib/canvas_sync/jobs/report_starter.rb +5 -1
- data/lib/canvas_sync/jobs/sync_provisioning_report_job.rb +11 -1
- data/lib/canvas_sync/processors/normal_processor.rb +1 -2
- data/lib/canvas_sync/processors/report_processor.rb +1 -1
- data/lib/canvas_sync/version.rb +1 -1
- data/spec/canvas_sync/jobs/canvas_process_waiter_spec.rb +82 -0
- data/spec/dummy/log/development.log +193 -0
- data/spec/dummy/log/test.log +46048 -0
- data/spec/job_batching/batch_spec.rb +1 -1
- data/spec/spec_helper.rb +3 -0
- metadata +47 -2
@@ -329,7 +329,7 @@ RSpec.describe CanvasSync::JobBatches::Batch do
|
|
329
329
|
it 'returns and does not enqueue callbacks' do
|
330
330
|
batch = CanvasSync::JobBatches::Batch.new
|
331
331
|
batch.on(event, SampleCallback)
|
332
|
-
CanvasSync::JobBatches::Batch.redis { |r| r.hset("BID-#{batch.bid}", event, true) }
|
332
|
+
CanvasSync::JobBatches::Batch.redis { |r| r.hset("BID-#{batch.bid}", event, "true") }
|
333
333
|
|
334
334
|
expect(batch).not_to receive(:push_callbacks)
|
335
335
|
CanvasSync::JobBatches::Batch.enqueue_callbacks(event, batch.bid)
|
data/spec/spec_helper.rb
CHANGED
@@ -14,6 +14,7 @@ require 'support/fake_canvas'
|
|
14
14
|
require 'shoulda/matchers'
|
15
15
|
require 'pry'
|
16
16
|
require 'pry-nav'
|
17
|
+
require 'with_model'
|
17
18
|
|
18
19
|
require 'sidekiq/testing'
|
19
20
|
Sidekiq::Testing.fake!
|
@@ -26,6 +27,8 @@ Dir[File.dirname(__FILE__) + "/job_batching/support/**/*.rb"].each {|f| require
|
|
26
27
|
ActiveRecord::Migration.maintain_test_schema!
|
27
28
|
|
28
29
|
RSpec.configure do |config|
|
30
|
+
config.extend WithModel
|
31
|
+
|
29
32
|
config.include FactoryGirl::Syntax::Methods
|
30
33
|
config.use_transactional_fixtures = true
|
31
34
|
config.infer_spec_type_from_file_location!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: canvas_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.42
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nate Collings
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -234,8 +234,36 @@ dependencies:
|
|
234
234
|
- - ">="
|
235
235
|
- !ruby/object:Gem::Version
|
236
236
|
version: '0'
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: with_model
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ">="
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '0'
|
237
251
|
- !ruby/object:Gem::Dependency
|
238
252
|
name: sidekiq
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - "<"
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '7.0'
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - "<"
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '7.0'
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: redis
|
239
267
|
requirement: !ruby/object:Gem::Requirement
|
240
268
|
requirements:
|
241
269
|
- - ">="
|
@@ -248,6 +276,20 @@ dependencies:
|
|
248
276
|
- - ">="
|
249
277
|
- !ruby/object:Gem::Version
|
250
278
|
version: '0'
|
279
|
+
- !ruby/object:Gem::Dependency
|
280
|
+
name: open-uri
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - ">="
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: '0'
|
286
|
+
type: :runtime
|
287
|
+
prerelease: false
|
288
|
+
version_requirements: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - ">="
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: '0'
|
251
293
|
- !ruby/object:Gem::Dependency
|
252
294
|
name: activejob
|
253
295
|
requirement: !ruby/object:Gem::Requirement
|
@@ -466,6 +508,7 @@ files:
|
|
466
508
|
- lib/canvas_sync/job_batches/sidekiq/web/views/pools.erb
|
467
509
|
- lib/canvas_sync/job_batches/status.rb
|
468
510
|
- lib/canvas_sync/jobs/begin_sync_chain_job.rb
|
511
|
+
- lib/canvas_sync/jobs/canvas_process_waiter.rb
|
469
512
|
- lib/canvas_sync/jobs/report_checker.rb
|
470
513
|
- lib/canvas_sync/jobs/report_processor_job.rb
|
471
514
|
- lib/canvas_sync/jobs/report_starter.rb
|
@@ -497,6 +540,7 @@ files:
|
|
497
540
|
- lib/canvas_sync/sidekiq_job.rb
|
498
541
|
- lib/canvas_sync/version.rb
|
499
542
|
- spec/canvas_sync/canvas_sync_spec.rb
|
543
|
+
- spec/canvas_sync/jobs/canvas_process_waiter_spec.rb
|
500
544
|
- spec/canvas_sync/jobs/job_spec.rb
|
501
545
|
- spec/canvas_sync/jobs/report_checker_spec.rb
|
502
546
|
- spec/canvas_sync/jobs/report_processor_job_spec.rb
|
@@ -708,6 +752,7 @@ specification_version: 4
|
|
708
752
|
summary: Gem for generating Canvas models and migrations and syncing data from Canvas
|
709
753
|
test_files:
|
710
754
|
- spec/canvas_sync/canvas_sync_spec.rb
|
755
|
+
- spec/canvas_sync/jobs/canvas_process_waiter_spec.rb
|
711
756
|
- spec/canvas_sync/jobs/job_spec.rb
|
712
757
|
- spec/canvas_sync/jobs/report_checker_spec.rb
|
713
758
|
- spec/canvas_sync/jobs/report_processor_job_spec.rb
|