resque-remote-namespace 0.2.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d9b3c910b485a8389555b28f5a59fb477b507f60
4
+ data.tar.gz: cdd14fb7b968556c98228576de6ffe5b13471b2b
5
+ SHA512:
6
+ metadata.gz: 20bc6a075fc8ed8b9b3e6373082b0334d53ac5917e629085f0a004ea0e98ca28a10d1de00a793ccc5fa02048e7d9b35d9bbaa9621af915286682ef042a68c0ab
7
+ data.tar.gz: 3620dc8a98796387fe6a98906399342994c92cb6a818050b3f1d22c3455627e0dd4dae5dc604e3ad83b10240962342477e481c01837b2d0b5fccc3c4893b12eb
@@ -3,7 +3,7 @@ PATH
3
3
  specs:
4
4
  resque-remote-namespace (0.2.0)
5
5
  resque (~> 1.0)
6
- resque-scheduler
6
+ resque-scheduler (~> 3.0)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
@@ -16,22 +16,25 @@ GEM
16
16
  debugger-linecache (1.2.0)
17
17
  debugger-ruby_core_source (1.2.0)
18
18
  diff-lcs (1.1.3)
19
- multi_json (1.7.0)
19
+ mono_logger (1.1.0)
20
+ multi_json (1.10.1)
20
21
  rack (1.5.2)
21
- rack-protection (1.5.0)
22
+ rack-protection (1.5.3)
22
23
  rack
23
- redis (3.0.3)
24
- redis-namespace (1.2.1)
25
- redis (~> 3.0.0)
26
- resque (1.23.1)
24
+ redis (3.0.7)
25
+ redis-namespace (1.4.1)
26
+ redis (~> 3.0.4)
27
+ resque (1.25.2)
28
+ mono_logger (~> 1.0)
27
29
  multi_json (~> 1.0)
28
- redis-namespace (~> 1.0)
30
+ redis-namespace (~> 1.3)
29
31
  sinatra (>= 0.9.2)
30
32
  vegas (~> 0.1.2)
31
- resque-scheduler (2.0.0)
32
- redis (>= 2.0.1)
33
- resque (>= 1.20.0)
34
- rufus-scheduler
33
+ resque-scheduler (3.0.0)
34
+ mono_logger (~> 1.0)
35
+ redis (~> 3.0)
36
+ resque (~> 1.25)
37
+ rufus-scheduler (~> 2.0)
35
38
  rspec (2.8.0)
36
39
  rspec-core (~> 2.8.0)
37
40
  rspec-expectations (~> 2.8.0)
@@ -40,14 +43,16 @@ GEM
40
43
  rspec-expectations (2.8.0)
41
44
  diff-lcs (~> 1.1.2)
42
45
  rspec-mocks (2.8.0)
43
- rufus-scheduler (2.0.18)
44
- tzinfo (>= 0.3.23)
45
- sinatra (1.4.1)
46
- rack (~> 1.5, >= 1.5.2)
46
+ rufus-scheduler (2.0.24)
47
+ tzinfo (>= 0.3.22)
48
+ sinatra (1.4.5)
49
+ rack (~> 1.4)
47
50
  rack-protection (~> 1.4)
48
51
  tilt (~> 1.3, >= 1.3.4)
49
- tilt (1.3.6)
50
- tzinfo (0.3.37)
52
+ thread_safe (0.3.4)
53
+ tilt (1.4.1)
54
+ tzinfo (1.2.1)
55
+ thread_safe (~> 0.1)
51
56
  vegas (0.1.11)
52
57
  rack (>= 1.0.0)
53
58
 
data/README.md CHANGED
@@ -2,15 +2,12 @@
2
2
 
3
3
  # Installation
4
4
 
5
- **Note: You must have a version of Resque installed or added to your Gemfile for `resque-remote-namespace` to work. Resque Version 0.10.0 has been tested to work with the current release of `resque-remote-namespace`.**
6
-
7
5
  Add it to your Bundler `Gemfile`:
8
6
 
9
7
  # Gemfile
10
- gem 'resque', '0.10.0'
11
- gem 'resque-remote-namespace', :git => 'git://github.com/lafave/resque-remote-namespace.git'
8
+ gem 'resque-remote-namespace'
12
9
 
13
- And then run a `bundle install`.
10
+ And then run `bundle install`.
14
11
 
15
12
  # Usage
16
13
 
@@ -18,6 +15,9 @@ And then run a `bundle install`.
18
15
  ```ruby
19
16
  # Enqueues TestJob to the "default" queue on the "resque:foo" redis namespace with "foo" as its sole argument.
20
17
  Resque.remote_enqueue_to 'default', 'resque:foo', 'TestJob', 'foo'
18
+
19
+ # Enqueues TestJob to the "default" queue on the "resque:foo" redis namespace in 5 minutes with "foo" as its sole argument. (Uses resque-scheduler gem)
20
+ Resque.remote_enqueue_to_in 5.minutes, 'default', 'resque:foo', 'TestJob', 'foo'
21
21
  ```
22
22
 
23
23
  ## Dequeueing
