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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 580525a47a6026f3d83689807d96949dd5269fa5
4
- data.tar.gz: ffb9cc8cf58489f231f3348656f99597b3c79989
3
+ metadata.gz: 73784bb387b1ff9addf9f0ea04a14e28d679a577
4
+ data.tar.gz: 18fbfbd85ceae5b1a23111267b7b39287911b080
5
5
  SHA512:
6
- metadata.gz: dc3c024856bf2bbaab09a0734aa1d87712e26c8b1e47774edf2d65153ceb22ae6bbe3b04499a4f12c68acf5f9352fb26e614c8c4996c80e14353f75049899598
7
- data.tar.gz: c759c9cc704c61d2bd1cf13b4d44a6ad8a1b36a03fc398b4796f1dd1bc0d055a6ddda86aa0a31addc753eb6accc57049648d3fd5334477ccb0cc8cbc594076b7
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] && date_hash[:mday]
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] && date_hash[:mday]
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])
@@ -1,3 +1,3 @@
1
1
  class Timecop
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
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.0
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-06-22 00:00:00.000000000 Z
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