crono 1.1.0 → 1.1.1

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: ca06047f3fd1428fe8babcee91ca5a1e1ff9e326
4
- data.tar.gz: 8f1a48db399615c5a3d8641f194273a3a82ef9cc
3
+ metadata.gz: 0f624d8d424073a916f3bcbb1752df13cc841fb8
4
+ data.tar.gz: 4607535d5e87606d07d5db75abb7d45bfe421737
5
5
  SHA512:
6
- metadata.gz: d12831d9d1f5bae9801491cce5c4039049f4cefebd0b23b5b33050916ae9e42af2623ca66476f2f2b3eb0204d39296f74079b85492f3fa3cca016ff7cbd8b585
7
- data.tar.gz: 35baf793c81867128dd577c10b19cb273ad2c15d34987903fb3f9bfe0dc0e5e69e4d27d642b67a2afee8b5c5129b7cfb5f72c0cd7417404934ef6ca8593ad938
6
+ metadata.gz: 73b0768b6797bda070bb4784ccab42f9c7474dcdeabf20eab45e99df7a25f553f4d5166f7ffb8d2d379af214cc93eed36de34baa8f2332b7f36d6012c756fd77
7
+ data.tar.gz: 58a5ccefcd546ff9b445ab521bc1f76a2db4af87d71788880f5dbeebaea15a41fb8349fb6634b4a92cc7bd5efd931643dab4f659556e636b088fe105ad026d86
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- crono (1.1.0)
4
+ crono (1.1.1)
5
5
  activerecord (>= 4.0)
6
6
  activesupport (>= 4.0)
7
7
 
@@ -9,13 +9,13 @@ module Crono
9
9
  attr_accessor :performer, :period, :job_args, :last_performed_at, :job_options,
10
10
  :next_performed_at, :job_log, :job_logger, :healthy, :execution_interval
11
11
 
12
- def initialize(performer, period, job_args, job_options = {})
12
+ def initialize(performer, period, job_args, job_options = nil)
13
13
  self.execution_interval = 0.minutes
14
14
  self.performer, self.period = performer, period
15
15
  self.job_args = JSON.generate(job_args)
16
16
  self.job_log = StringIO.new
17
17
  self.job_logger = Logger.new(job_log)
18
- self.job_options = job_options
18
+ self.job_options = job_options || {}
19
19
  self.next_performed_at = period.next
20
20
  @semaphore = Mutex.new
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module Crono
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
@@ -2,7 +2,7 @@
2
2
  %a{ href: url('/') }
3
3
  %i.mdi-navigation-chevron-left
4
4
  Back to Home
5
- %h4 "#{@job.job_id}" Log:
5
+ %h4 "#{@job.job_id}" Last log:
6
6
 
7
7
  %main.container.blue-grey.lighten-4.grey-text.text-darken-4
8
8
  - if @job.healthy == false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crono
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dzmitry Plashchynski