resque-assurances 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6fc5d107fd8d5b3cabce5237c1ac5fb97ff6727d
4
+ data.tar.gz: 3c59a202d683fc50a0a26e6134dfbf333d2687d1
5
+ SHA512:
6
+ metadata.gz: ad423fa22dd344cad5a70964355cca7daf871be4c33de2ed539f0924c59e4c05506ebffc3e599d13a850acd69ffabe5912c982f930660fa622559c3103161430
7
+ data.tar.gz: 9655608707479317b7c55a25b10abe5299ce6db1757af2746be7a68f92ddbd4f13522f2bee04dc9620bd4a64e66095def45ac8f7096fcdb5e7339bc5befe5cbd
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ /Gemfile.lock
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.1.2
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2014 Nathan Fixler
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # resque-assurances
2
+
3
+ Provide specific assurances for resque jobs.
4
+
5
+ ## Getting Started
6
+
7
+ If you're using Bundler, you can add resque-assurances to your Gemfile:
8
+
9
+ ```ruby
10
+ gem 'resque-assurances'
11
+ ```
12
+
13
+ Or manually install the resque-assurances gem:
14
+
15
+ ```shell
16
+ gem install resque-assurances
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ### Uniqueness
22
+
23
+ Generates an MD5 of the job's arguments and uses a redis set to record what
24
+ jobs have been queued. Jobs that have been performed will be removed from the
25
+ set so that they can be queued again.
26
+
27
+ ```ruby
28
+ class MyWorker
29
+ extend Resque::Assurances::Uniqueness
30
+
31
+ @queue = :my_work
32
+ end
33
+
34
+ Resque.enqueue(MyWorker, 42)
35
+ Resque.enqueue(MyWorker, 42) # This will do nothing.
36
+ ```
37
+
38
+ ## Contributing
39
+
40
+ Find a mistake? Submit a pull request!
@@ -0,0 +1,5 @@
1
+ module Resque
2
+ module Assurances
3
+ VERSION = '0.0.0'
4
+ end
5
+ end
@@ -0,0 +1,23 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ require 'resque-assurances/version'
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = 'resque-assurances'
9
+ s.version = Resque::Assurances::VERSION
10
+ s.authors = ['Nathan Fixler']
11
+ s.email = ['nathan@fixler.org']
12
+ s.homepage = 'https://rubygems.org/gems/resque-assurances'
13
+ s.license = 'MIT'
14
+ s.summary = 'Provide assurances for resque jobs.'
15
+ s.description = 'Collection of resque plugins that individually provide specific assurances about how resque workers will behave.'
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- spec/*`.split("n")
19
+
20
+ s.add_runtime_dependency 'resque', '>= 1.0', '< 2'
21
+ s.add_development_dependency 'rspec'
22
+ s.add_development_dependency 'resque_spec'
23
+ end
metadata ADDED
@@ -0,0 +1,100 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: resque-assurances
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Nathan Fixler
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-06-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: resque
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2'
33
+ - !ruby/object:Gem::Dependency
34
+ name: rspec
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: resque_spec
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ description: Collection of resque plugins that individually provide specific assurances
62
+ about how resque workers will behave.
63
+ email:
64
+ - nathan@fixler.org
65
+ executables: []
66
+ extensions: []
67
+ extra_rdoc_files: []
68
+ files:
69
+ - ".gitignore"
70
+ - ".ruby-version"
71
+ - Gemfile
72
+ - LICENSE.txt
73
+ - README.md
74
+ - lib/resque-assurances/version.rb
75
+ - resque-assurances.gemspec
76
+ homepage: https://rubygems.org/gems/resque-assurances
77
+ licenses:
78
+ - MIT
79
+ metadata: {}
80
+ post_install_message:
81
+ rdoc_options: []
82
+ require_paths:
83
+ - lib
84
+ required_ruby_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ required_rubygems_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ requirements: []
95
+ rubyforge_project:
96
+ rubygems_version: 2.2.2
97
+ signing_key:
98
+ specification_version: 4
99
+ summary: Provide assurances for resque jobs.
100
+ test_files: []