resque_solo 0.4.0 → 0.5.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
  SHA256:
3
- metadata.gz: ca39b386ec04e2a0405fc05051deec8b5e5ae715b366ee5d05f2c84bb3e39176
4
- data.tar.gz: 8bff1c8634116b623a65f12cbf783d0814356d0c349f44233cc841272bbd70c3
3
+ metadata.gz: 42df791660a5f4108b5832348ac269e28fbb6d112133083dd9cb4d69ca42e14a
4
+ data.tar.gz: 7e6736901c21f62746df7546feaa03fb859171ff059bf86f2471300a5473fadf
5
5
  SHA512:
6
- metadata.gz: 4cfd41a2ed021f4e4a4bcd94f80b683086d29a28d20c00d914990ede0afcdb05c5cb8dfa0d93785de3a1aac506e14607386731a8aa34b4f54d940dd6adc3de9c
7
- data.tar.gz: d5eb65fbed46481fc820f212f75774bd43f8b8cd4070146eb332e3b33b695a254c4c11a3cd4165d9fde3c6642d7f17ebab4ffc66fdc7743516991c0fd55a7d33
6
+ metadata.gz: be28624643d67f66db4b6a24a162f141fc15435f9091f94e80a3e6b8849f05362e2ccd3a7f42c0226aade67818ce61031caabc3ad84fab7cf8b2e23db81af0cb
7
+ data.tar.gz: a295e26d4324f067d9798451fd466c07c0e0f9f29b5449af799b0b163f56d755823fea3432035c743a412b5718898dde490610045e96707b64f57505aadc0695
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 2.0 and later.
13
+ It requires resque 1.25 or greater and works with ruby 2.3 and later.
14
14
 
15
15
  It removes the dependency on `Resque::Helpers`, which is deprecated for resque 2.0.
16
16
 
@@ -19,7 +19,14 @@ It removes the dependency on `Resque::Helpers`, which is deprecated for resque 2
19
19
  Add the gem to your Gemfile:
20
20
 
21
21
  ```ruby
22
- gem 'resque_solo'
22
+ gem "resque_solo"
23
+ ```
24
+
25
+ To use with resque 2.0.0, which is unreleased as of 2018/7/24:
26
+
27
+ ```ruby
28
+ gem "resque", git: "https://github.com/resque/resque"
29
+ gem "resque_solo"
23
30
  ```
24
31
 
25
32
  ## Usage
@@ -76,3 +83,21 @@ class UpdateCat
76
83
  end
77
84
  end
78
85
  ```
86
+
87
+ ## Development
88
+
89
+ Clone this repository, then:
90
+
91
+ Run tests with resque 1.x locally:
92
+
93
+ ```sh
94
+ bundle
95
+ bundle exec rake test
96
+ ```
97
+
98
+ Test supported versions of resque locally:
99
+
100
+ ```sh
101
+ appraisal install
102
+ appraisal rake test
103
+ ```
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Resque
2
4
  class Job
3
5
  class << self
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Resque
2
4
  class << self
3
5
  # Override
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "resque"
2
4
  require "resque_ext/job"
3
5
  require "resque_ext/resque"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ResqueSolo
2
4
  class Queue
3
5
  class << self
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "digest/md5"
2
4
 
3
5
  module Resque
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ResqueSolo
2
- VERSION = "0.4.0"
4
+ VERSION = "0.5.0"
3
5
  end
metadata CHANGED
@@ -1,29 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque_solo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.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: 2018-02-28 00:00:00.000000000 Z
11
+ date: 2018-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: resque
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.25'
19
+ version: 1.25.0
20
20
  type: :runtime
21
21
  prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 1.25.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: appraisal
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ type: :development
35
+ prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
38
  - - "~>"
25
39
  - !ruby/object:Gem::Version
26
- version: '1.25'
40
+ version: '2.0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -107,7 +121,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - ">="
109
123
  - !ruby/object:Gem::Version
110
- version: 2.2.2
124
+ version: 2.3.0
111
125
  required_rubygems_version: !ruby/object:Gem::Requirement
112
126
  requirements:
113
127
  - - ">="
@@ -115,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
129
  version: '0'
116
130
  requirements: []
117
131
  rubyforge_project:
118
- rubygems_version: 2.7.6
132
+ rubygems_version: 2.7.7
119
133
  signing_key:
120
134
  specification_version: 4
121
135
  summary: Resque plugin to add unique jobs