active_admin_delayed_job 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/active_admin_delayed_job.gemspec +1 -1
- data/lib/active_admin_delayed_job/admin/delayed_jobs.rb +14 -14
- metadata +5 -11
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NjNjOTI4NTE3ZmM4OTA2MmNjNzg1MWEyNDI5ZTQ3ZTliOGYyMWFiMA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MGQ2Yjc0OGU2NWNkYzQ0YjcwNmU2OTczZjMwMmQ3ODcwN2M1YmMwMg==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NWIzNGIzMzNlOTJiMmI4MzM1MTIyZTgzODEzYThiNTJkMjBkZTgzZWU5ZTAy
|
10
|
+
OWM3M2ZjOGU2NjA5MDdmNjBkZTczZWQ0NDJjZDdjMDZhZGIwNmI4ZDVmMjEx
|
11
|
+
MGU4YTlhZmM1MTkxNzA5NTE4OGFmNTU3NDc3NGI2NjEyNTUxM2U=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MjFiNTBiOGUwZDkwNDg0NTA2NjQwM2UwMmZiOTRjN2UwYzY1OWIwNGU1Mzg0
|
14
|
+
YTMzNzBhYTBkZDRkYTExMjBjYjdiZDI0NWY4NTE5ZTg0Zjg2OTJhNTg3NDVj
|
15
|
+
MWRjZTQ3ODRlYmIxOTg1MDIyZmEwMjFlOTBiYWY3YjE2Mjk2MTU=
|
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "active_admin_delayed_job"
|
5
|
-
s.version = "1.0.
|
5
|
+
s.version = "1.0.2"
|
6
6
|
s.authors = ["Michael Bianco", "Darren Rush"]
|
7
7
|
s.email = ["mike@cliffsidemedia.com"]
|
8
8
|
s.homepage = "http://github.com/iloveitaly/active_admin_delayed_job"
|
@@ -25,40 +25,40 @@ ActiveAdmin.register Delayed::Job, :as => "Background Job" do
|
|
25
25
|
link_to("Retry Job", self.send("retry_#{ActiveAdmin.application.default_namespace}_background_job_path", resource), method: :post)
|
26
26
|
end
|
27
27
|
|
28
|
-
index do
|
29
|
-
selectable_column
|
30
|
-
column :id
|
28
|
+
index do
|
29
|
+
selectable_column
|
30
|
+
column :id
|
31
31
|
column :failed_at
|
32
32
|
column :attempts
|
33
|
-
|
33
|
+
|
34
34
|
column :status do |job|
|
35
35
|
case job.state
|
36
36
|
when 'failed'
|
37
|
-
status_tag "Failed:", :error
|
38
|
-
span "#{job.last_error[0..100]}"
|
37
|
+
status_tag "Failed:", :error
|
38
|
+
span "#{job.last_error[0..100]}"
|
39
39
|
when 'running'
|
40
40
|
status_tag "Running", :warning
|
41
|
-
span "for #{time_ago_in_words(job.locked_at)} @ #{job.locked_by}"
|
41
|
+
span "for #{time_ago_in_words(job.locked_at)} @ #{job.locked_by}"
|
42
42
|
when 'scheduled'
|
43
43
|
status_tag "Scheduled", :ok
|
44
|
-
span "for #{time_ago_in_words(job.run_at)} from now"
|
44
|
+
span "for #{time_ago_in_words(job.run_at)} from now"
|
45
45
|
else
|
46
|
-
status_tag "Queued"
|
47
|
-
span "for #{time_ago_in_words(job.created_at)}"
|
46
|
+
status_tag "Queued"
|
47
|
+
span "for #{time_ago_in_words(job.created_at)}"
|
48
48
|
end
|
49
|
-
|
49
|
+
|
50
50
|
end
|
51
51
|
|
52
52
|
actions defaults: true do |job|
|
53
53
|
link_to("Retry Job", self.send("retry_#{ActiveAdmin.application.default_namespace}_background_job_path", job), method: :post)
|
54
|
-
end
|
54
|
+
end
|
55
55
|
end
|
56
56
|
|
57
57
|
show do |job|
|
58
58
|
# customize handler + last_error fields
|
59
59
|
attributes_table *(default_attribute_table_rows - [:handler, :last_error]) do
|
60
|
-
row(:handler) {
|
61
|
-
row(:last_error) {
|
60
|
+
row(:handler) { content_tag(:pre, job.handler) rescue "" }
|
61
|
+
row(:last_error) { content_tag(:pre, job.last_error) rescue "" }
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_admin_delayed_job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Michael Bianco
|
@@ -10,12 +9,11 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2015-10-14 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: activeadmin
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
18
|
- - ! '>='
|
21
19
|
- !ruby/object:Gem::Version
|
@@ -23,7 +21,6 @@ dependencies:
|
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
25
|
- - ! '>='
|
29
26
|
- !ruby/object:Gem::Version
|
@@ -31,7 +28,6 @@ dependencies:
|
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: delayed_job_active_record
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
32
|
- - ! '>='
|
37
33
|
- !ruby/object:Gem::Version
|
@@ -39,7 +35,6 @@ dependencies:
|
|
39
35
|
type: :runtime
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
39
|
- - ! '>='
|
45
40
|
- !ruby/object:Gem::Version
|
@@ -63,26 +58,25 @@ files:
|
|
63
58
|
- readme.md
|
64
59
|
homepage: http://github.com/iloveitaly/active_admin_delayed_job
|
65
60
|
licenses: []
|
61
|
+
metadata: {}
|
66
62
|
post_install_message:
|
67
63
|
rdoc_options: []
|
68
64
|
require_paths:
|
69
65
|
- lib
|
70
66
|
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
-
none: false
|
72
67
|
requirements:
|
73
68
|
- - ! '>='
|
74
69
|
- !ruby/object:Gem::Version
|
75
70
|
version: '0'
|
76
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
-
none: false
|
78
72
|
requirements:
|
79
73
|
- - ! '>='
|
80
74
|
- !ruby/object:Gem::Version
|
81
75
|
version: '0'
|
82
76
|
requirements: []
|
83
77
|
rubyforge_project:
|
84
|
-
rubygems_version:
|
78
|
+
rubygems_version: 2.4.6
|
85
79
|
signing_key:
|
86
|
-
specification_version:
|
80
|
+
specification_version: 4
|
87
81
|
summary: A plug-and-play controller that lets you monitor and retry jobs easily.
|
88
82
|
test_files: []
|