summaryrefslogtreecommitdiff
path: root/lib/rubygems.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-23 23:04:38 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-23 23:04:38 +0000
commite5f7bf8442028299833bc3a3323e9a48080d9d80 (patch)
treeefad76af0fb12872c5a6d28518e48431c8925492 /lib/rubygems.rb
parent2f8fb754168e213d7d4a360f1b3217f2749651d3 (diff)
* backport r32981 and r32982 from trunk.
* ext/dl: Add documentation. Patch by Vincent Batts. [Ruby 1.9 - Bug #5192] * ext/.document (fiddle): Remove duplicate entry * ext/fiddle: Complete documentation of Fiddle. Patch by Vincent Batts. [#5192] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r--lib/rubygems.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index 8a7bfea551..f469deb9a8 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -118,7 +118,7 @@ require "rubygems/deprecate"
# -The RubyGems Team
module Gem
- VERSION = '1.8.8'
+ VERSION = '1.8.9'
##
# Raised when RubyGems is unable to load or activate a gem. Contains the
@@ -1027,7 +1027,9 @@ module Gem
# Use the +home+ and +paths+ values for Gem.dir and Gem.path. Used mainly
# by the unit tests to provide environment isolation.
- def self.use_paths(home, paths=[])
+ def self.use_paths(home, *paths)
+ paths = nil if paths == [nil]
+ paths = paths.first if Array === Array(paths).first
self.paths = { "GEM_HOME" => home, "GEM_PATH" => paths }
# TODO: self.paths = home, paths
end