canvas_sync 0.17.0.beta1 → 0.17.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/canvas_sync/job_batches/batch.rb +1 -1
- data/lib/canvas_sync/version.rb +1 -1
- data/spec/spec_helper.rb +7 -0
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1efae2b1ce34cbd2732fa1077f99968da3cc167e4a95bb05e1da66589775165c
|
4
|
+
data.tar.gz: c24dd070fa499ddfe2a317f6dcf72ba17d99c494dd38bdb1ed2c12e39601b39b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9560928f39ae693290541b14b3d7b381d3259f603881e34c7b4bc5871a9c23a47fae876a5f7334660b8ef17d3e6a03e7ae34bffb8f1c666afad9127ee2934da8
|
7
|
+
data.tar.gz: 2c7874ef5441477e16675f916e450a0f095eabe167e7a16af3c8744fc24c62a90179fa9b2a2ac57a7fff7dda0dab1050c3cbdcc96973dca3d14bb4d7e54b15cb
|
@@ -173,7 +173,7 @@ module CanvasSync
|
|
173
173
|
end
|
174
174
|
|
175
175
|
def valid?(batch = self)
|
176
|
-
valid = !redis { |r| r.exists("invalidated-bid-#{batch.bid}") }
|
176
|
+
valid = !redis { |r| r.exists?("invalidated-bid-#{batch.bid}") }
|
177
177
|
batch.parent ? valid && valid?(batch.parent) : valid
|
178
178
|
end
|
179
179
|
|
data/lib/canvas_sync/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -19,6 +19,13 @@ Sidekiq::Testing.fake!
|
|
19
19
|
require 'fakeredis/rspec'
|
20
20
|
Dir[File.dirname(__FILE__) + "/job_batching/support/**/*.rb"].each {|f| require f }
|
21
21
|
|
22
|
+
# Fix an issue with fakeredis with Redis >=4.2
|
23
|
+
class Redis::Connection::Memory
|
24
|
+
def exists(*keys)
|
25
|
+
keys.count { |key| data.key?(key) }
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
22
29
|
ActiveRecord::Migration.maintain_test_schema!
|
23
30
|
|
24
31
|
RSpec.configure do |config|
|
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.0.
|
4
|
+
version: 0.17.0.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nate Collings
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -280,14 +280,14 @@ dependencies:
|
|
280
280
|
name: redis
|
281
281
|
requirement: !ruby/object:Gem::Requirement
|
282
282
|
requirements:
|
283
|
-
- - "
|
283
|
+
- - ">="
|
284
284
|
- !ruby/object:Gem::Version
|
285
285
|
version: '4.2'
|
286
286
|
type: :runtime
|
287
287
|
prerelease: false
|
288
288
|
version_requirements: !ruby/object:Gem::Requirement
|
289
289
|
requirements:
|
290
|
-
- - "
|
290
|
+
- - ">="
|
291
291
|
- !ruby/object:Gem::Version
|
292
292
|
version: '4.2'
|
293
293
|
- !ruby/object:Gem::Dependency
|
@@ -346,7 +346,7 @@ dependencies:
|
|
346
346
|
- - ">="
|
347
347
|
- !ruby/object:Gem::Version
|
348
348
|
version: '0'
|
349
|
-
description:
|
349
|
+
description:
|
350
350
|
email:
|
351
351
|
- ncollings@instructure.com
|
352
352
|
executables: []
|
@@ -627,7 +627,7 @@ files:
|
|
627
627
|
homepage: https://instructure.com
|
628
628
|
licenses: []
|
629
629
|
metadata: {}
|
630
|
-
post_install_message:
|
630
|
+
post_install_message:
|
631
631
|
rdoc_options: []
|
632
632
|
require_paths:
|
633
633
|
- lib
|
@@ -642,9 +642,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
642
642
|
- !ruby/object:Gem::Version
|
643
643
|
version: 1.3.1
|
644
644
|
requirements: []
|
645
|
-
|
646
|
-
|
647
|
-
signing_key:
|
645
|
+
rubygems_version: 3.1.2
|
646
|
+
signing_key:
|
648
647
|
specification_version: 4
|
649
648
|
summary: Gem for generating Canvas models and migrations and syncing data from Canvas
|
650
649
|
test_files:
|