timecop-rspec 1.0.0 → 1.0.2

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.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/.github/workflows/deps_locked.yml +11 -1
  4. data/.idea/timecop-rspec.iml +11 -9
  5. data/.rubocop_gradual.lock +64 -64
  6. data/CHANGELOG.md +27 -4
  7. data/CONTRIBUTING.md +1 -3
  8. data/Gemfile.lock +3 -25
  9. data/README.md +33 -10
  10. data/Rakefile +39 -2
  11. data/bin/console +1 -28
  12. data/bin/setup +0 -26
  13. data/checksums/timecop-rspec-1.0.1.gem.sha256 +1 -0
  14. data/checksums/timecop-rspec-1.0.1.gem.sha512 +1 -0
  15. data/checksums/timecop-rspec-1.0.2.gem.sha256 +1 -0
  16. data/checksums/timecop-rspec-1.0.2.gem.sha512 +1 -0
  17. data/docs/Timecop/Rspec/ExampleDecorator.html +26 -26
  18. data/docs/Timecop/Rspec/SequentialTimeMachine.html +11 -11
  19. data/docs/Timecop/Rspec/TimeMachine.html +18 -18
  20. data/docs/Timecop/Rspec/TravelLog.html +18 -18
  21. data/docs/Timecop/Rspec/Traveler.html +25 -25
  22. data/docs/Timecop/Rspec/Version.html +2 -2
  23. data/docs/Timecop/Rspec.html +20 -18
  24. data/docs/Timecop.html +2 -8
  25. data/docs/_index.html +13 -1
  26. data/docs/file.CHANGELOG.html +37 -6
  27. data/docs/file.CITATION.html +1 -1
  28. data/docs/file.CODE_OF_CONDUCT.html +1 -1
  29. data/docs/file.CONTRIBUTING.html +2 -4
  30. data/docs/file.LICENSE.html +1 -1
  31. data/docs/file.README.html +35 -13
  32. data/docs/file.REEK.html +1 -1
  33. data/docs/file.RUBOCOP.html +1 -1
  34. data/docs/file.SECURITY.html +1 -1
  35. data/docs/file.rspec.html +1 -1
  36. data/docs/file.timecop-rspec-1.0.0.gem.html +71 -0
  37. data/docs/file.timecop-rspec-1.0.1.gem.html +71 -0
  38. data/docs/file.timecop.html +1 -1
  39. data/docs/file_list.html +20 -0
  40. data/docs/index.html +35 -13
  41. data/docs/top-level-namespace.html +1 -1
  42. data/lib/timecop/rspec/example_decorator.rb +3 -24
  43. data/lib/timecop/rspec/sequential_time_machine.rb +0 -24
  44. data/lib/timecop/rspec/time_machine.rb +0 -24
  45. data/lib/timecop/rspec/travel_log.rb +6 -28
  46. data/lib/timecop/rspec/traveler.rb +0 -24
  47. data/lib/timecop/rspec/version.rb +1 -25
  48. data/lib/timecop/rspec.rb +2 -26
  49. data/timecop-rspec.gemspec +6 -3
  50. data.tar.gz.sig +0 -0
  51. metadata +26 -14
  52. metadata.gz.sig +0 -0
data/bin/console CHANGED
@@ -1,28 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
-
3
- # The MIT License (MIT)
4
-
5
- # Copyright (c) 2014-2017 Avant
6
-
7
- # Author Zach Taylor
8
-
9
- # Permission is hereby granted, free of charge, to any person obtaining a copy
10
- # of this software and associated documentation files (the "Software"), to deal
11
- # in the Software without restriction, including without limitation the rights
12
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
- # copies of the Software, and to permit persons to whom the Software is
14
- # furnished to do so, subject to the following conditions:
15
-
16
- # The above copyright notice and this permission notice shall be included in
17
- # all copies or substantial portions of the Software.
18
-
19
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
- # THE SOFTWARE.
2
+ # frozen_string_literal: true
26
3
 
