resque-unique_by_arity 1.0.11 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +31 -4
- data/Gemfile +11 -0
- data/README.md +65 -3
- data/lib/resque/unique_by_arity/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5928902e215fcf41c92705e36c57cc6a56e6d41aa200a0877ceb573bab8831d
|
4
|
+
data.tar.gz: 5bf582a91c934187ef71a192dbcfa6bfb4374c2d6bd735cdaf5c9e467efebdcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 154e126d3b23d5646c2fcee110bf184cec637813cd6fcf5ab5f6f06dd89f9f58353c3b06413ccdc217ad049954638785418d44b96a8fc67d751482629179dfb6
|
7
|
+
data.tar.gz: adae368b0a19f9d5ea756bbad1bc5384376515bcc083ce140a9e884ff376c66e8d6073df0a0677b1d07de2c1805220f6ea6293a7c6e1fb2f9ba3c149f0020355
|
data/.travis.yml
CHANGED
@@ -1,6 +1,33 @@
|
|
1
|
-
|
1
|
+
env:
|
2
|
+
global:
|
3
|
+
- JRUBY_OPTS="-Xcli.debug=true --debug"
|
4
|
+
- CC_TEST_REPORTER_ID=9e91e026a67407007dc44af5e96aa6e06446555bdfd8ef626f473cc1fd48e918
|
5
|
+
|
6
|
+
before_script:
|
7
|
+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
8
|
+
- chmod +x ./cc-test-reporter
|
9
|
+
- ./cc-test-reporter before-build
|
10
|
+
|
11
|
+
script:
|
12
|
+
- bundle exec rspec
|
13
|
+
|
14
|
+
after_script:
|
15
|
+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
16
|
+
|
17
|
+
before_install:
|
18
|
+
- gem update --system
|
19
|
+
- gem install bundler
|
20
|
+
|
21
|
+
install:
|
22
|
+
- bundle install
|
23
|
+
|
24
|
+
bundler_args: --no-deployment --jobs 3 --retry 3
|
25
|
+
|
26
|
+
cache: bundler
|
27
|
+
|
2
28
|
language: ruby
|
29
|
+
sudo: false
|
3
30
|
rvm:
|
4
|
-
- 2.
|
5
|
-
- 2.
|
6
|
-
|
31
|
+
- 2.3.7
|
32
|
+
- 2.4.4
|
33
|
+
- 2.5.1
|
data/Gemfile
CHANGED
@@ -1,4 +1,15 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
4
|
+
|
5
|
+
group :test do
|
6
|
+
gem 'rubocop', '~> 0.59.0'
|
7
|
+
gem 'rubocop-rspec', '~> 1.24.0'
|
8
|
+
gem 'byebug', '~> 10', platform: :mri, require: false
|
9
|
+
gem 'pry', '~> 0', platform: :mri, require: false
|
10
|
+
gem 'pry-byebug', '~> 3', platform: :mri, require: false
|
11
|
+
gem 'simplecov', '~> 0', require: false
|
12
|
+
end
|
13
|
+
|
3
14
|
# Specify your gem's dependencies in resque-unique_by_arity.gemspec
|
4
15
|
gemspec
|
data/README.md
CHANGED
@@ -1,11 +1,30 @@
|
|
1
1
|
# Resque::UniqueByArity
|
2
2
|
|
3
|
+
Because some jobs have parameters that you do not want to consider for determination of uniqueness.
|
4
|
+
|
3
5
|
NOTE:
|
4
6
|
|
5
|
-
Requires `resque_solo` gem, and `resque-
|
7
|
+
Requires `resque_solo` gem, and `resque-unique_by_arity` gem; the latter is a fork of `resque-lonely_job`.
|
6
8
|
Why? `resque-lonely_job` and `resque_solo` can't be used together, because their `redis_key` methods conflict.
|
7
9
|
|
8
|
-
|
10
|
+
| Project | Resque::UniqueByArity |
|
11
|
+
|------------------------ | ----------------------- |
|
12
|
+
| gem name | [resque-unique_by_arity](https://rubygems.org/gems/resque-unique_by_arity) |
|
13
|
+
| license | [](https://opensource.org/licenses/MIT) |
|
14
|
+
| download rank | [](https://github.com/pboling/resque-unique_by_arity) |
|
15
|
+
| version | [](https://rubygems.org/gems/resque-unique_by_arity) |
|
16
|
+
| dependencies | [](https://depfu.com/github/pboling/resque-unique_by_arity?project_id=2729) |
|
17
|
+
| continuous integration | [](https://travis-ci.org/pboling/resque-unique_by_arity) |
|
18
|
+
| test coverage | [](https://codeclimate.com/github/pboling/resque-unique_by_arity/test_coverage) |
|
19
|
+
| maintainability | [](https://codeclimate.com/github/pboling/resque-unique_by_arity/maintainability) |
|
20
|
+
| code triage | [](https://www.codetriage.com/pboling/resque-unique_by_arity) |
|
21
|
+
| homepage | [on Github.com][homepage], [on Railsbling.com][blogpage] |
|
22
|
+
| documentation | [on RDoc.info][documentation] |
|
23
|
+
| Spread ~♡ⓛⓞⓥⓔ♡~ | [🌍 🌎 🌏](https://about.me/peter.boling), [🍚](https://www.crowdrise.com/helprefugeeswithhopefortomorrowliberia/fundraiser/peterboling), [➕](https://plus.google.com/+PeterBoling/posts), [👼](https://angel.co/peter-boling), [🐛](https://www.topcoder.com/members/pboling/), [:shipit:](http://coderwall.com/pboling), [](http://twitter.com/galtzo) |
|
24
|
+
|
25
|
+
## Important Note
|
26
|
+
|
27
|
+
You must configure this gem *after* you define the perform class method in your job or the arity validation will not work properly.
|
9
28
|
|
10
29
|
Example:
|
11
30
|
|
@@ -273,5 +292,48 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
273
292
|
|
274
293
|
## Contributing
|
275
294
|
|
276
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/pboling/resque-unique_by_arity.
|
295
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/pboling/resque-unique_by_arity. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
296
|
+
|
297
|
+
1. Fork it
|
298
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
299
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
300
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
301
|
+
5. Create new Pull Request
|
302
|
+
|
303
|
+
## Code of Conduct
|
304
|
+
|
305
|
+
Everyone interacting in the Resque::UniqueByArity project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/pboling/resque-unique_by_arity/blob/master/CODE_OF_CONDUCT.md).
|
306
|
+
|
307
|
+
## Versioning
|
308
|
+
|
309
|
+
This library aims to adhere to [Semantic Versioning 2.0.0][semver].
|
310
|
+
Violations of this scheme should be reported as bugs. Specifically,
|
311
|
+
if a minor or patch version is released that breaks backward
|
312
|
+
compatibility, a new version should be immediately released that
|
313
|
+
restores compatibility. Breaking changes to the public API will
|
314
|
+
only be introduced with new major versions.
|
315
|
+
|
316
|
+
As a result of this policy, you can (and should) specify a
|
317
|
+
dependency on this gem using the [Pessimistic Version Constraint][pvc] with two digits of precision.
|
318
|
+
|
319
|
+
For example:
|
320
|
+
|
321
|
+
```ruby
|
322
|
+
spec.add_dependency 'resque-unique_by_arity', '~> 0.0'
|
323
|
+
```
|
324
|
+
|
325
|
+
|
326
|
+
## License
|
327
|
+
|
328
|
+
* Copyright (c) 2017 - 2018 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
|
329
|
+
|
330
|
+
[](https://opensource.org/licenses/MIT)
|
277
331
|
|
332
|
+
[license]: LICENSE
|
333
|
+
[semver]: http://semver.org/
|
334
|
+
[pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
|
335
|
+
[railsbling]: http://www.railsbling.com
|
336
|
+
[peterboling]: http://www.peterboling.com
|
337
|
+
[documentation]: http://rdoc.info/github/pboling/resque-unique_by_arity/frames
|
338
|
+
[homepage]: https://github.com/pboling/resque-unique_by_arity/
|
339
|
+
[blogpage]: http://www.railsbling.com/tags/resque-unique_by_arity/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-unique_by_arity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: resque-unique_at_runtime
|
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
137
|
version: '0'
|
138
138
|
requirements: []
|
139
139
|
rubyforge_project:
|
140
|
-
rubygems_version: 2.7.
|
140
|
+
rubygems_version: 2.7.7
|
141
141
|
signing_key:
|
142
142
|
specification_version: 4
|
143
143
|
summary: Magic hacks which allow integration of resque_solo and resque-unique_at_runtime_simultaneously
|