que-web 0.3.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/LICENSE.txt +1 -1
- data/README.md +1 -1
- data/examples/rack/Gemfile.lock +5 -5
- data/lib/que/web.rb +3 -0
- data/lib/que/web/viewmodels/job.rb +4 -0
- data/que-web.gemspec +1 -1
- data/spec/viewmodels/job_spec.rb +12 -1
- data/web/public/styles/application.css +11 -0
- data/web/views/_navbar.erb +4 -0
- data/web/views/_past_due.erb +5 -0
- data/web/views/failing.erb +4 -1
- data/web/views/layout.erb +0 -1
- data/web/views/scheduled.erb +4 -1
- data/web/views/show.erb +4 -1
- metadata +3 -3
- data/web/views/_footer.erb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e462dea7156e236045867d2dc8738e060f62517d
|
4
|
+
data.tar.gz: 8d01b77c484316f7b34a4dff2f0c61d432fbe92e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcb503d51659fcded547811282f5bee869312fc17a2006bcb36da240fcea46fb1c6de959832620c4d17b2154d8f427cb9c5d4ae1e1ea2263561551a938fbd2ed
|
7
|
+
data.tar.gz: b8a3383ffec238ec16c63a07d7a78f02b306ed12482c45eba53c8a3bd564efb95a6db50c143c496b4f22a115edda3d729fbc982a3ec7db094d4558bc0d706655
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
### 0.4.0 - 2015-04-09
|
2
|
+
#### Added:
|
3
|
+
- Indicate when a job is past due #2
|
4
|
+
|
5
|
+
#### Fixed:
|
6
|
+
- Fix clipping of pagination buttons #11
|
7
|
+
- Turn time string into time object #13
|
8
|
+
|
9
|
+
|
1
10
|
### 0.3.2 - 2014-12-05
|
2
11
|
#### Fixed:
|
3
12
|
- Fix escaping on pagination controls #10
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# que-web ![
|
1
|
+
# que-web [![Build Status](https://travis-ci.org/statianzo/que-web.svg?branch=master)](https://travis-ci.org/statianzo/que-web)
|
2
2
|
|
3
3
|
que-web is a web UI to the [Que](https://github.com/chanks/que) job queue.
|
4
4
|
|
data/examples/rack/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../../
|
3
3
|
specs:
|
4
|
-
que-web (0.3.
|
4
|
+
que-web (0.3.2)
|
5
5
|
erubis
|
6
6
|
que (~> 0.8)
|
7
7
|
sinatra
|
@@ -10,12 +10,12 @@ GEM
|
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
12
|
erubis (2.7.0)
|
13
|
-
pg (0.
|
14
|
-
que (0.
|
15
|
-
rack (1.
|
13
|
+
pg (0.18.1)
|
14
|
+
que (0.9.1)
|
15
|
+
rack (1.6.0)
|
16
16
|
rack-protection (1.5.3)
|
17
17
|
rack
|
18
|
-
sequel (4.
|
18
|
+
sequel (4.19.0)
|
19
19
|
sinatra (1.4.5)
|
20
20
|
rack (~> 1.4)
|
21
21
|
rack-protection (~> 1.4)
|
data/lib/que/web.rb
CHANGED
data/que-web.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "que-web"
|
7
|
-
spec.version = "0.
|
7
|
+
spec.version = "0.4.0"
|
8
8
|
spec.authors = ["Jason Staten"]
|
9
9
|
spec.email = ["jstaten07@gmail.com"]
|
10
10
|
spec.summary = %q{A web interface for the que queue}
|
data/spec/viewmodels/job_spec.rb
CHANGED
@@ -2,7 +2,7 @@ require "spec_helper"
|
|
2
2
|
|
3
3
|
describe Que::Web::Viewmodels::Job do
|
4
4
|
let(:source_job) {
|
5
|
-
{"priority"=>100, "run_at"=> Time.now,
|
5
|
+
{"priority"=>100, "run_at"=> Time.now - 3600,
|
6
6
|
"job_id"=>555, "job_class"=>"SuccessJob",
|
7
7
|
"args"=>["arg1", {"name"=>"foo", "age"=>10}],
|
8
8
|
"error_count"=>0,
|
@@ -16,4 +16,15 @@ describe Que::Web::Viewmodels::Job do
|
|
16
16
|
subject.priority.must_equal source_job["priority"]
|
17
17
|
subject.queue.must_equal source_job["queue"]
|
18
18
|
end
|
19
|
+
|
20
|
+
describe 'schedule' do
|
21
|
+
it 'is past due when run_at is behind' do
|
22
|
+
subject.must_be :past_due?
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'is not past due when run_at is ahead of now' do
|
26
|
+
subject.run_at = Time.now + 3600
|
27
|
+
subject.wont_be :past_due?
|
28
|
+
end
|
29
|
+
end
|
19
30
|
end
|
data/web/views/_navbar.erb
CHANGED
@@ -10,5 +10,9 @@
|
|
10
10
|
<li class="<%= active_class('scheduled') %>"><a href="<%= to 'scheduled' %>"><span>Scheduled</span></a></li>
|
11
11
|
<li class="<%= active_class('failing') %>"><a href="<%= to 'failing' %>"><span>Failing</span></a></li>
|
12
12
|
</ul>
|
13
|
+
<ul class="right version">
|
14
|
+
<li>Que <%= Que::Version %></li>
|
15
|
+
<li><%= Time.now.utc.strftime("%D %H:%M:%S %Z") %></li>
|
16
|
+
</ul>
|
13
17
|
</section>
|
14
18
|
</nav>
|
data/web/views/failing.erb
CHANGED
@@ -21,7 +21,10 @@
|
|
21
21
|
<tbody>
|
22
22
|
<% @list.page_jobs.each do |job| %>
|
23
23
|
<tr>
|
24
|
-
<td><a href="<%= to "jobs/#{job.job_id}" %>"
|
24
|
+
<td><a href="<%= to "jobs/#{job.job_id}" %>">
|
25
|
+
<%== relative_time job.run_at %></a>
|
26
|
+
<%== erb :_past_due, locals: {job: job} %>
|
27
|
+
</td>
|
25
28
|
<td><%= job.error_count %></td>
|
26
29
|
<td><%= job.job_class %></td>
|
27
30
|
<td><%= job.queue %></td>
|
data/web/views/layout.erb
CHANGED
data/web/views/scheduled.erb
CHANGED
@@ -19,7 +19,10 @@
|
|
19
19
|
<tbody>
|
20
20
|
<% @list.page_jobs.each do |job| %>
|
21
21
|
<tr>
|
22
|
-
<td
|
22
|
+
<td>
|
23
|
+
<a href="<%= to "jobs/#{job.job_id}" %>"><%== relative_time job.run_at %></a>
|
24
|
+
<%== erb :_past_due, locals: {job: job}%>
|
25
|
+
</td>
|
23
26
|
<td><%= job.job_class %></td>
|
24
27
|
<td><%= job.queue %></td>
|
25
28
|
<td><pre><%= format_args job %></pre></td>
|
data/web/views/show.erb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: que-web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Staten
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: que
|
@@ -147,9 +147,9 @@ files:
|
|
147
147
|
- web/public/styles/foundation.min.css
|
148
148
|
- web/public/styles/normalize.css
|
149
149
|
- web/views/_flash.erb
|
150
|
-
- web/views/_footer.erb
|
151
150
|
- web/views/_navbar.erb
|
152
151
|
- web/views/_pager.erb
|
152
|
+
- web/views/_past_due.erb
|
153
153
|
- web/views/failing.erb
|
154
154
|
- web/views/index.erb
|
155
155
|
- web/views/layout.erb
|
data/web/views/_footer.erb
DELETED