Skip to content
Browse files

remove warnings on ruby trunk

  • Loading branch information...
1 parent a221b30 commit d48222d22ef576c1b429ec2321c712bc221698d7 @laurocaetano laurocaetano committed Nov 1, 2013
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)

0 comments on commit d48222d

Please sign in to comment.
Something went wrong with that request. Please try again.