time_tap 0.2.0 → 0.4.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. data/.gitignore +5 -37
  2. data/.rspec +1 -0
  3. data/.ruby-version +1 -0
  4. data/Gemfile +3 -21
  5. data/README.md +104 -41
  6. data/Rakefile +1 -30
  7. data/bin/timetap +25 -26
  8. data/lib/time_tap.rb +126 -52
  9. data/lib/time_tap/backend.rb +9 -0
  10. data/lib/time_tap/backend/file_system.rb +36 -0
  11. data/lib/time_tap/config.yml.example +32 -0
  12. data/lib/time_tap/editor.rb +9 -0
  13. data/lib/time_tap/editor/sublime_text2.rb +15 -0
  14. data/lib/time_tap/editor/text_mate.rb +22 -0
  15. data/lib/time_tap/editor/text_mate2.rb +15 -0
  16. data/lib/time_tap/editor/xcode.rb +24 -0
  17. data/lib/time_tap/project.rb +136 -116
  18. data/lib/time_tap/server.rb +20 -20
  19. data/lib/time_tap/version.rb +3 -0
  20. data/lib/time_tap/views/project.haml +5 -3
  21. data/lib/time_tap/views/project_day.haml +1 -0
  22. data/lib/time_tap/watcher.rb +46 -43
  23. data/log/.git-keep +1 -0
  24. data/spec/lib/time_tap/project_spec.rb +12 -0
  25. data/spec/spec_helper.rb +3 -1
  26. data/spec/time_tap/backend_spec.rb +12 -0
  27. data/spec/time_tap/project_spec.rb +13 -0
  28. data/spec/time_tap/watcher_spec.rb +14 -0
  29. data/spec/time_tap_spec.rb +6 -4
  30. data/time_tap.gemspec +26 -108
  31. data/vendor/SublimeText2/.gitignore +1 -0
  32. data/vendor/SublimeText2/README.md +27 -0
  33. data/vendor/SublimeText2/TimeTap.py +10 -0
  34. data/vendor/TextMate2/TimeTap.tmbundle/Commands/Record current file.tmCommand +33 -0
  35. data/vendor/TextMate2/TimeTap.tmbundle/info.plist +16 -0
  36. data/vendor/TimeTap.tmbundle/Commands/Record current file.tmCommand +36 -0
  37. data/vendor/TimeTap.tmbundle/info.plist +18 -0
  38. metadata +161 -260
  39. data/Gemfile.lock +0 -48
  40. data/VERSION +0 -1
  41. data/config.yaml +0 -8
  42. data/lib/time_tap/editors.rb +0 -23
data/Gemfile.lock DELETED
@@ -1,48 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- actionpack (2.3.9)
5
- activesupport (= 2.3.9)
6
- rack (~> 1.1.0)
7
- activesupport (2.3.9)
8
- diff-lcs (1.1.2)
9
- git (1.2.5)
10
- haml (3.0.21)
11
- i18n (0.3.7)
12
- jeweler (1.5.0.pre3)
13
- bundler (~> 1.0.0)
14
- git (>= 1.2.5)
15
- rake
16
- rack (1.1.0)
17
- rake (0.8.7)
18
- rb-appscript (0.5.3)
19
- rcov (0.9.9)
20
- rspec (2.0.0.rc)
21
- rspec-core (= 2.0.0.rc)
22
- rspec-expectations (= 2.0.0.rc)
23
- rspec-mocks (= 2.0.0.rc)
24
- rspec-core (2.0.0.rc)
25
- rspec-expectations (2.0.0.rc)
26
- diff-lcs (>= 1.1.2)
27
- rspec-mocks (2.0.0.rc)
28
- rspec-core (= 2.0.0.rc)
29
- rspec-expectations (= 2.0.0.rc)
30
- sinatra (1.0)
31
- rack (>= 1.0)
32
- yard (0.6.1)
33
-
34
- PLATFORMS
35
- ruby
36
-
37
- DEPENDENCIES
38
- actionpack (~> 2.3.8)
39
- activesupport (~> 2.3.8)
40
- bundler (~> 1.0.0)
41
- haml
42
- i18n (~> 0.3.5)
43
- jeweler (~> 1.5.0.pre3)
44
- rb-appscript
45
- rcov
46
- rspec (>= 2.0.0.beta.19)
47
- sinatra
48
- yard (~> 0.6.0)
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.2.0
data/config.yaml DELETED
@@ -1,8 +0,0 @@
1
- root: "~"
2
- port: 1111
3
- code: Code
4
- nested_project_layers: 1
5
- ruby: /usr/bin/ruby
6
- textmate:
7
- projects: ~/Development/Current Projects
8
-
@@ -1,23 +0,0 @@
1
- module TimeTap
2
- module Editors
3
- class EditorError < StandardError
4
- end
5
-
6
- class TextMate
7
- require 'appscript'
8
- include Appscript
9
-
10
- def is_running?
11
- not(`ps -ax -o comm|grep TextMate`.chomp.strip.empty?)
12
- end
13
-
14
- def current_path
15
- mate = app('TextMate')
16
- document = mate.document.get
17
- raise(EditorError) if document.blank?
18
- path = document.first.path.get rescue nil
19
- end
20
- end
21
-
22
- end
23
- end