delayed_job 4.1.7.beta1 → 4.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa7e5aa7df8b10164d60f5672a56c860288573ed177a69eba865e791b740f6fb
4
- data.tar.gz: f90066730d4526cbeebd3d5f98694cd3664bc4b38dcb1be90a78f4c056e358d8
3
+ metadata.gz: 2a15a5e7e0c1382d5f185cf7eb769e9138acd18d6dafe52d5ef5c2590b0f172f
4
+ data.tar.gz: f6da61d248326cf6ceab395fe074aa06040efa2b8e75aafc41e4f39c91871106
5
5
  SHA512:
6
- metadata.gz: 62343fe2c0d1a6a51838a2d934b83cb45e4d0a939f56b45f5506300cedb4007417336e6e54baed1654965429380e5c07b1a8a40f632a2f7161d595cb8ec08466
7
- data.tar.gz: 8e870a75d6b0c994dc0f8ca2969b4ed22d066db2859f5fc963aa73e6b31525cac328b551b86ebd05e9627449b8c2dc07b628b75c28355438f892a2d9639df101
6
+ metadata.gz: 33b36ea1a9a374324bfb366203f9b9bb9dee7f7a002e561c0b1c8ddfb022bd1201512622186a093b64bd06d0261240435cffe6734911af13052705a602b35f13
7
+ data.tar.gz: 8847b2a7031c76622ddd6ac2f805f3129f8c5970417fa961a88022fd24b04f362ed17739e0c23419b8a1bfa62ac8fc9e0be410c5ee3760508d92a1865654d656
@@ -1,7 +1,6 @@
1
- 4.1.7 - In Progress
1
+ 4.1.7 - 2019-06-20
2
2
  =================
3
- * Allow Rails 6.0
4
- * Update failed message to be more clear
3
+ * Fix loading Delayed::PerformableMailer when ActionMailer isn't loaded yet
5
4
 
6
5
  4.1.6 - 2019-06-19
7
6
  =================
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.6).](https://github.com/collectiveidea/delayed_job/tree/v4.1.6)**
4
+ (4.1.7).](https://github.com/collectiveidea/delayed_job/tree/v4.1.7)**
5
5
 
6
6
  Delayed::Job
7
7
  ============
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  Gem::Specification.new do |spec|
4
- spec.add_dependency 'activesupport', ['>= 3.0', '< 6.1']
4
+ spec.add_dependency 'activesupport', ['>= 3.0', '< 5.3']
5
5
  spec.authors = ['Brandon Keepers', 'Brian Ryckbost', 'Chris Gaffney', 'David Genord II', 'Erik Michaels-Ober', 'Matt Griffin', 'Steve Richert', 'Tobias Lütke']
6
6
  spec.description = 'Delayed_job (or DJ) encapsulates the common pattern of asynchronously executing longer tasks in the background. It is a direct extraction from Shopify where the job table is responsible for a multitude of core tasks.'
7
7
  spec.email = ['brian@collectiveidea.com']
@@ -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.7.beta1'
16
+ spec.version = '4.1.7'
17
17
  end
@@ -133,8 +133,7 @@ module Delayed
133
133
  end
134
134
 
135
135
  def fail!
136
- self.failed_at = self.class.db_time_now
137
- save!
136
+ update_attributes(:failed_at => self.class.db_time_now)
138
137
  end
139
138
 
140
139
  protected
@@ -523,8 +523,7 @@ shared_examples_for 'a delayed_job backend' do
523
523
  it 'reloads changed attributes' do
524
524
  story = Story.create(:text => 'hello')
525
525
  job = story.delay.tell
526
- story.text = 'goodbye'
527
- story.save!
526
+ story.update_attributes :text => 'goodbye'
528
527
  expect(job.reload.payload_object.object.text).to eq('goodbye')
529
528
  end
530
529
 
@@ -18,5 +18,9 @@ ActiveSupport.on_load(:action_mailer) do
18
18
  ActionMailer::Base.extend(Delayed::DelayMail)
19
19
  end
20
20
 
21
+ module Delayed
22
+ autoload :PerformableMailer, 'delayed/performable_mailer'
23
+ end
24
+
21
25
  Object.send(:include, Delayed::MessageSending)
22
26
  Module.send(:include, Delayed::MessageSendingClassMethods)
@@ -87,6 +87,11 @@ module Delayed
87
87
  Time.current
88
88
  end
89
89
 
90
+ def update_attributes(attrs = {})
91
+ attrs.each { |k, v| send(:"#{k}=", v) }
92
+ save
93
+ end
94
+
90
95
  def destroy
91
96
  self.class.all.delete(self)
92
97
  end
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.7.beta1
4
+ version: 4.1.7
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: 2019-06-19 00:00:00.000000000 Z
18
+ date: 2019-06-20 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: activesupport
@@ -26,7 +26,7 @@ dependencies:
26
26
  version: '3.0'
27
27
  - - "<"
28
28
  - !ruby/object:Gem::Version
29
- version: '6.1'
29
+ version: '5.3'
30
30
  type: :runtime
31
31
  prerelease: false
32
32
  version_requirements: !ruby/object:Gem::Requirement
@@ -36,7 +36,7 @@ dependencies:
36
36
  version: '3.0'
37
37
  - - "<"
38
38
  - !ruby/object:Gem::Version
39
- version: '6.1'
39
+ version: '5.3'
40
40
  description: Delayed_job (or DJ) encapsulates the common pattern of asynchronously
41
41
  executing longer tasks in the background. It is a direct extraction from Shopify
42
42
  where the job table is responsible for a multitude of core tasks.
@@ -114,9 +114,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - ">"
117
+ - - ">="
118
118
  - !ruby/object:Gem::Version
119
- version: 1.3.1
119
+ version: '0'
120
120
  requirements: []
121
121
  rubygems_version: 3.0.3
122
122
  signing_key: