Skip to content

Commit

Permalink
Merge pull request #340 from luizluca/master
Browse files Browse the repository at this point in the history
Allow rdoc to run without gem
  • Loading branch information
Zachary Scott committed Dec 20, 2015
2 parents 292df1a + a608b2d commit e682367
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rdoc.rb
Expand Up @@ -109,6 +109,8 @@ class Error < RuntimeError; end
def self.load_yaml
begin
gem 'psych'
rescue NameError => e # --disable-gems
raise unless e.name == :gem
rescue Gem::LoadError
end

Expand Down
2 changes: 2 additions & 0 deletions lib/rdoc/text.rb
Expand Up @@ -10,6 +10,8 @@

begin
gem 'json'
rescue NameError => e # --disable-gems
raise unless e.name == :gem
rescue Gem::LoadError
end

Expand Down

0 comments on commit e682367

Please sign in to comment.