Skip to content

Commit d8c1949

Browse files
committed
require "rubygems" is obsolete in Ruby 1.9.3
1 parent aeac0bf commit d8c1949

File tree

9 files changed

+0
-12
lines changed

9 files changed

+0
-12
lines changed

guides/source/action_view_overview.textile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ Now we'll create a simple "Hello World" application that uses the +titleize+ met
5959
*hello_world.rb:*
6060

6161
<ruby>
62-
require 'rubygems'
6362
require 'active_support/core_ext/string/inflections'
6463
require 'rack'
6564

@@ -94,7 +93,6 @@ Now we'll create the same "Hello World" application in Sinatra.
9493
*hello_world.rb:*
9594

9695
<ruby>
97-
require 'rubygems'
9896
require 'action_view'
9997
require 'sinatra'
10098

guides/source/active_model_basics.textile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ h4. Dirty
9595
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
9696

9797
<ruby>
98-
require 'rubygems'
9998
require 'active_model'
10099

101100
class Person

load_paths.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
# bust gem prelude
2-
require 'rubygems' unless defined? Gem
32
require 'bundler'
43
Bundler.setup

railties/lib/rails/commands/application.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
end
2020
end
2121

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

railties/lib/rails/commands/plugin_new.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
require 'rubygems' if ARGV.include?("--dev")
2-
31
if ARGV.first != "new"
42
ARGV[0] = "--help"
53
else

railties/lib/rails/generators/rails/app/templates/config/boot.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
require 'rubygems'
2-
31
# Set up gems listed in the Gemfile.
42
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
53

railties/lib/rails/generators/rails/plugin_new/templates/rails/boot.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rubygems'
21
gemfile = File.expand_path('../../../../Gemfile', __FILE__)
32

43
if File.exist?(gemfile)
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
require 'rubygems'
21
require 'minitest/autorun'
32
require 'active_support'

tools/profile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ ENV['NO_RELOAD'] ||= '1'
77
ENV['RAILS_ENV'] ||= 'development'
88

99
GC.enable_stats
10-
require 'rubygems'
1110
Gem.source_index
1211
require 'benchmark'
1312

0 commit comments

Comments
 (0)