resque-result 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -8,8 +8,10 @@ job's perform method. Results will be encoded using JSON.
8
8
 
9
9
  For example:
10
10
 
11
+ require 'resque-result'
12
+
11
13
  class MyJob
12
- extend Resque::Jobs::Result
14
+ extend Resque::Plugins::Result
13
15
 
14
16
  def self.perform(meta_id, big_num)
15
17
  factor(big_num)
data/Rakefile CHANGED
@@ -36,3 +36,12 @@ rescue LoadError
36
36
  warn "mg not available."
37
37
  warn "Install it with: gem i mg"
38
38
  end
39
+
40
+ desc "Tag and publish a new version to Rubygems"
41
+ task :publish => [ :test, 'gem:publish' ] do
42
+ require 'resque/plugins/result/version'
43
+
44
+ sh ["git tag v#{Resque::Plugins::Result::Version}",
45
+ "git push origin v#{Resque::Plugins::Result::Version}",
46
+ "git push origin master"].join(' && ')
47
+ end
@@ -0,0 +1 @@
1
+ require 'resque/plugins/result'
@@ -8,9 +8,11 @@ module Resque
8
8
  # job's perform method. Results will be encoded using JSON.
9
9
  #
10
10
  # For example:
11
+ #
12
+ # require 'resque-result'
11
13
  #
12
14
  # class MyJob
13
- # extend Resque::Jobs::Result
15
+ # extend Resque::Plugins::Result
14
16
  #
15
17
  # def self.perform(meta_id, big_num)
16
18
  # factor(big_num)
@@ -1,7 +1,7 @@
1
1
  module Resque
2
2
  module Plugins
3
3
  module Result
4
- Version = '1.0.0'
4
+ Version = '1.0.1'
5
5
  end
6
6
  end
7
7
  end
data/test/redis-test.conf CHANGED
@@ -128,5 +128,5 @@ glueoutputbuf yes
128
128
  # WARNING: object sharing is experimental, don't enable this feature
129
129
  # in production before of Redis 1.0-stable. Still please try this feature in
130
130
  # your development environment so that we can test it better.
131
- shareobjects no
132
- shareobjectspoolsize 1024
131
+ # shareobjects no
132
+ # shareobjectspoolsize 1024
data/test/result_test.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require File.dirname(__FILE__) + '/test_helper'
2
- require 'resque/plugins/result'
2
+ require 'resque-result'
3
3
 
4
4
  class ResultJob
5
5
  extend Resque::Plugins::Result
@@ -16,7 +16,7 @@ class ResultTest < Test::Unit::TestCase
16
16
  end
17
17
 
18
18
  def test_result_version
19
- assert_equal '1.0.0', Resque::Plugins::Result::Version
19
+ assert_equal '1.0.1', Resque::Plugins::Result::Version
20
20
  end
21
21
 
22
22
  def test_lint
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-result
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lee Marlow
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-04 00:00:00 -06:00
18
+ date: 2010-09-11 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -24,14 +24,13 @@ dependencies:
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ">="
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
- hash: 51
29
+ hash: 29
30
30
  segments:
31
31
  - 1
32
32
  - 9
33
- - 0
34
- version: 1.9.0
33
+ version: "1.9"
35
34
  type: :runtime
36
35
  version_requirements: *id001
37
36
  - !ruby/object:Gem::Dependency
@@ -40,14 +39,13 @@ dependencies:
40
39
  requirement: &id002 !ruby/object:Gem::Requirement
41
40
  none: false
42
41
  requirements:
43
- - - ">="
42
+ - - ~>
44
43
  - !ruby/object:Gem::Version
45
- hash: 23
44
+ hash: 15
46
45
  segments:
47
46
  - 1
48
47
  - 0
49
- - 0
50
- version: 1.0.0
48
+ version: "1.0"
51
49
  type: :runtime
52
50
  version_requirements: *id002
53
51
  description: |
@@ -56,8 +54,10 @@ description: |
56
54
 
57
55
  For example:
58
56
 
57
+ require 'resque-result'
58
+
59
59
  class MyJob
60
- extend Resque::Jobs::Result
60
+ extend Resque::Plugins::Result
61
61
 
62
62
  def self.perform(meta_id, big_num)
63
63
  factor(big_num)
@@ -86,6 +86,7 @@ files:
86
86
  - LICENSE
87
87
  - lib/resque/plugins/result/version.rb
88
88
  - lib/resque/plugins/result.rb
89
+ - lib/resque-result.rb
89
90
  - test/redis-test.conf
90
91
  - test/result_test.rb
91
92
  - test/test_helper.rb