Skip to content

Commit

Permalink
remove warnings on ruby trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
laurocaetano committed Nov 1, 2013
1 parent a221b30 commit d48222d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions guides/bug_report_templates/action_controller_master.rb
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -48,4 +48,4 @@ def test_returns_success
def app
Rails.application
end
end
end
2 changes: 1 addition & 1 deletion guides/bug_report_templates/active_record_master.rb
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion guides/code/getting_started/config/boot.rb
Original file line number Diff line number Diff line change
@@ -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'])
2 changes: 1 addition & 1 deletion guides/rails_guides.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion guides/rails_guides/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d48222d

Please sign in to comment.