File tree Expand file tree Collapse file tree 9 files changed +11
-7
lines changed Expand file tree Collapse file tree 9 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ Gem::Specification.new do |s|
24
24
s . add_dependency 'requires' , '~> 1.1.0'
25
25
s . add_dependency 'tty-markdown' , '~> 0.7'
26
26
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
+
27
31
# Ruby 3.0 comes with Psych 3.3.0, which does not have the `unsafe_load`
28
32
# ref: https://github.com/ruby/psych/commit/cb50aa8d3fb8be01897becff77b4922b12a0ab4c
29
33
s . add_dependency 'psych' , '>= 3.3.2' , '< 7'
Original file line number Diff line number Diff line change 27
27
# #
28
28
# # Load an INI file and populate the associative array `ini`.
29
29
ini_load () {
30
+ unset ini
30
31
declare -gA ini
31
32
32
33
local ini_file=" $1 "
Original file line number Diff line number Diff line change 27
27
# #
28
28
# # Load an INI file and populate the associative array `ini`.
29
29
ini_load () {
30
+ unset ini
30
31
declare -gA ini
31
32
32
33
local ini_file=" $1 "
Original file line number Diff line number Diff line change 1
1
.\" Automatically generated by Pandoc 3.2
2
2
.\"
3
- .TH "download" "1" "August 2024" "Version 0.1.0" "Sample application"
3
+ .TH "download" "1" "September 2024" "Version 0.1.0" "Sample application"
4
4
.SH NAME
5
5
\f[B] download \f[ R ] \- Sample application
6
6
.SH SYNOPSIS
Original file line number Diff line number Diff line change 1
1
% download(1) Version 0.1.0 | Sample application
2
2
% Lana Lang
3
- % August 2024
3
+ % September 2024
4
4
5
5
NAME
6
6
==================================================
Original file line number Diff line number Diff line change 27
27
# #
28
28
# # Load an INI file and populate the associative array `ini`.
29
29
ini_load () {
30
+ unset ini
30
31
declare -gA ini
31
32
32
33
local ini_file=" $1 "
Original file line number Diff line number Diff line change @@ -44,4 +44,4 @@ ISSUE TRACKER
44
44
AUTHORS
45
45
Lana Lang.
46
46
47
- Version 0.1.0 August 2024 download(1)
47
+ Version 0.1.0 September 2024 download(1)
Original file line number Diff line number Diff line change @@ -27,4 +27,3 @@ EXAMPLES
27
27
28
28
download example.com ./output -f
29
29
30
- Version 0.1.0 MONTH YEAR ... APPNAME
Original file line number Diff line number Diff line change 28
28
. to match_approval ( 'libraries/render/mandoc/render-1-download.md' )
29
29
. except ( /\w {3,9} 202\d / , 'MONTH YEAR' )
30
30
31
- expect ( `man "#{ target } /download.1" | col -bx` )
31
+ expect ( `man "#{ target } /download.1" | col -bx | sed '$d' ` )
32
32
. to match_approval ( 'libraries/render/mandoc/render-1-download.1' )
33
33
. diff ( leeway )
34
- . except ( /\w {3,9} 202\d .*/ , 'MONTH YEAR ... APPNAME' )
35
34
end
36
35
end
37
36
41
40
it 'saves a markdown and man files for each command' do
42
41
expect { subject . instance_eval render_script }
43
42
. to output_approval ( 'libraries/render/mandoc/render-2' )
44
- . except ( /\w {3,9} 202\d .*/ , 'MONTH YEAR ... APPNAME' )
45
43
46
44
expect ( File . read "#{ target } /cli-download.md" )
47
45
. to match_approval ( 'libraries/render/mandoc/render-2-download.md' )
You can’t perform that action at this time.
0 commit comments