baby-bro 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/baby-bro.gemspec +31 -33
- data/lib/baby-bro/exec.rb +1 -1
- data/lib/baby-bro/monitor.rb +2 -2
- data/lib/baby-bro/reporter.rb +2 -1
- metadata +5 -10
- data/.gitignore +0 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.11
|
data/baby-bro.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{baby-bro}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.11"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Bill Doughty"]
|
12
|
-
s.date = %q{2010-12-
|
12
|
+
s.date = %q{2010-12-16}
|
13
13
|
s.default_executable = %q{bro}
|
14
14
|
s.description = %q{Baby Bro monitors timestamp changes of files and and estimates time spent actively working in project directories.}
|
15
15
|
s.email = %q{billdoughty@capitalthought.com}
|
@@ -18,43 +18,41 @@ Gem::Specification.new do |s|
|
|
18
18
|
"README.rdoc"
|
19
19
|
]
|
20
20
|
s.files = [
|
21
|
-
".
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
"tasks/rspec.rake"
|
21
|
+
"History.txt",
|
22
|
+
"Manifest.txt",
|
23
|
+
"PostInstall.txt",
|
24
|
+
"README.rdoc",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"baby-bro.gemspec",
|
28
|
+
"bin/bro",
|
29
|
+
"config/babybrorc.example",
|
30
|
+
"lib/baby-bro.rb",
|
31
|
+
"lib/baby-bro/base_config.rb",
|
32
|
+
"lib/baby-bro/exec.rb",
|
33
|
+
"lib/baby-bro/files.rb",
|
34
|
+
"lib/baby-bro/hash_object.rb",
|
35
|
+
"lib/baby-bro/monitor.rb",
|
36
|
+
"lib/baby-bro/monitor_config.rb",
|
37
|
+
"lib/baby-bro/project.rb",
|
38
|
+
"lib/baby-bro/reporter.rb",
|
39
|
+
"lib/baby-bro/session.rb",
|
40
|
+
"lib/extensions/fixnum.rb",
|
41
|
+
"script/console",
|
42
|
+
"script/destroy",
|
43
|
+
"script/generate",
|
44
|
+
"spec/baby-bro_spec.rb",
|
45
|
+
"spec/spec.opts",
|
46
|
+
"spec/spec_helper.rb",
|
47
|
+
"tasks/rspec.rake"
|
49
48
|
]
|
50
49
|
s.homepage = %q{http://github.com/capitalthought/baby-bro}
|
51
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
52
50
|
s.require_paths = ["lib"]
|
53
51
|
s.rubygems_version = %q{1.3.7}
|
54
52
|
s.summary = %q{File activity monitor for time tracking.}
|
55
53
|
s.test_files = [
|
56
54
|
"spec/baby-bro_spec.rb",
|
57
|
-
|
55
|
+
"spec/spec_helper.rb"
|
58
56
|
]
|
59
57
|
|
60
58
|
if s.respond_to? :specification_version then
|
data/lib/baby-bro/exec.rb
CHANGED
data/lib/baby-bro/monitor.rb
CHANGED
@@ -15,8 +15,8 @@ module BabyBro
|
|
15
15
|
def start
|
16
16
|
if pid = active_pid && !( @config.force_start )
|
17
17
|
puts "ERROR: PID file detected. Cannot start baby-bro."
|
18
|
-
puts "Check if process #{
|
19
|
-
puts "If it is not,
|
18
|
+
puts "Check if process #{active_pid} is running."
|
19
|
+
puts "If it is not, use the -f option to overwrite the PID file (#{pid_file})."
|
20
20
|
return false
|
21
21
|
end
|
22
22
|
@continue = true
|
data/lib/baby-bro/reporter.rb
CHANGED
@@ -63,8 +63,9 @@ module BabyBro
|
|
63
63
|
cumulative_time += session.duration
|
64
64
|
end
|
65
65
|
$stdout.print " Total:" unless @config.brief && report_date
|
66
|
-
$stdout.
|
66
|
+
$stdout.print " #{Session.duration_in_english(sessions.inject(0){|sum,n| sum = sum+n.duration})}"
|
67
67
|
end
|
68
|
+
$stdout.puts
|
68
69
|
$stdout.puts "Grand Total: #{Session.duration_in_english(cumulative_time)}" unless @config.brief
|
69
70
|
else
|
70
71
|
$stdout.puts " No sessions for this project."
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: baby-bro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 11
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
8
|
+
- 11
|
9
|
+
version: 0.0.11
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Bill Doughty
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-12-
|
17
|
+
date: 2010-12-16 00:00:00 -06:00
|
19
18
|
default_executable: bro
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
@@ -26,7 +25,6 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 25
|
30
28
|
segments:
|
31
29
|
- 1
|
32
30
|
- 3
|
@@ -43,7 +41,6 @@ extensions: []
|
|
43
41
|
extra_rdoc_files:
|
44
42
|
- README.rdoc
|
45
43
|
files:
|
46
|
-
- .gitignore
|
47
44
|
- History.txt
|
48
45
|
- Manifest.txt
|
49
46
|
- PostInstall.txt
|
@@ -76,8 +73,8 @@ homepage: http://github.com/capitalthought/baby-bro
|
|
76
73
|
licenses: []
|
77
74
|
|
78
75
|
post_install_message:
|
79
|
-
rdoc_options:
|
80
|
-
|
76
|
+
rdoc_options: []
|
77
|
+
|
81
78
|
require_paths:
|
82
79
|
- lib
|
83
80
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -85,7 +82,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
85
82
|
requirements:
|
86
83
|
- - ">="
|
87
84
|
- !ruby/object:Gem::Version
|
88
|
-
hash: 3
|
89
85
|
segments:
|
90
86
|
- 0
|
91
87
|
version: "0"
|
@@ -94,7 +90,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
90
|
requirements:
|
95
91
|
- - ">="
|
96
92
|
- !ruby/object:Gem::Version
|
97
|
-
hash: 3
|
98
93
|
segments:
|
99
94
|
- 0
|
100
95
|
version: "0"
|
data/.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
pkg
|