time_tap 0.2.0 → 0.4.0.pre
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/.gitignore +5 -37
- data/.rspec +1 -0
- data/.ruby-version +1 -0
- data/Gemfile +3 -21
- data/README.md +104 -41
- data/Rakefile +1 -30
- data/bin/timetap +25 -26
- data/lib/time_tap.rb +126 -52
- data/lib/time_tap/backend.rb +9 -0
- data/lib/time_tap/backend/file_system.rb +36 -0
- data/lib/time_tap/config.yml.example +32 -0
- data/lib/time_tap/editor.rb +9 -0
- data/lib/time_tap/editor/sublime_text2.rb +15 -0
- data/lib/time_tap/editor/text_mate.rb +22 -0
- data/lib/time_tap/editor/text_mate2.rb +15 -0
- data/lib/time_tap/editor/xcode.rb +24 -0
- data/lib/time_tap/project.rb +136 -116
- data/lib/time_tap/server.rb +20 -20
- data/lib/time_tap/version.rb +3 -0
- data/lib/time_tap/views/project.haml +5 -3
- data/lib/time_tap/views/project_day.haml +1 -0
- data/lib/time_tap/watcher.rb +46 -43
- data/log/.git-keep +1 -0
- data/spec/lib/time_tap/project_spec.rb +12 -0
- data/spec/spec_helper.rb +3 -1
- data/spec/time_tap/backend_spec.rb +12 -0
- data/spec/time_tap/project_spec.rb +13 -0
- data/spec/time_tap/watcher_spec.rb +14 -0
- data/spec/time_tap_spec.rb +6 -4
- data/time_tap.gemspec +26 -108
- data/vendor/SublimeText2/.gitignore +1 -0
- data/vendor/SublimeText2/README.md +27 -0
- data/vendor/SublimeText2/TimeTap.py +10 -0
- data/vendor/TextMate2/TimeTap.tmbundle/Commands/Record current file.tmCommand +33 -0
- data/vendor/TextMate2/TimeTap.tmbundle/info.plist +16 -0
- data/vendor/TimeTap.tmbundle/Commands/Record current file.tmCommand +36 -0
- data/vendor/TimeTap.tmbundle/info.plist +18 -0
- metadata +161 -260
- data/Gemfile.lock +0 -48
- data/VERSION +0 -1
- data/config.yaml +0 -8
- 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
data/lib/time_tap/editors.rb
DELETED
@@ -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
|