rtt 0.0.0.53 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -2,7 +2,7 @@ Gemfile
2
2
  Gemfile.lock
3
3
  LICENSE
4
4
  Manifest
5
- README.rdoc
5
+ README.textile
6
6
  Rakefile
7
7
  USAGE.txt
8
8
  bin/rtt
@@ -25,7 +25,6 @@ lib/rtt/interactive_configurator.rb
25
25
  lib/rtt/query_builder.rb
26
26
  lib/rtt/report_generator.rb
27
27
  lib/rtt/storage.rb
28
- rtt.gemspec
29
28
  spec/ar_spec_helper.rb
30
29
  spec/lib/models/task_spec.rb
31
30
  spec/lib/rtt_spec.rb
@@ -1,13 +1,12 @@
1
- RTT - Ruby Time Tracker
2
- -----------------------
3
- -----------------------
1
+ h1. RTT - Ruby Time Tracker
4
2
 
5
3
  RTT is a tool for tracking time. It's primary extend is to be used from command line. It could be used by simple typing:
6
4
 
7
- How to start a task?
8
- --------------------
5
+ h2. How to start a task?
9
6
 
7
+ <pre>
10
8
  $ rtt '<task-name>' ( or the more explicit way: 'rtt start <task-name>')
9
+ </pre>
11
10
 
12
11
  That simple!
13
12
 
@@ -17,18 +16,23 @@ If no <task-name> is specified the last paused one is activated, otherwise a tas
17
16
 
18
17
  Then to stop the timer, you can do:
19
18
 
19
+ <pre>
20
20
  $ rtt stop | pause | resume (if there is a paused task)
21
+ </pre>
21
22
 
22
23
  Each new task belongs to a the current Project, Client and User. If there isn't any of those already configured, then the system will create them for you (you can change them later). Read 'More about the API' section.
23
24
 
24
- Installation
25
- ------------
25
+ h2. Installation
26
26
 
27
+ <pre>
27
28
  [sudo] gem install rtt
29
+ </pre>
28
30
 
29
31
  After installing the gem you will need to setup some basic information of yours (data to be printed in the reports). With the following command:
30
32
 
33
+ <pre>
31
34
  $ rtt configure user [<user-nick-name>]
35
+ </pre>
32
36
 
33
37
  Then you will be prompt for First name, Last name, country, city, e-mail, site, etc. Information that will be used to fill-in the reports.
34
38
 
@@ -36,61 +40,74 @@ The only required field is the Nickname, which identifies the user.
36
40
 
37
41
  Note: This configuration step is not required, but if you don't do this your reports will lack any personal information.
38
42
 
39
-
40
- More about the API
41
- ------------------
43
+ h2. More about the API
42
44
 
43
45
  To configure the current Project, Client or Task you can use an analogous command:
44
46
 
47
+ <pre>
45
48
  $ rtt configure project [<project-name>] || rtt configure client [<client-name>] || rtt configure task [<task-name>]
49
+ </pre>
46
50
 
47
51
  After which, you'll be prompted for the attributes for those models.
48
52
 
49
53
  If you just want to change the current project. You can do this:
50
54
 
55
+ <pre>
51
56
  $ rtt project <project-name>
57
+ </pre>
52
58
 
53
59
  Anagolous, you can change the current Client by typing:
54
60
 
61
+ <pre>
55
62
  $ rtt client <client-name>
63
+ </pre>
56
64
 
57
65
  To list all task you can use
58
66
 
67
+ <pre>
59
68
  $ rtt list
69
+ </pre>
60
70
 
61
71
  Also, if you have added times for different projects or clients and you may want to filtered this list by one of those dimensions. Then you can do that, by using environment variables like this:
62
72
 
73
+ <pre>
63
74
  $ CLIENT=MyClient PROJECT=SomeProject rtt list
75
+ </pre>
64
76
 
65
77
  This command will list all tasks that belongs to the client called 'MyClient' and to the project called 'SomeProject'.
