提交 59b77370 编写于 作者: S Santiago Pastorino

Merge pull request #6303 from korny/remove-require-rubygems

require "rubygems" is obsolete in Ruby 1.9.3
......@@ -59,7 +59,6 @@ Now we'll create a simple "Hello World" application that uses the +titleize+ met
*hello_world.rb:*
<ruby>
require 'rubygems'
require 'active_support/core_ext/string/inflections'
require 'rack'
......@@ -94,7 +93,6 @@ Now we'll create the same "Hello World" application in Sinatra.
*hello_world.rb:*
<ruby>
require 'rubygems'
require 'action_view'
require 'sinatra'
......
......@@ -95,7 +95,6 @@ h4. Dirty
An object becomes dirty when an object is gone through one or more changes to its attributes and not yet saved. This gives the ability to check whether an object has been changed or not. It also has attribute based accessor methods. Lets consider a Person class with attributes first_name and last_name
<ruby>
require 'rubygems'
require 'active_model'
class Person
......
# bust gem prelude
require 'rubygems' unless defined? Gem
require 'bundler'
Bundler.setup
......@@ -19,7 +19,6 @@
end
end
require 'rubygems' if ARGV.include?("--dev")
require 'rails/generators'
require 'rails/generators/rails/app/app_generator'
......
require 'rubygems' if ARGV.include?("--dev")
if ARGV.first != "new"
ARGV[0] = "--help"
else
......
require 'rubygems'
# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
......
require 'rubygems'
gemfile = File.expand_path('../../../../Gemfile', __FILE__)
if File.exist?(gemfile)
......
require 'rubygems'
require 'minitest/autorun'
require 'active_support'
......@@ -7,7 +7,6 @@ ENV['NO_RELOAD'] ||= '1'
ENV['RAILS_ENV'] ||= 'development'
GC.enable_stats
require 'rubygems'
Gem.source_index
require 'benchmark'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册