27
4
  require "bundler/setup"
28
5
  require "timecop/rspec"
@@ -30,9 +7,5 @@ require "timecop/rspec"
30
7
  # You can add fixtures and/or initialization code here to make experimenting
31
8
  # with your gem easier. You can also use a different console, if you like.
32
9
 
33
- # (If you use this, don't forget to add pry to your Gemfile!)
34
- # require 'pry'
35
- # Pry.start
36
-
37
10
  require "irb"
38
11
  IRB.start(__FILE__)
data/bin/setup CHANGED
@@ -1,29 +1,3 @@
1
- #!/usr/bin/env bash
2
-
3
- # The MIT License (MIT)
4
-
5
- # Copyright (c) 2014-2017 Avant
6
-
7
- # Author Zach Taylor
8
-
9
- # Permission is hereby granted, free of charge, to any person obtaining a copy
10
- # of this software and associated documentation files (the "Software"), to deal
11
- # in the Software without restriction, including without limitation the rights
12
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
- # copies of the Software, and to permit persons to whom the Software is
14
- # furnished to do so, subject to the following conditions:
15
-
16
- # The above copyright notice and this permission notice shall be included in
17
- # all copies or substantial portions of the Software.
18
-
19
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
- # THE SOFTWARE.
26
-
27
1
  set -euo pipefail
28
2
  IFS=$'\n\t'
29
3
  set -vx
@@ -0,0 +1 @@
1
+ bce676c41071b3da3c08e1a4844670059f61c8d3cb62c23c640132f5426afeaa
@@ -0,0 +1 @@
1
+ b73676700bb59bedde9c12bf93a2ccf8a86f55836d8f6e8426fc581290fc4058b34eef50a1929e06c7e7c112b9a9587fb917c2e5170c28af6d71b61925bd330a
@@ -0,0 +1 @@
1
+ aceff50f1ddb2be956ca10fbfb712bb509bf807c224dc1762d75d98a8fb04bd1
@@ -0,0 +1 @@
1
+ 694e198c04ed9ddfc5afb9cf317068a9a2afcbf9dacf6fe85e848566f48647a15257a214fa37293d9acb027f86c9cea5e613fb727b74af47a93ebed4373867a4
@@ -319,12 +319,12 @@
319
319
  <pre class="lines">
320
320
 
321
321
 
322
- 59
323
- 60
324
- 61</pre>
322
+ 38
323
+ 39
324
+ 40</pre>
325
325
  </td>
326
326
  <td>
327
- <pre class="code"><span class="info file"># File 'lib/timecop/rspec/example_decorator.rb', line 59</span>
327
+ <pre class="code"><span class="info file"># File 'lib/timecop/rspec/example_decorator.rb', line 38</span>
328
328
 
329
329
  <span class='kw'>def</span> <span class='id identifier rubyid_global_timecop?'>global_timecop?</span>
330
330
  <span class='const'><span class='object_link'><a href="../Rspec.html" title="Timecop::Rspec (module)">Rspec</a></span></span><span class='period'>.</span><span class='id identifier rubyid_global_time_configured?'><span class='object_link'><a href="../Rspec.html#global_time_configured%3F-class_method" title="Timecop::Rspec.global_time_configured? (method)">global_time_configured?</a></span></span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='id identifier rubyid_skip_global_timecop?'>skip_global_timecop?</span>
@@ -372,15 +372,15 @@
372
372
  <pre class="lines">
373
373
 
374
374
 
375
- 53
376
- 54
377
- 55</pre>
375
+ 32
376
+ 33
377
+ 34</pre>
378
378
  </td>
379
379
  <td>
380
- <pre class="code"><span class="info file"># File 'lib/timecop/rspec/example_decorator.rb', line 53</span>
380
+ <pre class="code"><span class="info file"># File 'lib/timecop/rspec/example_decorator.rb', line 32</span>
381
381
 
