nobu
d5a1efdc61
* configure.in (RUBY_EXTERN): ignore invalid attribute.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-22 03:58:18 +00:00
nobu
cc703f2d56
* configure.in: fix for older autoconf.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-22 03:30:59 +00:00
nobu
062b4d6752
* include/ruby/{intern,io}.h: add missing prototypes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-22 03:02:40 +00:00
nobu
0bd71ff354
* configure.in (XCFLAGS): use -fvisibility=hidden if possible.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 21:38:25 +00:00
nobu
6abe539cfc
* configure.in (RMDIR): use --ignore-fail-on-non-empty if possible.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 21:26:56 +00:00
nobu
3afa01255d
* configure.in (RUBY_EXTERN): FUNCTION-BODY was missing.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 18:23:09 +00:00
drbrain
3befc304b5
Fix signature of rb_ensure and rb_rescue to match the implementation in README.EXT
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 18:03:34 +00:00
nobu
2527936cfc
* template/fake.rb.in: get rid of embeding an absolute path.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 14:07:21 +00:00
evan
6113a5add0
Load gems properly. Fixes [ruby-core:31377]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 06:30:40 +00:00
naruse
6e2850aa46
* sprintf.c: add short documentation about named reference.
...
[ruby-core:31294]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 06:16:07 +00:00
nobu
3f606b9aca
* parse.y (local_push_gen): disable unused variable warnings in
...
eval. [ruby-dev:41869]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 06:00:25 +00:00
naruse
ad717fa7e6
* vm_method.c (rb_method_boundp): revert r28543, r28564.
...
They may be merged in Ruby 2.0. [ruby-core:31217]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 05:00:53 +00:00
marcandre
5647b2cd88
* lib/uri/common.rb: Have URI#route_to, URI#route_from accept
...
string-like arguments [ruby-core:30961]
* lib/uri/generic.rb: ditto for URI.join, URI#merge
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 04:38:40 +00:00
mame
c618db17ee
* lib/cmath.rb (CMath#cbrt): cbrt should accept a negative real
...
numbers. [ruby-core:31234]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 03:43:43 +00:00
marcandre
770af8649a
* lib/uri/common.rb: Have URI() and URI.join accept URI objects in addition
...
to strings. [ruby-core:30960]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 03:32:41 +00:00
nobu
9a89e864ea
* util.c (ruby_hdtoa): renamed from BSD__hdtoa.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 02:55:10 +00:00
evan
9d0d4d8a17
Be sure to load the custom require even if --disable-rubygems was used
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-20 18:36:25 +00:00
evan
bb43e6892c
Pull rubygem's custom require into gem_prelude
...
This solves the gem loading issue by never touching $LOAD_PATH
in gem_prelude and instead loading all of rubygems more quickly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-20 18:30:46 +00:00
nobu
06e935a126
* include/ruby/ruby.h (RSTRING_GETMEM): new macro to get ptr and
...
len at once.
* string.c (rb_str_cmp, str_eql, rb_str_eql): trivial improvements.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-20 09:39:22 +00:00
nobu
6de2f601af
* ext/fiddle/closure.c (closure_data_type),
...
ext/fiddle/function.c (function_data_type): rb_data_type_t has
changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-20 09:23:08 +00:00
nari
81cc3b2655
* gc.c: don't call after_gc_sweep() after when garbage_collect()
...
was called, because rb_sweep_method_entry() free live unlinked
method entries. [ruby-core:31169]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-20 06:14:40 +00:00
shyouhei
a52dd6cc5c
* ext/socket/raddrinfo.c (rb_getaddrinfo): according to my valgrind output this variable should be initialized beforehand.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-20 04:00:46 +00:00
nobu
a3419bc919
* io.c (io_flush_buffer): write and buffer operations should be
...
monolithic. [ruby-core:31348]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-20 03:50:41 +00:00
nobu
878384483d
* lib/fileutils.rb (FileUtils::Entry_#copy): check file name
...
spearator boundary. [ruby-core:31360]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-20 03:27:59 +00:00
akr
a0d5258df0
* ext/pathname/pathname.c (get_strpath): check the type.
...
(path_initialize): bypass to_path call for T_STRING.
(path_freeze): implemented.
* ext/pathname/lib/pathname.rb (Pathname#freeze): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-19 09:35:31 +00:00
nobu
87d8a3b9ce
* array.c (rb_ary_clear): should not unshare embedded array, and
...
should make unshared array embedded.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-19 03:33:33 +00:00
nobu
4d5eee3602
* NEWS (Kernel#instance_eval): add an incompatible change since
...
the 1.9.1 release. [ruby-core:31336]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-19 00:01:02 +00:00
nobu
cc6294a73a
* include/ruby/ruby.h (rb_data_type_t): add new feature macros.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-18 20:46:13 +00:00
nobu
10a90fbce8
* array.c (rb_ary_clear): no need to duplicate buffer just before
...
clearing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-18 12:20:14 +00:00
nobu
25b9eb5e57
* include/ruby/ruby.h (rb_data_type_t): restructured. [ruby-dev:41862]
...
add parent member.
* error.c (rb_typeddata_inherited_p): new function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-18 07:31:54 +00:00
akr
17749e5168
* ext/pathname/pathname.c (path_initialize): return a value.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-17 16:10:19 +00:00
akr
03bb750d56
* ext/pathname/lib/pathname.rb (Pathname#initialize): removed.
...
* ext/pathname/pathname.c (path_initialize): implemented.
(get_strpath): new function.
(set_strpath): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-17 15:03:31 +00:00
nobu
327da86aaf
* lib/test/unit.rb (MiniTest::Unit#process_args): refactored.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-17 10:01:49 +00:00
akr
c68de8ee08
* tool/file2lastrev.rb: don't depend on pathname.rb if File.realpath
...
is available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-17 09:30:54 +00:00
nobu
e4820b1cfa
* util.c (ruby_add_suffix): fixed type warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-17 05:10:22 +00:00
akr
4bf3cb5ba9
* ext/pathname/lib/pathname.rb: moved from lib/pathname.rb.
...
require pathname.so.
* ext/pathname/pathname.c: new file to define empty Pathname class.
* ext/pathname/extconf.rb: new file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-17 04:50:19 +00:00
nobu
c04d79f867
* thread.c (rb_thread_wakeup_alive): split from rb_thread_wakeup.
...
merged from r13476. c.f. [ruby-core:31320]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-17 04:04:51 +00:00
nobu
43f3e3779c
* lib/test/unit.rb: MiniTest::Unit is different class from
...
Test::Unit, and install runner before loading test/minitest.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-17 01:08:04 +00:00
mame
d98d3fe12a
* lib/test/unit.rb, bin/testrb, test/runner.rb: revert r28655, which
...
broke test-all.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-16 13:09:44 +00:00
nobu
96863dc358
* lib/test/unit.rb (Test::Unit.setup_argv): run tests only when
...
any tests have not run.
* bin/testrb, test/runner.rb: use Test::Unit.start.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-16 05:58:39 +00:00
nobu
adf37e2fde
* tool/rbinstall.rb (ext-arch): prune directories start with '-'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-16 03:06:10 +00:00
mame
b79e96ae62
* numeric.c (fix_divide): must not use rb_rational_new1 for coercion
...
because it returns an argument itself when canonical mode is set.
[ruby-core:31279]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-15 12:55:23 +00:00
mame
dc7ba7e49a
* proc.c (bm_free): fix memory leak. [ruby-core:30869] [Bug #3466 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-15 12:39:36 +00:00
naruse
b4608406f1
* regexec.c (onig_search): don't skip non-ANYCHARs when
...
.* fails to match. This causes to fail matching
ANYCHAR_STAR with LOOK_BEHIND. This fix is workaround
and disable the optimization. [ruby-dev:41851]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-15 06:55:42 +00:00
tenderlove
1df8d6dbc3
* lib/rdoc/markup/attribute_manager.rb: fixing ri output when special
...
characters are inside html tags. Thanks Tomo Kazahaya! [Bug #3512 ]
* test/rdoc/test_attribute_manager.rb: corresponding test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-14 21:13:41 +00:00
akr
b782aea75f
* time.c (guess_local_offset): use the UTC offset of an older date on
...
64bit time_t environment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-14 21:05:00 +00:00
tenderlove
8742248884
* lib/test/unit.rb (setup_argv): convert to using optparse, adding
...
--help and -I. [ruby-core:30154]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-14 17:44:51 +00:00
akr
8ffda7cd14
* time.c (localtime_with_gmtoff_zone): renamed from
...
localtime_with_gmtoff and return the timezone abbreviation name.
(guess_local_offset): return the isdst and timezone abbreviation name.
(localtimew): use the returned isdst and timezone abbreviation name.
[ruby-core:31275]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-14 15:38:30 +00:00
nobu
0f36e8fc03
* eval.c (frame_func_id), vm_eval.c (rb_iterate),
...
vm_insnhelper.c (vm_yield_with_cfunc): as the name of a C-level
block, use the current method ID at the creation point.
[ruby-dev:41852]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-14 11:23:10 +00:00
naruse
9ac0263c2f
* regexec.c (match_at): add end point to enclen's argument.
...
This only effect on compilinig with -DONIG_DEBUG_MATCH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-14 09:22:39 +00:00