wallet 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
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