sidetiq 0.4.0.rc3 → 0.4.0.rc4

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: 9aef5c4cda17d14aa2592dc263cbd945d06e45de
4
- data.tar.gz: 692bdc4bacfea9a9f641b0c947e226dd58da20f4
3
+ metadata.gz: ead5ee1ca94f1b13e80313b412a3814dd7d281a2
4
+ data.tar.gz: f8e034df1e712bcc81b3f203933c847d0ad4511b
5
5
  SHA512:
6
- metadata.gz: a4b9e85e2ce6a206e84b3f15338fc2fec527978d13b617232692cc0a0098469bf0f00d03b017e1323667681179374ab024cd5f3f3a4dac46ab04b5f458cf12ad
7
- data.tar.gz: 91a79a02ee8718e1ea787474b12cbc94bf78ae49d3a38641511a4238902f871d5bc21e01e53091e9a3b99bd27fe359d7728b0160bf59e66426b73320f3cfacd4
6
+ metadata.gz: 8df443743d71f5c258ece23af07a1f535d248d6ded6bfacf9b45c57a524ff4fa49d6a8be22960e83fc08c8aefcec556e644a9c26055b18e143a7b12a6d6c9f5a
7
+ data.tar.gz: 30fe0fe1972f3cd6d65836c62c18d711da3a8364aa0c37a725d465320593ed899337b0096fc78ce47e9acca6f2783c9f8252a4dbd7eb7cf406609dde1ac14c4a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  0.4.0
2
2
  -----
3
3
 
4
+ - Fix bug where web dashboard wouldn't render when in presence of a
5
+ worker without a schedule.
6
+ - Schedulable#tiq deprecation warning removed.
4
7
  - Schedules are now stored on the workers directly instead of in a
5
8
  pseudo-global, mutable Hash.
6
9
  - Clock now start looping automatically if `Sidekiq.server?` returns true.
@@ -34,13 +34,6 @@ module Sidetiq
34
34
  get_timestamp "next"
35
35
  end
36
36
 
37
- def tiq(*args, &block) # :nodoc:
38
- warn "DEPRECATION WARNING: Sidetiq::Schedulable#tiq" <<
39
- " is deprecated and will be removed. Use" <<
40
- " Sidetiq::Schedulable#recurrence instead."
41
- recurrence(*args, &block)
42
- end
43
-
44
37
  def recurrence(options = {}, &block) # :nodoc:
45
38
  schedule.instance_eval(&block)
46
39
  schedule.set_options(options)
@@ -11,7 +11,7 @@ module Sidetiq
11
11
  PATCH = 0
12
12
 
13
13
  # Public: Sidetiq version suffix.
14
- SUFFIX = 'rc3'
14
+ SUFFIX = 'rc4'
15
15
 
16
16
  # Public: String representation of the current Sidetiq version.
17
17
  STRING = [MAJOR, MINOR, PATCH, SUFFIX].compact.join('.')
@@ -26,7 +26,12 @@
26
26
  <a href="<%= "#{root_path}sidetiq/#{worker.name}/schedule" %>"><%= worker.name %></a>
27
27
  <td><%= worker.get_sidekiq_options["queue"] %></td>
28
28
  <td>
29
+ <% @next = schedule.next_occurrence(@time) %>
30
+ <% if @next.nil? %>
31
+ No schedule
32
+ <% else %>
29
33
  <%= relative_time(schedule.next_occurrence(@time)) %>
34
+ <% end %>
30
35
  </td>
31
36
  <td>
32
37
  <form action="<%= "#{root_path}sidetiq/#{worker.name}/trigger" %>" method="post">
@@ -39,9 +44,6 @@
39
44
  <% else %>
40
45
  <div class="alert alert-success">No recurring jobs found.</div>
41
46
  <% end %>
42
-
43
47
  </div>
44
48
  </div>
45
49
  </div>
46
-
47
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidetiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.rc3
4
+ version: 0.4.0.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Svensson