Skip to content

Commit 30b7318

Browse files
committed
- Add sub dependencies to avoid Ruby 3.3.5 warnings
1 parent 6bfb1bc commit 30b7318

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

bashly.gemspec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ Gem::Specification.new do |s|
2424
s.add_dependency 'requires', '~> 1.1.0'
2525
s.add_dependency 'tty-markdown', '~> 0.7'
2626

27+
# Sub-dependenceis (Ruby 3.3.5 warnings)
28+
s.add_dependency 'logger' # required by filewatcher
29+
s.add_dependency 'ostruct' # required by json
30+
2731
# Ruby 3.0 comes with Psych 3.3.0, which does not have the `unsafe_load`
2832
# ref: https://github.com/ruby/psych/commit/cb50aa8d3fb8be01897becff77b4922b12a0ab4c
2933
s.add_dependency 'psych', '>= 3.3.2', '< 7'

spec/approvals/libraries/render/mandoc/render-1-download.1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,3 @@ EXAMPLES
2727

2828
download example.com ./output -f
2929

30-
Version 0.1.0 MONTH YEAR ... APPNAME

spec/bashly/libraries/render_mandoc_spec.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@
2828
.to match_approval('libraries/render/mandoc/render-1-download.md')
2929
.except(/\w{3,9} 202\d/, 'MONTH YEAR')
3030

31-
expect(`man "#{target}/download.1" | col -bx`)
31+
expect(`man "#{target}/download.1" | col -bx | sed '$d'`)
3232
.to match_approval('libraries/render/mandoc/render-1-download.1')
3333
.diff(leeway)
34-
.except(/\w{3,9} 202\d.*/, 'MONTH YEAR ... APPNAME')
3534
end
3635
end
3736

@@ -41,7 +40,6 @@
4140
it 'saves a markdown and man files for each command' do
4241
expect { subject.instance_eval render_script }
4342
.to output_approval('libraries/render/mandoc/render-2')
44-
.except(/\w{3,9} 202\d.*/, 'MONTH YEAR ... APPNAME')
4543

4644
expect(File.read "#{target}/cli-download.md")
4745
.to match_approval('libraries/render/mandoc/render-2-download.md')

0 commit comments

Comments
 (0)