spotdog 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 +4 -4
- data/lib/spotdog/CHANGELOG.md +5 -1
- data/lib/spotdog/cli.rb +2 -2
- data/lib/spotdog/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9d5a1131de584c1695f25d24e1698330fd8d7f8
|
4
|
+
data.tar.gz: df090a1b36bfc4e8e194b5be4526649343dc10d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15b5cc25e8824dc217baf4f7d96e4765baf8998ce65b4414b1ea188622b1037052e5ed70800ad0235cfef430f42cd022796296df4dc6d215700442f97a70b42f
|
7
|
+
data.tar.gz: 04995920d50c895201e3ff1142d0bb263ba45acd3a2854df0f2115508fa15b58b6eed207b5282e0c1229d67681d30908eccac40f86241a5a86b94e0a40b3dd4d
|
data/lib/spotdog/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
+
# [v0.2.1](https://github.com/dtan4/spotdog/releases/tag/v0.2.1) (2015-10-06)
|
2
|
+
|
3
|
+
- Swap start_time and end_time from last_minutes #8
|
4
|
+
|
1
5
|
# [v0.2.0](https://github.com/dtan4/spotdog/releases/tag/v0.2.0) (2015-10-06)
|
2
6
|
|
3
|
-
- Add CLI option `--last-minutes`
|
7
|
+
- Add CLI option `--last-minutes` #7
|
4
8
|
|
5
9
|
# [v0.1.0](https://github.com/dtan4/spotdog/releases/tag/v0.1.0) (2015-10-06)
|
6
10
|
|
data/lib/spotdog/cli.rb
CHANGED
@@ -31,7 +31,7 @@ module Spotdog
|
|
31
31
|
|
32
32
|
def parse_start_time(options)
|
33
33
|
if options[:last_minutes]
|
34
|
-
current_time
|
34
|
+
current_time - options[:last_minutes] * 60
|
35
35
|
else
|
36
36
|
options[:start_time] ? Time.parse(options[:start_time]) : nil
|
37
37
|
end
|
@@ -39,7 +39,7 @@ module Spotdog
|
|
39
39
|
|
40
40
|
def parse_end_time(options)
|
41
41
|
if options[:last_minutes]
|
42
|
-
current_time
|
42
|
+
current_time
|
43
43
|
else
|
44
44
|
options[:end_time] ? Time.parse(options[:end_time]) : nil
|
45
45
|
end
|
data/lib/spotdog/version.rb
CHANGED