diff --git a/.rubocop_gradual.lock b/.rubocop_gradual.lock deleted file mode 100644 index 62babad..0000000 --- a/.rubocop_gradual.lock +++ /dev/null @@ -1,15 +0,0 @@ -{ - "Rakefile:2473472683": [ - [347, 24, 2, "Lint/Syntax: unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 5858765], - [427, 38, 2, "Lint/Syntax: unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 5858765], - [453, 34, 2, "Lint/Syntax: unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 5858765], - [546, 25, 2, "Lint/Syntax: unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 5858765], - [557, 18, 2, "Lint/Syntax: unexpected token kDO_BLOCK\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 5860750], - [557, 32, 1, "Lint/Syntax: unexpected token tPIPE\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 177625], - [558, 79, 2, "Lint/Syntax: unexpected token kDO_BLOCK\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 5860750], - [558, 110, 1, "Lint/Syntax: unexpected token tPIPE\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 177625], - [631, 37, 2, "Lint/Syntax: unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 5858765], - [636, 40, 2, "Lint/Syntax: unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 5858765], - [674, 3, 3, "Lint/Syntax: unexpected token kEND\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 193405706] - ] -} diff --git a/.yard_gfm_support.rb b/.yard_gfm_support.rb index 49dde5f..4f2f140 100644 --- a/.yard_gfm_support.rb +++ b/.yard_gfm_support.rb @@ -18,5 +18,5 @@ def initialize(source, options = {}) # - https://github.com/lsegal/yard/blob/main/lib/yard/templates/helpers/markup_helper.rb YARD::Templates::Helpers::MarkupHelper::MARKUP_PROVIDERS[:markdown].insert( 0, - {:const => "KramdownGfmDocument"}, + {const: "KramdownGfmDocument"}, ) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cf2f55..bcc9b5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,9 +16,14 @@ and this project adheres to [Semantic Versioning v2](https://semver.org/spec/v2. - TAG: [v1.0.0][1.0.0t] - COVERAGE: 100.00% -- 69/69 lines in 13 files - BRANCH COVERAGE: 100.00% -- 2/2 branches in 13 files -- 23.53% documented +- 94.44% documented ### Added -- initial release +- initial release, with auto-config support for: + - rspec + - rspec-block_is_expected + - rspec-stubbed_env + - silent_stream + - timecop-rspec [Unreleased]: https://gitlab.com/kettle-rb/kettle-test/-/compare/v1.0.0...HEAD [1.0.0]: https://gitlab.com/kettle-rb/kettle-test/-/compare/baed02cf1ca1e0e8c75c11fd188edaf1a4f5f08b...v1.0.0 diff --git a/Gemfile.lock b/Gemfile.lock index 1c17828..b8e7680 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -13,7 +13,7 @@ GIT PATH remote: . specs: - kettle-test (0.1.0) + kettle-test (1.0.0) appraisal2 (~> 3.0) rspec (~> 3.0) rspec-block_is_expected (~> 1.0, >= 1.0.6) @@ -190,8 +190,8 @@ GEM parallel (~> 1.10) rainbow (>= 2.2.2, < 4.0) rubocop (~> 1.0) - rubocop-lts (0.1.1) - rubocop-ruby1_8 (>= 1.0.5, < 2) + rubocop-lts (10.1.1) + rubocop-ruby2_3 (>= 2.0.3, < 3) standard-rubocop-lts (>= 1.0.3, < 3) version_gem (>= 1.1.2, < 3) rubocop-md (1.2.4) @@ -209,7 +209,7 @@ GEM rubocop-rspec (3.6.0) lint_roller (~> 1.1) rubocop (~> 1.72, >= 1.72.1) - rubocop-ruby1_8 (1.0.7) + rubocop-ruby2_3 (2.0.5) rubocop-gradual (~> 0.3, >= 0.3.1) rubocop-md (~> 1.2) rubocop-rake (~> 0.6) @@ -297,7 +297,7 @@ DEPENDENCIES debug (>= 1.0.0) gem_bench (~> 2.0, >= 2.0.5) gitmoji-regex (~> 1.0, >= 1.0.3) - kettle-soup-cover (~> 1.0, >= 1.0.6) + kettle-soup-cover (~> 1.0, >= 1.0.10) kettle-test! kramdown (~> 2.5, >= 2.5.1) kramdown-parser-gfm (~> 1.1) @@ -306,7 +306,7 @@ DEPENDENCIES rdoc (~> 6.11) reek (~> 6.4) rubocop (~> 1.73, >= 1.73.2) - rubocop-lts (~> 0.1, >= 0.1.1) + rubocop-lts (~> 10.1, >= 10.1.1) rubocop-packaging (~> 0.6, >= 0.6.0) rubocop-rspec (~> 3.2) standard (>= 1.50) diff --git a/README.md b/README.md index 84a2367..d0a5638 100644 --- a/README.md +++ b/README.md @@ -247,14 +247,14 @@ Timecop.travel/freeze any RSpec (describe|context|example) with ```ruby # Timecop.travel -it "some description", :travel => Time.new(2014, 11, 15) do +it "some description", travel: Time.new(2014, 11, 15) do Time.now # 2014-11-15 00:00:00 sleep 6 Time.now # 2014-11-15 00:00:06 (6 seconds later) end # Timecop.freeze -it "some description", :freeze => Time.new(2014, 11, 15) do +it "some description", freeze: Time.new(2014, 11, 15) do Time.now # 2014-11-15 00:00:00 sleep 6 Time.now # 2014-11-15 00:00:00 (Ruby's time hasn't advanced) @@ -265,7 +265,7 @@ Following spec's local travel will resume when specified time is the same as the previous examples specified time. If the time is different, it will start from the current examples specified time. ```ruby -describe SomeUnit, :travel => Time.new(2014, 11, 15) do +describe SomeUnit, travel: Time.new(2014, 11, 15) do it "example 1" do Time.now # => 2014-11-15 00:00:00 sleep 6 @@ -275,7 +275,7 @@ describe SomeUnit, :travel => Time.new(2014, 11, 15) do Time.now # => 2014-11-15 00:00:06 (resumed from end of previous example) end - it "example 3", :travel => Time.new(1982, 6, 16) do + it "example 3", travel: Time.new(1982, 6, 16) do Time.now # => 1982-06-16 00:00:00 end end diff --git a/Rakefile b/Rakefile index 0add8b7..2e62a9d 100644 --- a/Rakefile +++ b/Rakefile @@ -349,10 +349,10 @@ namespace :ci do # Determine actual workflow files present, and prepare dynamic additions excluding specified files. existing_files = if Dir.exist?(workflows_dir) - Dir[File.join(workflows_dir, "*.yml")] + Dir[File.join(workflows_dir, "*.yaml")] - else - [] - end + Dir[File.join(workflows_dir, "*.yml")] + Dir[File.join(workflows_dir, "*.yaml")] + else + [] + end existing_basenames = existing_files.map { |p| File.basename(p) } # Reduce mapping choices to only those with a corresponding workflow file @@ -456,11 +456,11 @@ namespace :ci do st = run["status"] con = run["conclusion"] emoji = case st - when "queued" then "⏳️" - when "in_progress" then "👟" - when "completed" then ((con == "success") ? "✅" : "🍅") - else "⏳️" - end + when "queued" then "⏳️" + when "in_progress" then "👟" + when "completed" then ((con == "success") ? "✅" : "🍅") + else "⏳️" + end details = [st, con].compact.join("/") [c, f, "#{emoji} (#{details})#{append}"] else @@ -471,22 +471,22 @@ namespace :ci do if choice && !choice.empty? # If user passed a filename directly (with or without extension), resolve it file = if mapping.key?(choice) - mapping.fetch(choice) - elsif !!(/\.(yml|yaml)\z/ =~ choice) - # Accept either full basename (without ext) or basename with .yml/.yaml - choice - else - cand_yml = File.join(workflows_dir, "#{choice}.yml") - cand_yaml = File.join(workflows_dir, "#{choice}.yaml") - if File.file?(cand_yml) - "#{choice}.yml" - elsif File.file?(cand_yaml) - "#{choice}.yaml" - else - # Fall back to .yml for error messaging; will fail below - "#{choice}.yml" - end - end + mapping.fetch(choice) + elsif !!(/\.(yml|yaml)\z/ =~ choice) + # Accept either full basename (without ext) or basename with .yml/.yaml + choice + else + cand_yml = File.join(workflows_dir, "#{choice}.yml") + cand_yaml = File.join(workflows_dir, "#{choice}.yaml") + if File.file?(cand_yml) + "#{choice}.yml" + elsif File.file?(cand_yaml) + "#{choice}.yaml" + else + # Fall back to .yml for error messaging; will fail below + "#{choice}.yml" + end + end file_path = File.join(workflows_dir, file) unless File.file?(file_path) puts "Unknown option or missing workflow file: #{choice} -> #{file}" @@ -591,10 +591,10 @@ namespace :ci do # Check for user input first (non-blocking) unless input_q.empty? selected = begin - input_q.pop(true) - rescue - nil - end + input_q.pop(true) + rescue + nil + end break if selected end diff --git a/bin/prepare-commit-msg b/bin/prepare-commit-msg index ad7279d..800ac22 100755 --- a/bin/prepare-commit-msg +++ b/bin/prepare-commit-msg @@ -33,10 +33,10 @@ if (branch_rule = BRANCH_RULES[BRANCH_RULE_TYPE]) if !match_data.nil? commit_msg = File.read(ARGV[0]) unless commit_msg.include?(match_data[:story_id]) - commit_msg = <Defined Under Namespace diff --git a/docs/Kettle/Test.html b/docs/Kettle/Test.html index 2f06003..ed915ab 100644 --- a/docs/Kettle/Test.html +++ b/docs/Kettle/Test.html @@ -616,7 +616,7 @@

diff --git a/docs/Kettle/Test/Error.html b/docs/Kettle/Test/Error.html index daeabd0..cde44ee 100644 --- a/docs/Kettle/Test/Error.html +++ b/docs/Kettle/Test/Error.html @@ -124,7 +124,7 @@

Overview

diff --git a/docs/Kettle/Test/Version.html b/docs/Kettle/Test/Version.html index f685066..d89412a 100644 --- a/docs/Kettle/Test/Version.html +++ b/docs/Kettle/Test/Version.html @@ -128,7 +128,7 @@

-
"0.1.0"
+
"1.0.0"
@@ -144,7 +144,7 @@

diff --git a/docs/_index.html b/docs/_index.html index 2e2f4f3..e1dc0e3 100644 --- a/docs/_index.html +++ b/docs/_index.html @@ -169,7 +169,7 @@

Namespace Listing A-Z

diff --git a/docs/file.CHANGELOG.html b/docs/file.CHANGELOG.html index 04fe68e..12b02d2 100644 --- a/docs/file.CHANGELOG.html +++ b/docs/file.CHANGELOG.html @@ -78,16 +78,24 @@

  • COVERAGE: 100.00% – 69/69 lines in 13 files
  • BRANCH COVERAGE: 100.00% – 2/2 branches in 13 files
  • -
  • 23.53% documented +
  • 94.44% documented

    Added

  • -
  • initial release
  • +
  • initial release, with auto-config support for: +
      +
    • rspec
    • +
    • rspec-block_is_expected
    • +
    • rspec-stubbed_env
    • +
    • silent_stream
    • +
    • timecop-rspec
    • +
    +
  • diff --git a/docs/file.CITATION.html b/docs/file.CITATION.html index 934650a..43e9d8c 100644 --- a/docs/file.CITATION.html +++ b/docs/file.CITATION.html @@ -82,7 +82,7 @@ diff --git a/docs/file.CODE_OF_CONDUCT.html b/docs/file.CODE_OF_CONDUCT.html index a175cef..975b011 100644 --- a/docs/file.CODE_OF_CONDUCT.html +++ b/docs/file.CODE_OF_CONDUCT.html @@ -191,7 +191,7 @@

    Attribution

    diff --git a/docs/file.CONTRIBUTING.html b/docs/file.CONTRIBUTING.html index bff45ef..927c154 100644 --- a/docs/file.CONTRIBUTING.html +++ b/docs/file.CONTRIBUTING.html @@ -208,7 +208,7 @@

    To release a new version:

    diff --git a/docs/file.LICENSE.html b/docs/file.LICENSE.html index 831ccd6..f073c8b 100644 --- a/docs/file.LICENSE.html +++ b/docs/file.LICENSE.html @@ -60,7 +60,7 @@
    The MIT License (MIT)

    Copyright (c) 2023, 2025 Peter Boling

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    THE SOFTWARE.
    diff --git a/docs/file.README.html b/docs/file.README.html index 3d6a402..d07cd0f 100644 --- a/docs/file.README.html +++ b/docs/file.README.html @@ -655,7 +655,7 @@

    🤑 A request for help

    diff --git a/docs/file.REEK.html b/docs/file.REEK.html index 3efe986..7d66e94 100644 --- a/docs/file.REEK.html +++ b/docs/file.REEK.html @@ -61,7 +61,7 @@ diff --git a/docs/file.RUBOCOP.html b/docs/file.RUBOCOP.html index 6fc252d..8caefa6 100644 --- a/docs/file.RUBOCOP.html +++ b/docs/file.RUBOCOP.html @@ -161,7 +161,7 @@

    Benefits of rubocop_gradual

    diff --git a/docs/file.SECURITY.html b/docs/file.SECURITY.html index 7d92c3d..34a398a 100644 --- a/docs/file.SECURITY.html +++ b/docs/file.SECURITY.html @@ -91,7 +91,7 @@

    Additional Support

    diff --git a/docs/file.test.html b/docs/file.test.html index 18d1991..0fc71a8 100644 --- a/docs/file.test.html +++ b/docs/file.test.html @@ -86,7 +86,7 @@ diff --git a/docs/index.html b/docs/index.html index 1bdbaeb..93fdb3b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -655,7 +655,7 @@

    🤑 A request for help

    diff --git a/docs/top-level-namespace.html b/docs/top-level-namespace.html index 30c0b79..aecac3a 100644 --- a/docs/top-level-namespace.html +++ b/docs/top-level-namespace.html @@ -100,7 +100,7 @@

    Defined Under Namespace

    diff --git a/gemfiles/audit.gemfile b/gemfiles/audit.gemfile index ba88a7b..84d4fe2 100644 --- a/gemfiles/audit.gemfile +++ b/gemfiles/audit.gemfile @@ -6,4 +6,4 @@ gem "erb" gem "mutex_m", "~> 0.2" gem "stringio", "~> 3.0" -gemspec :path => "../" +gemspec path: "../" diff --git a/gemfiles/coverage.gemfile b/gemfiles/coverage.gemfile index 29ca5e3..6af7add 100644 --- a/gemfiles/coverage.gemfile +++ b/gemfiles/coverage.gemfile @@ -6,6 +6,6 @@ gem "erb" gem "mutex_m", "~> 0.2" gem "stringio", "~> 3.0" -gemspec :path => "../" +gemspec path: "../" eval_gemfile("modular/coverage.gemfile") diff --git a/gemfiles/current.gemfile b/gemfiles/current.gemfile index b91cbbd..d0a2a24 100644 --- a/gemfiles/current.gemfile +++ b/gemfiles/current.gemfile @@ -6,4 +6,4 @@ gem "erb" gem "mutex_m", ">= 0.2" gem "stringio", ">= 3.0" -gemspec :path => "../" +gemspec path: "../" diff --git a/gemfiles/deps_unlocked.gemfile b/gemfiles/deps_unlocked.gemfile index 5c5a6a8..789a4f0 100644 --- a/gemfiles/deps_unlocked.gemfile +++ b/gemfiles/deps_unlocked.gemfile @@ -2,7 +2,7 @@ source "https://rubygems.org" -gemspec :path => "../" +gemspec path: "../" eval_gemfile("modular/audit.gemfile") diff --git a/gemfiles/head.gemfile b/gemfiles/head.gemfile index 0a314b2..4451c84 100644 --- a/gemfiles/head.gemfile +++ b/gemfiles/head.gemfile @@ -7,4 +7,4 @@ gem "mutex_m", ">= 0.2" gem "stringio", ">= 3.0" gem "benchmark", "~> 0.4", ">= 0.4.1" -gemspec :path => "../" +gemspec path: "../" diff --git a/gemfiles/modular/coverage.gemfile b/gemfiles/modular/coverage.gemfile index c870b69..ee32b0a 100755 --- a/gemfiles/modular/coverage.gemfile +++ b/gemfiles/modular/coverage.gemfile @@ -3,4 +3,4 @@ # We run code coverage on the latest version of Ruby only. # Coverage -gem "kettle-soup-cover", "~> 1.0", ">= 1.0.6", :require => false +gem "kettle-soup-cover", "~> 1.0", ">= 1.0.10", require: false diff --git a/gemfiles/modular/documentation.gemfile b/gemfiles/modular/documentation.gemfile index 7c5c2e9..7853390 100755 --- a/gemfiles/modular/documentation.gemfile +++ b/gemfiles/modular/documentation.gemfile @@ -3,8 +3,8 @@ # Documentation gem "kramdown", "~> 2.5", ">= 2.5.1" # Ruby >= 2.5 gem "kramdown-parser-gfm", "~> 1.1" # Ruby >= 2.3 -gem "yard", "~> 0.9", ">= 0.9.37", :require => false -gem "yard-junk", "~> 0.0", ">= 0.0.10", :github => "pboling/yard-junk", :branch => "next", :require => false +gem "yard", "~> 0.9", ">= 0.9.37", require: false +gem "yard-junk", "~> 0.0", ">= 0.0.10", github: "pboling/yard-junk", branch: "next", require: false gem "yard-relative_markdown_links", "~> 0.5.0" # Std Lib extractions diff --git a/gemfiles/modular/style.gemfile b/gemfiles/modular/style.gemfile index 4ec8e7a..6b18285 100755 --- a/gemfiles/modular/style.gemfile +++ b/gemfiles/modular/style.gemfile @@ -5,7 +5,7 @@ gem "reek", "~> 6.4" gem "rubocop", "~> 1.73", ">= 1.73.2" -gem "rubocop-lts", "~> 0.1", ">= 0.1.1" # Linting for Ruby >= 1.8 +gem "rubocop-lts", "~> 10.1", ">= 10.1.1" # Linting for Ruby >= 2.3 gem "rubocop-packaging", "~> 0.6", ">= 0.6.0" gem "rubocop-rspec", "~> 3.2" gem "standard", ">= 1.50" diff --git a/gemfiles/ruby_2_3.gemfile b/gemfiles/ruby_2_3.gemfile index 8a6e6ac..0ac28b9 100644 --- a/gemfiles/ruby_2_3.gemfile +++ b/gemfiles/ruby_2_3.gemfile @@ -2,4 +2,4 @@ source "https://rubygems.org" -gemspec :path => "../" +gemspec path: "../" diff --git a/gemfiles/ruby_2_4.gemfile b/gemfiles/ruby_2_4.gemfile index 8a1b3f7..cd0f1dc 100644 --- a/gemfiles/ruby_2_4.gemfile +++ b/gemfiles/ruby_2_4.gemfile @@ -4,4 +4,4 @@ source "https://rubygems.org" gem "erb" -gemspec :path => "../" +gemspec path: "../" diff --git a/gemfiles/ruby_2_5.gemfile b/gemfiles/ruby_2_5.gemfile index 8a1b3f7..cd0f1dc 100644 --- a/gemfiles/ruby_2_5.gemfile +++ b/gemfiles/ruby_2_5.gemfile @@ -4,4 +4,4 @@ source "https://rubygems.org" gem "erb" -gemspec :path => "../" +gemspec path: "../" diff --git a/gemfiles/ruby_2_6.gemfile b/gemfiles/ruby_2_6.gemfile index ba88a7b..84d4fe2 100644 --- a/gemfiles/ruby_2_6.gemfile +++ b/gemfiles/ruby_2_6.gemfile @@ -6,4 +6,4 @@ gem "erb" gem "mutex_m", "~> 0.2" gem "stringio", "~> 3.0" -gemspec :path => "../" +gemspec path: "../" diff --git a/gemfiles/ruby_2_7.gemfile b/gemfiles/ruby_2_7.gemfile index ba88a7b..84d4fe2 100644 --- a/gemfiles/ruby_2_7.gemfile +++ b/gemfiles/ruby_2_7.gemfile @@ -6,4 +6,4 @@ gem "erb" gem "mutex_m", "~> 0.2" gem "stringio", "~> 3.0" -gemspec :path => "../" +gemspec path: "../" diff --git a/gemfiles/ruby_3_0.gemfile b/gemfiles/ruby_3_0.gemfile index ba88a7b..84d4fe2 100644 --- a/gemfiles/ruby_3_0.gemfile +++ b/gemfiles/ruby_3_0.gemfile @@ -6,4 +6,4 @@ gem "erb" gem "mutex_m", "~> 0.2" gem "stringio", "~> 3.0" -gemspec :path => "../" +gemspec path: "../" diff --git a/gemfiles/ruby_3_1.gemfile b/gemfiles/ruby_3_1.gemfile index ba88a7b..84d4fe2 100644 --- a/gemfiles/ruby_3_1.gemfile +++ b/gemfiles/ruby_3_1.gemfile @@ -6,4 +6,4 @@ gem "erb" gem "mutex_m", "~> 0.2" gem "stringio", "~> 3.0" -gemspec :path => "../" +gemspec path: "../" diff --git a/gemfiles/ruby_3_2.gemfile b/gemfiles/ruby_3_2.gemfile index ba88a7b..84d4fe2 100644 --- a/gemfiles/ruby_3_2.gemfile +++ b/gemfiles/ruby_3_2.gemfile @@ -6,4 +6,4 @@ gem "erb" gem "mutex_m", "~> 0.2" gem "stringio", "~> 3.0" -gemspec :path => "../" +gemspec path: "../" diff --git a/gemfiles/ruby_3_3.gemfile b/gemfiles/ruby_3_3.gemfile index ba88a7b..84d4fe2 100644 --- a/gemfiles/ruby_3_3.gemfile +++ b/gemfiles/ruby_3_3.gemfile @@ -6,4 +6,4 @@ gem "erb" gem "mutex_m", "~> 0.2" gem "stringio", "~> 3.0" -gemspec :path => "../" +gemspec path: "../" diff --git a/gemfiles/style.gemfile b/gemfiles/style.gemfile index 6864ab4..6375353 100644 --- a/gemfiles/style.gemfile +++ b/gemfiles/style.gemfile @@ -6,6 +6,6 @@ gem "erb" gem "mutex_m", "~> 0.2" gem "stringio", "~> 3.0" -gemspec :path => "../" +gemspec path: "../" eval_gemfile("modular/style.gemfile") diff --git a/gemfiles/unlocked_deps.gemfile b/gemfiles/unlocked_deps.gemfile index c9c20ec..5b66890 100644 --- a/gemfiles/unlocked_deps.gemfile +++ b/gemfiles/unlocked_deps.gemfile @@ -4,7 +4,7 @@ source "https://rubygems.org" gem "erb" -gemspec :path => "../" +gemspec path: "../" eval_gemfile("modular/coverage.gemfile") diff --git a/gemfiles/vanilla.gemfile b/gemfiles/vanilla.gemfile index 062905b..ff5abea 100755 --- a/gemfiles/vanilla.gemfile +++ b/gemfiles/vanilla.gemfile @@ -5,4 +5,4 @@ source "https://rubygems.org" eval_gemfile "./contexts/core.gemfile" eval_gemfile "./contexts/testing.gemfile" -gemspec :path => "../" +gemspec path: "../" diff --git a/lib/kettle/test/config/int/rspec/rspec_core.rb b/lib/kettle/test/config/int/rspec/rspec_core.rb index 6d39f9a..8933841 100755 --- a/lib/kettle/test/config/int/rspec/rspec_core.rb +++ b/lib/kettle/test/config/int/rspec/rspec_core.rb @@ -30,7 +30,7 @@ # Exclude examples/groups tagged with :skip_ci when running on CI # Usage: add `:skip_ci` to any example or group you want to skip on CI if Kettle::Test::IS_CI - config.filter_run_excluding(:skip_ci => true) + config.filter_run_excluding(skip_ci: true) end end # :nocov: diff --git a/lib/kettle/test/config/int/rspec/timecop_rspec.rb b/lib/kettle/test/config/int/rspec/timecop_rspec.rb index 2c5ed6f..466f6bb 100644 --- a/lib/kettle/test/config/int/rspec/timecop_rspec.rb +++ b/lib/kettle/test/config/int/rspec/timecop_rspec.rb @@ -28,6 +28,6 @@ RSpec.configure do |config| config.around do |example| - Timecop::Rspec.time_machine(:sequential => Kettle::Test::TIME_MACHINE_SEQUENTIAL).run(example) + Timecop::Rspec.time_machine(sequential: Kettle::Test::TIME_MACHINE_SEQUENTIAL).run(example) end end diff --git a/lib/kettle/test/version.rb b/lib/kettle/test/version.rb index 2d4a0e6..e4089dd 100755 --- a/lib/kettle/test/version.rb +++ b/lib/kettle/test/version.rb @@ -6,7 +6,7 @@ module Test module Version # The current version of kettle-test. # @return [String] - VERSION = "0.1.0" + VERSION = "1.0.0" end end end diff --git a/sig/kettle/test.rbs b/sig/kettle/test.rbs index 0139494..edf92e9 100755 --- a/sig/kettle/test.rbs +++ b/sig/kettle/test.rbs @@ -1,6 +1,6 @@ module Kettle module Test - class Error + class Error < StandardError end # Environment-driven constants diff --git a/spec/kettle/test/timecop_spec.rb b/spec/kettle/test/timecop_spec.rb index 130611b..adddfe6 100644 --- a/spec/kettle/test/timecop_spec.rb +++ b/spec/kettle/test/timecop_spec.rb @@ -3,14 +3,14 @@ # rubocop:disable RSpec/SpecFilePathFormat RSpec.describe Kettle::Test do - it "freezes time when :freeze metadata is provided", :freeze => Time.new(2014, 11, 15) do + it "freezes time when :freeze metadata is provided", freeze: Time.new(2014, 11, 15) do t1 = Time.now sleep 0.1 t2 = Time.now expect(t2).to eq(t1) end - it "travels time when :travel metadata is provided", :travel => Time.new(2014, 11, 15) do + it "travels time when :travel metadata is provided", travel: Time.new(2014, 11, 15) do t1 = Time.now sleep 0.1 t2 = Time.now