timecop 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/timecop/time_extensions.rb +2 -2
- data/lib/timecop/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73784bb387b1ff9addf9f0ea04a14e28d679a577
|
4
|
+
data.tar.gz: 18fbfbd85ceae5b1a23111267b7b39287911b080
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39552bdc1d0278558f91802906da230656323690b3a4663c6c054e2f8ad379df9f593e65265faa6d0ee6769423b0d73d3ab3a1e16c8ac0ee80896cd88e5661ba
|
7
|
+
data.tar.gz: 669823d9cd754f2fa5ec195012aa43f43a070e61e3be41dda3ada13eceaffa06733cb6302bbdf88b0764da28d6a3860d74d4505ba3fa4a75be88ef96c03d0ad1
|
@@ -59,7 +59,7 @@ class Date #:nodoc:
|
|
59
59
|
date_hash = Date._parse(*args)
|
60
60
|
|
61
61
|
case
|
62
|
-
when date_hash[:year] && date_hash[:mon]
|
62
|
+
when date_hash[:year] && date_hash[:mon]
|
63
63
|
parsed_date
|
64
64
|
when date_hash[:mon] && date_hash[:mday]
|
65
65
|
Date.new(mocked_time_stack_item.year, date_hash[:mon], date_hash[:mday])
|
@@ -107,7 +107,7 @@ class DateTime #:nodoc:
|
|
107
107
|
date_hash = DateTime._parse(*args)
|
108
108
|
|
109
109
|
case
|
110
|
-
when date_hash[:year] && date_hash[:mon]
|
110
|
+
when date_hash[:year] && date_hash[:mon]
|
111
111
|
parsed_date
|
112
112
|
when date_hash[:mon] && date_hash[:mday]
|
113
113
|
DateTime.new(mocked_time_stack_item.year, date_hash[:mon], date_hash[:mday])
|
data/lib/timecop/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timecop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis Jeffery
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-07-05 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A gem providing "time travel" and "time freezing" capabilities, making
|
15
15
|
it dead simple to test time-dependent code. It provides a unified method to mock
|