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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 5f3a0d265455c2a917a95287a0f7c768b0813d1a
4
- data.tar.gz: 9a3bb7dc110aad2a9641d6c117f2a3fcbd1428e0
2
+ SHA256:
3
+ metadata.gz: fe62bac55da9767562a2a12d326c083c4afa25fedd1137649e9f93069880e677
4
+ data.tar.gz: 7a81ab061398ac23f87e08e1788db57f31334aa680f09d240038bbc7d45153c6
5
5
  SHA512:
6
- metadata.gz: de054363463c33fecec8950c1ac38357650217665cbddaa45e9c54df6baa3dfe7bd4065f304a4a518ebbc59e96bf739afcceb2c5072795d57ce258fc6d667450
7
- data.tar.gz: 3547050ecabf7d90c5fff12ca6e2307959edbcedc63b7729ccf6e84cc4745eae99e4edf9b572c590f93adf5b8c619a6116f3671126c9034a6280be9c641dadd2
6
+ metadata.gz: 58c37e47c0309dfa858342a935522a4bea26659de2362d602707be8f8b4a046bc02f29e7dc725d3640638b0992c138323e5ebc80d29e172480278cf2be08c2e2
7
+ data.tar.gz: 36ac9b3d86196b084ae00334c6ed8893b2995f1772553a183130545b210e6ba09312d6b6263912252902886e72cf232adb2a90ed827d7818805a608d55bfb9b7
@@ -45,3 +45,4 @@ require 'switchman_inst_jobs/shackles'
45
45
  require 'switchman_inst_jobs/switchman/database_server'
46
46
  require 'switchman_inst_jobs/switchman/default_shard'
47
47
  require 'switchman_inst_jobs/switchman/shard'
48
+ require 'switchman_inst_jobs/yaml_extensions'
@@ -1,3 +1,3 @@
1
1
  module SwitchmanInstJobs
2
- VERSION = '1.2.1'.freeze
2
+ VERSION = '1.2.2'.freeze
3
3
  end
@@ -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.1
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-07-25 00:00:00.000000000 Z
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.14.1
272
+ rubygems_version: 2.7.6
272
273
  signing_key:
273
274
  specification_version: 4
274
275
  summary: Switchman and Instructure Jobs compatibility gem.