timecop-rspec 1.0.0 → 1.0.1
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.idea/timecop-rspec.iml +11 -9
- data/.rubocop_gradual.lock +57 -57
- data/CHANGELOG.md +12 -4
- data/Gemfile.lock +3 -25
- data/README.md +10 -4
- data/bin/console +0 -26
- data/bin/setup +0 -26
- data/checksums/timecop-rspec-1.0.1.gem.sha256 +1 -0
- data/checksums/timecop-rspec-1.0.1.gem.sha512 +1 -0
- data/docs/Timecop/Rspec/ExampleDecorator.html +26 -26
- data/docs/Timecop/Rspec/SequentialTimeMachine.html +11 -11
- data/docs/Timecop/Rspec/TimeMachine.html +18 -18
- data/docs/Timecop/Rspec/TravelLog.html +18 -18
- data/docs/Timecop/Rspec/Traveler.html +25 -25
- data/docs/Timecop/Rspec/Version.html +2 -2
- data/docs/Timecop/Rspec.html +20 -18
- data/docs/Timecop.html +2 -8
- data/docs/_index.html +7 -1
- data/docs/file.CHANGELOG.html +16 -5
- data/docs/file.CITATION.html +1 -1
- data/docs/file.CODE_OF_CONDUCT.html +1 -1
- data/docs/file.CONTRIBUTING.html +1 -1
- data/docs/file.LICENSE.html +1 -1
- data/docs/file.README.html +12 -4
- data/docs/file.REEK.html +1 -1
- data/docs/file.RUBOCOP.html +1 -1
- data/docs/file.SECURITY.html +1 -1
- data/docs/file.rspec.html +1 -1
- data/docs/file.timecop-rspec-1.0.0.gem.html +71 -0
- data/docs/file.timecop.html +1 -1
- data/docs/file_list.html +10 -0
- data/docs/index.html +12 -4
- data/docs/top-level-namespace.html +1 -1
- data/lib/timecop/rspec/example_decorator.rb +3 -24
- data/lib/timecop/rspec/sequential_time_machine.rb +0 -24
- data/lib/timecop/rspec/time_machine.rb +0 -24
- data/lib/timecop/rspec/travel_log.rb +6 -28
- data/lib/timecop/rspec/traveler.rb +0 -24
- data/lib/timecop/rspec/version.rb +1 -25
- data/lib/timecop/rspec.rb +2 -26
- data/timecop-rspec.gemspec +1 -1
- data.tar.gz.sig +1 -2
- metadata +14 -9
- metadata.gz.sig +0 -0
@@ -230,12 +230,12 @@ across multiple examples.</p>
|
|
230
230
|
<pre class="lines">
|
231
231
|
|
232
232
|
|
233
|
-
|
234
|
-
|
235
|
-
|
233
|
+
15
|
234
|
+
16
|
235
|
+
17</pre>
|
236
236
|
</td>
|
237
237
|
<td>
|
238
|
-
<pre class="code"><span class="info file"># File 'lib/timecop/rspec/sequential_time_machine.rb', line
|
238
|
+
<pre class="code"><span class="info file"># File 'lib/timecop/rspec/sequential_time_machine.rb', line 15</span>
|
239
239
|
|
240
240
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
|
241
241
|
<span class='ivar'>@instance</span> <span class='op'>||=</span> <span class='id identifier rubyid_new'>new</span>
|
@@ -304,14 +304,14 @@ across multiple examples.</p>
|
|
304
304
|
<pre class="lines">
|
305
305
|
|
306
306
|
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
307
|
+
22
|
308
|
+
23
|
309
|
+
24
|
310
|
+
25
|
311
|
+
26</pre>
|
312
312
|
</td>
|
313
313
|
<td>
|
314
|
-
<pre class="code"><span class="info file"># File 'lib/timecop/rspec/sequential_time_machine.rb', line
|
314
|
+
<pre class="code"><span class="info file"># File 'lib/timecop/rspec/sequential_time_machine.rb', line 22</span>
|
315
315
|
|
316
316
|
<span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='id identifier rubyid_example'>example</span><span class='rparen'>)</span>
|
317
317
|
<span class='id identifier rubyid_example'>example</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="ExampleDecorator.html" title="Timecop::Rspec::ExampleDecorator (class)">ExampleDecorator</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_example'>example</span><span class='rparen'>)</span>
|
@@ -328,7 +328,7 @@ across multiple examples.</p>
|
|
328
328
|
</div>
|
329
329
|
|
330
330
|
<div id="footer">
|
331
|
-
Generated on Sun Aug 17
|
331
|
+
Generated on Sun Aug 17 17:04:07 2025 by
|
332
332
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
333
333
|
0.9.37 (ruby-3.4.5).
|
334
334
|
</div>
|
@@ -226,12 +226,12 @@
|
|
226
226
|
<pre class="lines">
|
227
227
|
|
228
228
|
|
229
|
-
|
230
|
-
|
231
|
-
|
229
|
+
11
|
230
|
+
12
|
231
|
+
13</pre>
|
232
232
|
</td>
|
233
233
|
<td>
|
234
|
-
<pre class="code"><span class="info file"># File 'lib/timecop/rspec/time_machine.rb', line
|
234
|
+
<pre class="code"><span class="info file"># File 'lib/timecop/rspec/time_machine.rb', line 11</span>
|
235
235
|
|
236
236
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
|
237
237
|
<span class='ivar'>@instance</span> <span class='op'>||=</span> <span class='id identifier rubyid_new'>new</span>
|
@@ -309,21 +309,21 @@ the example protocol that will be wrapped by ExampleDecorator.</p>
|
|
309
309
|
<pre class="lines">
|
310
310
|
|
311
311
|
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
312
|
+
20
|
313
|
+
21
|
314
|
+
22
|
315
|
+
23
|
316
|
+
24
|
317
|
+
25
|
318
|
+
26
|
319
|
+
27
|
320
|
+
28
|
321
|
+
29
|
322
|
+
30
|
323
|
+
31</pre>
|
324
324
|
</td>
|
325
325
|
<td>
|
326
|
-
<pre class="code"><span class="info file"># File 'lib/timecop/rspec/time_machine.rb', line
|
326
|
+
<pre class="code"><span class="info file"># File 'lib/timecop/rspec/time_machine.rb', line 20</span>
|
327
327
|
|
328
328
|
<span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='id identifier rubyid_example'>example</span><span class='rparen'>)</span>
|
329
329
|
<span class='id identifier rubyid_example'>example</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="ExampleDecorator.html" title="Timecop::Rspec::ExampleDecorator (class)">ExampleDecorator</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_example'>example</span><span class='rparen'>)</span>
|
@@ -347,7 +347,7 @@ the example protocol that will be wrapped by ExampleDecorator.</p>
|
|
347
347
|
</div>
|
348
348
|
|
349
349
|
<div id="footer">
|
350
|
-
Generated on Sun Aug 17
|
350
|
+
Generated on Sun Aug 17 17:04:07 2025 by
|
351
351
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
352
352
|
0.9.37 (ruby-3.4.5).
|
353
353
|
</div>
|
@@ -264,12 +264,12 @@
|
|
264
264
|
<pre class="lines">
|
265
265
|
|
266
266
|
|
267
|
-
|
268
|
-
|
269
|
-
|
267
|
+
7
|
268
|
+
8
|
269
|
+
9</pre>
|
270
270
|
</td>
|
271
271
|
<td>
|
272
|
-
<pre class="code"><span class="info file"># File 'lib/timecop/rspec/travel_log.rb', line
|
272
|
+
<pre class="code"><span class="info file"># File 'lib/timecop/rspec/travel_log.rb', line 7</span>
|
273
273
|
|
274
274
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_travel_method'>travel_method</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_start_time'>start_time</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
275
275
|
<span class='id identifier rubyid_new_trip'>new_trip</span><span class='lparen'>(</span><span class='id identifier rubyid_travel_method'>travel_method</span><span class='comma'>,</span> <span class='id identifier rubyid_start_time'>start_time</span><span class='rparen'>)</span>
|
@@ -311,15 +311,15 @@
|
|
311
311
|
<pre class="lines">
|
312
312
|
|
313
313
|
|
314
|
-
|
315
|
-
|
316
|
-
|
314
|
+
25
|
315
|
+
26
|
316
|
+
27</pre>
|
317
317
|
</td>
|
318
318
|
<td>
|
319
|
-
<pre class="code"><span class="info file"># File 'lib/timecop/rspec/travel_log.rb', line
|
319
|
+
<pre class="code"><span class="info file"># File 'lib/timecop/rspec/travel_log.rb', line 25</span>
|
320
320
|
|
321
321
|
<span class='kw'>def</span> <span class='id identifier rubyid_pause_trip'>pause_trip</span>
|
322
|
-
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_trip_duration'>trip_duration</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier
|
322
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_trip_duration'>trip_duration</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='op'>-</span> <span class='id identifier rubyid_coalesced_start_time'>coalesced_start_time</span>
|
323
323
|
<span class='kw'>end</span></pre>
|
324
324
|
</td>
|
325
325
|
</tr>
|
@@ -402,16 +402,16 @@
|
|
402
402
|
<pre class="lines">
|
403
403
|
|
404
404
|
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
405
|
+
15
|
406
|
+
16
|
407
|
+
17
|
408
|
+
18
|
409
|
+
19
|
410
|
+
20
|
411
|
+
21</pre>
|
412
412
|
</td>
|
413
413
|
<td>
|
414
|
-
<pre class="code"><span class="info file"># File 'lib/timecop/rspec/travel_log.rb', line
|
414
|
+
<pre class="code"><span class="info file"># File 'lib/timecop/rspec/travel_log.rb', line 15</span>
|
415
415
|
|
416
416
|
<span class='kw'>def</span> <span class='id identifier rubyid_resume_or_new_trip'>resume_or_new_trip</span><span class='lparen'>(</span><span class='id identifier rubyid_travel_method'>travel_method</span><span class='comma'>,</span> <span class='id identifier rubyid_start_time'>start_time</span><span class='rparen'>)</span>
|
417
417
|
<span class='kw'>if</span> <span class='id identifier rubyid_resume_trip?'>resume_trip?</span><span class='lparen'>(</span><span class='id identifier rubyid_travel_method'>travel_method</span><span class='comma'>,</span> <span class='id identifier rubyid_start_time'>start_time</span><span class='rparen'>)</span>
|
@@ -430,7 +430,7 @@
|
|
430
430
|
</div>
|
431
431
|
|
432
432
|
<div id="footer">
|
433
|
-
Generated on Sun Aug 17
|
433
|
+
Generated on Sun Aug 17 17:04:07 2025 by
|
434
434
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
435
435
|
0.9.37 (ruby-3.4.5).
|
436
436
|
</div>
|
@@ -229,13 +229,13 @@
|
|
229
229
|
<pre class="lines">
|
230
230
|
|
231
231
|
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
232
|
+
7
|
233
|
+
8
|
234
|
+
9
|
235
|
+
10</pre>
|
236
236
|
</td>
|
237
237
|
<td>
|
238
|
-
<pre class="code"><span class="info file"># File 'lib/timecop/rspec/traveler.rb', line
|
238
|
+
<pre class="code"><span class="info file"># File 'lib/timecop/rspec/traveler.rb', line 7</span>
|
239
239
|
|
240
240
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_example'>example</span><span class='comma'>,</span> <span class='id identifier rubyid_travel_log'>travel_log</span><span class='rparen'>)</span>
|
241
241
|
<span class='ivar'>@example</span> <span class='op'>=</span> <span class='id identifier rubyid_example'>example</span>
|
@@ -293,27 +293,27 @@ prior trips recorded in the travel log.</p>
|
|
293
293
|
<pre class="lines">
|
294
294
|
|
295
295
|
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
296
|
+
17
|
297
|
+
18
|
298
|
+
19
|
299
|
+
20
|
300
|
+
21
|
301
|
+
22
|
302
|
+
23
|
303
|
+
24
|
304
|
+
25
|
305
|
+
26
|
306
|
+
27
|
307
|
+
28
|
308
|
+
29
|
309
|
+
30
|
310
|
+
31
|
311
|
+
32
|
312
|
+
33
|
313
|
+
34</pre>
|
314
314
|
</td>
|
315
315
|
<td>
|
316
|
-
<pre class="code"><span class="info file"># File 'lib/timecop/rspec/traveler.rb', line
|
316
|
+
<pre class="code"><span class="info file"># File 'lib/timecop/rspec/traveler.rb', line 17</span>
|
317
317
|
|
318
318
|
<span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
|
319
319
|
<span class='id identifier rubyid_method'>method</span> <span class='op'>=</span> <span class='id identifier rubyid_example'>example</span><span class='period'>.</span><span class='id identifier rubyid_timecop_method'>timecop_method</span>
|
@@ -343,7 +343,7 @@ prior trips recorded in the travel log.</p>
|
|
343
343
|
</div>
|
344
344
|
|
345
345
|
<div id="footer">
|
346
|
-
Generated on Sun Aug 17
|
346
|
+
Generated on Sun Aug 17 17:04:07 2025 by
|
347
347
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
348
348
|
0.9.37 (ruby-3.4.5).
|
349
349
|
</div>
|
@@ -128,7 +128,7 @@
|
|
128
128
|
|
129
129
|
</div>
|
130
130
|
</dt>
|
131
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>1.0.
|
131
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>1.0.1</span><span class='tstring_end'>"</span></span></pre></dd>
|
132
132
|
|
133
133
|
</dl>
|
134
134
|
|
@@ -144,7 +144,7 @@
|
|
144
144
|
</div>
|
145
145
|
|
146
146
|
<div id="footer">
|
147
|
-
Generated on Sun Aug 17
|
147
|
+
Generated on Sun Aug 17 17:04:07 2025 by
|
148
148
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
149
149
|
0.9.37 (ruby-3.4.5).
|
150
150
|
</div>
|
data/docs/Timecop/Rspec.html
CHANGED
@@ -307,12 +307,12 @@ optional global time that applies across examples when configured via ENV.</p>
|
|
307
307
|
<pre class="lines">
|
308
308
|
|
309
309
|
|
310
|
-
|
311
|
-
|
312
|
-
|
310
|
+
41
|
311
|
+
42
|
312
|
+
43</pre>
|
313
313
|
</td>
|
314
314
|
<td>
|
315
|
-
<pre class="code"><span class="info file"># File 'lib/timecop/rspec.rb', line
|
315
|
+
<pre class="code"><span class="info file"># File 'lib/timecop/rspec.rb', line 41</span>
|
316
316
|
|
317
317
|
<span class='kw'>def</span> <span class='id identifier rubyid_global_time'>global_time</span>
|
318
318
|
<span class='ivar'>@global_time</span> <span class='op'>||=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_global_time_travel_string'>global_time_travel_string</span><span class='rparen'>)</span>
|
@@ -360,15 +360,17 @@ optional global time that applies across examples when configured via ENV.</p>
|
|
360
360
|
<pre class="lines">
|
361
361
|
|
362
362
|
|
363
|
-
|
364
|
-
|
365
|
-
|
363
|
+
33
|
364
|
+
34
|
365
|
+
35
|
366
|
+
36</pre>
|
366
367
|
</td>
|
367
368
|
<td>
|
368
|
-
<pre class="code"><span class="info file"># File 'lib/timecop/rspec.rb', line
|
369
|
+
<pre class="code"><span class="info file"># File 'lib/timecop/rspec.rb', line 33</span>
|
369
370
|
|
370
371
|
<span class='kw'>def</span> <span class='id identifier rubyid_global_time_configured?'>global_time_configured?</span>
|
371
|
-
<span class='id identifier
|
372
|
+
<span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='id identifier rubyid_global_time_travel_string'>global_time_travel_string</span>
|
373
|
+
<span class='op'>!</span><span class='lparen'>(</span><span class='id identifier rubyid_str'>str</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span> <span class='id identifier rubyid_str'>str</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
372
374
|
<span class='kw'>end</span></pre>
|
373
375
|
</td>
|
374
376
|
</tr>
|
@@ -436,16 +438,16 @@ example strategy.</p>
|
|
436
438
|
<pre class="lines">
|
437
439
|
|
438
440
|
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
441
|
+
23
|
442
|
+
24
|
443
|
+
25
|
444
|
+
26
|
445
|
+
27
|
446
|
+
28
|
447
|
+
29</pre>
|
446
448
|
</td>
|
447
449
|
<td>
|
448
|
-
<pre class="code"><span class="info file"># File 'lib/timecop/rspec.rb', line
|
450
|
+
<pre class="code"><span class="info file"># File 'lib/timecop/rspec.rb', line 23</span>
|
449
451
|
|
450
452
|
<span class='kw'>def</span> <span class='id identifier rubyid_time_machine'>time_machine</span><span class='lparen'>(</span><span class='label'>sequential:</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
451
453
|
<span class='kw'>if</span> <span class='id identifier rubyid_sequential'>sequential</span>
|
@@ -464,7 +466,7 @@ example strategy.</p>
|
|
464
466
|
</div>
|
465
467
|
|
466
468
|
<div id="footer">
|
467
|
-
Generated on Sun Aug 17
|
469
|
+
Generated on Sun Aug 17 17:04:07 2025 by
|
468
470
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
469
471
|
0.9.37 (ruby-3.4.5).
|
470
472
|
</div>
|
data/docs/Timecop.html
CHANGED
@@ -103,13 +103,7 @@
|
|
103
103
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
105
105
|
<div class="discussion">
|
106
|
-
<p>
|
107
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br />
|
108
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE<br />
|
109
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br />
|
110
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,<br />
|
111
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN<br />
|
112
|
-
THE SOFTWARE.</p>
|
106
|
+
<p>Top-level namespace for Timecop helpers.</p>
|
113
107
|
|
114
108
|
|
115
109
|
</div>
|
@@ -139,7 +133,7 @@ THE SOFTWARE.</p>
|
|
139
133
|
</div>
|
140
134
|
|
141
135
|
<div id="footer">
|
142
|
-
Generated on Sun Aug 17
|
136
|
+
Generated on Sun Aug 17 17:04:07 2025 by
|
143
137
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
144
138
|
0.9.37 (ruby-3.4.5).
|
145
139
|
</div>
|
data/docs/_index.html
CHANGED
@@ -84,6 +84,12 @@
|
|
84
84
|
<li class="r2"><a href="file.CITATION.html" title="CITATION">CITATION</a></li>
|
85
85
|
|
86
86
|
|
87
|
+
<li class="r1"><a href="file.timecop-rspec-1.0.0.gem.html" title="timecop-rspec-1.0.0.gem">timecop-rspec-1.0.0.gem</a></li>
|
88
|
+
|
89
|
+
|
90
|
+
<li class="r2"><a href="file.timecop-rspec-1.0.0.gem.html" title="timecop-rspec-1.0.0.gem">timecop-rspec-1.0.0.gem</a></li>
|
91
|
+
|
92
|
+
|
87
93
|
<li class="r1"><a href="file.REEK.html" title="REEK">REEK</a></li>
|
88
94
|
|
89
95
|
|
@@ -208,7 +214,7 @@
|
|
208
214
|
</div>
|
209
215
|
|
210
216
|
<div id="footer">
|
211
|
-
Generated on Sun Aug 17
|
217
|
+
Generated on Sun Aug 17 17:04:07 2025 by
|
212
218
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
213
219
|
0.9.37 (ruby-3.4.5).
|
214
220
|
</div>
|
data/docs/file.CHANGELOG.html
CHANGED
@@ -63,7 +63,7 @@
|
|
63
63
|
<p>The format is based on <a href="https://keepachangelog.com/en/1.0.0/">Keep a Changelog v1</a>,<br>
|
64
64
|
and this project adheres to <a href="https://semver.org/spec/v2.0.0.html">Semantic Versioning v2</a>.</p>
|
65
65
|
|
66
|
-
<h2 id="unreleased"><a href="https://gitlab.com/galtzo-floss/timecop-rspec/-/compare/v1.0.
|
66
|
+
<h2 id="unreleased"><a href="https://gitlab.com/galtzo-floss/timecop-rspec/-/compare/v1.0.1...main">Unreleased</a></h2>
|
67
67
|
<h3 id="added">Added</h3>
|
68
68
|
<h3 id="changed">Changed</h3>
|
69
69
|
<h3 id="deprecated">Deprecated</h3>
|
@@ -71,8 +71,21 @@ and this project adheres to <a href="https://semver.org/spec/v2.0.0.html">Semant
|
|
71
71
|
<h3 id="fixed">Fixed</h3>
|
72
72
|
<h3 id="security">Security</h3>
|
73
73
|
|
74
|
+
<h2 id="101---2025-08-17">
|
75
|
+
<a href="https://gitlab.com/galtzo-floss/timecop-rspec/-/compare/v1.0.0...v1.0.1">1.0.1</a> - 2025-08-17</h2>
|
76
|
+
<ul>
|
77
|
+
<li>TAG: <a href="https://gitlab.com/galtzo-floss/timecop-rspec/-/tags/v1.0.1">v1.0.1</a>
|
78
|
+
</li>
|
79
|
+
<li>COVERAGE: 100.00% – 132/132 lines in 7 files</li>
|
80
|
+
<li>BRANCH COVERAGE: 92.31% – 24/26 branches in 7 files</li>
|
81
|
+
<li>100% documented
|
82
|
+
<h3 id="changed-1">Changed</h3>
|
83
|
+
</li>
|
84
|
+
<li>refactored to remove dependency on activesupport</li>
|
85
|
+
</ul>
|
86
|
+
|
74
87
|
<h2 id="100---2025-08-17">
|
75
|
-
<a href="https://gitlab.com/galtzo-floss/timecop-rspec/-/compare/
|
88
|
+
<a href="https://gitlab.com/galtzo-floss/timecop-rspec/-/compare/13c672f32c466824277d04c932e3244deb6451ea...v1.0.0">1.0.0</a> - 2025-08-17</h2>
|
76
89
|
<ul>
|
77
90
|
<li>TAG: <a href="https://gitlab.com/galtzo-floss/timecop-rspec/-/tags/v1.0.0">v1.0.0</a>
|
78
91
|
</li>
|
@@ -84,12 +97,10 @@ and this project adheres to <a href="https://semver.org/spec/v2.0.0.html">Semant
|
|
84
97
|
<li>Initial release to rubygems (8 years late!)</li>
|
85
98
|
</ul>
|
86
99
|
|
87
|
-
<p>###</p>
|
88
|
-
|
89
100
|
</div></div>
|
90
101
|
|
91
102
|
<div id="footer">
|
92
|
-
Generated on Sun Aug 17
|
103
|
+
Generated on Sun Aug 17 17:04:07 2025 by
|
93
104
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
94
105
|
0.9.37 (ruby-3.4.5).
|
95
106
|
</div>
|
data/docs/file.CITATION.html
CHANGED
@@ -82,7 +82,7 @@ license: See license file</li>
|
|
82
82
|
</div></div>
|
83
83
|
|
84
84
|
<div id="footer">
|
85
|
-
Generated on Sun Aug 17
|
85
|
+
Generated on Sun Aug 17 17:04:07 2025 by
|
86
86
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
87
87
|
0.9.37 (ruby-3.4.5).
|
88
88
|
</div>
|
@@ -191,7 +191,7 @@ version 2.1, available at<br>
|
|
191
191
|
</div></div>
|
192
192
|
|
193
193
|
<div id="footer">
|
194
|
-
Generated on Sun Aug 17
|
194
|
+
Generated on Sun Aug 17 17:04:07 2025 by
|
195
195
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
196
196
|
0.9.37 (ruby-3.4.5).
|
197
197
|
</div>
|
data/docs/file.CONTRIBUTING.html
CHANGED
@@ -210,7 +210,7 @@ push git commits and tags, and push the <code>.gem</code> file to <a href="https
|
|
210
210
|
</div></div>
|
211
211
|
|
212
212
|
<div id="footer">
|
213
|
-
Generated on Sun Aug 17
|
213
|
+
Generated on Sun Aug 17 17:04:07 2025 by
|
214
214
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
215
215
|
0.9.37 (ruby-3.4.5).
|
216
216
|
</div>
|
data/docs/file.LICENSE.html
CHANGED
@@ -60,7 +60,7 @@
|
|
60
60
|
<div id="content"><div id='filecontents'>The MIT License (MIT)<br><br>Copyright (c) 2025 Peter H. Boling<br>Copyright (c) 2014-2017 Zach Taylor & Avant<br><br>Permission is hereby granted, free of charge, to any person obtaining a copy<br>of this software and associated documentation files (the "Software"), to deal<br>in the Software without restriction, including without limitation the rights<br>to use, copy, modify, merge, publish, distribute, sublicense, and/or sell<br>copies of the Software, and to permit persons to whom the Software is<br>furnished to do so, subject to the following conditions:<br><br>The above copyright notice and this permission notice shall be included in<br>all copies or substantial portions of the Software.<br><br>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br>IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br>FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE<br>AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br>LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,<br>OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN<br>THE SOFTWARE.</div></div>
|
61
61
|
|
62
62
|
<div id="footer">
|
63
|
-
Generated on Sun Aug 17
|
63
|
+
Generated on Sun Aug 17 17:04:07 2025 by
|
64
64
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
65
65
|
0.9.37 (ruby-3.4.5).
|
66
66
|
</div>
|
data/docs/file.README.html
CHANGED
@@ -61,7 +61,7 @@
|
|
61
61
|
|
62
62
|
<h1 id="️-timecoprspec">⌚️ Timecop::Rspec</h1>
|
63
63
|
|
64
|
-
<p><a href="https://rubygems.org/gems/timecop-rspec"><img src="https://img.shields.io/gem/v/timecop-rspec.svg" alt="Version"></a> <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-259D6C.svg" alt="License: MIT"></a> <a href="https://rubygems.org/gems/timecop-rspec"><img src="https://img.shields.io/gem/rd/timecop-rspec.svg" alt="Downloads Rank"></a> <a href="https://www.codetriage.com/galtzo-floss/timecop-rspec"><img src="https://www.codetriage.com/galtzo-floss/timecop-rspec/badges/users.svg" alt="Open Source Helpers"></a> <a href="https://coveralls.io/github/galtzo-floss/timecop-rspec?branch=main"><img src="https://coveralls.io/repos/github/galtzo-floss/timecop-rspec/badge.svg?branch=main" alt="Coveralls Test Coverage"></a> <a href="https://codecov.io/gh/galtzo-floss/timecop-rspec"><img src="https://codecov.io/gh/galtzo-floss/timecop-rspec/graph/badge.svg?token=
|
64
|
+
<p><a href="https://rubygems.org/gems/timecop-rspec"><img src="https://img.shields.io/gem/v/timecop-rspec.svg" alt="Version"></a> <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-259D6C.svg" alt="License: MIT"></a> <a href="https://rubygems.org/gems/timecop-rspec"><img src="https://img.shields.io/gem/rd/timecop-rspec.svg" alt="Downloads Rank"></a> <a href="https://www.codetriage.com/galtzo-floss/timecop-rspec"><img src="https://www.codetriage.com/galtzo-floss/timecop-rspec/badges/users.svg" alt="Open Source Helpers"></a> <a href="https://coveralls.io/github/galtzo-floss/timecop-rspec?branch=main"><img src="https://coveralls.io/repos/github/galtzo-floss/timecop-rspec/badge.svg?branch=main" alt="Coveralls Test Coverage"></a> <a href="https://codecov.io/gh/galtzo-floss/timecop-rspec"><img src="https://codecov.io/gh/galtzo-floss/timecop-rspec/graph/badge.svg?token=6XnuK8rocd" alt="CodeCov Test Coverage"></a> <a href="https://qlty.sh/gh/galtzo-floss/projects/timecop-rspec/metrics/code?sort=coverageRating"><img src="https://qlty.sh/gh/galtzo-floss/projects/timecop-rspec/coverage.svg" alt="QLTY Test Coverage"></a> <a href="https://qlty.sh/gh/galtzo-floss/projects/timecop-rspec"><img src="https://qlty.sh/gh/galtzo-floss/projects/timecop-rspec/maintainability.svg" alt="QLTY Maintainability"></a> <a href="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/heads.yml"><img src="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/heads.yml/badge.svg" alt="CI Heads"></a> <a href="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/current.yml"><img src="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/current.yml/badge.svg" alt="CI Current"></a> <a href="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/truffle.yml"><img src="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/truffle.yml/badge.svg" alt="CI Truffle Ruby"></a> <a href="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/jruby.yml"><img src="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/jruby.yml/badge.svg" alt="CI JRuby"></a> <a href="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/deps_locked.yml"><img src="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/deps_locked.yml/badge.svg" alt="Deps Locked"></a> <a href="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/deps_unlocked.yml"><img src="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/deps_unlocked.yml/badge.svg" alt="Deps Unlocked"></a> <a href="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/supported.yml"><img src="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/supported.yml/badge.svg" alt="CI Supported"></a> <a href="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/legacy.yml"><img src="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/legacy.yml/badge.svg" alt="CI Legacy"></a> <a href="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/unsupported.yml"><img src="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/unsupported.yml/badge.svg" alt="CI Unsupported"></a> <a href="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/ancient.yml"><img src="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/ancient.yml/badge.svg" alt="CI Ancient"></a> <a href="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/coverage.yml"><img src="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/coverage.yml/badge.svg" alt="CI Test Coverage"></a> <a href="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/style.yml"><img src="https://github.com/galtzo-floss/timecop-rspec/actions/workflows/style.yml/badge.svg" alt="CI Style"></a></p>
|
65
65
|
|
66
66
|
<hr>
|
67
67
|
|
@@ -78,6 +78,14 @@ It has a great API, and I was about to build this exact thing myself, so I am gl
|
|
78
78
|
I’ve modernized everything, added more tests and documentation, and released it.<br>
|
79
79
|
Thanks to the long-term stability of both RSpec and Timecop, the original code still works perfectly.</p>
|
80
80
|
|
81
|
+
<p>Improvements over original:</p>
|
82
|
+
<ul>
|
83
|
+
<li>The original only supported Ruby 2.2+, but I’ve backfilled support to 1.9.2 (to align with the max-min version between RSpec & Timecop).</li>
|
84
|
+
<li>Added tests for 100% line coverage.</li>
|
85
|
+
<li>Added documentation for all public methods.</li>
|
86
|
+
<li>removed runtime (and dev) dependency on <code>activesupport</code>.</li>
|
87
|
+
</ul>
|
88
|
+
|
81
89
|
<p>I expect the current release of this gem to be compatible with Ruby 1.9.2+,<br>
|
82
90
|
but it is only tested on CI against Ruby 2.3+,<br>
|
83
91
|
due to the inherent limitations of GitHub Actions.</p>
|
@@ -147,7 +155,7 @@ Alternatively:
|
|
147
155
|
<tr>
|
148
156
|
<th>Tokens to Remember</th>
|
149
157
|
<th>
|
150
|
-
<a href="https://rubygems.org/gems/timecop-rspec"><img src="https://img.shields.io/badge/name-
|
158
|
+
<a href="https://rubygems.org/gems/timecop-rspec"><img src="https://img.shields.io/badge/name-timecop--rspec-3C2D2D.svg?style=square&logo=rubygems&logoColor=red" alt="Gem name"></a> <a href="https://github.com/galtzo-floss/timecop-rspec"><img src="https://img.shields.io/badge/namespace-Timecop%3A%3ARspec-3C2D2D.svg?style=square&logo=ruby&logoColor=white" alt="Gem namespace"></a>
|
151
159
|
</th>
|
152
160
|
</tr>
|
153
161
|
</thead>
|
@@ -417,7 +425,7 @@ or use the gem and think about how it could be better.</p>
|
|
417
425
|
|
418
426
|
<h3 id="code-coverage">Code Coverage</h3>
|
419
427
|
|
420
|
-
<p><a href="https://codecov.io/gh/galtzo-floss/timecop-rspec"><img src="https://codecov.io/gh/galtzo-floss/timecop-rspec/graphs/tree.svg?token=
|
428
|
+
<p><a href="https://codecov.io/gh/galtzo-floss/timecop-rspec"><img src="https://codecov.io/gh/galtzo-floss/timecop-rspec/graphs/tree.svg?token=6XnuK8rocd" alt="Coverage Graph"></a></p>
|
421
429
|
|
422
430
|
<p><a href="https://coveralls.io/github/galtzo-floss/timecop-rspec?branch=main"><img src="https://coveralls.io/repos/github/galtzo-floss/timecop-rspec/badge.svg?branch=main" alt="Coveralls Test Coverage"></a></p>
|
423
431
|
|
@@ -513,7 +521,7 @@ See <a href="file.LICENSE.html" title="LICENSE.txt">LICENSE.txt</a> for the offi
|
|
513
521
|
</div></div>
|
514
522
|
|
515
523
|
<div id="footer">
|
516
|
-
Generated on Sun Aug 17
|
524
|
+
Generated on Sun Aug 17 17:04:07 2025 by
|
517
525
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
518
526
|
0.9.37 (ruby-3.4.5).
|
519
527
|
</div>
|
data/docs/file.REEK.html
CHANGED
data/docs/file.RUBOCOP.html
CHANGED
@@ -161,7 +161,7 @@ a. or just the default <code>bundle exec rake</code>, as autocorrection is a pre
|
|
161
161
|
</div></div>
|
162
162
|
|
163
163
|
<div id="footer">
|
164
|
-
Generated on Sun Aug 17
|
164
|
+
Generated on Sun Aug 17 17:04:07 2025 by
|
165
165
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
166
166
|
0.9.37 (ruby-3.4.5).
|
167
167
|
</div>
|
data/docs/file.SECURITY.html
CHANGED
@@ -91,7 +91,7 @@ or find other sponsorship links in the <a href="index.html" title="README">READM
|
|
91
91
|
</div></div>
|
92
92
|
|
93
93
|
<div id="footer">
|
94
|
-
Generated on Sun Aug 17
|
94
|
+
Generated on Sun Aug 17 17:04:07 2025 by
|
95
95
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
96
96
|
0.9.37 (ruby-3.4.5).
|
97
97
|
</div>
|
data/docs/file.rspec.html
CHANGED
@@ -99,7 +99,7 @@ def self.global_time: () -> ::Time end end
|
|
99
99
|
</div></div>
|
100
100
|
|
101
101
|
<div id="footer">
|
102
|
-
Generated on Sun Aug 17
|
102
|
+
Generated on Sun Aug 17 17:04:07 2025 by
|
103
103
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
104
104
|
0.9.37 (ruby-3.4.5).
|
105
105
|
</div>
|