spotdog 0.2.0 → 0.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8c1c054c0a2918c6edca2fd8c6b23c2988aa802
4
- data.tar.gz: 8f939bfa50904bf4e344cb1c23f5bdad68aad028
3
+ metadata.gz: c9d5a1131de584c1695f25d24e1698330fd8d7f8
4
+ data.tar.gz: df090a1b36bfc4e8e194b5be4526649343dc10d1
5
5
  SHA512:
6
- metadata.gz: 8a3c8714e6f188760a858b995ec3580c3633b3579a467b9185f15c66d5449b576393b310d2dbcce6c217f77155c71ccd69647fb1ce45110eaefc73affcfa6e5a
7
- data.tar.gz: 213772f27bca9f06f57825c4486e2901a9c5a5e17910679b7b3edf02d0631b38ebede8a861f82065dc04fc62754d717f506753d60d032a3fa536b730b65440f5
6
+ metadata.gz: 15b5cc25e8824dc217baf4f7d96e4765baf8998ce65b4414b1ea188622b1037052e5ed70800ad0235cfef430f42cd022796296df4dc6d215700442f97a70b42f
7
+ data.tar.gz: 04995920d50c895201e3ff1142d0bb263ba45acd3a2854df0f2115508fa15b58b6eed207b5282e0c1229d67681d30908eccac40f86241a5a86b94e0a40b3dd4d
@@ -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
 
@@ -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 - options[:last_minutes] * 60
42
+ current_time
43
43
  else
44
44
  options[:end_time] ? Time.parse(options[:end_time]) : nil
45
45
  end
@@ -1,3 +1,3 @@
1
1
  module Spotdog
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spotdog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daisuke Fujita