summaryrefslogtreecommitdiff
path: root/lib/timetrackr.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/timetrackr.rb')
-rw-r--r--lib/timetrackr.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/timetrackr.rb b/lib/timetrackr.rb
index c93da9b..14a501e 100644
--- a/lib/timetrackr.rb
+++ b/lib/timetrackr.rb
@@ -2,12 +2,12 @@ autoload 'YamlTimeTrackr', 'timetrackr/yaml'
autoload 'SqliteTimeTrackr', 'timetrackr/sqlite'
class TimeTrackr
- def self.create(type,options={})
+ def self.create(type, options={})
case type.to_s
when 'yaml'
begin
require 'yaml'
- log = YamlTimeTrackr.new(options[:path])
+ log = YamlTimeTrackr.new(options['path'])
puts 'Loaded yaml tracker' if $verbose
rescue LoadError
puts 'Yaml not found'
@@ -15,7 +15,7 @@ class TimeTrackr
when 'sqlite'
begin
require 'sqlite3'
- log = SqliteTimeTrackr.new(options[:path])
+ log = SqliteTimeTrackr.new(options['path'])
puts 'Loaded sqlite tracker' if $verbose
rescue LoadError
puts 'Sqlite not found'
@@ -34,7 +34,7 @@ class TimeTrackr
end
#
- # start a period
+ # start a period with optional notes
#
def start(task,notes)
raise 'Not implemented'