Skip to content

Commit

Permalink
merge revision(s) 13957:
Browse files Browse the repository at this point in the history
	* 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_6@16951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
shyouhei committed Jun 7, 2008
1 parent 24de771 commit 65035f9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
Sun Jun 8 04:16:35 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:14:16 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>

* ext/win32ole/win32ole.c (ole_invoke): bug fix. [ruby-talk:279100]
Expand Down
3 changes: 3 additions & 0 deletions eval.c
Expand Up @@ -2196,6 +2196,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));
}
Expand Down
2 changes: 1 addition & 1 deletion version.h
Expand Up @@ -2,7 +2,7 @@
#define RUBY_RELEASE_DATE "2008-06-08"
#define RUBY_VERSION_CODE 186
#define RUBY_RELEASE_CODE 20080608
#define RUBY_PATCHLEVEL 148
#define RUBY_PATCHLEVEL 149

#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8
Expand Down

0 comments on commit 65035f9

Please sign in to comment.