resque_solo 0.2.0 → 0.3.0

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: 9e954b4d2492942672efaf828eda9cef99bae229
4
- data.tar.gz: 4527347e8170f87fb2a16463eec8bda7bfaed3c6
3
+ metadata.gz: 90a8227c24d8deeb0fba498f2cadeacefe4b61ef
4
+ data.tar.gz: fc44bea97f1765639572218b2249ec63cc9c6812
5
5
  SHA512:
6
- metadata.gz: 0714a8209c9eddfef035591ccb049bf3d308827d015893067b2928ccf038c7b79a281ccb1f88ed60396446d7528a4270dd8ac87d9d152c9afb3887d61839157b
7
- data.tar.gz: eadf6059eb2c9c59baefcb7d5c73d0caf11dfb911bd55514909bf2d86436f4e3609fc35f1e14a73f5f0953426f2e3a5b2785e46cd72a8470746c638924b18875
6
+ metadata.gz: 7b687be320d795f79cfc8d7f23f6973fca2b7e4b9a45126098adc4d37826ae5ac3670b886ddbdece53aa06328473de170e55dbae6aa094dcd7620acd5b24f33d
7
+ data.tar.gz: 00465321bf6afaf929d15d8d6209c6cf98eee79af2f6d78b6814f5967bf8807b7ca30e0dadbc331b01ad2ae9a5c1fa389207a6ff36fa2c00b8cc1abb9d244a3c
data/README.md CHANGED
@@ -10,7 +10,7 @@ ResqueSolo is a resque plugin to add unique jobs to resque.
10
10
 
11
11
  It is a re-write of [resque-loner](https://github.com/jayniz/resque-loner).
12
12
 
13
- It requires resque 1.25 and works with ruby 1.9.3 and later.
13
+ It requires resque 1.25 and works with ruby 2.0 and later.
14
14
 
15
15
  It removes the dependency on `Resque::Helpers`, which is deprecated for resque 2.0.
16
16
 
@@ -4,7 +4,9 @@ module Resque
4
4
  # Mark an item as queued
5
5
  def create_solo(queue, klass, *args)
6
6
  item = { class: klass.to_s, args: args }
7
- return create_without_solo(queue, klass, *args) if Resque.inline? || !ResqueSolo::Queue.is_unique?(item)
7
+ if Resque.inline? || !ResqueSolo::Queue.is_unique?(item)
8
+ return create_without_solo(queue, klass, *args)
9
+ end
8
10
  return "EXISTED" if ResqueSolo::Queue.queued?(queue, item)
9
11
  create_return_value = false
10
12
  # redis transaction block
@@ -28,7 +28,6 @@ module Resque
28
28
  # class FooJob
29
29
  # include Resque::Plugins::UniqueJob
30
30
  # @ttl = 40
31
- # end
32
31
  # end
33
32
  def ttl
34
33
  @ttl ||= -1
@@ -42,7 +41,6 @@ module Resque
42
41
  # class FooJob
43
42
  # include Resque::Plugins::UniqueJob
44
43
  # @lock_after_execution_period = 40
45
- # end
46
44
  # end
47
45
  def lock_after_execution_period
48
46
  @lock_after_execution_period ||= 0
@@ -1,3 +1,3 @@
1
1
  module ResqueSolo
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque_solo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tee Parham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-22 00:00:00.000000000 Z
11
+ date: 2016-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: resque
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.5'
33
+ version: '1.6'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.5'
40
+ version: '1.6'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: fakeredis
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,28 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '5.3'
61
+ version: '5.8'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '5.3'
68
+ version: '5.8'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '10.1'
75
+ version: '11.2'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '10.1'
82
+ version: '11.2'
83
83
  description: Resque plugin to add unique jobs
84
84
  email:
85
85
  - tee@neighborland.com
@@ -107,7 +107,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: 1.9.3
110
+ version: 2.0.0
111
111
  required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - ">="
@@ -115,9 +115,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  requirements: []
117
117
  rubyforge_project:
118
- rubygems_version: 2.6.2
118
+ rubygems_version: 2.6.6
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: Resque plugin to add unique jobs
122
122
  test_files: []
123
- has_rdoc: