Skip to content

Commit fc7af2c

Browse files
authored
Merge pull request #1 from kettle-rb/release-prep
2 parents d7a4dce + 8684cf3 commit fc7af2c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+109
-111
lines changed

.rubocop_gradual.lock

Lines changed: 0 additions & 15 deletions
This file was deleted.

.yard_gfm_support.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ def initialize(source, options = {})
1818
# - https://github.com/lsegal/yard/blob/main/lib/yard/templates/helpers/markup_helper.rb
1919
YARD::Templates::Helpers::MarkupHelper::MARKUP_PROVIDERS[:markdown].insert(
2020
0,
21-
{:const => "KramdownGfmDocument"},
21+
{const: "KramdownGfmDocument"},
2222
)

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,14 @@ and this project adheres to [Semantic Versioning v2](https://semver.org/spec/v2.
1616
- TAG: [v1.0.0][1.0.0t]
1717
- COVERAGE: 100.00% -- 69/69 lines in 13 files
1818
- BRANCH COVERAGE: 100.00% -- 2/2 branches in 13 files
19-
- 23.53% documented
19+
- 94.44% documented
2020
### Added
21-
- initial release
21+
- initial release, with auto-config support for:
22+
- rspec
23+
- rspec-block_is_expected
24+
- rspec-stubbed_env
25+
- silent_stream
26+
- timecop-rspec
2227

2328
[Unreleased]: https://gitlab.com/kettle-rb/kettle-test/-/compare/v1.0.0...HEAD
2429
[1.0.0]: https://gitlab.com/kettle-rb/kettle-test/-/compare/baed02cf1ca1e0e8c75c11fd188edaf1a4f5f08b...v1.0.0

Gemfile.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ GIT
1313
PATH
1414
remote: .
1515
specs:
16-
kettle-test (0.1.0)
16+
kettle-test (1.0.0)
1717
appraisal2 (~> 3.0)
1818
rspec (~> 3.0)
1919
rspec-block_is_expected (~> 1.0, >= 1.0.6)
@@ -190,8 +190,8 @@ GEM
190190
parallel (~> 1.10)
191191
rainbow (>= 2.2.2, < 4.0)
192192
rubocop (~> 1.0)
193-
rubocop-lts (0.1.1)
194-
rubocop-ruby1_8 (>= 1.0.5, < 2)
193+
rubocop-lts (10.1.1)
194+
rubocop-ruby2_3 (>= 2.0.3, < 3)
195195
standard-rubocop-lts (>= 1.0.3, < 3)
196196
version_gem (>= 1.1.2, < 3)
197197
rubocop-md (1.2.4)
@@ -209,7 +209,7 @@ GEM
209209
rubocop-rspec (3.6.0)
210210
lint_roller (~> 1.1)
211211
rubocop (~> 1.72, >= 1.72.1)
212-
rubocop-ruby1_8 (1.0.7)
212+
rubocop-ruby2_3 (2.0.5)
213213
rubocop-gradual (~> 0.3, >= 0.3.1)
214214
rubocop-md (~> 1.2)
215215
rubocop-rake (~> 0.6)
@@ -297,7 +297,7 @@ DEPENDENCIES
297297
debug (>= 1.0.0)
298298
gem_bench (~> 2.0, >= 2.0.5)
299299
gitmoji-regex (~> 1.0, >= 1.0.3)
300-
kettle-soup-cover (~> 1.0, >= 1.0.6)
300+
kettle-soup-cover (~> 1.0, >= 1.0.10)
301301
kettle-test!
302302
kramdown (~> 2.5, >= 2.5.1)
303303
kramdown-parser-gfm (~> 1.1)
@@ -306,7 +306,7 @@ DEPENDENCIES
306306
rdoc (~> 6.11)
307307
reek (~> 6.4)
308308
rubocop (~> 1.73, >= 1.73.2)
309-
rubocop-lts (~> 0.1, >= 0.1.1)
309+
rubocop-lts (~> 10.1, >= 10.1.1)
310310
rubocop-packaging (~> 0.6, >= 0.6.0)
311311
rubocop-rspec (~> 3.2)
312312
standard (>= 1.50)

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,14 +247,14 @@ Timecop.travel/freeze any RSpec (describe|context|example) with
247247

248248
```ruby
249249
# Timecop.travel
250-
it "some description", :travel => Time.new(2014, 11, 15) do
250+
it "some description", travel: Time.new(2014, 11, 15) do
251251
Time.now # 2014-11-15 00:00:00
252252
sleep 6
253253
Time.now # 2014-11-15 00:00:06 (6 seconds later)
254254
end
255255

256256
# Timecop.freeze
257-
it "some description", :freeze => Time.new(2014, 11, 15) do
257+
it "some description", freeze: Time.new(2014, 11, 15) do
258258
Time.now # 2014-11-15 00:00:00
259259
sleep 6
260260
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
265265
previous examples specified time. If the time is different, it will
266266
start from the current examples specified time.
267267
```ruby
268-
describe SomeUnit, :travel => Time.new(2014, 11, 15) do
268+
describe SomeUnit, travel: Time.new(2014, 11, 15) do
269269
it "example 1" do
270270
Time.now # => 2014-11-15 00:00:00
271271
sleep 6
@@ -275,7 +275,7 @@ describe SomeUnit, :travel => Time.new(2014, 11, 15) do
275275
Time.now # => 2014-11-15 00:00:06 (resumed from end of previous example)
276276
end
277277

278-
it "example 3", :travel => Time.new(1982, 6, 16) do
278+
it "example 3", travel: Time.new(1982, 6, 16) do
279279
Time.now # => 1982-06-16 00:00:00
280280
end
281281
end

Rakefile

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,10 @@ namespace :ci do
349349

350350
# Determine actual workflow files present, and prepare dynamic additions excluding specified files.
351351
existing_files = if Dir.exist?(workflows_dir)
352-
Dir[File.join(workflows_dir, "*.yml")] + Dir[File.join(workflows_dir, "*.yaml")]
353-
else
354-
[]
355-
end
352+
Dir[File.join(workflows_dir, "*.yml")] + Dir[File.join(workflows_dir, "*.yaml")]
353+
else
354+
[]
355+
end
356356
existing_basenames = existing_files.map { |p| File.basename(p) }
357357

358358
# Reduce mapping choices to only those with a corresponding workflow file
@@ -456,11 +456,11 @@ namespace :ci do
456456
st = run["status"]
457457
con = run["conclusion"]
458458
emoji = case st
459-
when "queued" then "⏳️"
460-
when "in_progress" then "👟"
461-
when "completed" then ((con == "success") ? "✅" : "🍅")
462-
else "⏳️"
463-
end
459+
when "queued" then "⏳️"
460+
when "in_progress" then "👟"
461+
when "completed" then ((con == "success") ? "✅" : "🍅")
462+
else "⏳️"
463+
end
464464
details = [st, con].compact.join("/")
465465
[c, f, "#{emoji} (#{details})#{append}"]
466466
else
@@ -471,22 +471,22 @@ namespace :ci do
471471
if choice && !choice.empty?
472472
# If user passed a filename directly (with or without extension), resolve it
473473
file = if mapping.key?(choice)
474-
mapping.fetch(choice)
475-
elsif !!(/\.(yml|yaml)\z/ =~ choice)
476-
# Accept either full basename (without ext) or basename with .yml/.yaml
477-
choice
478-
else
479-
cand_yml = File.join(workflows_dir, "#{choice}.yml")
480-
cand_yaml = File.join(workflows_dir, "#{choice}.yaml")
481-
if File.file?(cand_yml)
482-
"#{choice}.yml"
483-
elsif File.file?(cand_yaml)
484-
"#{choice}.yaml"
485-
else
486-
# Fall back to .yml for error messaging; will fail below
487-
"#{choice}.yml"
488-
end
489-
end
474+
mapping.fetch(choice)
475+
elsif !!(/\.(yml|yaml)\z/ =~ choice)
476+
# Accept either full basename (without ext) or basename with .yml/.yaml
477+
choice
478+
else
479+
cand_yml = File.join(workflows_dir, "#{choice}.yml")
480+
cand_yaml = File.join(workflows_dir, "#{choice}.yaml")
481+
if File.file?(cand_yml)
482+
"#{choice}.yml"
483+
elsif File.file?(cand_yaml)
484+
"#{choice}.yaml"
485+
else
486+
# Fall back to .yml for error messaging; will fail below
487+
"#{choice}.yml"
488+
end
489+
end
490490
file_path = File.join(workflows_dir, file)
491491
unless File.file?(file_path)
492492
puts "Unknown option or missing workflow file: #{choice} -> #{file}"
@@ -591,10 +591,10 @@ namespace :ci do
591591
# Check for user input first (non-blocking)
592592
unless input_q.empty?
593593
selected = begin
594-
input_q.pop(true)
595-
rescue
596-
nil
597-
end
594+
input_q.pop(true)
595+
rescue
596+
nil
597+
end
598598
break if selected
599599
end
600600

bin/prepare-commit-msg

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ if (branch_rule = BRANCH_RULES[BRANCH_RULE_TYPE])
3333
if !match_data.nil?
3434
commit_msg = File.read(ARGV[0])
3535
unless commit_msg.include?(match_data[:story_id])
36-
commit_msg = <<EOS
37-
#{commit_msg.strip}
38-
[#{match_data[:story_type]}][#{match_data[:story_id]}]
39-
EOS
36+
commit_msg = <<~EOS
37+
#{commit_msg.strip}
38+
[#{match_data[:story_type]}][#{match_data[:story_id]}]
39+
EOS
4040
File.open(ARGV[0], "w") do |file|
4141
file.print(commit_msg)
4242
end
@@ -75,7 +75,7 @@ class GitCommitFooter
7575
prefixes.any? { |prefix| subj.start_with?(prefix) }
7676
end
7777

78-
def render(argv)
78+
def render(*argv)
7979
commit_msg = File.read(argv[0])
8080
subject_line = commit_msg.lines.first.to_s
8181
if GitCommitFooter::FOOTER_APPEND && goalie_allows_footer?(subject_line)
@@ -85,7 +85,7 @@ class GitCommitFooter
8585
# puts "FOOTER_APPEND is true, skipping footer append"
8686
exit(0)
8787
else
88-
footer_binding = GitCommitFooter.new(argv[0])
88+
footer_binding = GitCommitFooter.new
8989
# Append footer to the commit message
9090
File.open(argv[0], "w") do |file|
9191
file.print(commit_msg)
@@ -152,4 +152,4 @@ class GitCommitFooter
152152
end
153153
end
154154

155-
GitCommitFooter.render(ARGV)
155+
GitCommitFooter.render(*ARGV)

docs/Kettle.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ <h2>Defined Under Namespace</h2>
107107
</div>
108108

109109
<div id="footer">
110-
Generated on Thu Aug 21 22:14:22 2025 by
110+
Generated on Thu Aug 21 22:50:43 2025 by
111111
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
112112
0.9.37 (ruby-3.4.5).
113113
</div>

docs/Kettle/Test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ <h3 class="signature first" id="is_parallel_test?-class_method">
616616
</div>
617617

618618
<div id="footer">
619-
Generated on Thu Aug 21 22:14:22 2025 by
619+
Generated on Thu Aug 21 22:50:43 2025 by
620620
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
621621
0.9.37 (ruby-3.4.5).
622622
</div>

docs/Kettle/Test/Error.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ <h2>Overview</h2><div class="docstring">
124124
</div>
125125

126126
<div id="footer">
127-
Generated on Thu Aug 21 22:14:22 2025 by
127+
Generated on Thu Aug 21 22:50:43 2025 by
128128
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129129
0.9.37 (ruby-3.4.5).
130130
</div>

0 commit comments

Comments
 (0)