resque_sliding_window 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YTY0MmI2YjUyMmRhYTI0MjI0YjMyN2YxODg5MTY4MTU1MmExYjAwMw==
5
+ data.tar.gz: !binary |-
6
+ YjVkZDI1MjE2MGE4NTliYzE0ZTJmZmI3MDMyNTFlZTVlMDVlMGVhNQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MmI4ZDg2OTJjMGNiNWY4ODBiZmEyNjI5NzY1ZDRhZmI0MjkxYjBkZGNhYmRm
10
+ Mzk4NWU1NDEyZDFhN2YwZTI1NGE2ODExNTQ5ZGVhOTE5MjczNWZkN2U5MTRi
11
+ ZDUxMTUxZjMxOThmMWExNzUwZGUxZDNhMGMwY2EyM2ExNzZmZTI=
12
+ data.tar.gz: !binary |-
13
+ M2E5NmJhNmNmMWQxYzVhOWE0NjEyMzRmZGNjZDcwYjg5YTU5YzNmZTM0ODdm
14
+ ODdmZDllNzk0NTllYjBlZWNlNjQzMjMwMzdiNjk5OGI1ZDViNTU0YzQ3MjI1
15
+ ZmE5Y2NhOWJmZTBhOGY3M2UxYTg1NjQ3OWRhYjk0NzM4MzJjNWY=
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # ResqueSlidingWindow
2
+ [![Gem Version](https://badge.fury.io/rb/resque_sliding_window.png)](http://badge.fury.io/rb/resque_sliding_window)
2
3
 
3
4
  Want a sliding window for debouncing bursty Resque events? Here it is.
4
5
 
@@ -17,6 +18,18 @@ And then execute:
17
18
  $ bundle
18
19
  ```
19
20
 
21
+ ## Setup
22
+
23
+ You might have a glance at the [resque-scheduler](https://github.com/jonhyman/resque-scheduler) gem.
24
+ You need to setup a worker. To run one manually, simply:
25
+
26
+ ```bash
27
+ rake resque:scheduler
28
+ ```
29
+
30
+ But again, see the [resque-scheduler](https://github.com/jonhyman/resque-scheduler) gem as there
31
+ is some setup for the rake task.
32
+
20
33
  ## Usage
21
34
 
22
35
  ```ruby
@@ -1,5 +1,4 @@
1
1
  require 'resque'
2
- require 'resque_scheduler'
3
2
  require 'resque/scheduler'
4
3
  module ResqueSlidingWindow
5
4
  module SchedulerPatches
@@ -1,3 +1,3 @@
1
1
  module ResqueSlidingWindow
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -22,4 +22,5 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency "rake"
23
23
 
24
24
  spec.add_dependency 'resque', '~> 1.21'
25
+ spec.add_dependency 'resque-scheduler', '~> 4.3'
25
26
  end
metadata CHANGED
@@ -1,64 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque_sliding_window
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jon Phenow
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-11 00:00:00.000000000 Z
11
+ date: 2016-10-04 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
- type: :development
17
15
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
16
  requirements:
20
17
  - - ~>
21
18
  - !ruby/object:Gem::Version
22
19
  version: '1.3'
20
+ type: :development
21
+ prerelease: false
23
22
  version_requirements: !ruby/object:Gem::Requirement
24
- none: false
25
23
  requirements:
26
24
  - - ~>
27
25
  - !ruby/object:Gem::Version
28
26
  version: '1.3'
29
- prerelease: false
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
- type: :development
33
29
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
30
  requirements:
36
31
  - - ! '>='
37
32
  - !ruby/object:Gem::Version
38
33
  version: '0'
34
+ type: :development
35
+ prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
- none: false
41
37
  requirements:
42
38
  - - ! '>='
43
39
  - !ruby/object:Gem::Version
44
40
  version: '0'
45
- prerelease: false
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: resque
48
- type: :runtime
49
43
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
44
  requirements:
52
45
  - - ~>
53
46
  - !ruby/object:Gem::Version
54
47
  version: '1.21'
48
+ type: :runtime
49
+ prerelease: false
55
50
  version_requirements: !ruby/object:Gem::Requirement
56
- none: false
57
51
  requirements:
58
52
  - - ~>
59
53
  - !ruby/object:Gem::Version
60
54
  version: '1.21'
55
+ - !ruby/object:Gem::Dependency
56
+ name: resque-scheduler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '4.3'
62
+ type: :runtime
61
63
  prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '4.3'
62
69
  description: Sliding Window unique-job workflow for Resque jobs
63
70
  email:
64
71
  - j.phenow@gmail.com
@@ -80,32 +87,25 @@ files:
80
87
  homepage: https://github.com/sportngin/resque_sliding_window
81
88
  licenses:
82
89
  - MIT
90
+ metadata: {}
83
91
  post_install_message:
84
92
  rdoc_options: []
85
93
  require_paths:
86
94
  - lib
87
95
  required_ruby_version: !ruby/object:Gem::Requirement
88
- none: false
89
96
  requirements:
90
97
  - - ! '>='
91
98
  - !ruby/object:Gem::Version
92
- segments:
93
- - 0
94
99
  version: '0'
95
- hash: -1390516187519382713
96
100
  required_rubygems_version: !ruby/object:Gem::Requirement
97
- none: false
98
101
  requirements:
99
102
  - - ! '>='
100
103
  - !ruby/object:Gem::Version
101
- segments:
102
- - 0
103
104
  version: '0'
104
- hash: -1390516187519382713
105
105
  requirements: []
106
106
  rubyforge_project:
107
- rubygems_version: 1.8.24
107
+ rubygems_version: 2.4.8
108
108
  signing_key:
109
- specification_version: 3
109
+ specification_version: 4
110
110
  summary: Sliding Window unique-job workflow for Resque jobs
111
111
  test_files: []