diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-05-08 15:33:34 -0600 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-05-08 15:33:34 -0600 |
commit | 9cc0937b3a41caca89fa6722149248a8f7b0a447 (patch) | |
tree | 4e1fdfcb34d69da81b993f59742a35b6bccae413 /config | |
parent | 44501820152083d231459223fe09b9d9641b7c1e (diff) | |
download | gitlab-ce-9cc0937b3a41caca89fa6722149248a8f7b0a447.tar.gz |
Enable the Rubocop DeprecatedClassMethods cop
This reports uses of `File.exists?` and `Dir.exists?`, which were both
deprecated in Ruby and will eventually be removed in favor of
`.exist?`. Also fixes all existing uses of the deprecated methods.
Diffstat (limited to 'config')
-rw-r--r-- | config/boot.rb | 2 | ||||
-rw-r--r-- | config/initializers/carrierwave.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/config/boot.rb b/config/boot.rb index 4489e58688c..f2830ae3166 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -3,4 +3,4 @@ require 'rubygems' # Set up gems listed in the Gemfile. ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) -require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) +require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE']) diff --git a/config/initializers/carrierwave.rb b/config/initializers/carrierwave.rb index df28d30d750..0d278717d6e 100644 --- a/config/initializers/carrierwave.rb +++ b/config/initializers/carrierwave.rb @@ -2,7 +2,7 @@ CarrierWave::SanitizedFile.sanitize_regexp = /[^[:word:]\.\-\+]/ aws_file = Rails.root.join('config', 'aws.yml') -if File.exists?(aws_file) +if File.exist?(aws_file) AWS_CONFIG = YAML.load(File.read(aws_file))[Rails.env] CarrierWave.configure do |config| |