File tree 3 files changed +5
-10
lines changed
3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 20
20
- {os: ubuntu-latest, ruby: '2.6'}
21
21
- {os: ubuntu-latest, ruby: '2.7'}
22
22
- {os: ubuntu-latest, ruby: '3.0'}
23
- - {os: ubuntu-latest, ruby: 'jruby-9.3.9 .0'}
23
+ - {os: ubuntu-latest, ruby: 'jruby-9.3.14 .0'}
24
24
- {os: windows-2019, ruby: '2.5'}
25
25
- {os: windows-2019, ruby: '2.6'}
26
26
- {os: windows-2019, ruby: '2.7'}
Original file line number Diff line number Diff line change @@ -591,12 +591,11 @@ def perform_initial_import
591
591
if file == NO_MANIFEST
592
592
empty_parse_result
593
593
elsif File . directory? ( file )
594
- # JRuby does not properly perform Dir.glob operations with wildcards, (see PUP-11788 and https://github.com/jruby/jruby/issues/7836).
595
594
# We sort the results because Dir.glob order is inconsistent in Ruby < 3 (see PUP-10115).
596
- parse_results = Puppet ::FileSystem ::PathPattern . absolute ( File . join ( file , '**/*' ) ) . glob . select { | globbed_file | globbed_file . end_with? ( '.pp' ) } . sort . map do | file_to_parse |
597
- parser . file = file_to_parse
598
- parser . parse
599
- end
595
+ parse_results = Puppet ::FileSystem ::PathPattern . absolute ( File . join ( file , '**/*.pp ' ) ) . glob . sort . map do | file_to_parse |
596
+ parser . file = file_to_parse
597
+ parser . parse
598
+ end
600
599
# Use a parser type specific merger to concatenate the results
601
600
Puppet ::Parser ::AST ::Hostclass . new ( '' , :code => Puppet ::Parser ::ParserFactory . code_merger . concatenate ( parse_results ) )
602
601
else
Original file line number Diff line number Diff line change 1
1
require 'spec_helper'
2
2
require 'puppet_spec/files'
3
3
require 'puppet/file_system'
4
- require 'puppet/util'
5
4
6
5
describe Puppet ::FileSystem ::PathPattern do
7
6
include PuppetSpec ::Files
134
133
end
135
134
136
135
it 'globs wildcard patterns properly' do
137
- # See PUP-11788 and https://github.com/jruby/jruby/issues/7836.
138
- pending 'JRuby does not properly handle Dir.glob' if Puppet ::Util ::Platform . jruby?
139
-
140
136
dir = tmpdir ( 'globtest' )
141
137
create_file_in ( dir , 'foo.pp' )
142
138
create_file_in ( dir , 'foo.pp.pp' )
You can’t perform that action at this time.
0 commit comments