delorean 2.0.0 → 2.1.0
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.
- data/README.md +1 -1
- data/lib/delorean.rb +3 -3
- metadata +5 -5
data/README.md
CHANGED
@@ -76,5 +76,5 @@ or its alternate syntax:
|
|
76
76
|
|
77
77
|
Delorean image based on [an original](http://www.gocarlo.com/lagalerie/archives/march05.htm) by [Giancarlo Pitocco](http://www.gocarlo.com/).
|
78
78
|
|
79
|
-
Copyright (c)
|
79
|
+
Copyright (c) 2012 Luismi Cavallé, Sergio Gil and BeBanjo S.L. released under the MIT license
|
80
80
|
|
data/lib/delorean.rb
CHANGED
@@ -8,7 +8,7 @@ end
|
|
8
8
|
|
9
9
|
class << Time
|
10
10
|
alias_method :now_without_delorean, :now
|
11
|
-
def now; Delorean.now; end
|
11
|
+
def now; self.at Delorean.now.to_f; end
|
12
12
|
end
|
13
13
|
|
14
14
|
if RUBY_VERSION >= "1.9.3"
|
@@ -17,7 +17,7 @@ if RUBY_VERSION >= "1.9.3"
|
|
17
17
|
|
18
18
|
def today(sg=Date::ITALY)
|
19
19
|
t = Time.now
|
20
|
-
|
20
|
+
self.civil(t.year, t.mon, t.mday, sg )
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
@@ -25,7 +25,7 @@ if RUBY_VERSION >= "1.9.3"
|
|
25
25
|
alias_method :now_without_delorean, :now
|
26
26
|
|
27
27
|
def now(sg=Date::ITALY)
|
28
|
-
Time.now.to_datetime
|
28
|
+
self.iso8601( Time.now.to_datetime.iso8601, sg )
|
29
29
|
end
|
30
30
|
end
|
31
31
|
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:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 2.0.0
|
10
|
+
version: 2.1.0
|
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: 2012-
|
19
|
+
date: 2012-12-06 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: chronic
|
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
74
|
requirements: []
|
75
75
|
|
76
76
|
rubyforge_project:
|
77
|
-
rubygems_version: 1.8.
|
77
|
+
rubygems_version: 1.8.15
|
78
78
|
signing_key:
|
79
79
|
specification_version: 3
|
80
80
|
summary: Delorean lets you travel in time with Ruby by mocking Time.now
|