timecop-rspec 1.0.2 → 1.0.4

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 (157) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/CHANGELOG.md +182 -8
  4. data/LICENSE.md +11 -0
  5. data/README.md +283 -241
  6. data/lib/timecop/rspec/version.rb +7 -7
  7. data/lib/timecop/rspec.rb +1 -1
  8. data/sig/timecop/rspec.rbs +2 -0
  9. data.tar.gz.sig +0 -0
  10. metadata +472 -423
  11. metadata.gz.sig +0 -0
  12. data/.devcontainer/devcontainer.json +0 -26
  13. data/.env.local.example +0 -3
  14. data/.envrc +0 -41
  15. data/.github/FUNDING.yml +0 -13
  16. data/.github/dependabot.yml +0 -12
  17. data/.github/workflows/ancient.yml +0 -77
  18. data/.github/workflows/auto-assign.yml +0 -21
  19. data/.github/workflows/codeql-analysis.yml +0 -70
  20. data/.github/workflows/coverage.yml +0 -126
  21. data/.github/workflows/current.yml +0 -85
  22. data/.github/workflows/dependency-review.yml +0 -20
  23. data/.github/workflows/deps_locked.yml +0 -85
  24. data/.github/workflows/deps_unlocked.yml +0 -84
  25. data/.github/workflows/discord-notifier.yml +0 -38
  26. data/.github/workflows/heads.yml +0 -84
  27. data/.github/workflows/jruby.yml +0 -75
  28. data/.github/workflows/legacy.yml +0 -67
  29. data/.github/workflows/style.yml +0 -64
  30. data/.github/workflows/supported.yml +0 -82
  31. data/.github/workflows/truffle.yml +0 -75
  32. data/.github/workflows/unsupported.yml +0 -75
  33. data/.gitignore +0 -45
  34. data/.gitlab-ci.yml +0 -44
  35. data/.idea/.gitignore +0 -8
  36. data/.idea/GitLink.xml +0 -6
  37. data/.idea/misc.xml +0 -4
  38. data/.idea/modules.xml +0 -8
  39. data/.idea/timecop-rspec.iml +0 -122
  40. data/.idea/vcs.xml +0 -6
  41. data/.junie/TASK_NOTE.md +0 -1
  42. data/.junie/guidelines.md +0 -139
  43. data/.qlty/qlty.toml +0 -79
  44. data/.rspec +0 -8
  45. data/.rubocop.yml +0 -15
  46. data/.rubocop_gradual.lock +0 -76
  47. data/.simplecov +0 -11
  48. data/.tool-versions +0 -1
  49. data/.yard_gfm_support.rb +0 -22
  50. data/.yardopts +0 -11
  51. data/Appraisal.root.gemfile +0 -12
  52. data/Appraisals +0 -104
  53. data/CITATION.cff +0 -20
  54. data/CNAME +0 -1
  55. data/CODE_OF_CONDUCT.md +0 -134
  56. data/CONTRIBUTING.md +0 -143
  57. data/Gemfile +0 -38
  58. data/Gemfile.lock +0 -293
  59. data/LICENSE.txt +0 -22
  60. data/REEK +0 -0
  61. data/RUBOCOP.md +0 -71
  62. data/Rakefile +0 -324
  63. data/SECURITY.md +0 -21
  64. data/bin/appraisal +0 -16
  65. data/bin/bundle-audit +0 -16
  66. data/bin/bundler-audit +0 -16
  67. data/bin/code_climate_reek +0 -16
  68. data/bin/coderay +0 -16
  69. data/bin/console +0 -11
  70. data/bin/erb +0 -16
  71. data/bin/gem_checksums +0 -16
  72. data/bin/htmldiff +0 -16
  73. data/bin/irb +0 -16
  74. data/bin/kramdown +0 -16
  75. data/bin/ldiff +0 -16
  76. data/bin/nokogiri +0 -16
  77. data/bin/pry +0 -16
  78. data/bin/racc +0 -16
  79. data/bin/rake +0 -16
  80. data/bin/rdbg +0 -16
  81. data/bin/rdoc +0 -16
  82. data/bin/reek +0 -16
  83. data/bin/ri +0 -16
  84. data/bin/rspec +0 -16
  85. data/bin/rubocop +0 -16
  86. data/bin/rubocop-gradual +0 -16
  87. data/bin/ruby-parse +0 -16
  88. data/bin/ruby-rewrite +0 -16
  89. data/bin/setup +0 -7
  90. data/bin/standardrb +0 -16
  91. data/bin/thor +0 -16
  92. data/bin/yard +0 -16
  93. data/bin/yard-junk +0 -16
  94. data/bin/yardoc +0 -16
  95. data/bin/yri +0 -16
  96. data/certs/pboling.pem +0 -27
  97. data/checksums/timecop-rspec-1.0.0.gem.sha256 +0 -1
  98. data/checksums/timecop-rspec-1.0.0.gem.sha512 +0 -1
  99. data/checksums/timecop-rspec-1.0.1.gem.sha256 +0 -1
  100. data/checksums/timecop-rspec-1.0.1.gem.sha512 +0 -1
  101. data/checksums/timecop-rspec-1.0.2.gem.sha256 +0 -1
  102. data/checksums/timecop-rspec-1.0.2.gem.sha512 +0 -1
  103. data/docs/Timecop/Rspec/ExampleDecorator.html +0 -626
  104. data/docs/Timecop/Rspec/SequentialTimeMachine.html +0 -338
  105. data/docs/Timecop/Rspec/TimeMachine.html +0 -357
  106. data/docs/Timecop/Rspec/TravelLog.html +0 -440
  107. data/docs/Timecop/Rspec/Traveler.html +0 -353
  108. data/docs/Timecop/Rspec/Version.html +0 -154
  109. data/docs/Timecop/Rspec.html +0 -476
  110. data/docs/Timecop.html +0 -143
  111. data/docs/_index.html +0 -230
  112. data/docs/class_list.html +0 -54
  113. data/docs/css/common.css +0 -1
  114. data/docs/css/full_list.css +0 -58
  115. data/docs/css/style.css +0 -503
  116. data/docs/file.CHANGELOG.html +0 -130
  117. data/docs/file.CITATION.html +0 -92
  118. data/docs/file.CODE_OF_CONDUCT.html +0 -201
  119. data/docs/file.CONTRIBUTING.html +0 -218
  120. data/docs/file.LICENSE.html +0 -70
  121. data/docs/file.README.html +0 -545
  122. data/docs/file.REEK.html +0 -71
  123. data/docs/file.RUBOCOP.html +0 -171
  124. data/docs/file.SECURITY.html +0 -101
  125. data/docs/file.rspec.html +0 -109
  126. data/docs/file.timecop-rspec-1.0.0.gem.html +0 -71
  127. data/docs/file.timecop-rspec-1.0.1.gem.html +0 -71
  128. data/docs/file.timecop.html +0 -72
  129. data/docs/file_list.html +0 -129
  130. data/docs/frames.html +0 -22
  131. data/docs/index.html +0 -545
  132. data/docs/js/app.js +0 -344
  133. data/docs/js/full_list.js +0 -242
  134. data/docs/js/jquery.js +0 -4
  135. data/docs/method_list.html +0 -198
  136. data/docs/top-level-namespace.html +0 -110
  137. data/gemfiles/audit.gemfile +0 -10
  138. data/gemfiles/coverage.gemfile +0 -10
  139. data/gemfiles/current.gemfile +0 -8
  140. data/gemfiles/deps_unlocked.gemfile +0 -13
  141. data/gemfiles/head.gemfile +0 -9
  142. data/gemfiles/modular/audit.gemfile +0 -5
  143. data/gemfiles/modular/coverage.gemfile +0 -6
  144. data/gemfiles/modular/documentation.gemfile +0 -11
  145. data/gemfiles/modular/style.gemfile +0 -14
  146. data/gemfiles/ruby_2_3.gemfile +0 -5
  147. data/gemfiles/ruby_2_4.gemfile +0 -5
  148. data/gemfiles/ruby_2_5.gemfile +0 -5
  149. data/gemfiles/ruby_2_6.gemfile +0 -8
  150. data/gemfiles/ruby_2_7.gemfile +0 -8
  151. data/gemfiles/ruby_3_0.gemfile +0 -8
  152. data/gemfiles/ruby_3_1.gemfile +0 -8
  153. data/gemfiles/ruby_3_2.gemfile +0 -8
  154. data/gemfiles/ruby_3_3.gemfile +0 -8
  155. data/gemfiles/style.gemfile +0 -10
  156. data/sig/timecop.rbs +0 -2
  157. data/timecop-rspec.gemspec +0 -149
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Documentation
4
- gem "kramdown", "~> 2.5", ">= 2.5.1" # Ruby >= 2.5
5
- gem "kramdown-parser-gfm", "~> 1.1" # Ruby >= 2.3
6
- gem "yard", "~> 0.9", ">= 0.9.37", :require => false
7
- gem "yard-junk", "~> 0.0", ">= 0.0.10", :github => "pboling/yard-junk", :branch => "next", :require => false
8
- gem "yard-relative_markdown_links", "~> 0.5.0"
9
-
10
- # Std Lib extractions
11
- gem "rdoc", "~> 6.11"
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # We run rubocop on the latest version of Ruby,
4
- # but in support of the oldest supported version of Ruby
5
-
6
- gem "reek", "~> 6.4"
7
- gem "rubocop", "~> 1.73", ">= 1.73.2"
8
- gem "rubocop-lts", "~> 0.1", ">= 0.1.1" # Linting for Ruby >= 1.8
9
- gem "rubocop-packaging", "~> 0.6", ">= 0.6.0"
10
- gem "rubocop-rspec", "~> 3.2"
11
- gem "standard", ">= 1.50"
12
-
13
- # Std Lib extractions
14
- gem "benchmark", "~> 0.4", ">= 0.4.1" # Removed from Std Lib in Ruby 3.5
@@ -1,5 +0,0 @@
1
- # This file was generated by Appraisal2
2
-
3
- source "https://rubygems.org"
4
-
5
- gemspec :path => "../"
@@ -1,5 +0,0 @@
1
- # This file was generated by Appraisal2
2
-
3
- source "https://rubygems.org"
4
-
5
- gemspec :path => "../"
@@ -1,5 +0,0 @@
1
- # This file was generated by Appraisal2
2
-
3
- source "https://rubygems.org"
4
-
5
- gemspec :path => "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal2
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "mutex_m", "~> 0.2"
6
- gem "stringio", "~> 3.0"
7
-
8
- gemspec :path => "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal2
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "mutex_m", "~> 0.2"
6
- gem "stringio", "~> 3.0"
7
-
8
- gemspec :path => "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal2
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "mutex_m", "~> 0.2"
6
- gem "stringio", "~> 3.0"
7
-
8
- gemspec :path => "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal2
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "mutex_m", "~> 0.2"
6
- gem "stringio", "~> 3.0"
7
-
8
- gemspec :path => "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal2
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "mutex_m", "~> 0.2"
6
- gem "stringio", "~> 3.0"
7
-
8
- gemspec :path => "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal2
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "mutex_m", "~> 0.2"
6
- gem "stringio", "~> 3.0"
7
-
8
- gemspec :path => "../"
@@ -1,10 +0,0 @@
1
- # This file was generated by Appraisal2
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "mutex_m", "~> 0.2"
6
- gem "stringio", "~> 3.0"
7
-
8
- gemspec :path => "../"
9
-
10
- eval_gemfile("modular/style.gemfile")
data/sig/timecop.rbs DELETED
@@ -1,2 +0,0 @@
1
- class Timecop
2
- end
@@ -1,149 +0,0 @@
1
- # coding: utf-8
2
- # frozen_string_literal: true
3
-
4
- gem_version =
5
- if RUBY_VERSION >= "3.1" # rubocop:disable Gemspec/RubyVersionGlobalsUsage
6
- # Loading Version into an anonymous module allows version.rb to get code coverage from SimpleCov!
7
- # See: https://github.com/simplecov-ruby/simplecov/issues/557#issuecomment-2630782358
8
- # See: https://github.com/panorama-ed/memo_wise/pull/397
9
- Module.new.tap { |mod| Kernel.load("#{__dir__}/lib/timecop/rspec/version.rb", mod) }::Timecop::Rspec::Version::VERSION
10
- else
11
- # NOTE: Use __FILE__ or __dir__ until removal of Ruby 1.x support
12
- # __dir__ introduced in Ruby 1.9.1
13
- # lib = File.expand_path("../lib", __FILE__)
14
- lib = File.expand_path("lib", __dir__)
15
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
16
- require "timecop/rspec/version"
17
- Timecop::Rspec::Version::VERSION
18
- end
19
-
20
- Gem::Specification.new do |spec|
21
- spec.name = "timecop-rspec"
22
- spec.version = gem_version
23
- spec.authors = ["Peter H. Boling", "Zach Taylor", "Tim Mertens"]
24
- spec.email = ["floss@galtzo.com"]
25
-
26
- spec.summary = "⌚️ Timecop time-machines for RSpec"
27
- spec.description = "⌚️ Timecop::Rspec provides Timecop time-machines for RSpec that allow you" \
28
- "to time-travel test examples, context/describes, and/or your entire test suite. " \
29
- "Find out how your code will behave... in the future! " \
30
- "Fund overlooked open source projects - bottom of stack, dev/test dependencies: floss-funding.dev"
31
- spec.homepage = "https://github.com/galtzo-floss/timecop-rspec"
32
- spec.license = "MIT"
33
- spec.required_ruby_version = ">= 1.9.2"
34
-
35
- # Linux distros often package gems and securely certify them independent
36
- # of the official RubyGem certification process. Allowed via ENV["SKIP_GEM_SIGNING"]
37
- # Ref: https://gitlab.com/oauth-xx/version_gem/-/issues/3
38
- # Hence, only enable signing if `SKIP_GEM_SIGNING` is not set in ENV.
39
- # See CONTRIBUTING.md
40
- unless ENV.include?("SKIP_GEM_SIGNING")
41
- user_cert = "certs/#{ENV.fetch("GEM_CERT_USER", ENV["USER"])}.pem"
42
- cert_file_path = File.join(__dir__, user_cert)
43
- cert_chain = cert_file_path.split(",")
44
- cert_chain.select! { |fp| File.exist?(fp) }
45
- if cert_file_path && cert_chain.any?
46
- spec.cert_chain = cert_chain
47
- if $PROGRAM_NAME.end_with?("gem") && ARGV[0] == "build"
48
- spec.signing_key = File.join(Gem.user_home, ".ssh", "gem-private_key.pem")
49
- end
50
- end
51
- end
52
-
53
- spec.metadata["homepage_uri"] = "https://#{spec.name.tr("_", "-")}.galtzo.com/"
54
- spec.metadata["source_code_uri"] = "#{spec.homepage}/tree/v#{spec.version}"
55
- spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/v#{spec.version}/CHANGELOG.md"
56
- spec.metadata["bug_tracker_uri"] = "#{spec.homepage}/issues"
57
- spec.metadata["documentation_uri"] = "https://www.rubydoc.info/gems/#{spec.name}/#{spec.version}"
58
- spec.metadata["funding_uri"] = "https://github.com/sponsors/pboling"
59
- spec.metadata["wiki_uri"] = "#{spec.homepage}/wiki"
60
- spec.metadata["news_uri"] = "https://www.railsbling.com/tags/#{spec.name}"
61
- spec.metadata["discord_uri"] = "https://discord.gg/3qme4XHNKN"
62
- spec.metadata["rubygems_mfa_required"] = "true"
63
-
64
- # Specify which files are part of the released package.
65
- spec.files = Dir[
66
- # Splats (alphabetical)
67
- "lib/**/*.rb",
68
- ]
69
- # Automatically included with gem package, no need to list again in files.
70
- spec.extra_rdoc_files = Dir[
71
- # Splats (alphabetical)
72
- "checksums/**/*.sha256",
73
- "checksums/**/*.sha512",
74
- "sig/**/*.rbs",
75
- # Files (alphabetical)
76
- "CHANGELOG.md",
77
- "CITATION.cff",
78
- "CODE_OF_CONDUCT.md",
79
- "CONTRIBUTING.md",
80
- "LICENSE.txt",
81
- "README.md",
82
- "REEK",
83
- "RUBOCOP.md",
84
- "SECURITY.md",
85
- ]
86
- spec.rdoc_options += [
87
- "--title",
88
- "#{spec.name} - #{spec.summary}",
89
- "--main",
90
- "checksums/**/*.sha256",
91
- "checksums/**/*.sha512",
92
- "sig/**/*.rbs",
93
- "CHANGELOG.md",
94
- "CITATION.cff",
95
- "CODE_OF_CONDUCT.md",
96
- "CONTRIBUTING.md",
97
- "LICENSE.txt",
98
- "README.md",
99
- "REEK",
100
- "RUBOCOP.md",
101
- "SECURITY.md",
102
- "--line-numbers",
103
- "--inline-source",
104
- "--quiet",
105
- ]
106
- spec.require_paths = ["lib"]
107
- spec.bindir = "exe"
108
- # files listed are relative paths from bindir above.
109
- spec.executables = []
110
-
111
- spec.files = %x(git ls-files -z).split("\x0").reject do |f|
112
- f.match(%r{^(test|spec|features)/})
113
- end
114
- spec.bindir = "exe"
115
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
116
- spec.require_paths = ["lib"]
117
-
118
- spec.add_dependency("delegate", "~> 0.1") # ruby > 0, for SimpleDelegator, newer versions drop support for older rubies
119
- spec.add_dependency("rspec", "~> 3.0") # ruby > 0
120
- spec.add_dependency("timecop", ">= 0.7", "< 1") # ruby >= 1.9.2, for time-based testing
121
-
122
- # NOTE: It is preferable to list development dependencies in the gemspec due to increased
123
- # visibility and discoverability on RubyGems.org.
124
- # However, development dependencies in gemspec will install on
125
- # all versions of Ruby that will run in CI.
126
- # This gem, and its runtime dependencies, will install on Ruby down to 1.9.2.
127
- # This gem, and its development dependencies, will install on Ruby down to 2.3.x.
128
- # This is because in CI easy installation of Ruby, via setup-ruby, is for >= 2.3.
129
- # Thus, dev dependencies in gemspec must have
130
- #
131
- # required_ruby_version ">= 2.3" (or lower)
132
- #
133
- # Development dependencies that require strictly newer Ruby versions should be in a "gemfile",
134
- # and preferably a modular one (see gemfiles/modular/*.gemfile).
135
-
136
- # Release Tasks
137
- spec.add_development_dependency("stone_checksums", "~> 1.0") # ruby >= 2.2.0
138
-
139
- ### Testing
140
- spec.add_development_dependency("appraisal2", "~> 3.0") # ruby >= 1.8.7, for testing against multiple versions of dependencies
141
- spec.add_development_dependency("rspec-block_is_expected", "~> 1.0") # ruby >= 1.8.7, for block_is_expected.to syntax
142
- spec.add_development_dependency("rspec_junit_formatter", "~> 0.6") # ruby >= 2.3.0, for GitLab Test Result Parsing
143
- spec.add_development_dependency("rspec-stubbed_env", "~> 1.0") # ruby >= 2.3.0, helper for stubbing ENV in specs
144
- spec.add_development_dependency("silent_stream", "~> 1.0", ">= 1.0.11") # ruby >= 2.3.0, for output capture
145
- spec.add_development_dependency("timecop", "~> 0.9", ">= 0.9.10") # ruby >= 1.9.2, for time-based testing
146
-
147
- # Development tasks
148
- spec.add_development_dependency("rake", "~> 13.0") # ruby >= 2.2
149
- end