windows-shutdown-timer 1.0.4 → 1.0.5

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: d2bbab4a47efab295daec7503f914f181ca4e9db
4
- data.tar.gz: 33e69351d18e713fec57faeb4449d53b3453a10d
3
+ metadata.gz: 72ba8558a7efe05a9fa00a5a82e63963f0aca267
4
+ data.tar.gz: 95d1564c86bf8e570a3a379e0feaf4c9a3fca0ef
5
5
  SHA512:
6
- metadata.gz: 7a2e79b59b7f80d8993c46556a527e33968b1ec7ffdaf88c9bc357c734aa1fca7bcf95b3e2f0e8994d833dc0718703a24715f8f1238decbb1e66fb9a777b40a2
7
- data.tar.gz: 4b56f2e381cdcd4ff42cd4099afc0d8ef557254a19b4fa4d1eab2736af96c061609a09a7874e7cfb391d74b251edf283995a50f2d248a2753e3f416f0096b7c7
6
+ metadata.gz: 802493390832b1cccdb93e92e61706d065f7f1ad22a5480ed500a9f66783acc9aeee221ea0f5d3b2cd1a5af33bfd4c3e94d9c978023f30f81219a049971157c4
7
+ data.tar.gz: 282b4e51581e89ba169b0ef7bdb301021b5381bfd330a89c7c084d9206c1d3c38ac8309e4731d8aa1970ae1eb7f4daee9d4c9c7d47f6784b492a9039917752e6
@@ -56,7 +56,7 @@ module WindowsShutdownTimer
56
56
  puts 'Please enter the number of minutes until shutdown (0 to cancel):'
57
57
  @time = gets.to_i
58
58
  end
59
- if @time.zero?
59
+ if @time.to_i.zero?
60
60
  `#{COMMAND_CANCEL_SHUTDOWN}`
61
61
  elsif @time == -1
62
62
  `#{COMMAND_INSOMNIA}`
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: windows-shutdown-timer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Carlson