File tree 4 files changed +10
-7
lines changed
4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 5
5
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
6
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
7
8
- name : Ruby
8
+ name : Test
9
9
10
10
on :
11
11
push :
19
19
runs-on : ubuntu-latest
20
20
strategy :
21
21
matrix :
22
- ruby-version : ['2.5', '2.6', '2.7']
22
+ ruby-version : ['2.5', '2.6', '2.7', '3.0' ]
23
23
24
24
steps :
25
25
- uses : actions/checkout@v2
Original file line number Diff line number Diff line change @@ -88,7 +88,8 @@ def open_in_browser?
88
88
# The directory path where the 'index.html' we want to open is
89
89
# stored
90
90
def show_in_browser ( dir )
91
- uri = URI . join ( URI . escape ( "file://#{ dir } /" ) , "index.html" )
91
+ parser = URI ::Parser . new
92
+ uri = URI . join ( parser . escape ( "file://#{ dir } /" ) , "index.html" )
92
93
Launchy . open ( uri ) if open_in_browser?
93
94
end
94
95
end
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ def rm_rf(*args)
35
35
FileUtils . rm_rf ( *args )
36
36
end
37
37
38
- def mkdir_p ( *args )
39
- FileUtils . mkdir_p ( *args )
38
+ def mkdir_p ( dir , * *args )
39
+ FileUtils . mkdir_p ( dir , * *args )
40
40
end
41
41
42
42
def glob ( *args )
Original file line number Diff line number Diff line change @@ -80,7 +80,8 @@ def directory(name)
80
80
allow ( MetricFu . configuration ) . to receive ( :is_cruise_control_rb? ) . and_return ( false )
81
81
formatter = MetricFu ::Formatter ::HTML . new
82
82
path = MetricFu . run_path . join ( directory ( "output_directory" ) )
83
- uri = URI . join ( URI . escape ( "file://#{ path } /" ) , "index.html" )
83
+ parser = URI ::Parser . new
84
+ uri = URI . join ( parser . escape ( "file://#{ path } /" ) , "index.html" )
84
85
expect ( Launchy ) . to receive ( :open ) . with ( uri )
85
86
formatter . finish
86
87
formatter . display_results
@@ -125,7 +126,8 @@ def directory(name)
125
126
allow ( MetricFu . configuration ) . to receive ( :is_cruise_control_rb? ) . and_return ( false )
126
127
formatter = MetricFu ::Formatter ::HTML . new ( output : @output )
127
128
path = MetricFu . run_path . join ( "#{ directory ( 'base_directory' ) } /#{ @output } " )
128
- uri = URI . join ( URI . escape ( "file://#{ path } /" ) , "index.html" )
129
+ parser = URI ::Parser . new
130
+ uri = URI . join ( parser . escape ( "file://#{ path } /" ) , "index.html" )
129
131
expect ( Launchy ) . to receive ( :open ) . with ( uri )
130
132
formatter . finish
131
133
formatter . display_results
You can’t perform that action at this time.
0 commit comments