resque-meta 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -32,4 +32,4 @@ For example:
32
32
  meta1.enqueued_at # => 'Wed May 19 13:42:41 -0600 2010'
33
33
  meta1['foo'] # => 'bar'
34
34
 
35
- [rq]: http://github.com/defunkt/resque
35
+ [rq]: http://github.com/resque/resque
data/Rakefile CHANGED
@@ -8,8 +8,4 @@ Rake::TestTask.new do |t|
8
8
  t.verbose = false
9
9
  end
10
10
 
11
- def command?(command)
12
- system("type #{command} > /dev/null")
13
- end
14
-
15
11
  task :default => :test
@@ -4,6 +4,7 @@ module Resque
4
4
  module Plugins
5
5
  module Meta
6
6
  class Metadata
7
+ include Resque::Helpers
7
8
  attr_reader :job_class, :meta_id, :data, :enqueued_at, :expire_in, :before_finish_expire_in
8
9
 
9
10
  def initialize(data_hash)
@@ -13,7 +14,7 @@ module Resque
13
14
  @enqueued_at = from_time_format_str('enqueued_at')
14
15
  @job_class = data_hash['job_class']
15
16
  if @job_class.is_a?(String)
16
- @job_class = Resque.constantize(data_hash['job_class'])
17
+ @job_class = constantize(data_hash['job_class'])
17
18
  else
18
19
  data_hash['job_class'] = @job_class.to_s
19
20
  end
@@ -1,7 +1,7 @@
1
1
  module Resque
2
2
  module Plugins
3
3
  module Meta
4
- Version = '2.0.0'
4
+ Version = '2.0.1'
5
5
  end
6
6
  end
7
7
  end
data/test/meta_test.rb CHANGED
@@ -67,7 +67,7 @@ class MetaTest < Test::Unit::TestCase
67
67
  end
68
68
 
69
69
  def test_meta_version
70
- assert_equal '2.0.0', Resque::Plugins::Meta::Version
70
+ assert_equal '2.0.1', Resque::Plugins::Meta::Version
71
71
  end
72
72
 
73
73
  def test_lint
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-meta
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 0
10
- version: 2.0.0
9
+ - 1
10
+ version: 2.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lee Marlow
@@ -15,11 +15,12 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-12-04 00:00:00 Z
18
+ date: 2013-11-26 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: resque
22
- version_requirements: &id001 !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
23
24
  none: false
24
25
  requirements:
25
26
  - - ~>
@@ -30,11 +31,11 @@ dependencies:
30
31
  - 8
31
32
  version: "1.8"
32
33
  type: :runtime
33
- requirement: *id001
34
- prerelease: false
34
+ version_requirements: *id001
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: rake
37
- version_requirements: &id002 !ruby/object:Gem::Requirement
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
38
39
  none: false
39
40
  requirements:
40
41
  - - ~>
@@ -46,11 +47,11 @@ dependencies:
46
47
  - 2
47
48
  version: 0.9.2
48
49
  type: :development
49
- requirement: *id002
50
- prerelease: false
50
+ version_requirements: *id002
51
51
  - !ruby/object:Gem::Dependency
52
52
  name: json
53
- version_requirements: &id003 !ruby/object:Gem::Requirement
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
54
55
  none: false
55
56
  requirements:
56
57
  - - ">="
@@ -60,8 +61,7 @@ dependencies:
60
61
  - 0
61
62
  version: "0"
62
63
  type: :development
63
- requirement: *id003
64
- prerelease: false
64
+ version_requirements: *id003
65
65
  description: |
66
66
  A Resque plugin. If you want to be able to add metadata for a job
67
67
  to track anything you want, extend it with this module.