bake/modernize/gemspec.rb in bake-modernize-0.29.0 vs bake/modernize/gemspec.rb in bake-modernize-0.30.0

- old
+ new

@@ -49,16 +49,16 @@ output.puts "\t" output.puts "\tspec.summary = #{spec.summary.inspect}" output.puts "\tspec.authors = #{spec.authors.inspect}" output.puts "\tspec.license = #{spec.license.inspect}" - certificate_path = File.expand_path('release.cert', root) + certificate_path = File.expand_path("release.cert", root) if File.exist?(certificate_path) output.puts "\t" - output.puts "\tspec.cert_chain = ['release.cert']" - output.puts "\tspec.signing_key = File.expand_path('~/.gem/release.pem')" + output.puts "\tspec.cert_chain = [\"release.cert\"]" + output.puts "\tspec.signing_key = File.expand_path(\"~/.gem/release.pem\")" end if spec.homepage and !spec.homepage.empty? output.puts "\t" output.puts "\tspec.homepage = #{spec.homepage.inspect}" @@ -74,12 +74,12 @@ end output.puts "\t" output.puts "\tspec.files = #{directory_glob_for(spec)}" - if spec.require_paths != ['lib'] - output.puts "\tspec.require_paths = ['lib']" + if spec.require_paths != ["lib"] + output.puts "\tspec.require_paths = [\"lib\"]" end if executables = spec.executables and executables.any? output.puts "\t" output.puts "\tspec.executables = #{executables.inspect}" @@ -130,19 +130,19 @@ if File.directory?(full_path) directories[directory] = true end - if basename.start_with?('.') + if basename.start_with?(".") dotfiles = true end end if dotfiles - return "Dir.glob(['{#{directories.keys.join(',')}}/**/*', '*.md'], File::FNM_DOTMATCH, base: __dir__)" + return "Dir.glob([\"{#{directories.keys.join(',')}}/**/*\", \"*.md\"], File::FNM_DOTMATCH, base: __dir__)" else - return "Dir['{#{directories.keys.join(',')}}/**/*', '*.md', base: __dir__]" + return "Dir[\"{#{directories.keys.join(',')}}/**/*\", \"*.md\", base: __dir__]" end end def format_dependency(dependency) requirements = dependency.requirements_list @@ -172,11 +172,11 @@ def version_path(root) Dir["lib/**/version.rb", base: root].first end -require 'async' -require 'async/http/internet' +require "async" +require "async/http/internet" def valid_uri?(uri) Sync do internet = Async::HTTP::Internet.new response = internet.head(uri)