aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-26 06:49:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-26 06:49:46 +0000
commit522599861208bb705ec6d06b8ab43d4790ffd4f1 (patch)
tree1dc4582fdd105034f01d720c1900b38aa90160ca
parent083bddec3e4efbf8e1993424661a33c8bf8995ce (diff)
downloadruby-522599861208bb705ec6d06b8ab43d4790ffd4f1.tar.gz
* lib/pathname.rb (chop_basename, prepend_prefix): use o option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--lib/pathname.rb4
-rw-r--r--version.h4
3 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 3037125879..c2eb11c3ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Jan 26 15:49:42 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/pathname.rb (chop_basename, prepend_prefix): use o option.
+
Sun Jan 25 16:35:44 2009 Tanaka Akira <akr@fsij.org>
* ext/socket/socket.c (socket_s_ip_address_list): renamed from
diff --git a/lib/pathname.rb b/lib/pathname.rb
index 86f0f54800..2b25ca957d 100644
--- a/lib/pathname.rb
+++ b/lib/pathname.rb
@@ -274,7 +274,7 @@ class Pathname
# chop_basename(path) -> [pre-basename, basename] or nil
def chop_basename(path)
base = File.basename(path)
- if /\A#{SEPARATOR_PAT}?\z/ =~ base
+ if /\A#{SEPARATOR_PAT}?\z/o =~ base
return nil
else
return path[0, path.rindex(base)], base
@@ -296,7 +296,7 @@ class Pathname
def prepend_prefix(prefix, relpath)
if relpath.empty?
File.dirname(prefix)
- elsif /#{SEPARATOR_PAT}/ =~ prefix
+ elsif /#{SEPARATOR_PAT}/o =~ prefix
prefix = File.dirname(prefix)
prefix = File.join(prefix, "") if File.basename(prefix + 'a') != 'a'
prefix + relpath
diff --git a/version.h b/version.h
index ab05fa59aa..0f37481549 100644
--- a/version.h
+++ b/version.h
@@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.1"
-#define RUBY_RELEASE_DATE "2009-01-25"
+#define RUBY_RELEASE_DATE "2009-01-26"
#define RUBY_PATCHLEVEL 5000
#define RUBY_BRANCH_NAME "trunk"
@@ -8,7 +8,7 @@
#define RUBY_VERSION_TEENY 1
#define RUBY_RELEASE_YEAR 2009
#define RUBY_RELEASE_MONTH 1
-#define RUBY_RELEASE_DAY 25
+#define RUBY_RELEASE_DAY 26
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];