delorean 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/delorean.rb +1 -1
- metadata +20 -6
data/lib/delorean.rb
CHANGED
@@ -38,7 +38,7 @@ module Delorean
|
|
38
38
|
|
39
39
|
def mock_current_time(time, options={})
|
40
40
|
time = Chronic.parse(time, options) if time.is_a?(String)
|
41
|
-
time = Time.local(time.year, time.month, time.day) if time.is_a?(Date)
|
41
|
+
time = Time.local(time.year, time.month, time.day) if time.is_a?(Date) && !time.is_a?(DateTime)
|
42
42
|
|
43
43
|
time_travel_offsets.push Time.now - time
|
44
44
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delorean
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 21
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Luismi Cavall\xC3\xA9"
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-03
|
19
|
+
date: 2011-06-03 00:00:00 +02:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -65,6 +65,20 @@ dependencies:
|
|
65
65
|
version: 2.3.0
|
66
66
|
type: :development
|
67
67
|
version_requirements: *id003
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: rake
|
70
|
+
prerelease: false
|
71
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
hash: 3
|
77
|
+
segments:
|
78
|
+
- 0
|
79
|
+
version: "0"
|
80
|
+
type: :development
|
81
|
+
version_requirements: *id004
|
68
82
|
description:
|
69
83
|
email: ballsbreaking@bebanjo.com
|
70
84
|
executables: []
|
@@ -107,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
121
|
requirements: []
|
108
122
|
|
109
123
|
rubyforge_project:
|
110
|
-
rubygems_version: 1.
|
124
|
+
rubygems_version: 1.6.2
|
111
125
|
signing_key:
|
112
126
|
specification_version: 3
|
113
127
|
summary: Delorean lets you travel in time with Ruby by mocking Time.now
|