timetracker 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source :rubygems
2
+ gem 'readline'
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/ruby
2
+
3
+ require 'rubygems'
4
+ require 'readline'
5
+ require 'singleton'
6
+
7
+ class Context
8
+ attr_reader :commands
9
+ def initialize
10
+ @commands = []
11
+ end
12
+ def add_command(command)
13
+ @commands << command
14
+ end
15
+ end
16
+
17
+ class Project
18
+ attr_reader :tasks
19
+
20
+ def initialize
21
+ @tasks = []
22
+ end
23
+ end
24
+
25
+ class Task
26
+ attr_reader :name, :time
27
+
28
+ def initialize(name=nil)
29
+ @name = name
30
+ @time = 0
31
+ end
32
+ end
33
+
34
+ Readline.completion_append_character = " "
35
+ Readline.completion_proc = Proc.new do |str|
36
+ Dir[str+'*'].grep(/^#{Regexp.escape(str)}/)
37
+ end
38
+
39
+ while line = Readline.readline("> ", true)
40
+ abort if line == 'exit'
41
+ end
@@ -0,0 +1,2 @@
1
+ require 'rubygems'
2
+ require 'readline'
@@ -0,0 +1,3 @@
1
+ module TimeTracker
2
+ VERSION = '0.0.0'
3
+ end
@@ -0,0 +1,20 @@
1
+ # encoding: utf-8
2
+ $:.push File.expand_path('../lib', __FILE__)
3
+ require 'timetracker/version'
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "timetracker"
7
+ s.version = TimeTracker::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Endel Dreyer"]
10
+ s.email = ["endel.dreyer@gmail.com"]
11
+ s.homepage = "http://github.com/endel/timetracker"
12
+
13
+ s.summary = "Time Tracking for hackers."
14
+ s.description = "Time Tracking for hackers"
15
+ s.licenses = ['MIT']
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.require_paths = ["lib"]
20
+ end
metadata ADDED
@@ -0,0 +1,52 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: timetracker
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Endel Dreyer
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-09-13 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Time Tracking for hackers
15
+ email:
16
+ - endel.dreyer@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - Gemfile
22
+ - bin/timetracker
23
+ - lib/timetracker.rb
24
+ - lib/timetracker/version.rb
25
+ - timetracker.gemspec
26
+ homepage: http://github.com/endel/timetracker
27
+ licenses:
28
+ - MIT
29
+ post_install_message:
30
+ rdoc_options: []
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ requirements: []
46
+ rubyforge_project:
47
+ rubygems_version: 1.8.24
48
+ signing_key:
49
+ specification_version: 3
50
+ summary: Time Tracking for hackers.
51
+ test_files: []
52
+ has_rdoc: