sidekiq-cron 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem "sidekiq", ">= 2.13.1"
3
+ gem "sidekiq", ">= 2.16.0"
4
4
  gem 'rufus-scheduler', '>= 2.0.24'
5
5
 
6
6
  group :development do
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
@@ -25,7 +25,7 @@
25
25
  <td style="<%= style %>"><%= relative_time(job.last_run_time) %></td>
26
26
  <td style="<%= style %>">
27
27
  <% if job.message and job.message.to_s.size > 100 %>
28
- <button data-toggle="collapse" data-target=".worker_<%= index %>" class="btn btn-mini"><%= t('ShowAll')%></button>
28
+ <button data-toggle="collapse" data-target=".worker_<%= index %>" class="btn btn-xs"><%= t('ShowAll')%></button>
29
29
  <div class="toggle worker_<%= index %>" style="display: inline;"><%= job.message[0..100] + "... " %></div>
30
30
  <div class="toggle worker_<%= index %>" style="display: none;"><%= job.message %></div>
31
31
  <% else %>
@@ -35,20 +35,20 @@
35
35
  <td style="<%= style %>">
36
36
  <% if job.status == 'enabled' %>
37
37
  <form action="<%= root_path %>cron/<%= job.name %>/enque" method="post">
38
- <input class='btn btn-mini pull-left' type="submit" name="enque" value="<%= t('EnqueueNow') %>"/>
38
+ <input class='btn btn-xs pull-left' type="submit" name="enque" value="<%= t('EnqueueNow') %>"/>
39
39
  </form>
40
40
  <form action="<%= root_path %>cron/<%= job.name %>/disable" method="post">
41
- <input class='btn btn-mini pull-left' type="submit" name="disable" value="<%= t('Disable') %>"/>
41
+ <input class='btn btn-xs pull-left' type="submit" name="disable" value="<%= t('Disable') %>"/>
42
42
  </form>
43
43
  <% else %>
44
44
  <form action="<%= root_path %>cron/<%= job.name %>/enque" method="post">
45
- <input class='btn btn-mini pull-left' type="submit" name="enque" value="<%= t('EnqueueNow') %>"/>
45
+ <input class='btn btn-xs pull-left' type="submit" name="enque" value="<%= t('EnqueueNow') %>"/>
46
46
  </form>
47
47
  <form action="<%= root_path %>cron/<%= job.name %>/enable" method="post">
48
- <input class='btn btn-mini pull-left' type="submit" name="enable" value="<%= t('Enable') %>"/>
48
+ <input class='btn btn-xs pull-left' type="submit" name="enable" value="<%= t('Enable') %>"/>
49
49
  </form>
50
50
  <form action="<%= root_path %>cron/<%= job.name %>/delete" method="post">
51
- <input class='btn btn-mini btn-danger pull-left' type="submit" name="delete" value="<%= t('Delete') %>" data-confirm="<%= t('AreYouSureDeleteCronJob', :job => job.name) %>"/>
51
+ <input class='btn btn-xs btn-danger pull-left' type="submit" name="delete" value="<%= t('Delete') %>" data-confirm="<%= t('AreYouSureDeleteCronJob', :job => job.name) %>"/>
52
52
  </form>
53
53
  <% end %>
54
54
  </td>
@@ -4,29 +4,7 @@ module Sidekiq
4
4
 
5
5
  def self.registered(app)
6
6
 
7
- #very bad way of loading locales for cron jobs
8
- #should be rewritten
9
- app.helpers do
10
-
11
- alias_method :old_strings, :strings
12
-
13
- def strings
14
- #only on first load!
15
- unless @strings
16
- #load all locales from Sidekiq
17
- old_strings
18
-
19
- Dir["#{File.join(File.expand_path("..", __FILE__), "locales")}/*.yml"].each do |file|
20
- YAML.load(File.open(file)).each do |locale, translations|
21
- translations.each do |key, value|
22
- @strings[locale][key] = value
23
- end
24
- end
25
- end
26
- end
27
- @strings
28
- end
29
- end
7
+ app.settings.locales << File.join(File.expand_path("..", __FILE__), "locales")
30
8
 
31
9
  #index page of cron jobs
32
10
  app.get '/cron' do
data/sidekiq-cron.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "sidekiq-cron"
8
- s.version = "0.1.6"
8
+ s.version = "0.1.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ondrej Bartas"]
12
- s.date = "2013-10-13"
12
+ s.date = "2013-11-05"
13
13
  s.description = "Enables to set jobs to be run in specified time (using CRON notation)"
14
14
  s.email = "ondrej@bartas.cz"
15
15
  s.extra_rdoc_files = [
@@ -52,7 +52,7 @@ Gem::Specification.new do |s|
52
52
  s.specification_version = 3
53
53
 
54
54
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
55
- s.add_runtime_dependency(%q<sidekiq>, [">= 2.13.1"])
55
+ s.add_runtime_dependency(%q<sidekiq>, [">= 2.16.0"])
56
56
  s.add_runtime_dependency(%q<rufus-scheduler>, [">= 2.0.24"])
57
57
  s.add_development_dependency(%q<bundler>, [">= 0"])
58
58
  s.add_development_dependency(%q<simplecov>, [">= 0"])
@@ -68,7 +68,7 @@ Gem::Specification.new do |s|
68
68
  s.add_development_dependency(%q<coveralls>, [">= 0"])
69
69
  s.add_development_dependency(%q<shotgun>, [">= 0"])
70
70
  else
71
- s.add_dependency(%q<sidekiq>, [">= 2.13.1"])
71
+ s.add_dependency(%q<sidekiq>, [">= 2.16.0"])
72
72
  s.add_dependency(%q<rufus-scheduler>, [">= 2.0.24"])
73
73
  s.add_dependency(%q<bundler>, [">= 0"])
74
74
  s.add_dependency(%q<simplecov>, [">= 0"])
@@ -85,7 +85,7 @@ Gem::Specification.new do |s|
85
85
  s.add_dependency(%q<shotgun>, [">= 0"])
86
86
  end
87
87
  else
88
- s.add_dependency(%q<sidekiq>, [">= 2.13.1"])
88
+ s.add_dependency(%q<sidekiq>, [">= 2.16.0"])
89
89
  s.add_dependency(%q<rufus-scheduler>, [">= 2.0.24"])
90
90
  s.add_dependency(%q<bundler>, [">= 0"])
91
91
  s.add_dependency(%q<simplecov>, [">= 0"])
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: 0.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-13 00:00:00.000000000 Z
12
+ date: 2013-11-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sidekiq
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 2.13.1
21
+ version: 2.16.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: 2.13.1
29
+ version: 2.16.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rufus-scheduler
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -298,7 +298,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
298
298
  version: '0'
299
299
  segments:
300
300
  - 0
301
- hash: -593131828609245339
301
+ hash: -3162312327206843445
302
302
  required_rubygems_version: !ruby/object:Gem::Requirement
303
303
  none: false
304
304
  requirements: