resque-web_no_act 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -18,7 +18,25 @@ Only mounting via routes is available, not standalone executable.
18
18
  routes.rb
19
19
 
20
20
  ```ruby
21
- mount Resque::ServerNoAct.new, :at => "/resque_no_act"
21
+ mount Resque::ServerNoAct.new, :at => "/monitor"
22
+ ```
23
+
24
+ #### Authentication
25
+
26
+ I found authentication a bit tricky, since subclassing will use the parents authentication as well. Here is what I did to have different passwords. Note: This only works if both have different namespaces, so ```/resque``` and ```/monitor``` works for me. ```/resque``` and ```/resque_no_act``` does not.
27
+
28
+
29
+ ```ruby
30
+ class Resque::ServerOriginal < Resque::Server
31
+ end
32
+
33
+ Resque::ServerOriginal.use Rack::Auth::Basic, "Resque Interface" do |username, password|
34
+ password == 'big_secret'
35
+ end
36
+
37
+ Resque::ServerNoAct.use Rack::Auth::Basic, "Child Proof Resque Interface" do |username, password|
38
+ password == 'secret'
39
+ end
22
40
  ```
23
41
 
24
42
  #### Contributing to resque-web\_no\_act
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -73,6 +73,10 @@ module Resque
73
73
  redirect u('no_act')
74
74
  end
75
75
 
76
+ post "/cleaner_stale" do
77
+ redirect u('no_act')
78
+ end
79
+
76
80
  # Resque::History
77
81
  post "/history/clear" do
78
82
  redirect u('no_act')
@@ -0,0 +1,67 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "resque-web_no_act"
8
+ s.version = "0.2.3"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Rainer Kuhn"]
12
+ s.date = "2012-09-04"
13
+ s.description = "A stripped version of the Resque web interface that's safe to use by not so trustworthy personnel. You get all the same information as the regular interface, but can't delete or retry anything."
14
+ s.email = "ticktricktrack@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "LICENSE.txt",
23
+ "README.md",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "lib/resque-web_no_act.rb",
27
+ "lib/resque/server_no_act.rb",
28
+ "lib/resque/server_no_act/public/favicon.ico",
29
+ "lib/resque/server_no_act/public/idle.png",
30
+ "lib/resque/server_no_act/public/jquery-1.3.2.min.js",
31
+ "lib/resque/server_no_act/public/jquery.relatize_date.js",
32
+ "lib/resque/server_no_act/public/poll.png",
33
+ "lib/resque/server_no_act/public/ranger.js",
34
+ "lib/resque/server_no_act/public/reset.css",
35
+ "lib/resque/server_no_act/public/style.css",
36
+ "lib/resque/server_no_act/public/working.png",
37
+ "lib/resque/server_no_act/views/no_act.erb",
38
+ "resque-web_no_act.gemspec"
39
+ ]
40
+ s.homepage = "http://github.com/ticktricktrack/resque-web_no_act"
41
+ s.licenses = ["MIT"]
42
+ s.require_paths = ["lib"]
43
+ s.rubygems_version = "1.8.24"
44
+ s.summary = "Look don't touch!"
45
+
46
+ if s.respond_to? :specification_version then
47
+ s.specification_version = 3
48
+
49
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
50
+ s.add_runtime_dependency(%q<resque>, [">= 0"])
51
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
52
+ s.add_development_dependency(%q<bundler>, ["~> 1.2.0"])
53
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
54
+ else
55
+ s.add_dependency(%q<resque>, [">= 0"])
56
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
57
+ s.add_dependency(%q<bundler>, ["~> 1.2.0"])
58
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
59
+ end
60
+ else
61
+ s.add_dependency(%q<resque>, [">= 0"])
62
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
63
+ s.add_dependency(%q<bundler>, ["~> 1.2.0"])
64
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
65
+ end
66
+ end
67
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-web_no_act
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-03 00:00:00.000000000 Z
12
+ date: 2012-09-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: resque
@@ -103,6 +103,7 @@ files:
103
103
  - lib/resque/server_no_act/public/style.css
104
104
  - lib/resque/server_no_act/public/working.png
105
105
  - lib/resque/server_no_act/views/no_act.erb
106
+ - resque-web_no_act.gemspec
106
107
  homepage: http://github.com/ticktricktrack/resque-web_no_act
107
108
  licenses:
108
109
  - MIT
@@ -118,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
119
  version: '0'
119
120
  segments:
120
121
  - 0
121
- hash: -23655318166941275
122
+ hash: 1127327273213028196
122
123
  required_rubygems_version: !ruby/object:Gem::Requirement
123
124
  none: false
124
125
  requirements: