diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-07 19:16:10 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-07 19:16:10 +0000 |
commit | c223c92afdfeb8049b97e687533767c8177b4811 (patch) | |
tree | 3909901d4f3c49f07e4837fd372b9dc2dc680f67 | |
parent | 6b3661a5d7adc9a27cb9600210f1a0d06ce9cdf1 (diff) |
merge revision(s) 13957:
* eval.c (rb_alias): do not call hook functions until initialization
finishes. [ruby-talk:279538]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@16949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | eval.c | 3 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sun Jun 8 04:15:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * eval.c (rb_alias): do not call hook functions until initialization + finishes. [ruby-talk:279538] + Sun Jun 8 04:12:50 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp> * ext/win32ole/win32ole.c (ole_invoke): bug fix. [ruby-talk:279100] @@ -2168,6 +2168,9 @@ rb_alias(klass, name, def) st_insert(RCLASS(klass)->m_tbl, name, (st_data_t)NEW_METHOD(NEW_FBODY(body, def, origin), NOEX_WITH_SAFE(orig->nd_noex))); + + if (!ruby_running) return; + if (singleton) { rb_funcall(singleton, singleton_added, 1, ID2SYM(name)); } @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2008-06-08" #define RUBY_VERSION_CODE 185 #define RUBY_RELEASE_CODE 20080608 -#define RUBY_PATCHLEVEL 149 +#define RUBY_PATCHLEVEL 150 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 |