From 0afddf7b0a8ebb1695b87a4aee75c06544bd5563 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 16 Aug 2010 22:38:46 +0000 Subject: [PATCH] Tue Aug 17 07:38:43 2010 Nobuyoshi Nakada * 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 --- ChangeLog | 5 +++++ gem_prelude.rb | 2 +- lib/rubygems.rb | 2 +- test/rubygems/test_gem.rb | 2 ++ version.h | 4 ++-- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index b52ed2324b..6a0595f815 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Aug 17 07:38:43 2010 Nobuyoshi Nakada + + * gem_prelude.rb, lib/rubygems.rb (Gem.suffixes): include empty + suffix. [ruby-core:31730] + Mon Aug 16 22:16:12 2010 Tanaka Akira * ext/pathname/pathname.c (path_basename): unused variable removed. diff --git a/gem_prelude.rb b/gem_prelude.rb index 55fd9136dc..ffb3e9a63d 100644 --- a/gem_prelude.rb +++ b/gem_prelude.rb @@ -35,7 +35,7 @@ if defined?(Gem) then } def self.suffixes - ['.rb', ".#{RbConfig::CONFIG["DLEXT"]}"] + ['', '.rb', ".#{RbConfig::CONFIG["DLEXT"]}"] end def self.dir diff --git a/lib/rubygems.rb b/lib/rubygems.rb index e4360c616e..6c13f7bce2 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -902,7 +902,7 @@ module Gem # Suffixes for require-able paths. def self.suffixes - ['.rb', ".#{RbConfig::CONFIG["DLEXT"]}"] + ['', '.rb', ".#{RbConfig::CONFIG["DLEXT"]}"] end unless defined?(suffixes) ## diff --git a/test/rubygems/test_gem.rb b/test/rubygems/test_gem.rb index eacb11a290..91dbe226b5 100644 --- a/test/rubygems/test_gem.rb +++ b/test/rubygems/test_gem.rb @@ -291,6 +291,8 @@ class TestGem < RubyGemTestCase ] assert_equal expected, Gem.find_files('foo/discover') + bug3701 = '[ruby-core:31730]' + assert_equal expected, Gem.find_files('foo/**.rb'), bug3701 ensure assert_equal cwd, $LOAD_PATH.shift end diff --git a/version.h b/version.h index 52b19e05ac..a526c0e8d5 100644 --- a/version.h +++ b/version.h @@ -1,5 +1,5 @@ #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_BRANCH_NAME "trunk" @@ -8,7 +8,7 @@ #define RUBY_VERSION_TEENY 1 #define RUBY_RELEASE_YEAR 2010 #define RUBY_RELEASE_MONTH 8 -#define RUBY_RELEASE_DAY 16 +#define RUBY_RELEASE_DAY 17 #include "ruby/version.h"