clockout 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/clock +1 -1
- data/lib/clockout.rb +4 -1
- metadata +2 -2
data/bin/clock
CHANGED
@@ -16,7 +16,7 @@ Options:
|
|
16
16
|
|
17
17
|
Other:
|
18
18
|
$ clock in Clock-in (when you start working, preceding a commit)
|
19
|
-
$ clock out Clock-out (after you
|
19
|
+
$ clock out Clock-out (after you've worked overtime following a commit)
|
20
20
|
EOS
|
21
21
|
|
22
22
|
TEMPLATE_CLOCKFILE = <<-EOF
|
data/lib/clockout.rb
CHANGED
@@ -202,7 +202,10 @@ class Clockout
|
|
202
202
|
end
|
203
203
|
end if overrides
|
204
204
|
|
205
|
-
|
205
|
+
# If we're ignoring initial & it's initial, set minutes to 0
|
206
|
+
if $opts[:ignore_initial] && !prev_c
|
207
|
+
curr_c.minutes = 0
|
208
|
+
elsif !curr_c.overriden && prev_c
|
206
209
|
curr_c.clocked_in = true if prev_c.class == Clock && prev_c.in
|
207
210
|
# If it added successfully into a block (or was clocked in), we can calculate based on last commit
|
208
211
|
if add_commit.call(curr_c) || curr_c.clocked_in
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clockout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: grit
|