clockout 0.4 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/clockout.rb +2 -1
- metadata +2 -2
data/lib/clockout.rb
CHANGED
@@ -45,7 +45,8 @@ class Clockout
|
|
45
45
|
|
46
46
|
add_commit = lambda do |commit|
|
47
47
|
last = blocks.last
|
48
|
-
|
48
|
+
mins = (last && last.last.minutes) ? last.last.minutes*60 : 0
|
49
|
+
if !last || (commit.date - (last.last.date + mins))/60.0 > $opts[:time_cutoff]
|
49
50
|
blocks << [commit]
|
50
51
|
false
|
51
52
|
else
|
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:
|
4
|
+
version: 0.4.1
|
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-06-
|
12
|
+
date: 2013-06-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: grit
|