Tue Aug 17 07:38:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>

* gem_prelude.rb, lib/rubygems.rb (Gem.suffixes): include empty
	  suffix.  [ruby-core:31730]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-08-16 22:38:46 +00:00
parent adff6d4477
commit 0afddf7b0a
5 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
Tue Aug 17 07:38:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* gem_prelude.rb, lib/rubygems.rb (Gem.suffixes): include empty
suffix. [ruby-core:31730]
Mon Aug 16 22:16:12 2010 Tanaka Akira <akr@fsij.org> Mon Aug 16 22:16:12 2010 Tanaka Akira <akr@fsij.org>
* ext/pathname/pathname.c (path_basename): unused variable removed. * ext/pathname/pathname.c (path_basename): unused variable removed.

View File

@ -35,7 +35,7 @@ if defined?(Gem) then
} }
def self.suffixes def self.suffixes
['.rb', ".#{RbConfig::CONFIG["DLEXT"]}"] ['', '.rb', ".#{RbConfig::CONFIG["DLEXT"]}"]
end end
def self.dir def self.dir

View File

@ -902,7 +902,7 @@ module Gem
# Suffixes for require-able paths. # Suffixes for require-able paths.
def self.suffixes def self.suffixes
['.rb', ".#{RbConfig::CONFIG["DLEXT"]}"] ['', '.rb', ".#{RbConfig::CONFIG["DLEXT"]}"]
end unless defined?(suffixes) end unless defined?(suffixes)
## ##

View File

@ -291,6 +291,8 @@ class TestGem < RubyGemTestCase
] ]
assert_equal expected, Gem.find_files('foo/discover') assert_equal expected, Gem.find_files('foo/discover')
bug3701 = '[ruby-core:31730]'
assert_equal expected, Gem.find_files('foo/**.rb'), bug3701
ensure ensure
assert_equal cwd, $LOAD_PATH.shift assert_equal cwd, $LOAD_PATH.shift
end end

View File

@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.3" #define RUBY_VERSION "1.9.3"
#define RUBY_RELEASE_DATE "2010-08-16" #define RUBY_RELEASE_DATE "2010-08-17"
#define RUBY_PATCHLEVEL -1 #define RUBY_PATCHLEVEL -1
#define RUBY_BRANCH_NAME "trunk" #define RUBY_BRANCH_NAME "trunk"
@ -8,7 +8,7 @@
#define RUBY_VERSION_TEENY 1 #define RUBY_VERSION_TEENY 1
#define RUBY_RELEASE_YEAR 2010 #define RUBY_RELEASE_YEAR 2010
#define RUBY_RELEASE_MONTH 8 #define RUBY_RELEASE_MONTH 8
#define RUBY_RELEASE_DAY 16 #define RUBY_RELEASE_DAY 17
#include "ruby/version.h" #include "ruby/version.h"