Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #12739 from laurocaetano/remove_warnings_for_ruby_…

…trunk

Remove warnings on ruby trunk
  • Loading branch information...
commit d9e70501a41d6a2e8dd4f0c4f7da78aaab6d2202 2 parents a221b30 + d48222d
@rafaelfranca rafaelfranca authored
View
4 guides/bug_report_templates/action_controller_master.rb
@@ -1,4 +1,4 @@
-unless File.exists?('Gemfile')
+unless File.exist?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
@@ -48,4 +48,4 @@ def test_returns_success
def app
Rails.application
end
-end
+end
View
2  guides/bug_report_templates/active_record_master.rb
@@ -1,4 +1,4 @@
-unless File.exists?('Gemfile')
+unless File.exist?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
View
2  guides/code/getting_started/config/boot.rb
@@ -1,4 +1,4 @@
# 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'])
View
2  guides/rails_guides.rb
@@ -5,7 +5,7 @@
def bundler?
# Note that rake sets the cwd to the one that contains the Rakefile
# being executed.
- File.exists?('Gemfile')
+ File.exist?('Gemfile')
end
begin
View
2  guides/rails_guides/generator.rb
@@ -184,7 +184,7 @@ def output_path_for(output_file)
def generate?(source_file, output_file)
fin = File.join(source_dir, source_file)
fout = output_path_for(output_file)
- all || !File.exists?(fout) || File.mtime(fout) < File.mtime(fin)
+ all || !File.exist?(fout) || File.mtime(fout) < File.mtime(fin)
end
def generate_guide(guide, output_file)
Please sign in to comment.
Something went wrong with that request. Please try again.