Skip to content

Commit c4cb541

Browse files
committed
removed explicitly rubygems load. it is unnecessary on Ruby 1.9 later.
1 parent 576aaf5 commit c4cb541

File tree

10 files changed

+0
-20
lines changed

10 files changed

+0
-20
lines changed

lib/gauntlet_rdoc.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rubygems'
21
Gem.load_yaml
32
require 'rdoc'
43
require 'gauntlet'
@@ -81,4 +80,3 @@ def run_the_gauntlet type = 'rdoc', filter = nil
8180
filter = /#{filter}/ if filter
8281

8382
RDoc::Gauntlet.new.run_the_gauntlet type, filter
84-

lib/rdoc/markdown.kpeg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@
174174

175175
%% {
176176

177-
require 'rubygems'
178177
require 'rdoc'
179178
require 'rdoc/markup/to_joined_paragraph'
180179
require 'rdoc/markdown/entities'

lib/rdoc/rdoc.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,6 @@ def remove_siginfo_handler
551551
end
552552

553553
begin
554-
require 'rubygems'
555-
556554
if Gem.respond_to? :find_files then
557555
rdoc_extensions = Gem.find_files 'rdoc/discover'
558556

@@ -572,4 +570,3 @@ def remove_siginfo_handler
572570
require 'rdoc/generator/darkfish'
573571
require 'rdoc/generator/ri'
574572
require 'rdoc/generator/pot'
575-

lib/rdoc/ri/paths.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ def self.gem_dir name, version
8282
# ri documentation.
8383

8484
def self.gemdirs filter = :latest
85-
require 'rubygems' unless defined?(Gem)
86-
8785
ri_paths = {}
8886

8987
all = Gem::Specification.map do |spec|
@@ -185,4 +183,3 @@ def self.system_dir
185183
end
186184

187185
end
188-

lib/rdoc/ri/task.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# frozen_string_literal: false
2-
require 'rubygems'
32
begin
43
gem 'rdoc'
54
rescue Gem::LoadError

lib/rdoc/rubygems_hook.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# frozen_string_literal: false
2-
require 'rubygems'
32
require 'rubygems/user_interaction'
43
require 'fileutils'
54
require 'rdoc'
@@ -251,4 +250,3 @@ def setup
251250
end
252251

253252
end
254-

lib/rdoc/task.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2323
#++
2424

25-
require 'rubygems'
2625
begin
2726
gem 'rdoc'
2827
rescue Gem::LoadError
@@ -328,4 +327,3 @@ module Rake
328327

329328
end
330329
# :startdoc:
331-

lib/rdoc/test_case.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# frozen_string_literal: false
2-
require 'rubygems'
3-
42
begin
53
gem 'minitest', '~> 4.0' unless defined?(Test::Unit)
64
rescue NoMethodError, Gem::LoadError

test/test_rdoc_markdown_test.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# frozen_string_literal: false
2-
require 'rubygems'
32
require 'minitest/autorun'
43
require 'pp'
54

@@ -1882,4 +1881,3 @@ def test_tidyness
18821881
end
18831882

18841883
end
1885-

test/test_rdoc_rubygems_hook.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# frozen_string_literal: false
2-
require 'rubygems'
32
require 'rubygems/test_case'
43
require 'rdoc/rubygems_hook'
54

@@ -249,4 +248,3 @@ def test_setup_unwritable
249248
end
250249

251250
end
252-

0 commit comments

Comments
 (0)