diff options
Diffstat (limited to 'ext/readline/readline.c')
-rw-r--r-- | ext/readline/readline.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c index fc254ce315..a27521e14a 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -15,6 +15,8 @@ ************************************************/ +#define READLINE_VERSION "0.1.5" + #ifdef RUBY_EXTCONF_H #include RUBY_EXTCONF_H #endif @@ -2119,6 +2121,8 @@ Init_readline(void) /* Version string of GNU Readline or libedit. */ rb_define_const(mReadline, "VERSION", version); + rb_define_const(mReadline, "GEM_VERSION", rb_str_new_cstr(READLINE_VERSION)); + rl_attempted_completion_function = readline_attempted_completion_function; #if defined(HAVE_RL_PRE_INPUT_HOOK) rl_pre_input_hook = (rl_hook_func_t *)readline_pre_input_hook; |