lib/rubygems/security/trust_dir.rb in rubygems-update-3.4.22 vs lib/rubygems/security/trust_dir.rb in rubygems-update-3.5.0

- old
+ new

@@ -7,12 +7,12 @@ class Gem::Security::TrustDir ## # Default permissions for the trust directory and its contents DEFAULT_PERMISSIONS = { - :trust_dir => 0o700, - :trusted_cert => 0o600, + trust_dir: 0o700, + trusted_cert: 0o600, }.freeze ## # The directory where trusted certificates will be stored. @@ -109,9 +109,9 @@ "trust directory #{@dir} is not a directory" unless File.directory? @dir FileUtils.chmod 0o700, @dir else - FileUtils.mkdir_p @dir, :mode => @permissions[:trust_dir] + FileUtils.mkdir_p @dir, mode: @permissions[:trust_dir] end end end