@@ -34,7 +34,7 @@ To fix this, just create a stub of the job you are remote enqueueing. Ex:
34
34
  ```ruby
35
35
  # Stub of TestJob. Actual implementation is located in X.
36
36
  class TestJob
37
- def self.perform(param1) end
37
+ def self.perform(*args) end
38
38
  end
39
39
  ```
40
40
 
@@ -44,7 +44,7 @@ Note that the actual implementation of the remote job does not need to have its
44
44
  class TestJob
45
45
  # no queue needed
46
46
 
47
- def self.perform(param1)
47
+ def self.perform(*args)
48
48
  ...
49
49
  end
50
50
  end
@@ -1,4 +1,4 @@
1
1
  require 'resque'
2
- require 'resque_scheduler'
2
+ require 'resque-scheduler'
3
3
  require 'resque-remote-namespace/remote_namespace'
4
- require 'resque-remote-namespace/support/shared_helpers'
4
+ require 'resque-remote-namespace/support/shared_helpers'
@@ -1,7 +1,7 @@
1
1
  module Resque
2
2
  module Plugins
3
3
  module RemoteNamespace
4
- VERSION = "0.2.0"
4
+ VERSION = "1.0.0"
5
5
  end
6
6
  end
7
7
  end
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
26
26
  s.rubyforge_project = 'resque-remote-namespace'
27
27
 
28
28
  s.add_dependency 'resque', '~> 1.0'
29
- s.add_dependency 'resque-scheduler'
29
+ s.add_dependency 'resque-scheduler', '~> 3.0'
30
30
 
31
31
  s.add_development_dependency 'bundler', '~> 1.0'
32
32
  s.add_development_dependency 'debugger'
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-remote-namespace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 1.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - BJ Neilsen
@@ -10,12 +9,11 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-03-21 00:00:00.000000000 Z
12
+ date: 2014-06-13 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: resque
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - ~>
21
19
  - !ruby/object:Gem::Version
@@ -23,7 +21,6 @@ dependencies:
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
25
  - - ~>
29
26
  - !ruby/object:Gem::Version
@@ -31,23 +28,20 @@ dependencies:
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: resque-scheduler
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - ~>
37
33
  - !ruby/object:Gem::Version
38
- version: '0'
34
+ version: '3.0'
39
35
  type: :runtime
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - ~>
45
40
  - !ruby/object:Gem::Version
46
- version: '0'
41
+ version: '3.0'
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: bundler
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
46
  - - ~>
53
47
  - !ruby/object:Gem::Version
@@ -55,7 +49,6 @@ dependencies:
55
49
  type: :development
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
53
  - - ~>
61
54
  - !ruby/object:Gem::Version
@@ -63,23 +56,20 @@ dependencies:
63
56
  - !ruby/object:Gem::Dependency
64
57
  name: debugger
65
58
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
59
  requirements:
68
- - - ! '>='
60
+ - - '>='
69
61
  - !ruby/object:Gem::Version
70
62
  version: '0'
71
63
  type: :development
72
64
  prerelease: false
73
65
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
66
  requirements:
76
- - - ! '>='
67
+ - - '>='
77
68
  - !ruby/object:Gem::Version
78
69
  version: '0'
79
70
  - !ruby/object:Gem::Dependency
80
71
  name: rspec
81
72
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
73
  requirements:
84
74
  - - ~>
85
75
  - !ruby/object:Gem::Version
@@ -87,12 +77,11 @@ dependencies:
87
77
  type: :development
88
78
  prerelease: false
89
79
  version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
80
  requirements:
92
81
  - - ~>
93
82
  - !ruby/object:Gem::Version
94
83
  version: '2.8'
95
- description: ! "\n Remotely enqueueing and dequeueing jobs across Redis namespaces
84
+ description: "\n Remotely enqueueing and dequeueing jobs across Redis namespaces
96
85
  should\n be simpler. BJ Neilsen laid a solid foundation for this gem, which is\n
97
86
  \ forked off of his gem resque-remote. That said, these two gems provide a\n different
98
87
  set of methods for remote enqueueing and dequeueing.\n\n If all you need is remote
@@ -118,27 +107,27 @@ files:
118
107
  - spec/spec_helper.rb
119
108
  homepage: http://github.com/lafave/resque-remote-namespace
120
109
  licenses: []
110
+ metadata: {}
121
111
  post_install_message:
122
112
  rdoc_options: []
123
113
  require_paths:
124
114
  - lib
125
115
  required_ruby_version: !ruby/object:Gem::Requirement
126
- none: false
127
116
  requirements:
128
- - - ! '>='
117
+ - - '>='
129
118
  - !ruby/object:Gem::Version
130
119
  version: '0'
131
120
  required_rubygems_version: !ruby/object:Gem::Requirement
132
- none: false
133
121
  requirements:
134
- - - ! '>='
122
+ - - '>='
135
123
  - !ruby/object:Gem::Version
136
124
  version: 1.3.6
137
125
  requirements: []
138
126
  rubyforge_project: resque-remote-namespace
139
- rubygems_version: 1.8.23
127
+ rubygems_version: 2.0.2
140
128
  signing_key:
141
- specification_version: 3
129
+ specification_version: 4
142
130
  summary: Resque plugin to allow remote enqueueing and dequeueing of jobs across different
143
131
  namespaces.
144
132
  test_files: []
133
+ has_rdoc: