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 CHANGED
@@ -1 +1 @@
1
- 0.0.10
1
+ 0.0.11
@@ -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 the gemspec command
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.10"
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-09}
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
- ".gitignore",
22
- "History.txt",
23
- "Manifest.txt",
24
- "PostInstall.txt",
25
- "README.rdoc",
26
- "Rakefile",
27
- "VERSION",
28
- "baby-bro.gemspec",
29
- "bin/bro",
30
- "config/babybrorc.example",
31
- "lib/baby-bro.rb",
32
- "lib/baby-bro/base_config.rb",
33
- "lib/baby-bro/exec.rb",
34
- "lib/baby-bro/files.rb",
35
- "lib/baby-bro/hash_object.rb",
36
- "lib/baby-bro/monitor.rb",
37
- "lib/baby-bro/monitor_config.rb",
38
- "lib/baby-bro/project.rb",
39
- "lib/baby-bro/reporter.rb",
40
- "lib/baby-bro/session.rb",
41
- "lib/extensions/fixnum.rb",
42
- "script/console",
43
- "script/destroy",
44
- "script/generate",
45
- "spec/baby-bro_spec.rb",
46
- "spec/spec.opts",
47
- "spec/spec_helper.rb",
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
- "spec/spec_helper.rb"
55
+ "spec/spec_helper.rb"
58
56
  ]
59
57
 
60
58
  if s.respond_to? :specification_version then
@@ -207,7 +207,7 @@ MESSAGE
207
207
  reporter = ::BabyBro::Reporter.new( @options, args )
208
208
  reporter.run
209
209
  else
210
- puts "Unknown command: #{command}"
210
+ puts "Unknown command: #{command}. Try --help."
211
211
  end
212
212
  end
213
213
 
@@ -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 #{pid} is running."
19
- puts "If it is not, delete #{pid_file} and try starting baby-bro again."
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
@@ -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.puts " #{Session.duration_in_english(sessions.inject(0){|sum,n| sum = sum+n.duration})}"
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
10
- version: 0.0.10
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-09 00:00:00 -06:00
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
- - --charset=UTF-8
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