diff --git a/config/initializers/clearance.rb b/config/initializers/clearance.rb index fd7ac957424..5b6cf2d8370 100644 --- a/config/initializers/clearance.rb +++ b/config/initializers/clearance.rb @@ -1,5 +1,5 @@ Clearance.configure do |config| - config.allow_sign_up = (ENV['DISABLE_SIGNUP'].to_s == 'true') ? false : true + config.allow_sign_up = ENV['DISABLE_SIGNUP'].to_s == 'true' ? false : true config.mailer_sender = "RubyGems.org " config.secure_cookie = true unless Rails.env.test? || Rails.env.development? config.password_strategy = Clearance::PasswordStrategies::BCryptMigrationFromSHA1 diff --git a/config/initializers/forbidden_yaml.rb b/config/initializers/forbidden_yaml.rb index da8eb0b6bcb..56693304ae5 100644 --- a/config/initializers/forbidden_yaml.rb +++ b/config/initializers/forbidden_yaml.rb @@ -43,7 +43,7 @@ def self.from_yaml(input) end end class Package - def read_checksums gem + def read_checksums(gem) Gem.load_yaml @checksums = gem.seek 'checksums.yaml.gz' do |entry|