File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ def has_key?(k)
67
67
def load ( rcpath )
68
68
log ( 3 , "Loading #{ BRIX11RC } from #{ rcpath } " )
69
69
begin
70
- _cfg = JSON . parse ( IO . read ( rcpath ) )
70
+ _cfg = JSON . parse ( File . read ( rcpath ) )
71
71
rescue JSON ::ParserError => ex
72
72
log_fatal ( "Error parsing JSON file #{ rcpath } : #{ ex } " )
73
73
end
Original file line number Diff line number Diff line change @@ -290,13 +290,13 @@ def list_mpc_projects(path)
290
290
def parse_mpc_file ( file )
291
291
base_name = File . basename ( file , '.*' )
292
292
ptable = { }
293
- IO . foreach ( file ) do |ln |
293
+ File . foreach ( file ) do |ln |
294
294
if /\A \s *project\s *\( (.*)\) / =~ ln
295
295
convert = !ln . index ( '*' ) . nil?
296
296
prj = $1. strip . sub ( /\A \* \Z / , base_name )
297
297
prj . sub! ( /\A \* / ) { |_ | base_name + '_' }
298
298
prj . sub! ( /\* \Z / ) { |_ | '_' + base_name }
299
- prj . sub !( '*' , "_#{ base_name } _" )
299
+ prj . gsub !( '*' , "_#{ base_name } _" )
300
300
prj . gsub! ( /(\A |[^a-zA-Z0-9])?([a-zA-Z0-9])([a-zA-Z0-9]*)/ ) { |_ | $1 + $2. upcase + $3 } if convert
301
301
ptable [ prj ] = file
302
302
end
You can’t perform that action at this time.
0 commit comments