resque-unique_at_runtime 4.0.1 → 4.0.2

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.
data/LICENSE DELETED
@@ -1,23 +0,0 @@
1
- Copyright (c) 2012 Jonathan R. Wallace
2
- Copyright (c) 2017 - 2018 Peter H. Boling
3
-
4
- MIT License
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining
7
- a copy of this software and associated documentation files (the
8
- "Software"), to deal in the Software without restriction, including
9
- without limitation the rights to use, copy, modify, merge, publish,
10
- distribute, sublicense, and/or sell copies of the Software, and to
11
- permit persons to whom the Software is furnished to do so, subject to
12
- the following conditions:
13
-
14
- The above copyright notice and this permission notice shall be
15
- included in all copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile DELETED
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env rake
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/gem_tasks'
5
- require 'rspec/core/rake_task'
6
-
7
- RSpec::Core::RakeTask.new
8
-
9
- task default: :spec
10
- task test: :spec
@@ -1,54 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require File.expand_path('lib/resque/unique_at_runtime/version', __dir__)
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = 'resque-unique_at_runtime'
7
- spec.version = Resque::UniqueAtRuntime::VERSION
8
- spec.authors = ['Peter H. Boling', 'Jonathan R. Wallace']
9
- spec.email = ['peter.boling@gmail.com', 'jonathan.wallace@gmail.com']
10
- spec.license = 'MIT'
11
-
12
- spec.summary = 'A resque plugin that ensures job uniqueness at runtime.'
13
- spec.homepage = 'http://github.com/pboling/resque-unique_at_runtime'
14
- spec.required_ruby_version = '>= 2.3.0'
15
-
16
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
- f.match(%r{^(test|spec|features)/})
18
- end
19
- spec.require_paths = ['lib']
20
-
21
- spec.add_runtime_dependency 'colorize', '>= 0.8'
22
- spec.add_runtime_dependency 'resque', '>= 1.2'
23
-
24
- spec.add_development_dependency 'byebug', '~> 10.0'
25
- spec.add_development_dependency 'fakeredis', '~> 0.7'
26
- spec.add_development_dependency 'pry', '~> 0.11'
27
- spec.add_development_dependency 'pry-byebug', '~> 3.6'
28
- spec.add_development_dependency 'rake', '~> 12.3'
29
- spec.add_development_dependency 'rspec', '>= 3.0'
30
- spec.add_development_dependency 'rspec-block_is_expected', '~> 1.0'
31
- spec.add_development_dependency 'rspec-stubbed_env', '~> 1.0'
32
- spec.add_development_dependency 'rubocop', '~> 0.60'
33
- spec.add_development_dependency 'rubocop-rspec', '~> 1.30'
34
- spec.add_development_dependency 'timecop'
35
-
36
- spec.description = <<~desc
37
- Ensures that for a given queue, only one worker is working on a job at any given time.
38
-
39
- Example:
40
-
41
- require 'resque/plugins/unique_at_runtime'
42
-
43
- class StrictlySerialJob
44
- include Resque::Plugins::UniqueAtRuntime
45
-
46
- @queue = :serial_work
47
-
48
- def self.perform
49
- # only one at a time in this block, no parallelism allowed for this
50
- # particular queue
51
- end
52
- end
53
- desc
54
- end