66
78
 
67
- Report
68
- -------
79
+ h2. Report
69
80
 
70
81
  RTT allow you to build a pdf document with all the entries using the following command:
71
82
 
83
+ <pre>
72
84
  $ rtt report <output-filename>
85
+ </pre>
73
86
 
74
87
  Also, you can filter the entries of this report in a similar manner as you would do for 'list' command. For example:
75
88
 
89
+ <pre>
76
90
  $ PROJECT=SomeProject rtt report
91
+ </pre>
77
92
 
78
93
  This will generate a report for the project 'SomeProject'.
79
94
 
95
+ <pre>
80
96
  $ FROM=20-01-2010 TO=25-01-2010 CLIENT=SomeClient rtt report
97
+ </pre>
81
98
 
82
99
  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
100
 
84
101
  Also, You could filter not for a date range, but for a specifc date and/or for a user nickname, like this:
85
102
 
103
+ <pre>
86
104
  $ DATE="20-01-2010" NICKNAME="marklazz" rtt report /home/marcelo/some_filename.pdf
105
+ </pre>
87
106
 
88
- Final thoughts
89
- --------------
107
+ h2. Final thoughts
90
108
 
91
109
  Enjoy!
92
110
 
93
- Questions/Comments
94
- ------------------
111
+ h2. Questions/Comments
95
112
 
96
113
  Feel free to email {Marcelo Andrés Giorgi Martínez}[mailto:marklazz.uy@gmail.com] for any comment or question.
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'echoe'
3
3
 
4
4
  # PACKAGING ============================================================
5
5
 
