tanga_que_extensions 0.0.22 → 0.0.23

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
  SHA1:
3
- metadata.gz: bf1cafc0e3aca49b8e02bf055351a71c7a0a2ce6
4
- data.tar.gz: 2e7d21483460f8954618ff9ad2735f58aa39f40c
3
+ metadata.gz: 6e89bcd0e04a2952ede896535d485208b8dcb496
4
+ data.tar.gz: 98b4c34cb597cb7113512ea08c3cc5ef9cb9a6fa
5
5
  SHA512:
6
- metadata.gz: 29c5baddb1020bdb3e9c5a9219dcc20ba05591a8d4a64f3f891eff7267590f725e3f939df57e80c76df707792d86569cd0e0903fe35b2000b2762f0da5a4baaa
7
- data.tar.gz: 120b45d9f7b353b5348700e9c067a6750bbb687f98efd87d90daed0ba5e03be374b32013d10277be28a837899959fa773b7864816448a2a429e98842cf37d49b
6
+ metadata.gz: b4443cbcd6839d1da07868297def5945121232d30eb063547bbb3c4377b07f3972108df926eebb99095a9d5d06c597bcb336ab4344cf668ea0287d2e488e7db9
7
+ data.tar.gz: 4c3973a551af8acd8abf0035e420a2df6e941fb8c3743ad4d425b0ff9ed8cff6f4e858cbd468cbbcb0dd03ceb9578f930cfb4bf8372d928b7f2e63e314a41a0f
data/lib/que_job.rb CHANGED
@@ -2,7 +2,7 @@ class QueJob < ActiveRecord::Base
2
2
  self.primary_key = :job_id
3
3
 
4
4
  def run
5
- job_class.constantize.new(attributes.symbolize_keys)._run
5
+ job_class.constantize.new(attributes.with_indifferent_access)._run
6
6
  destroy
7
7
  end
8
8
  end
@@ -4,9 +4,7 @@ module Que::RecordJobStatus
4
4
  end
5
5
 
6
6
  def parent_job_id
7
- @attrs['args'].first['parent_job_id'] || nil
8
- rescue
9
- nil
7
+ QueJob.find(job_id).parent_job_id
10
8
  end
11
9
 
12
10
  def run(args={})
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tanga_que_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Van Dyk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-15 00:00:00.000000000 Z
11
+ date: 2017-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: que
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  requirements: []
124
124
  rubyforge_project:
125
- rubygems_version: 2.4.5.1
125
+ rubygems_version: 2.5.1
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: job scheduling stuff for tanga