timecop 0.5.9.1 → 0.5.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/timecop/version.rb +1 -1
- metadata +5 -5
- data/History.rdoc +0 -142
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.5.9.
|
4
|
+
version: 0.5.9.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-02-11 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: A gem providing "time travel" and "time freezing" capabilities, making
|
16
16
|
it dead simple to test time-dependent code. It provides a unified method to mock
|
@@ -22,7 +22,6 @@ extra_rdoc_files:
|
|
22
22
|
- LICENSE
|
23
23
|
- README.markdown
|
24
24
|
files:
|
25
|
-
- History.rdoc
|
26
25
|
- LICENSE
|
27
26
|
- README.markdown
|
28
27
|
- Rakefile
|
@@ -38,7 +37,8 @@ files:
|
|
38
37
|
- test/timecop_without_date_test.rb
|
39
38
|
- test/timecop_without_date_but_with_time_test.rb
|
40
39
|
homepage: https://github.com/travisjeffery/timecop
|
41
|
-
licenses:
|
40
|
+
licenses:
|
41
|
+
- MIT
|
42
42
|
post_install_message:
|
43
43
|
rdoc_options:
|
44
44
|
- --charset=UTF-8
|
@@ -58,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
58
|
version: '0'
|
59
59
|
requirements: []
|
60
60
|
rubyforge_project: timecop
|
61
|
-
rubygems_version: 1.8.
|
61
|
+
rubygems_version: 1.8.23
|
62
62
|
signing_key:
|
63
63
|
specification_version: 3
|
64
64
|
summary: A gem providing "time travel" and "time freezing" capabilities, making it
|
data/History.rdoc
DELETED
@@ -1,142 +0,0 @@
|
|
1
|
-
=== 0.5.4 / 2012-11-29
|
2
|
-
|
3
|
-
* Maintenance
|
4
|
-
* Fix usage with Ruby 1.8
|
5
|
-
|
6
|
-
=== 0.5.2 / 2012-09-20
|
7
|
-
|
8
|
-
* Feature
|
9
|
-
* Timecop#scale, ability to accelerate time by a given scaling factor
|
10
|
-
|
11
|
-
=== 0.5.0 / 2012-09-12
|
12
|
-
|
13
|
-
* Maintenance
|
14
|
-
* Timecop#travel, Timecop#freeze blocks return nil or block value
|
15
|
-
|
16
|
-
=== 0.4.6 / 2012-09-05
|
17
|
-
|
18
|
-
* Maintenance
|
19
|
-
* Fix rounding support for Ruby < 1.9
|
20
|
-
|
21
|
-
=== 0.4.5 / 2012-08-09
|
22
|
-
|
23
|
-
* Maintenance
|
24
|
-
* Subclasses of Time/Date/DateTime now return proper instances
|
25
|
-
|
26
|
-
=== 0.4.4 / 2012-07-29
|
27
|
-
|
28
|
-
* Maintenance
|
29
|
-
* Can now configure Timecop to not use ActiveSupport by setting Timecop.active_support = false
|
30
|
-
|
31
|
-
=== 0.4.3 / 2012-07-27
|
32
|
-
|
33
|
-
* Maintenance
|
34
|
-
* Fix alias of Time#new/Time#now when Time#new given with args
|
35
|
-
|
36
|
-
=== 0.4.2 / 2012-07-27
|
37
|
-
|
38
|
-
* Maintenance
|
39
|
-
* Mock Time#new the same as Time#now since they're synonyms
|
40
|
-
* Set default arg in parsing to 2000
|
41
|
-
* Time.freeze defaults to Time#now
|
42
|
-
* Use Time#parse is available to parse Time's given as strings
|
43
|
-
* Add ActiveSupport Time.zone support
|
44
|
-
* Stop DateTime from losing precision after traveling
|
45
|
-
|
46
|
-
=== 0.3.5 / 2010-06-07
|
47
|
-
|
48
|
-
* Maintenance
|
49
|
-
* Return a cloned time instance in order to support the destructive methods #gmt, #utc and #localtime
|
50
|
-
* Don't use full path requires where unnecessary
|
51
|
-
|
52
|
-
=== 0.3.4 / 2009-12-07
|
53
|
-
|
54
|
-
* Maintenance
|
55
|
-
* Fix various timezone-related issues. Notably, when traveling to a DateTime
|
56
|
-
instance specified in a non-local timezone, convert provided DateTime
|
57
|
-
instance to a local instance and return that from DateTime.now.
|
58
|
-
Code contributed by Michaël Witrant [piglop]
|
59
|
-
* Fix bug that would not allow Timecop to be used when Ruby's 'date'
|
60
|
-
library had not been previously loaded.
|
61
|
-
Code contributed by Tuomas Kareinen [tuomas]
|
62
|
-
* Fix bug when traveling to a DateTime across a DST boundary that
|
63
|
-
resulted in DateTime's being off by an hour.
|
64
|
-
* Migrate argument parsing into Timecop::TimeStackItem to reduce the
|
65
|
-
responsibility of the Timecop class.
|
66
|
-
|
67
|
-
=== 0.3.3 2009-10-30
|
68
|
-
|
69
|
-
* Revoked due to regression.
|
70
|
-
|
71
|
-
=== 0.3.2 / 2009-10-24
|
72
|
-
|
73
|
-
* Revoked due to regression.
|
74
|
-
|
75
|
-
=== 0.3.1 / 2009-09-30
|
76
|
-
|
77
|
-
* Maintenance
|
78
|
-
* DRY up the Timecop class internals.
|
79
|
-
|
80
|
-
=== 0.3.0 / 2009-09-20
|
81
|
-
|
82
|
-
* API
|
83
|
-
* Completely remove Timecop#unset_all (deprecated by Timecop#return in 0.2.0)
|
84
|
-
* Return Time.now from #freeze, #travel and #return -- code contributed by Keith Bennett [keithrbennett]
|
85
|
-
|
86
|
-
* Maintenance
|
87
|
-
* Fix bug that left Time#mock_time set in some instances
|
88
|
-
* Upped build dependency to jeweler ~> 1.2.1
|
89
|
-
* Don't pollute top-level namespace with classes/constants
|
90
|
-
|
91
|
-
* Documentation
|
92
|
-
* Clearer examples in the README, better description in the gemspec
|
93
|
-
* Improve RDoc
|
94
|
-
|
95
|
-
=== 0.2.1 / 2009-03-06
|
96
|
-
* API Changes
|
97
|
-
|
98
|
-
* Introduced a 5th style of arguments to be passed into #travel and #freeze. Now, if you pass in a single integer value,
|
99
|
-
it will be interpreted as a relative offset in seconds from the current Time.now. Previously this was interpreted as
|
100
|
-
only the year, similar to calling Time.local(2008) --> Jan. 1, 2008. This is no longer the case.
|
101
|
-
|
102
|
-
* Documentation
|
103
|
-
|
104
|
-
* Moved to Textile for the README.
|
105
|
-
|
106
|
-
* Added documentation for the new feature, and fixed a few typos.
|
107
|
-
|
108
|
-
=== 0.2.0 / 2008-12-23
|
109
|
-
|
110
|
-
* API Changes
|
111
|
-
|
112
|
-
* Timecop#travel no longer freezes time. Rather, it computes the current offset between the new "now" and the real "now", and
|
113
|
-
returns times as if Time had continued to move forward
|
114
|
-
|
115
|
-
* Timecop#freeze now behaves exactly as the old Timecop#travel behaved. Unless you depended on the actual freezing of time
|
116
|
-
(which I think would be rare), you should be able to continue to use #travel without worry.
|
117
|
-
|
118
|
-
* Timecop#return is now exposed (previously Timecop#unset_all, but not well advertised). It will completely unmock time,
|
119
|
-
and will probably be rarely used outside of the actual implementation of this library.
|
120
|
-
|
121
|
-
* More Test Coverage
|
122
|
-
|
123
|
-
* Tests now explicitly cover the cases when the Date and DateTime objects are not loaded, and ensures proper functionality
|
124
|
-
in their absence and existence.
|
125
|
-
|
126
|
-
* Still haven't done regression testing against anything other than a few version of 1.8.6 (including REE). We should
|
127
|
-
probably try to get this tested on both 1.8.7 and 1.9.1.
|
128
|
-
|
129
|
-
* Documentation
|
130
|
-
|
131
|
-
* Fixed up a lot of the poorly-formatted rdoc syntax. The public API should now be properly published in the rdoc,
|
132
|
-
and the internals are omitted.
|
133
|
-
|
134
|
-
=== 0.1.0 / 2008-11-09
|
135
|
-
|
136
|
-
* Initial Feature Set
|
137
|
-
|
138
|
-
* Temporarily (or permanently if you prefer) change the concept of Time.now, DateTime.now (if defined), and Date.today (if defined)
|
139
|
-
* Timecop#travel api allows an argument to be passed in as one of: 1) Time instance, 2) DateTime instance, 3) Date instance,
|
140
|
-
4) individual arguments (year, month, day, hour, minute, second)
|
141
|
-
* Nested calls to Timecop#travel are supported -- each block will maintain it's interpretation of now.
|
142
|
-
|