wallet 0.0.4 → 0.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.
Files changed (2) hide show
  1. data/lib/wallet/wallet.rb +1 -1
  2. metadata +2 -2
@@ -98,7 +98,7 @@ class Wallet
98
98
 
99
99
  private
100
100
  def convert_time(time)
101
- if !(time =~ /\d+(?:\ +|\.)(?:hours?|minutes?|days?)/)
101
+ if !(time =~ /^\ *\d+(?:\ +|\.)(?:hours?|minutes?|days?|seconds?)\ *$/)
102
102
  raise YamlError.new(
103
103
  "'#{time}' is not a valid time phrase. Valid phrases are a number followed by " +
104
104
  "a space followed by 'hours' or 'minutes' or 'days' (or the singular versions of those)."
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 4
9
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matt Parker