rtt 0.0.0.18 → 0.0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +10 -1
- data/Rakefile +1 -1
- data/db/rtt.sqlite3 +0 -0
- data/lib/rtt.rb +1 -0
- data/lib/rtt/report_generator.rb +3 -1
- data/rtt.gemspec +2 -2
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -77,10 +77,19 @@ $ PROJECT=SomeProject rtt report
|
|
77
77
|
|
78
78
|
This will generate a report for the project 'SomeProject'.
|
79
79
|
|
80
|
-
$ FROM=20-01-2010 TO=25-01-2010 CLIENT=SomeClient rtt report
|
80
|
+
$ FROM=20-01-2010 TO=25-01-2010 CLIENT=SomeClient rtt report
|
81
81
|
|
82
82
|
The output for this command will produce a report only for the task started after 20th of January and before 25th of January and also that were produced for the client called 'SomeClient'.
|
83
83
|
|
84
|
+
Also, You could filter not for a date range, but for a specifc date and/or for a user nickname, like this:
|
85
|
+
|
86
|
+
$ DATE="20-01-2010" NICKNAME="marklazz" rtt report /home/marcelo/some_filename.pdf
|
87
|
+
|
88
|
+
Final thoughts
|
89
|
+
--------------
|
90
|
+
|
91
|
+
Enjoy!
|
92
|
+
|
84
93
|
Questions/Comments
|
85
94
|
------------------
|
86
95
|
|
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require 'echoe'
|
|
3
3
|
|
4
4
|
# PACKAGING ============================================================
|
5
5
|
|
6
|
-
Echoe.new('rtt', '0.0.0.
|
6
|
+
Echoe.new('rtt', '0.0.0.20') do |p|
|
7
7
|
p.description = 'RTT is a tool for tracking time'
|
8
8
|
p.url = 'http://github.com/marklazz/rtt'
|
9
9
|
p.author = 'Marcelo Giorgi'
|
data/db/rtt.sqlite3
CHANGED
Binary file
|
data/lib/rtt.rb
CHANGED
@@ -71,6 +71,7 @@ module Rtt
|
|
71
71
|
def list options = {}
|
72
72
|
say 'Task List'
|
73
73
|
say '========='
|
74
|
+
options[:date] = Date.today.strftime('%d-%m-%Y') if options[:to].blank? and options[:from].blank? and options[:date].blank?
|
74
75
|
query(options).each do |task|
|
75
76
|
say "Task: #{task.name} || Client: #{task.client.name} || Project: #{task.project.name} || User: #{task.user.nickname} || Elapsed time: #{task.duration} #{'[ACTIVE]' if task.active} \n"
|
76
77
|
end
|
data/lib/rtt/report_generator.rb
CHANGED
@@ -20,8 +20,10 @@ module Rtt
|
|
20
20
|
def column_widths(fixed_fields)
|
21
21
|
if fixed_fields.same(['Date', 'Client', 'Project'])
|
22
22
|
{ 0 => 430, 1 => 50, 2 => 60 }
|
23
|
-
elsif fixed_fields.same(['Client', 'Project'])
|
23
|
+
elsif fixed_fields.same(['Client', 'Project'])
|
24
24
|
{ 0 => 360, 1 => 60, 2 => 60, 3 => 60 }
|
25
|
+
elsif fixed_fields.same(['Client', 'Date']) || fixed_fields.same(['Project', 'Date'])
|
26
|
+
{ 0 => 60, 1 => 360, 2 => 60, 3 => 60 }
|
25
27
|
elsif fixed_fields.same(['Project']) || fixed_fields.same(['Client'])
|
26
28
|
{ 0 => 80, 1 => 290, 2 => 60, 3 => 50, 4 => 60 }
|
27
29
|
else
|
data/rtt.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{rtt}
|
5
|
-
s.version = "0.0.0.
|
5
|
+
s.version = "0.0.0.20"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Marcelo Giorgi"]
|
9
|
-
s.date = %q{2010-06-
|
9
|
+
s.date = %q{2010-06-30}
|
10
10
|
s.default_executable = %q{rtt}
|
11
11
|
s.description = %q{RTT is a tool for tracking time}
|
12
12
|
s.email = %q{marklazz.uy@gmail.com}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 103
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 0.0.0.
|
10
|
+
- 20
|
11
|
+
version: 0.0.0.20
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Marcelo Giorgi
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-06-
|
19
|
+
date: 2010-06-30 00:00:00 -03:00
|
20
20
|
default_executable: rtt
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|