lib/ruby-conf.rb in ruby-conf-2.5.1 vs lib/ruby-conf.rb in ruby-conf-2.5.2

- old
+ new

@@ -29,10 +29,10 @@ end if @@conf.nil? Find.find('.') do |path| next unless @@conf.nil? && path =~ /\.(?:rb|config|conf)$/ - if path =~ /\.ruby-conf$/ || File.read(path) =~ /^\s*\#\s*\:\s*ruby-conf\s*$/mi + if path =~ /\.(?:rbc|rbcnf|rbconf|rbconfig|rubyconf|rubyconfig|ruby-conf|ruby-config)$/ || File.read(path) =~ /^\s*\#\s*\:\s*ruby-conf\s*$/mi break if __rc_load(path) end end end @@conf.__send__(name, *args, &block)