resque-sliders 0.0.8 → 0.0.9

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/README.md CHANGED
@@ -56,6 +56,7 @@ Options:
56
56
  * `Max Children (-m|--max MAX)`: Maximum number of workers to run on host (default: 10)
57
57
  * `Rakefile (-r|--rakefile RAKEFILE)`: Pass along a rakefile to use when calling `rake ... resque:work` - shouldn't be needed if run from project directory
58
58
  * `Force (-f|--force)`: Force any currently running KEWatcher processes to QUIT, waiting for it to do so, and starting in its place
59
+ * `RAILS_ENV`: If you're using rails, you need to set your RAILS_ENV variable
59
60
 
60
61
  **Controlling the Daemon**
61
62
 
@@ -86,3 +87,12 @@ to a file, like resque-web_init.rb, and run resque-web:
86
87
  ```
87
88
  resque-web resque-web_init.rb
88
89
  ```
90
+
91
+
92
+ Platforms Tested
93
+ ----------------
94
+
95
+ `resque-sliders` has been tested on the following platforms:
96
+
97
+ * `REE-1.8.7`
98
+ * `Ruby-1.9.3-p0`
data/Rakefile CHANGED
@@ -31,5 +31,8 @@ task :git_tag_version do
31
31
  git_tags = `git tag -l`.split.map { |x| x.gsub(/v/, '') }
32
32
  version = Resque::Plugins::ResqueSliders::Version
33
33
  commit_sha = `git log -1 HEAD|head -n1|awk '{print $2}'`
34
- (puts version, commit_sha; `git tag v#{version} #{commit_sha}`) unless git_tags.include?(version)
34
+ unless git_tags.include?(version)
35
+ (puts version, commit_sha; `git tag v#{version} #{commit_sha}`)
36
+ `rake build`
37
+ end
35
38
  end
@@ -9,13 +9,9 @@ module Resque
9
9
  def self.registered(app)
10
10
 
11
11
  app.get '/sliders' do
12
- case params.keys.to_s
13
- when 'js'
14
- public_view(params[:js], 'js')
15
- when 'css'
16
- public_view(params[:css], 'css')
17
- when 'img'
18
- public_view(params[:img], 'images')
12
+ key = params.keys.first
13
+ if %w(img css js).include? key
14
+ public_view(params[key], key == 'img' ? 'images' : key)
19
15
  else
20
16
  @sliders = Commander.new
21
17
  slider_view :index
@@ -1,7 +1,7 @@
1
1
  module Resque
2
2
  module Plugins
3
3
  module ResqueSliders
4
- Version = VERSION = '0.0.8'
4
+ Version = VERSION = '0.0.9'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,49 +1,40 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: resque-sliders
3
- version: !ruby/object:Gem::Version
4
- hash: 15
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.9
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 8
10
- version: 0.0.8
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Kevin Mullin
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-02-02 00:00:00 -08:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2012-02-08 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: resque
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2156319720 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
18
+ requirements:
27
19
  - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 43
30
- segments:
31
- - 1
32
- - 15
33
- - 0
20
+ - !ruby/object:Gem::Version
34
21
  version: 1.15.0
35
22
  type: :runtime
36
- version_requirements: *id001
37
- description: " Resque-Sliders is a plugin for Resque that enables you to control multiple hosts'\n running resque workers with a monitor PID watching over them. From the resque-web UI, you\n can add/delete/change which queues are running on each host running the monitor PID.\n Sliders are in the UI and allow you to adjust how many workers on either host should be running.\n"
23
+ prerelease: false
24
+ version_requirements: *2156319720
25
+ description: ! " Resque-Sliders is a plugin for Resque that enables you to control
26
+ multiple hosts'\n running resque workers with a monitor PID watching over them.
27
+ \ From the resque-web UI, you\n can add/delete/change which queues are running
28
+ on each host running the monitor PID.\n Sliders are in the UI and allow you to
29
+ adjust how many workers on either host should be running.\n"
38
30
  email: kevin@kpmullin.com
39
- executables:
31
+ executables:
40
32
  - kewatcher
41
33
  extensions: []
42
-
43
- extra_rdoc_files:
34
+ extra_rdoc_files:
44
35
  - README.md
45
36
  - MIT-LICENSE
46
- files:
37
+ files:
47
38
  - Gemfile
48
39
  - MIT-LICENSE
49
40
  - README.md
@@ -77,41 +68,32 @@ files:
77
68
  - test/redis-test.conf
78
69
  - test/resque-sliders_test.rb
79
70
  - test/test_helper.rb
80
- has_rdoc: true
81
71
  homepage: https://github.com/kmullin/resque-sliders
82
72
  licenses: []
83
-
84
73
  post_install_message:
85
74
  rdoc_options: []
86
-
87
- require_paths:
75
+ require_paths:
88
76
  - lib
89
- required_ruby_version: !ruby/object:Gem::Requirement
77
+ required_ruby_version: !ruby/object:Gem::Requirement
90
78
  none: false
91
- requirements:
92
- - - ">="
93
- - !ruby/object:Gem::Version
94
- hash: 3
95
- segments:
96
- - 0
97
- version: "0"
98
- required_rubygems_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ! '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
84
  none: false
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- hash: 3
104
- segments:
105
- - 0
106
- version: "0"
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
107
89
  requirements: []
108
-
109
90
  rubyforge_project:
110
- rubygems_version: 1.5.2
91
+ rubygems_version: 1.8.15
111
92
  signing_key:
112
93
  specification_version: 3
113
- summary: "Resque-Sliders: a plugin for resque that controls which resque workers are running on each host, from within Resque-web"
114
- test_files:
94
+ summary: ! 'Resque-Sliders: a plugin for resque that controls which resque workers
95
+ are running on each host, from within Resque-web'
96
+ test_files:
115
97
  - test/redis-test.conf
116
98
  - test/resque-sliders_test.rb
117
99
  - test/test_helper.rb