trebbiatrice 0.2.2 → 0.2.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: 18bd11fc83273527b420d788739a9933d4eccce4
4
- data.tar.gz: aa7e709b171d0f71c85f77639cb1cd4b4f50b346
3
+ metadata.gz: d64df67fc7516538b2c8bb487259796ec1b9caa2
4
+ data.tar.gz: d90efeb9af9273c8df565e806189cbd87d0a89fd
5
5
  SHA512:
6
- metadata.gz: 4ca260eaabcf0c8d9c35d73d149c9a0566050c8fc9354152fda3ab5f9cb0fcb547a271da0a79e67be79d248020d4a73793b7f393cd4659edfa901332b6297d61
7
- data.tar.gz: 68dc2cb62713e46ecc8c0b1ead90c6f216f64988f3d72d385d59e7a500cc3ca11b7a8bd0097c3894b7eb28d3cd5f253528a47e365afd2b3b5b7a767f2eae200e
6
+ metadata.gz: c73fe821ed0a263b480be8ebb2ed78046aaa805932c2cb52bb50cd5e1d0a262307321b2a134bb84b36424c9a038b6c928825ba8848c31007b55ffe1b5da2bb01
7
+ data.tar.gz: 176f5472149147c85ebd5df0dca5713fe568e4a16944a57d8a2c140b1df280e45d2b9034ad189ab2886f393de279600bbce52aa5d1de60cdfb944827a69605ba
data/README.md CHANGED
@@ -40,6 +40,7 @@ TODO
40
40
  - Run as daemon
41
41
  - Logger
42
42
  - More testate
43
+ - Resume old timers instead to create new ones
43
44
 
44
45
  Why
45
46
  ---
@@ -4,6 +4,12 @@ module Trebbiatrice
4
4
  trebbia = Trebbia.new(login_data)
5
5
  last_project, project = nil
6
6
 
7
+ trap('INT') do
8
+ puts 'Stopping gracefully the trebbiatrice...'
9
+ trebbia.stop_tracking! if trebbia.tracking?
10
+ exit
11
+ end
12
+
7
13
  loop do
8
14
  response = Trebbia.invoke!(testata[:engine], testata[:name])
9
15
 
@@ -14,7 +20,7 @@ module Trebbiatrice
14
20
 
15
21
  if response[:status] == 'failure' || !trebbia.working_on
16
22
  if trebbia.tracking?
17
- p "stopping #{trebbia.project[:name]}" if trebbia.project
23
+ puts "stopping #{trebbia.project[:name]}" if trebbia.project
18
24
  trebbia.stop_tracking!
19
25
  end
20
26
 
@@ -25,7 +31,7 @@ module Trebbiatrice
25
31
  trebbia.track! task
26
32
 
27
33
  last_project = trebbia.working_on
28
- p "tracking #{trebbia.project[:name]}"
34
+ puts "tracking #{trebbia.project[:name]}"
29
35
  end
30
36
  end
31
37
 
@@ -9,5 +9,5 @@
9
9
  #++
10
10
 
11
11
  module Trebbiatrice
12
- VERSION = '0.2.2'
12
+ VERSION = '0.2.3'
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trebbiatrice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Capuano