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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18d10ca5e18a5ee53447e05e3b9b5975fc4eb58c
4
- data.tar.gz: 30608e966b3bbb3a0019bc01a933935cc071009a
3
+ metadata.gz: 9b73b92bf2df7e62197f67b5458ec5f33a7ee531
4
+ data.tar.gz: 3fed6fbd16c45bdba384bf959314ef685dc4bfd5
5
5
  SHA512:
6
- metadata.gz: f099f788b57ef3c70e01a246cb6b92ea16526e7b4e5c1542259a45a45781de21bc8f992b52d331032340f77dc752c549f9afe184856912bd7964e64968bfd589
7
- data.tar.gz: f820648527087f8f6c1f55e2bbf5bcdb8d43c982434ae4aab311f8db2b8cc53c1a30af86b4f5e5aefffd67da76dede106ce5c32123963dfda7fe9d2666722b29
6
+ metadata.gz: d7649e1bb970285e696751daf76096832e33de9436c85afea14389335b7653d038896baef7a6f05a81a5222aa680bcb312d1473c4a630677b9e4e1ffde8676e5
7
+ data.tar.gz: 66ac5d6377199a03e2e8cd97eb896d9c880088aab7188213515bbb8768bc11ed5856d94e0cd2a808b747624b9840166c621a372fcb04dabcaf37502ba207b50b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
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
- NoCronJobsFound: "Keine Cronjobs gefunden"
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
- NoCronJobsFound: "No cron jobs found"
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
- NoCronJobsFound: Cronジョブが見つかりませんでした
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
- NoCronJobsFound: "Не найдено периодических задач"
9
+ NoCronJobsWereFound: Не найдено периодических задач
10
10
  Enable: Включить
11
11
  Disable: Отключить
12
12
  'Last enque': Последний запуск
@@ -10,7 +10,7 @@ zh-CN:
10
10
  'Cron string': 定时策略
11
11
  AreYouSureDeleteCronJobs: 你确定删除所有的定时任务吗?
12
12
  AreYouSureDeleteCronJob: 你确定删除定时任务(%{job})吗?
13
- NoCronJobsFound: 没有定时任务
13
+ NoCronJobsWereFound: 没有定时任务
14
14
  Enable: 启用
15
15
  Disable: 禁用
16
16
  '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
- <form action="<%= root_path %>cron/__all__/delete" method="post" class="pull-right">
7
- <%= csrf_tag if respond_to?(:csrf_tag) %>
8
- <input class="btn btn-small btn-danger" type="submit" name="delete" value="<%= t('DeleteAll') %>" data-confirm="<%= t('AreYouSureDeleteCronJobs') %>">
9
- </form>
10
- <form action="<%= root_path %>cron/__all__/disable" method="post" class="pull-right">
11
- <%= csrf_tag if respond_to?(:csrf_tag) %>
12
- <input class="btn btn-small" type="submit" name="enque" value="<%= t('DisableAll') %>" />
13
- </form>
14
- <form action="<%= root_path %>cron/__all__/enable" method="post" class="pull-right">
15
- <%= csrf_tag if respond_to?(:csrf_tag) %>
16
- <input class="btn btn-small" type="submit" name="enque" value="<%= t('EnableAll') %>" />
17
- </form>
18
- <form action="<%= root_path %>cron/__all__/enque" method="post" class="pull-right">
19
- <%= csrf_tag if respond_to?(:csrf_tag) %>
20
- <input class="btn btn-small" type="submit" name="enque" value="<%= t('EnqueueAll') %>" />
21
- </form>
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
- <span class='alert alert-success'><%= t('NoCronJobsFound') %></span>
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
- form.pull-right action="#{root_path}cron/__all__/delete" method="post"
7
- = csrf_tag if respond_to?(:csrf_tag)
8
- input.btn.btn-small.pull-left.btn-danger type="submit" name="enque" value="#{t('DeleteAll')}" data-confirm="#{t('AreYouSureDeleteCronJobs')}"
9
- form.pull-right action="#{root_path}cron/__all__/disable" method="post"
10
- = csrf_tag if respond_to?(:csrf_tag)
11
- input.btn.btn-small.pull-left type="submit" name="enque" value="#{t('DisableAll')}"
12
- form.pull-right action="#{root_path}cron/__all__/enable" method="post"
13
- = csrf_tag if respond_to?(:csrf_tag)
14
- input.btn.btn-small.pull-left type="submit" name="enque" value="#{t('EnableAll')}"
15
- form.pull-right action="#{root_path}cron/__all__/enque" method="post"
16
- = csrf_tag if respond_to?(:csrf_tag)
17
- input.btn.btn-small.pull-left type="submit" name="enque" value="#{t('EnqueueAll')}"
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('NoCronJobsFound')
70
+ .alert.alert-success = t('NoCronJobsWereFound')
@@ -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.2 ruby lib
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.2"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-cron
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondrej Bartas