382
382
  <span class='kw'>def</span> <span class='id identifier rubyid_local_timecop?'>local_timecop?</span>
383
- <span class='id identifier rubyid_local_timecop_method'>local_timecop_method</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span>
383
+ <span class='op'>!</span><span class='id identifier rubyid_local_timecop_method'>local_timecop_method</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
384
384
  <span class='kw'>end</span></pre>
385
385
  </td>
386
386
  </tr>
@@ -425,12 +425,12 @@
425
425
  <pre class="lines">
426
426
 
427
427
 
428
- 65
429
- 66
430
- 67</pre>
428
+ 44
429
+ 45
430
+ 46</pre>
431
431
  </td>
432
432
  <td>
433
- <pre class="code"><span class="info file"># File 'lib/timecop/rspec/example_decorator.rb', line 65</span>
433
+ <pre class="code"><span class="info file"># File 'lib/timecop/rspec/example_decorator.rb', line 44</span>
434
434
 
435
435
  <span class='kw'>def</span> <span class='id identifier rubyid_skip_global_timecop?'>skip_global_timecop?</span>
436
436
  <span class='id identifier rubyid_metadata'>metadata</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='symbol'>:skip_global_timecop</span><span class='rparen'>)</span>
@@ -482,12 +482,12 @@
482
482
  <pre class="lines">
483
483
 
484
484
 
485
- 35
486
- 36
487
- 37</pre>
485
+ 14
486
+ 15
487
+ 16</pre>
488
488
  </td>
489
489
  <td>
490
- <pre class="code"><span class="info file"># File 'lib/timecop/rspec/example_decorator.rb', line 35</span>
490
+ <pre class="code"><span class="info file"># File 'lib/timecop/rspec/example_decorator.rb', line 14</span>
491
491
 
492
492
  <span class='kw'>def</span> <span class='id identifier rubyid_timecop?'>timecop?</span>
493
493
  <span class='id identifier rubyid_local_timecop?'>local_timecop?</span> <span class='op'>||</span> <span class='id identifier rubyid_global_timecop?'>global_timecop?</span>
@@ -539,12 +539,12 @@
539
539
  <pre class="lines">
540
540
 
541
541
 
542
- 41
543
- 42
544
- 43</pre>
542
+ 20
543
+ 21
544
+ 22</pre>
545
545
  </td>
546
546
  <td>
547
- <pre class="code"><span class="info file"># File 'lib/timecop/rspec/example_decorator.rb', line 41</span>
547
+ <pre class="code"><span class="info file"># File 'lib/timecop/rspec/example_decorator.rb', line 20</span>
548
548
 
549
549
  <span class='kw'>def</span> <span class='id identifier rubyid_timecop_method'>timecop_method</span>
550
550
  <span class='id identifier rubyid_local_timecop_method'>local_timecop_method</span> <span class='op'>||</span> <span class='id identifier rubyid_global_timecop_method'>global_timecop_method</span>
@@ -596,12 +596,12 @@
596
596
  <pre class="lines">
597
597
 
598
598
 
599
- 47
600
- 48
601
- 49</pre>
599
+ 26
600
+ 27
601
+ 28</pre>
602
602
  </td>
603
603
  <td>
604
- <pre class="code"><span class="info file"># File 'lib/timecop/rspec/example_decorator.rb', line 47</span>
604
+ <pre class="code"><span class="info file"># File 'lib/timecop/rspec/example_decorator.rb', line 26</span>
605
605
 
606
606
  <span class='kw'>def</span> <span class='id identifier rubyid_timecop_time'>timecop_time</span>
607
607
  <span class='id identifier rubyid_local_timecop_time'>local_timecop_time</span> <span class='op'>||</span> <span class='id identifier rubyid_global_timecop_time'>global_timecop_time</span>
@@ -616,7 +616,7 @@
616
616
  </div>
