delayed_job 4.1.3 → 4.1.4

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
2
  SHA1:
3
- metadata.gz: 5e2fe748c9a94faf96700fa8f87466b6fe7fd079
4
- data.tar.gz: 21d55a1f49084db05123ad5573711ef7a52f7c29
3
+ metadata.gz: eb308cfa2fde622a63bd400463d5f5b700fe56a2
4
+ data.tar.gz: df36c80e1fc931bb667dafcd7f9710417069c3ab
5
5
  SHA512:
6
- metadata.gz: cadfae1e2a548b451dc336f033ae671bd005c5b17fa311c5af3a306851b6d5642fcc88bee79ebbc9826032e9dccdf5f58eb0315de63e3357106987f496009f69
7
- data.tar.gz: 2a07509ecd676d248ca983a3ba87062cf1b11a8bdc67f0cd63ab91a2c975e8f840b323bba8ae9596aa15db2435702484763acd7688adaf39b492910fffead165
6
+ metadata.gz: 50954c0e738fd55e38a2c571e6dee55364bee0669d7297ca02f59dff135625ecf13653456a340c5a4e43b2ce24b3875198cb58cb3209c2659adf7494618fd8cd
7
+ data.tar.gz: 8c6269d5cbc2185cfdfd88796df32ffa42c13e6f3db5fbe9f5cf4ea5a7c1b668cb2129a4dcade0701e5960566448f4641ad4c3119c3591f274ef5fb85455cd3a
@@ -1,3 +1,8 @@
1
+ 4.1.4 - 2017-12-29
2
+ =================
3
+ * Use `yaml_tag` instead of deprecated `yaml_as` (#996)
4
+ * Support ruby 2.5.0
5
+
1
6
  4.1.3 - 2017-05-26
2
7
  =================
3
8
  * Don't mutate the options hash (#877)
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  **If you're viewing this at https://github.com/collectiveidea/delayed_job,
2
2
  you're reading the documentation for the master branch.
3
3
  [View documentation for the latest release
4
- (4.1.3).](https://github.com/collectiveidea/delayed_job/tree/v4.1.3)**
4
+ (4.1.4).](https://github.com/collectiveidea/delayed_job/tree/v4.1.4)**
5
5
 
6
6
  Delayed::Job
7
7
  ============
@@ -222,7 +222,7 @@ object.delay(:queue => 'high_priority', priority: 0).method
222
222
  You can start processes to only work certain queues with the `queue` and `queues`
223
223
  options defined below. Processes started without specifying a queue will run jobs
224
224
  from **any** queue. To effectively have a process that runs jobs where a queue is not
225
- specified, set a default queue name with `Delayed::Worker.default_queue_name` and
225
+ specified, set a default queue name with `Delayed::Worker.default_queue_name` and
226
226
  have the processes run that queue.
227
227
 
228
228
  Running Jobs
@@ -13,5 +13,5 @@ Gem::Specification.new do |spec|
13
13
  spec.require_paths = ['lib']
14
14
  spec.summary = 'Database-backed asynchronous priority queue system -- Extracted from Shopify'
15
15
  spec.test_files = Dir.glob('spec/**/*')
16
- spec.version = '4.1.3'
16
+ spec.version = '4.1.4'
17
17
  end
@@ -33,7 +33,7 @@ module Delayed
33
33
  case object.tag
34
34
  when %r{^!ruby/object}
35
35
  result = super
36
- if defined?(ActiveRecord::Base) && result.is_a?(ActiveRecord::Base)
36
+ if jruby_is_seriously_borked && result.is_a?(ActiveRecord::Base)
37
37
  klass = result.class
38
38
  id = result[klass.primary_key]
39
39
  begin
@@ -78,6 +78,13 @@ module Delayed
78
78
  end
79
79
  end
80
80
 
81
+ # defined? is triggering something really messed up in
82
+ # jruby causing both the if AND else clauses to execute,
83
+ # however if the check is run here, everything is fine
84
+ def jruby_is_seriously_borked
85
+ defined?(ActiveRecord::Base)
86
+ end
87
+
81
88
  def resolve_class(klass_name)
82
89
  return nil if !klass_name || klass_name.empty?
83
90
  klass_name.constantize
@@ -1,7 +1,7 @@
1
1
  if defined?(ActiveRecord)
2
2
  module ActiveRecord
3
3
  class Base
4
- yaml_as 'tag:ruby.yaml.org,2002:ActiveRecord'
4
+ yaml_tag 'tag:ruby.yaml.org,2002:ActiveRecord'
5
5
 
6
6
  def self.yaml_new(klass, _tag, val)
7
7
  klass.unscoped.find(val['attributes'][klass.primary_key])
@@ -1,5 +1,5 @@
1
1
  class Module
2
- yaml_as 'tag:ruby.yaml.org,2002:module'
2
+ yaml_tag 'tag:ruby.yaml.org,2002:module'
3
3
 
4
4
  def self.yaml_new(_klass, _tag, val)
5
5
  val.constantize
@@ -20,7 +20,7 @@ class Module
20
20
  end
21
21
 
22
22
  class Class
23
- yaml_as 'tag:ruby.yaml.org,2002:class'
23
+ yaml_tag 'tag:ruby.yaml.org,2002:class'
24
24
  remove_method :to_yaml if respond_to?(:to_yaml) && method(:to_yaml).owner == Class # use Module's to_yaml
25
25
  end
26
26
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.3
4
+ version: 4.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Keepers
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2017-05-26 00:00:00.000000000 Z
18
+ date: 2017-12-29 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: activesupport
@@ -119,26 +119,26 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  requirements: []
121
121
  rubyforge_project:
122
- rubygems_version: 2.6.11
122
+ rubygems_version: 2.6.14
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Database-backed asynchronous priority queue system -- Extracted from Shopify
126
126
  test_files:
127
+ - spec/sample_jobs.rb
128
+ - spec/lifecycle_spec.rb
129
+ - spec/performable_method_spec.rb
130
+ - spec/helper.rb
131
+ - spec/psych_ext_spec.rb
132
+ - spec/worker_spec.rb
133
+ - spec/autoloaded/struct.rb
127
134
  - spec/autoloaded/clazz.rb
128
135
  - spec/autoloaded/instance_clazz.rb
129
136
  - spec/autoloaded/instance_struct.rb
130
- - spec/autoloaded/struct.rb
131
- - spec/daemons.rb
137
+ - spec/test_backend_spec.rb
138
+ - spec/delayed/serialization/test.rb
132
139
  - spec/delayed/backend/test.rb
133
140
  - spec/delayed/command_spec.rb
134
- - spec/delayed/serialization/test.rb
135
- - spec/helper.rb
136
- - spec/lifecycle_spec.rb
137
141
  - spec/message_sending_spec.rb
138
142
  - spec/performable_mailer_spec.rb
139
- - spec/performable_method_spec.rb
140
- - spec/psych_ext_spec.rb
141
- - spec/sample_jobs.rb
142
- - spec/test_backend_spec.rb
143
- - spec/worker_spec.rb
144
143
  - spec/yaml_ext_spec.rb
144
+ - spec/daemons.rb