queue_classic_admin 0.0.2 → 0.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9446827022c298477a7c41b5aba604e55d6ac0b
4
- data.tar.gz: fccf7215e585875fbb1d288a2e43e5a24f07c8a0
3
+ metadata.gz: 4e7d643853371505a29362df9adcc0b6296881db
4
+ data.tar.gz: 4d310d87a7084833d4312a96db13bd1950d83d4f
5
5
  SHA512:
6
- metadata.gz: e9c4ff068708a8e0428861cd5e7e4d2730a517a5d504140b76f7a5d15fa3354556f8faf1c2686f450c639ed391f671d99dad5de19d1ec21931a2a9253f87221c
7
- data.tar.gz: 68c5b054230910b4b82cb792084989be1b4b427149a1ac64ac81535fff6139076033640b3da789d8b7ea55148bffc270a8f32aee45aea546be63b5a02e2b8ea8
6
+ metadata.gz: dde0602b297f3d4adfd5de469ca5253efffdda67bb351aa780887c437d1d876e754f3ec2770e1f9eb3f45e48027df9477d5773645907b018afa42a0204c81bee
7
+ data.tar.gz: 4f2487c98271b9f67da78c46b74796237f63f2f47b502fc5b18b1cfb0e8eb69054cca831a3a310cc57d821421f55fa454444d6e31ed2877f413b546f662eb450
@@ -13,6 +13,7 @@
13
13
  <thead>
14
14
  <tr>
15
15
  <th>Queue</th>
16
+ <th>Enqueued At</th>
16
17
  <th>Method</th>
17
18
  <th>Arguments</th>
18
19
  <% if @klass.columns_hash['not_before'] %>
@@ -26,10 +27,17 @@
26
27
  <% @queue_classic_jobs.each do |queue_classic_job| %>
27
28
  <tr>
28
29
  <td><%= queue_classic_job.q_name %></td>
30
+ <td>
31
+ <%= time_ago_in_words queue_classic_job.created_at %>
32
+ <br/>
33
+ <small>
34
+ (<%= queue_classic_job.created_at %>)
35
+ </small>
36
+ </td>
29
37
  <td><%= queue_classic_job.method %></td>
30
38
  <td><%= queue_classic_job.arguments.inspect%></td>
31
39
  <% if @klass.columns_hash['not_before'] %>
32
- <td><%= l queue_classic_job.not_before %></td>
40
+ <td><%= queue_classic_job.not_before %></td>
33
41
  <% end %>
34
42
  <td><%= link_to 'Destroy', queue_classic_job, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger' %></td>
35
43
  </tr>
@@ -0,0 +1,13 @@
1
+ class AddCreatedColumn < ActiveRecord::Migration
2
+ def up
3
+ %w(queue_classic_later_jobs queue_classic_jobs).each do |table|
4
+ execute "ALTER TABLE #{table} ADD COLUMN created_at TIMESTAMP NOT NULL DEFAULT now();"
5
+ end
6
+ end
7
+
8
+ def down
9
+ %w(queue_classic_later_jobs queue_classic_jobs).each do |table|
10
+ remove_column table, :created_at
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module QueueClassicAdmin
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queue_classic_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Mathieu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-26 00:00:00.000000000 Z
11
+ date: 2013-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -109,6 +109,7 @@ files:
109
109
  - app/views/queue_classic_admin/shared/_job_list.html.erb
110
110
  - config/routes.rb
111
111
  - db/migrate/20130626182618_add_id_to_later.rb
112
+ - db/migrate/20130627175128_add_created_column.rb
112
113
  - lib/queue_classic_admin/engine.rb
113
114
  - lib/queue_classic_admin/version.rb
114
115
  - lib/queue_classic_admin.rb