6
- Echoe.new('rtt', '0.0.0.53') do |p|
6
+ Echoe.new('rtt', '0.0.3') 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/lib/rtt.rb CHANGED
@@ -8,7 +8,7 @@ Dir[File.expand_path(File.join(File.dirname(__FILE__), 'rtt', '*'))].each { |lib
8
8
 
9
9
  module Rtt
10
10
 
11
- VERSION = '0.0.0.53'
11
+ VERSION = '0.0.3'
12
12
 
13
13
  extend self
14
14
 
@@ -2,18 +2,18 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rtt"
5
- s.version = "0.0.0.53"
5
+ s.version = "0.0.3"
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 = "2012-07-30"
9
+ s.date = "2012-07-31"
10
10
  s.description = "RTT is a tool for tracking time"
11
11
  s.email = "marklazz.uy@gmail.com"
12
12
  s.executables = ["rtt"]
13
- s.extra_rdoc_files = ["LICENSE", "README.rdoc", "bin/rtt", "lib/extensions/array.rb", "lib/extensions/date.rb", "lib/extensions/hash.rb", "lib/extensions/kernel.rb", "lib/models/client.rb", "lib/models/project.rb", "lib/models/task.rb", "lib/models/user.rb", "lib/rtt.rb", "lib/rtt/boot.rb", "lib/rtt/cmd_line_parser.rb", "lib/rtt/interactive_configurator.rb", "lib/rtt/query_builder.rb", "lib/rtt/report_generator.rb", "lib/rtt/storage.rb", "tasks/rtt.rake"]
14
- s.files = ["Gemfile", "Gemfile.lock", "LICENSE", "Manifest", "README.rdoc", "Rakefile", "USAGE.txt", "bin/rtt", "db/config.yml", "db/production.sqlite3", "db/schema.rb", "db/test.sqlite3", "lib/extensions/array.rb", "lib/extensions/date.rb", "lib/extensions/hash.rb", "lib/extensions/kernel.rb", "lib/models/client.rb", "lib/models/project.rb", "lib/models/task.rb", "lib/models/user.rb", "lib/rtt.rb", "lib/rtt/boot.rb", "lib/rtt/cmd_line_parser.rb", "lib/rtt/interactive_configurator.rb", "lib/rtt/query_builder.rb", "lib/rtt/report_generator.rb", "lib/rtt/storage.rb", "spec/ar_spec_helper.rb", "spec/lib/models/task_spec.rb", "spec/lib/rtt_spec.rb", "tasks/rtt.rake", "rtt.gemspec"]
13
+ s.extra_rdoc_files = ["LICENSE", "README.textile", "bin/rtt", "lib/extensions/array.rb", "lib/extensions/date.rb", "lib/extensions/hash.rb", "lib/extensions/kernel.rb", "lib/models/client.rb", "lib/models/project.rb", "lib/models/task.rb", "lib/models/user.rb", "lib/rtt.rb", "lib/rtt/boot.rb", "lib/rtt/cmd_line_parser.rb", "lib/rtt/interactive_configurator.rb", "lib/rtt/query_builder.rb", "lib/rtt/report_generator.rb", "lib/rtt/storage.rb", "tasks/rtt.rake"]
14
+ s.files = ["Gemfile", "Gemfile.lock", "LICENSE", "README.textile", "Rakefile", "USAGE.txt", "bin/rtt", "db/config.yml", "db/production.sqlite3", "db/schema.rb", "db/test.sqlite3", "lib/extensions/array.rb", "lib/extensions/date.rb", "lib/extensions/hash.rb", "lib/extensions/kernel.rb", "lib/models/client.rb", "lib/models/project.rb", "lib/models/task.rb", "lib/models/user.rb", "lib/rtt.rb", "lib/rtt/boot.rb", "lib/rtt/cmd_line_parser.rb", "lib/rtt/interactive_configurator.rb", "lib/rtt/query_builder.rb", "lib/rtt/report_generator.rb", "lib/rtt/storage.rb", "rtt.gemspec", "spec/ar_spec_helper.rb", "spec/lib/models/task_spec.rb", "spec/lib/rtt_spec.rb", "tasks/rtt.rake", "Manifest"]
15
15
  s.homepage = "http://github.com/marklazz/rtt"
16
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Rtt", "--main", "README.rdoc"]
16
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Rtt", "--main", "README.textile"]
17
17
  s.require_paths = ["lib"]
18
18
  s.rubyforge_project = "rtt"
19
19
  s.rubygems_version = "1.8.23"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.53
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-30 00:00:00.000000000 Z
12
+ date: 2012-07-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: highline
@@ -338,7 +338,7 @@ executables:
338
338
  extensions: []
339
339
  extra_rdoc_files:
340
340
  - LICENSE
341
- - README.rdoc
341
+ - README.textile
342
342
  - bin/rtt
343
343
  - lib/extensions/array.rb
344
344
  - lib/extensions/date.rb
@@ -360,8 +360,7 @@ files:
360
360
  - Gemfile
361
361
  - Gemfile.lock
362
362
  - LICENSE
363
- - Manifest
364
- - README.rdoc
363
+ - README.textile
365
364
  - Rakefile
366
365
  - USAGE.txt
367
366
  - bin/rtt
@@ -384,11 +383,12 @@ files:
384
383
  - lib/rtt/query_builder.rb
385
384
  - lib/rtt/report_generator.rb
386
385
  - lib/rtt/storage.rb
386
+ - rtt.gemspec
387
387
  - spec/ar_spec_helper.rb
388
388
  - spec/lib/models/task_spec.rb
389
389
  - spec/lib/rtt_spec.rb
390
390
  - tasks/rtt.rake
391
- - rtt.gemspec
391
+ - Manifest
392
392
  homepage: http://github.com/marklazz/rtt
393
393
  licenses: []
394
394
  post_install_message:
@@ -398,7 +398,7 @@ rdoc_options:
398
398
  - --title
399
399
  - Rtt
400
400
  - --main
401
- - README.rdoc
401
+ - README.textile
402
402
  require_paths:
403
403
  - lib
404
404
  required_ruby_version: !ruby/object:Gem::Requirement