switchman-inst-jobs 1.2.1 → 1.2.2
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 +5 -5
- data/lib/switchman_inst_jobs.rb +1 -0
- data/lib/switchman_inst_jobs/version.rb +1 -1
- data/lib/switchman_inst_jobs/yaml_extensions.rb +16 -0
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: fe62bac55da9767562a2a12d326c083c4afa25fedd1137649e9f93069880e677
|
|
4
|
+
data.tar.gz: 7a81ab061398ac23f87e08e1788db57f31334aa680f09d240038bbc7d45153c6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 58c37e47c0309dfa858342a935522a4bea26659de2362d602707be8f8b4a046bc02f29e7dc725d3640638b0992c138323e5ebc80d29e172480278cf2be08c2e2
|
|
7
|
+
data.tar.gz: 36ac9b3d86196b084ae00334c6ed8893b2995f1772553a183130545b210e6ba09312d6b6263912252902886e72cf232adb2a90ed827d7818805a608d55bfb9b7
|
data/lib/switchman_inst_jobs.rb
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module SwitchmanInstJobs
|
|
2
|
+
module PsychExt
|
|
3
|
+
module ToRuby
|
|
4
|
+
def visit_Psych_Nodes_Scalar(object) # rubocop:disable Naming/MethodName
|
|
5
|
+
if object.tag == '!ruby/ActiveRecord:Switchman::Shard'
|
|
6
|
+
::Switchman::Shard.lookup(object.value) ||
|
|
7
|
+
raise(Delayed::Backend::RecordNotFound,
|
|
8
|
+
"Couldn't find Switchman::Shard with id #{object.value.inspect}")
|
|
9
|
+
else
|
|
10
|
+
super
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
Psych::Visitors::ToRuby.prepend(SwitchmanInstJobs::PsychExt::ToRuby)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: switchman-inst-jobs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bryan Petty
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-11-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: inst-jobs
|
|
@@ -248,6 +248,7 @@ files:
|
|
|
248
248
|
- lib/switchman_inst_jobs/switchman/default_shard.rb
|
|
249
249
|
- lib/switchman_inst_jobs/switchman/shard.rb
|
|
250
250
|
- lib/switchman_inst_jobs/version.rb
|
|
251
|
+
- lib/switchman_inst_jobs/yaml_extensions.rb
|
|
251
252
|
homepage: https://github.com/instructure/switchman-inst-jobs
|
|
252
253
|
licenses:
|
|
253
254
|
- MIT
|
|
@@ -268,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
268
269
|
version: '0'
|
|
269
270
|
requirements: []
|
|
270
271
|
rubyforge_project:
|
|
271
|
-
rubygems_version: 2.6
|
|
272
|
+
rubygems_version: 2.7.6
|
|
272
273
|
signing_key:
|
|
273
274
|
specification_version: 4
|
|
274
275
|
summary: Switchman and Instructure Jobs compatibility gem.
|