toggl-worktime 0.3.1 → 0.3.2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/toggl/worktime/merger.rb +8 -2
- data/lib/toggl/worktime/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b9f8888bd43de3a041b90dab1ffd3a8b6ba389543926f28d7c55d43373a15bc
|
4
|
+
data.tar.gz: 37d614878ec772bba329858b12d8849f90d7cd1d1ddf201126889bb8473693ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f66f944ca82d54c014c9e9a577614d624edbaf40a8a81d2c7a2107b0ae8a0ba659b05125ca9664f06321b655795ae7fe920605662c58446c5974650e310661e6
|
7
|
+
data.tar.gz: 14173ac55e5944be336b33fd0d8f25a86c9e4e917465e7d2a9ab69dedad671c2e193b065e99d4ceeaca43338dc6d1388bc6954756dc61e81ae791047ff445faf
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v0.3.1](https://github.com/limitusus/toggl-worktime/tree/v0.3.1) (2018-09-26)
|
4
|
+
[Full Changelog](https://github.com/limitusus/toggl-worktime/compare/v0.3.0...v0.3.1)
|
5
|
+
|
6
|
+
**Merged pull requests:**
|
7
|
+
|
8
|
+
- Bugfix/interval [\#6](https://github.com/limitusus/toggl-worktime/pull/6) ([limitusus](https://github.com/limitusus))
|
9
|
+
|
3
10
|
## [v0.3.0](https://github.com/limitusus/toggl-worktime/tree/v0.3.0) (2018-08-01)
|
4
11
|
[Full Changelog](https://github.com/limitusus/toggl-worktime/compare/v0.2.0...v0.3.0)
|
5
12
|
|
@@ -28,15 +28,21 @@ module Toggl
|
|
28
28
|
next
|
29
29
|
end
|
30
30
|
work_time << [@current_start, @current_stop]
|
31
|
-
|
31
|
+
count_total_time
|
32
32
|
@current_start = start
|
33
33
|
@current_stop = stop
|
34
34
|
end
|
35
35
|
work_time << [@current_start, @last_stop]
|
36
|
-
|
36
|
+
count_total_time
|
37
37
|
work_time
|
38
38
|
end
|
39
39
|
|
40
|
+
def count_total_time
|
41
|
+
return if @current_start.nil? || @current_stop.nil?
|
42
|
+
|
43
|
+
@total_time += @current_stop - @current_start
|
44
|
+
end
|
45
|
+
|
40
46
|
def time_entries_each
|
41
47
|
zone_offset = Toggl::Worktime::Time.zone_offset(@config.timezone)
|
42
48
|
@time_entries.each do |te|
|