617
617
 
618
618
  <div id="footer">
619
- Generated on Sun Aug 17 14:43:14 2025 by
619
+ Generated on Mon Aug 18 05:40:24 2025 by
620
620
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
621
621
  0.9.37 (ruby-3.4.5).
622
622
  </div>
@@ -230,12 +230,12 @@ across multiple examples.</p>
230
230
  <pre class="lines">
231
231
 
232
232
 
233
- 39
234
- 40
235
- 41</pre>
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 39</span>
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
- 46
308
- 47
309
- 48
310
- 49
311
- 50</pre>
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 46</span>
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 14:43:14 2025 by
331
+ Generated on Mon Aug 18 05:40:24 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
- 35
230
- 36
231
- 37</pre>
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 35</span>
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
- 44
313
- 45
314
- 46
315
- 47
316
- 48
317
- 49
318
- 50
319
- 51
320
- 52
321
- 53
322
- 54
323
- 55</pre>
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 44</span>
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 14:43:14 2025 by
350
+ Generated on Mon Aug 18 05:40:24 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
- 31
268
- 32
269
- 33</pre>
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 31</span>
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
- 49
315
- 50
316
- 51</pre>
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 49</span>
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 rubyid_current'>current</span> <span class='op'>-</span> <span class='id identifier rubyid_coalesced_start_time'>coalesced_start_time</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 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
- 39
406
- 40
407
- 41
408
- 42
409
- 43
410
- 44
411
- 45</pre>
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 39</span>
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 14:43:14 2025 by
433
+ Generated on Mon Aug 18 05:40:24 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
- 31
233
- 32
234
- 33
235
- 34</pre>
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 31</span>
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
- 41
297
- 42
298
- 43
299
- 44
300
- 45
301
- 46
302
- 47
303
- 48
304
- 49
305
- 50
306
- 51
307
- 52
308
- 53
309
- 54
310
- 55
311
- 56
312
- 57
313
- 58</pre>
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 41</span>
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 14:43:14 2025 by
346
+ Generated on Mon Aug 18 05:40:23 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'>&quot;</span><span class='tstring_content'>1.0.0</span><span class='tstring_end'>&quot;</span></span></pre></dd>
131
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>1.0.2</span><span class='tstring_end'>&quot;</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 14:43:14 2025 by
147
+ Generated on Mon Aug 18 05:40:23 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>
@@ -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
- 65
311
- 66
312
- 67</pre>
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 65</span>
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
- 58
364
- 59
365
- 60</pre>
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 58</span>
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 rubyid_global_time_travel_string'>global_time_travel_string</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span>
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'>&quot;</span><span class='tstring_end'>&quot;</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
- 48
440
- 49
441
- 50
442
- 51
443
- 52
444
- 53
445
- 54</pre>
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 48</span>
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 14:43:14 2025 by
469
+ Generated on Mon Aug 18 05:40:23 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>THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br />
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 14:43:14 2025 by
136
+ Generated on Mon Aug 18 05:40:23 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,18 @@
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.1.gem.html" title="timecop-rspec-1.0.1.gem">timecop-rspec-1.0.1.gem</a></li>
91
+
92
+
93
+ <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>
94
+
95
+
96
+ <li class="r2"><a href="file.timecop-rspec-1.0.1.gem.html" title="timecop-rspec-1.0.1.gem">timecop-rspec-1.0.1.gem</a></li>
97
+
98
+
87
99
  <li class="r1"><a href="file.REEK.html" title="REEK">REEK</a></li>
88
100
 
89
101
 
@@ -208,7 +220,7 @@
208
220
  </div>
209
221
 
210
222
  <div id="footer">
211
- Generated on Sun Aug 17 14:43:13 2025 by
223
+ Generated on Mon Aug 18 05:40:23 2025 by
212
224
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
213
225
  0.9.37 (ruby-3.4.5).
214
226
  </div>