bake/modernize/gemspec.rb in bake-modernize-0.1.4 vs bake/modernize/gemspec.rb in bake-modernize-0.2.0
- old
+ new
@@ -105,10 +105,10 @@
if File.directory?(full_path)
directories[directory] = true
end
end
- return "Dir['{#{directories.keys.join(',')}}/**/*', base: __dir__]"
+ return "Dir.glob('{#{directories.keys.join(',')}}/**/*', File::FNM_DOTMATCH, base: __dir__)"
end
def format_dependency(dependency)
requirements = dependency.requirements_list