Skip to content

Commit

Permalink
require "rubygems" is obsolete in Ruby 1.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
korny committed May 13, 2012
1 parent aeac0bf commit d8c1949
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions guides/source/action_view_overview.textile
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -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'

Expand Down
1 change: 0 additions & 1 deletion guides/source/active_model_basics.textile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion load_paths.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# bust gem prelude
require 'rubygems' unless defined? Gem
require 'bundler'
Bundler.setup
1 change: 0 additions & 1 deletion railties/lib/rails/commands/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
end
end

require 'rubygems' if ARGV.include?("--dev")
require 'rails/generators'
require 'rails/generators/rails/app/app_generator'

Expand Down
2 changes: 0 additions & 2 deletions railties/lib/rails/commands/plugin_new.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'rubygems' if ARGV.include?("--dev")

if ARGV.first != "new"
ARGV[0] = "--help"
else
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'rubygems'

# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'rubygems'
gemfile = File.expand_path('../../../../Gemfile', __FILE__)

if File.exist?(gemfile)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
require 'rubygems'
require 'minitest/autorun'
require 'active_support'
1 change: 0 additions & 1 deletion tools/profile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ENV['NO_RELOAD'] ||= '1'
ENV['RAILS_ENV'] ||= 'development'

GC.enable_stats
require 'rubygems'
Gem.source_index
require 'benchmark'

Expand Down

0 comments on commit d8c1949

Please sign in to comment.