spreewald 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,16 +10,16 @@ if defined?(Timecop)
10
10
 
11
11
  # Example:
12
12
  #
13
- # Given the date is "2012-02-10"
14
- # Given the time is "2012-02-10 13:40"
15
- When /^the (?:date|time) is "(\d{4}-\d{2}-\d{2}(?: \d{1,2}:\d{2})?)"$/ do |time|
13
+ # Given the date is 2012-02-10
14
+ # Given the time is 2012-02-10 13:40
15
+ When /^the (?:date|time) is "?(\d{4}-\d{2}-\d{2}(?: \d{1,2}:\d{2})?)"?$/ do |time|
16
16
  Timecop.travel Time.parse(time)
17
17
  end
18
18
 
19
19
  # Example:
20
20
  #
21
- # Given the time is "13:40"
22
- When /^the time is "(\d{1,2}:\d{2})"$/ do |time|
21
+ # Given the time is 13:40
22
+ When /^the time is "?(\d{1,2}:\d{2})"?$/ do |time|
23
23
  Timecop.travel Time.parse(time) # date will be today
24
24
  end
25
25
 
@@ -1,5 +1,5 @@
1
1
  # coding: UTF-8
2
2
 
3
3
  module Spreewald
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spreewald
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 1
10
- version: 0.4.1
9
+ - 2
10
+ version: 0.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tobias Kraze
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-01-30 00:00:00 +01:00
18
+ date: 2013-02-11 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency