sidekiq-cron 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/sidekiq/cron/locales/de.yml +1 -1
- data/lib/sidekiq/cron/locales/en.yml +1 -1
- data/lib/sidekiq/cron/locales/ja.yml +1 -1
- data/lib/sidekiq/cron/locales/ru.yml +1 -1
- data/lib/sidekiq/cron/locales/zh-CN.yml +1 -1
- data/lib/sidekiq/cron/views/cron.erb +19 -17
- data/lib/sidekiq/cron/views/cron.slim +14 -13
- data/sidekiq-cron.gemspec +2 -2
- data/test/unit/web_extension_test.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b73b92bf2df7e62197f67b5458ec5f33a7ee531
|
4
|
+
data.tar.gz: 3fed6fbd16c45bdba384bf959314ef685dc4bfd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7649e1bb970285e696751daf76096832e33de9436c85afea14389335b7653d038896baef7a6f05a81a5222aa680bcb312d1473c4a630677b9e4e1ffde8676e5
|
7
|
+
data.tar.gz: 66ac5d6377199a03e2e8cd97eb896d9c880088aab7188213515bbb8768bc11ed5856d94e0cd2a808b747624b9840166c621a372fcb04dabcaf37502ba207b50b
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.3
|
@@ -5,7 +5,7 @@ de:
|
|
5
5
|
EnqueueNow: In Warteschlange
|
6
6
|
'Cron string': Cron
|
7
7
|
AreYouSureDeleteCronJob: Sind Sie sicher, dass sie den Cronjob %{job} löschen wollen?
|
8
|
-
|
8
|
+
NoCronJobsWereFound: Keine Cronjobs gefunden
|
9
9
|
Enable: Aktivieren
|
10
10
|
Disable: Deaktivieren
|
11
11
|
'Last enque': Eingereiht
|
@@ -10,7 +10,7 @@ en:
|
|
10
10
|
'Cron string': Cron
|
11
11
|
AreYouSureDeleteCronJobs: Are you sure you want to delete ALL cron jobs?
|
12
12
|
AreYouSureDeleteCronJob: Are you sure you want to delete the %{job} cron job?
|
13
|
-
|
13
|
+
NoCronJobsWereFound: No cron jobs were found
|
14
14
|
Enable: Enable
|
15
15
|
Disable: Disable
|
16
16
|
'Last enque': Last enqueued
|
@@ -10,7 +10,7 @@ ja:
|
|
10
10
|
'Cron string': Cron
|
11
11
|
AreYouSureDeleteCronJobs: 本当にすべてのcronジョブを削除しますか?
|
12
12
|
AreYouSureDeleteCronJob: 本当に%{job}のcronジョブを削除しますか?
|
13
|
-
|
13
|
+
NoCronJobsWereFound: Cronジョブが見つかりませんでした
|
14
14
|
Enable: 有効にする
|
15
15
|
Disable: 無効にする
|
16
16
|
'Last enque': 最後のキュー
|
@@ -6,7 +6,7 @@ ru:
|
|
6
6
|
'Cron string': Периодичность (синтаксис Cron)
|
7
7
|
EnqueueNow: Запустить
|
8
8
|
AreYouSureDeleteCronJob: Вы действительно хотите удалить задачу «%{job}»?
|
9
|
-
|
9
|
+
NoCronJobsWereFound: Не найдено периодических задач
|
10
10
|
Enable: Включить
|
11
11
|
Disable: Отключить
|
12
12
|
'Last enque': Последний запуск
|
@@ -3,22 +3,24 @@
|
|
3
3
|
<h3><%=t 'CronJobs' %></h3>
|
4
4
|
</div>
|
5
5
|
<div class='col-sm-7 pull-right' style="margin-top: 20px; margin-bottom: 10px;">
|
6
|
-
|
7
|
-
<%=
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
<%=
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
<%=
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
<%=
|
20
|
-
|
21
|
-
|
6
|
+
<% if @cron_jobs.size > 0 %>
|
7
|
+
<form action="<%= root_path %>cron/__all__/delete" method="post" class="pull-right">
|
8
|
+
<%= csrf_tag if respond_to?(:csrf_tag) %>
|
9
|
+
<input class="btn btn-small btn-danger" type="submit" name="delete" value="<%= t('DeleteAll') %>" data-confirm="<%= t('AreYouSureDeleteCronJobs') %>">
|
10
|
+
</form>
|
11
|
+
<form action="<%= root_path %>cron/__all__/disable" method="post" class="pull-right">
|
12
|
+
<%= csrf_tag if respond_to?(:csrf_tag) %>
|
13
|
+
<input class="btn btn-small" type="submit" name="enque" value="<%= t('DisableAll') %>" />
|
14
|
+
</form>
|
15
|
+
<form action="<%= root_path %>cron/__all__/enable" method="post" class="pull-right">
|
16
|
+
<%= csrf_tag if respond_to?(:csrf_tag) %>
|
17
|
+
<input class="btn btn-small" type="submit" name="enque" value="<%= t('EnableAll') %>" />
|
18
|
+
</form>
|
19
|
+
<form action="<%= root_path %>cron/__all__/enque" method="post" class="pull-right">
|
20
|
+
<%= csrf_tag if respond_to?(:csrf_tag) %>
|
21
|
+
<input class="btn btn-small" type="submit" name="enque" value="<%= t('EnqueueAll') %>" />
|
22
|
+
</form>
|
23
|
+
<% end %>
|
22
24
|
</div>
|
23
25
|
</header>
|
24
26
|
|
@@ -83,6 +85,6 @@
|
|
83
85
|
</tbody>
|
84
86
|
</table>
|
85
87
|
<% else %>
|
86
|
-
<
|
88
|
+
<div class='alert alert-success'><%= t('NoCronJobsWereFound') %></div>
|
87
89
|
<% end %>
|
88
90
|
|
@@ -3,18 +3,19 @@ header.row
|
|
3
3
|
h3 = t('CronJobs')
|
4
4
|
|
5
5
|
.span.col-sm-7.pull-right style="margin-top: 20px; margin-bottom: 10px;"
|
6
|
-
|
7
|
-
=
|
8
|
-
|
9
|
-
|
10
|
-
=
|
11
|
-
|
12
|
-
|
13
|
-
=
|
14
|
-
|
15
|
-
|
16
|
-
=
|
17
|
-
|
6
|
+
- if @cron_jobs.size > 0
|
7
|
+
form.pull-right action="#{root_path}cron/__all__/delete" method="post"
|
8
|
+
= csrf_tag if respond_to?(:csrf_tag)
|
9
|
+
input.btn.btn-small.pull-left.btn-danger type="submit" name="enque" value="#{t('DeleteAll')}" data-confirm="#{t('AreYouSureDeleteCronJobs')}"
|
10
|
+
form.pull-right action="#{root_path}cron/__all__/disable" method="post"
|
11
|
+
= csrf_tag if respond_to?(:csrf_tag)
|
12
|
+
input.btn.btn-small.pull-left type="submit" name="enque" value="#{t('DisableAll')}"
|
13
|
+
form.pull-right action="#{root_path}cron/__all__/enable" method="post"
|
14
|
+
= csrf_tag if respond_to?(:csrf_tag)
|
15
|
+
input.btn.btn-small.pull-left type="submit" name="enque" value="#{t('EnableAll')}"
|
16
|
+
form.pull-right action="#{root_path}cron/__all__/enque" method="post"
|
17
|
+
= csrf_tag if respond_to?(:csrf_tag)
|
18
|
+
input.btn.btn-small.pull-left type="submit" name="enque" value="#{t('EnqueueAll')}"
|
18
19
|
|
19
20
|
- if @cron_jobs.size > 0
|
20
21
|
|
@@ -66,4 +67,4 @@ header.row
|
|
66
67
|
input.btn.btn-danger.btn-small type="submit" name="delete" value="#{t('Delete')}" data-confirm="#{t('AreYouSureDeleteCronJob', :job => job.name)}"
|
67
68
|
|
68
69
|
- else
|
69
|
-
.alert.alert-success = t('
|
70
|
+
.alert.alert-success = t('NoCronJobsWereFound')
|
data/sidekiq-cron.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: sidekiq-cron 1.0.
|
5
|
+
# stub: sidekiq-cron 1.0.3 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "sidekiq-cron".freeze
|
9
|
-
s.version = "1.0.
|
9
|
+
s.version = "1.0.3"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
@@ -41,7 +41,7 @@ describe 'Cron web' do
|
|
41
41
|
|
42
42
|
it 'display cron web with message - no cron jobs' do
|
43
43
|
get '/cron'
|
44
|
-
assert last_response.body.include?('No cron jobs found')
|
44
|
+
assert last_response.body.include?('No cron jobs were found')
|
45
45
|
end
|
46
46
|
|
47
47
|
it 'display cron web with cron jobs table' do
|
@@ -49,7 +49,7 @@ describe 'Cron web' do
|
|
49
49
|
|
50
50
|
get '/cron'
|
51
51
|
assert_equal 200, last_response.status
|
52
|
-
refute last_response.body.include?('No cron jobs found')
|
52
|
+
refute last_response.body.include?('No cron jobs were found')
|
53
53
|
assert last_response.body.include?('table')
|
54
54
|
assert last_response.body.include?("TestNameOfCronJob")
|
55
55
|
end
|