mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
require "rubygems" is obsolete in Ruby 1.9.3
This commit is contained in:
parent
aeac0bf620
commit
d8c1949684
9 changed files with 0 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# bust gem prelude
|
||||
require 'rubygems' unless defined? Gem
|
||||
require 'bundler'
|
||||
Bundler.setup
|
||||
|
|
|
@ -19,7 +19,6 @@ else
|
|||
end
|
||||
end
|
||||
|
||||
require 'rubygems' if ARGV.include?("--dev")
|
||||
require 'rails/generators'
|
||||
require 'rails/generators/rails/app/app_generator'
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
require 'rubygems' if ARGV.include?("--dev")
|
||||
|
||||
if ARGV.first != "new"
|
||||
ARGV[0] = "--help"
|
||||
else
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
require 'rubygems'
|
||||
|
||||
# Set up gems listed in the Gemfile.
|
||||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'rubygems'
|
||||
gemfile = File.expand_path('../../../../Gemfile', __FILE__)
|
||||
|
||||
if File.exist?(gemfile)
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
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'
|
||||
|
||||
|
|
Loading…
Reference in a new issue