tlog 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +172 -30
- data/TODO +1 -0
- data/lib/tlog/application.rb +56 -56
- data/lib/tlog/command/active.rb +48 -48
- data/lib/tlog/command/checkout.rb +31 -31
- data/lib/tlog/command/create.rb +40 -40
- data/lib/tlog/command/delete.rb +21 -21
- data/lib/tlog/command/display.rb +195 -148
- data/lib/tlog/command/help.rb +33 -33
- data/lib/tlog/command/owner.rb +25 -25
- data/lib/tlog/command/points.rb +25 -25
- data/lib/tlog/command/pull.rb +18 -18
- data/lib/tlog/command/push.rb +18 -18
- data/lib/tlog/command/start.rb +35 -35
- data/lib/tlog/command/state.rb +25 -25
- data/lib/tlog/command/stop.rb +26 -26
- data/lib/tlog/command.rb +9 -8
- data/lib/tlog/command_suite.rb +29 -29
- data/lib/tlog/entity/active_log.rb +8 -8
- data/lib/tlog/entity/entry.rb +77 -77
- data/lib/tlog/entity/log.rb +161 -161
- data/lib/tlog/error.rb +3 -0
- data/lib/tlog/format/date_time.rb +4 -3
- data/lib/tlog/format/seconds.rb +10 -9
- data/lib/tlog/input.rb +6 -6
- data/lib/tlog/output.rb +28 -28
- data/lib/tlog/storage/disk.rb +326 -326
- data/lib/tlog.rb +1 -1
- metadata +2 -4
- data/lib/tlog/command/init.rb +0 -38
- data/lib/tlog/version.rb +0 -3
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tlog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Wendel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|
@@ -101,7 +101,6 @@ files:
|
|
101
101
|
- lib/tlog/command/delete.rb
|
102
102
|
- lib/tlog/command/display.rb
|
103
103
|
- lib/tlog/command/help.rb
|
104
|
-
- lib/tlog/command/init.rb
|
105
104
|
- lib/tlog/command/owner.rb
|
106
105
|
- lib/tlog/command/points.rb
|
107
106
|
- lib/tlog/command/pull.rb
|
@@ -119,7 +118,6 @@ files:
|
|
119
118
|
- lib/tlog/input.rb
|
120
119
|
- lib/tlog/output.rb
|
121
120
|
- lib/tlog/storage/disk.rb
|
122
|
-
- lib/tlog/version.rb
|
123
121
|
- tlog.gemspec
|
124
122
|
homepage: http://github.com/cewendel/tlog
|
125
123
|
licenses:
|
data/lib/tlog/command/init.rb
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
|
2
|
-
class Tlog::Command::Init < Tlog::Command
|
3
|
-
|
4
|
-
def name
|
5
|
-
"init"
|
6
|
-
end
|
7
|
-
|
8
|
-
def description
|
9
|
-
"fuck"
|
10
|
-
end
|
11
|
-
|
12
|
-
def execute(input,output)
|
13
|
-
if input.args[0].nil?
|
14
|
-
raise Tlog::Error::CommandInvalid, "Project already initialized" unless @storage.init_project
|
15
|
-
else
|
16
|
-
raise Tlog::Error::CommandInvalid, "Command invalid"
|
17
|
-
end
|
18
|
-
#elsif input.args[1].nil?
|
19
|
-
# arg1 = input.args.shift
|
20
|
-
# #output.line("arg at 0 was #{arg1}")
|
21
|
-
#else
|
22
|
-
# arg1 = input.args.shift
|
23
|
-
# arg2 = input.args.shift
|
24
|
-
# #output.line("arg at 0 was #{arg1}")
|
25
|
-
# #output.line("arg at 1 was #{arg2}")
|
26
|
-
# raise Tlog::Error::CommandInvalid, "Command invalid"
|
27
|
-
#end
|
28
|
-
|
29
|
-
#@storage.init_project
|
30
|
-
end
|
31
|
-
|
32
|
-
def options(parser, options)
|
33
|
-
parser.banner = "usage: tlog init"
|
34
|
-
end
|
35
|
-
|
36
|
-
private
|
37
|
-
|
38
|
-
end
|
data/lib/tlog/version.rb
DELETED