delayed_job_web 1.2.7 → 1.2.8
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.
Potentially problematic release.
This version of delayed_job_web might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/delayed_job_web.gemspec +1 -1
- data/lib/delayed_job_web.rb +1 -0
- data/lib/delayed_job_web/application/app.rb +6 -4
- data/lib/delayed_job_web/railtie.rb +7 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7179527cc2cebed1494d856765bac6dbb0657b8b
|
4
|
+
data.tar.gz: 887a714ebd1e601459994058b90fe04f4e538eb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 069cc73508226c8e1dde5a1b37aa8641cc9438d58386c48a8db0fdb93e253d58dcedf30aa0e30daa8b3b010d640cc62ed3113169e5054cafbe557fa1f85161c0
|
7
|
+
data.tar.gz: afcff45a056936ed64488f3c3b5c79953d8a486529231bef7dfb39693fcba46753a7f785883adf8517612383b572fd277de503e9130fb100d31e560f49001be3
|
data/delayed_job_web.gemspec
CHANGED
data/lib/delayed_job_web.rb
CHANGED
@@ -10,9 +10,7 @@ class DelayedJobWeb < Sinatra::Base
|
|
10
10
|
set :views, File.expand_path('../views', __FILE__)
|
11
11
|
|
12
12
|
# Enable sessions so we can use CSRF protection
|
13
|
-
|
14
|
-
# Unique cookie key that won't clash with Rails etc
|
15
|
-
:key => "rack.delayed-job-web-session"
|
13
|
+
enable :sessions
|
16
14
|
|
17
15
|
set :protection,
|
18
16
|
# Various session protections
|
@@ -84,7 +82,11 @@ class DelayedJobWeb < Sinatra::Base
|
|
84
82
|
end
|
85
83
|
|
86
84
|
def csrf_token_tag
|
87
|
-
|
85
|
+
# If csrf_token is nil, and we submit a blank string authenticity_token
|
86
|
+
# param, Rack::Protection will fail.
|
87
|
+
if csrf_token
|
88
|
+
"<input type='hidden' name='authenticity_token' value='#{h csrf_token}'>"
|
89
|
+
end
|
88
90
|
end
|
89
91
|
|
90
92
|
get '/overview' do
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Sinatra will automatically use Rails sessions if mounted within a Rails app.
|
2
|
+
#
|
3
|
+
# If you enable sessions in a Sinatra app, and then mount it in a Rails 4 app,
|
4
|
+
# Rack::Session will blow up because ActionDispatch::Request::Session does not
|
5
|
+
# implement #each.
|
6
|
+
|
7
|
+
DelayedJobWeb.disable :sessions
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delayed_job_web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erick Schmitt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
@@ -113,6 +113,7 @@ files:
|
|
113
113
|
- lib/delayed_job_web/application/views/pending.erb
|
114
114
|
- lib/delayed_job_web/application/views/stats.erb
|
115
115
|
- lib/delayed_job_web/application/views/working.erb
|
116
|
+
- lib/delayed_job_web/railtie.rb
|
116
117
|
- test/helper.rb
|
117
118
|
- test/test_delayed_job_web.rb
|
118
119
|
homepage: https://github.com/ejschmitt/delayed_job_web
|