akr
5b7b60bb59
* test/ruby/test_beginendblock.rb: remove temporally files early.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 14:09:21 +00:00
akr
bc893dcf07
* test/ruby/test_autoload.rb: remove temporally files early.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 13:43:22 +00:00
akr
d5e9b69629
* test/ruby/test_argf.rb: use temporally directory.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 13:00:57 +00:00
nobu
ea3edd2744
mkmf.rb: fix typo
...
* lib/mkmf.rb (configuration): fix typo, should never return nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 12:07:19 +00:00
akr
4db96fe42c
* test/openssl/test_config.rb: remove temporally files early.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 10:42:40 +00:00
nobu
0ff0133984
fix typo
...
* error.c (rb_builtin_type_name): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 09:25:18 +00:00
nobu
6e018e3f49
error.c: map by index
...
* error.c (rb_builtin_type_name): map by index.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 08:45:29 +00:00
nobu
40ce1eb403
warning: no indirect flag
...
* regparse.c (is_onechar_cclass): remove "found" indirect flag to
suppress warnings by gcc 4.7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 08:41:01 +00:00
nobu
02f802f2ce
vm.c: remove unused variables
...
* vm.c (invoke_block_from_c), vm_insnhelper.c (vm_call_cfunc): remove unused variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 08:40:17 +00:00
nobu
f9c014d008
empty_p: optimize and warnings
...
* ext/dbm/dbm.c (fdbm_empty_p): not empty if first key exists.
suppress warnngs by gcc 4.7 -Wstrict-overflow.
* ext/sdbm/init.c (fsdbm_empty_p): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 07:44:17 +00:00
nobu
5a03c25690
mkmf.rb: hack for -framework
...
* lib/mkmf.rb (have_framework): get rid of separating -framework
option and its argument and dealing with the argument as a library
or an object name. if $LDFLAGS were an array...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 07:17:43 +00:00
shugo
5d743d7662
* ext/curses/extconf.rb: support PDCurses. patched by Luis Lavena.
...
[ruby-core:46485] [Feature #6735 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 07:11:20 +00:00
nobu
83dd555675
* properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 07:08:09 +00:00
shugo
bbaf9b2800
* parse.y (primary): allow an empty grouped expression as the
...
operand of the not operator (e.g., not ()).
[ruby-core:45976] [Bug #6674 ]
* parse.y (parser_yylex): show no warning for a grouped expression
as the operand of the not operator (e.g., not (a)) or as an
argument of a method call without parentheses (e.g., foo (a)).
[ruby-core:39050] [Bug #5214 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 07:05:12 +00:00
ko1
e9a91d2c95
* thread.c (rb_thread_call_without_gvl2): added.
...
it can skip last CHECK_INTS. See document for more details.
Document about it was updated a bit.
* include/ruby/thread.h (decl. of rb_thread_call_without_gvl2): added.
* thread.c (rb_thread_call_with_gvl): remove "EXPERIMENTAL!"
warning from a document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 06:47:43 +00:00
nobu
6684ade9a3
configure.in: EXTDLDFLAGS
...
* configure.in (EXTDLDFLAGS): split options for each extension
libraries, and unused in ruby.pc. [Bug #6734 ]
* lib/mkmf.rb (MakeMakefile#configuration): add EXTDLDFLAGS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 05:53:23 +00:00
ko1
eff4b2b2e1
* thread.c: fix last commit miss.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 05:47:48 +00:00
ko1
28144433b2
* thread.c (rb_threadptr_async_errinfo_*): manage async errors queue.
...
Async events such as an exception throwed by Thread#raise,
Thread#kill and thread termination (after main thread termination)
will be queued to th->async_errinfo_queue.
- clear: clear the queue.
- enque: enque err object into queue.
- deque: deque err object from queue.
- active_p: return 1 if the queue should be checked.
rb_thread_t#thrown_errinfo was removed.
* vm_core.h: add declarations of rb_threadptr_async_errinfo_*.
remove rb_thread_t#thrown_errinfo field and
add rb_thread_t#async_errinfo_queue (queue body: Array),
rb_thread_t#async_errinfo_queue_checked (flag),
rb_thread_t#async_errinfo_mask_stack(Array, not used yet).
* vm.c (rb_thread_mark): fix a mark function.
* cont.c (rb_fiber_start): enque an error.
* process.c (after_fork): clear async errinfo queue.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 05:46:40 +00:00
shyouhei
18c04b880a
add casts
...
* pack.c: (ditto) bitwise operations are not char. Apply explicit
casts on them.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 05:29:24 +00:00
shyouhei
8c36fc30c2
add casts
...
* encoding.c (load_encoding): explicit cast to suppress warning.
Though the cast truncates some bits, from heuristic analysis I
believe it is OK to do so here.
* bignum.c (rb_cstr_to_inum): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 04:46:04 +00:00
naruse
39b33658e3
* lib/benchmark.rb: Fix Benchmark.benchmark output with an empty
...
caption. patched by Benoit Daloze. [ruby-core:45719] [Bug #6610 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 03:56:58 +00:00
drbrain
9844bc02a0
* lib/debug.rb: Added toplevel documentation. Based on patch by Oscar
...
Del Ben. [Bug #6743 ], fixes #146 on github.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 01:02:12 +00:00
usa
7a514fc6f1
* test/win32ole/test_win32ole_event.rb (TestWIN32OLE_EVENT): use
...
standard skip method to skip tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 00:36:01 +00:00
drbrain
fe6aa0e16a
* lib/logger.rb: Updated typos and output to match modern Logger
...
output. Patch by Marcus Stollsteimer. [Bug #6738 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 00:27:04 +00:00
xibbar
08f46f0818
Wed Jul 18 08:01:10 2012 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
...
* test/rss/test_dublincore.rb: update test for CGI.escapeHTML.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-17 23:04:48 +00:00
xibbar
c47cca2f85
Wed Jul 18 07:59:29 2012 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
...
* lib/cgi/util.rb (CGI.escapeHTML,unescapeHTML): Add ' for HTML5 escaping.
[Feature #6620 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-17 23:04:46 +00:00
naruse
ba2ed2edeb
Add documentation about Array#join(nil). [Bug#5915]
...
We talked about this and it is like following:
* maybe ary.join(nil) should always use empty string as a separator,
but it disables to specify $, as a seprator through variables.
* if nil means '', the conversion is to_s. to_s is not accepted.
* nil is a special value, so special behavior is allowed.
* use of $ variables is not recommended, so it is not worth to change
current behavior.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-17 19:07:15 +00:00
naruse
85dc1ab23b
Add tests for r36415.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-17 18:08:40 +00:00
svn
3d68a73687
* 2012-07-18
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-17 16:13:13 +00:00
ayumin
b69f55a673
* lib/open-uri.rb: delete space.
...
* test/psych/test_alias_and_anchor.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-17 16:13:10 +00:00
akr
cb0d480532
* lib/open-uri.rb: call io.close! for Tempfile.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-17 13:17:49 +00:00
naruse
da74f0f426
Support IPv6 address. [Bug #6746 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-17 08:41:21 +00:00
naruse
c2bcae864e
* proc.c (rb_proc_arity): return normal value (not -n-1) if it is not
...
a labmda, or it is a labmda and no arg_opts. [Bug #5694 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-17 07:47:52 +00:00
tenderlove
7d1f53e782
* ext/psych/lib/psych/visitors/to_ruby.rb: strings with YAML anchors
...
are properly referenced. Patched by Joe Rafaniello via Github:
https://github.com/tenderlove/psych/pull/69
* ext/psych/lib/psych/visitors/yaml_tree.rb: ditto
* test/psych/test_alias_and_anchor.rb: test for change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 19:00:59 +00:00
marcandre
43395d53c9
Revert of r36411, as does not distinguish proc from lambda
...
* proc.c (rb_proc_arity): Fix Proc#arity in case of optional arguments
[bug #5694 ] [rubyspec:b8b259] [rubyspec:184c8100f]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 15:28:34 +00:00
svn
1e18c8ebb2
* 2012-07-17
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 15:19:09 +00:00
marcandre
466f7f6c81
Revert r33924.
...
* proc.c (rb_proc_arity): Fix Proc#arity in case of optional arguments
[bug #5694 ] [rubyspec:b8b259] [rubyspec:184c8100f]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 15:19:03 +00:00
akr
fae19d6229
* bignum.c (rb_integer_float_cmp): use FIXNUM_MIN and FIXNUM_MAX,
...
instead of LONG_MIN and LONG_MAX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 14:30:24 +00:00
akr
0e2aa330ec
* numeric.c (flo_to_s): use the exponential form if the integer part
...
is longer than or equal DBL_DIG.
[ruby-dev:45960] [ruby-trunk - Bug #6741 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 13:52:10 +00:00
ayumin
e985c49e64
* ext/readline/readline.c: fixed docs. [Bug #6740 ][ruby-core:46501]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 13:08:04 +00:00
akr
04f09ef8a1
* bignum.c (rb_integer_float_eq): new function.
...
(rb_big_eq): use rb_integer_float_eq.
* internal.h (rb_integer_float_eq): declared.
* numeric.c (flo_eq): use rb_integer_float_eq.
(fix_equal): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 10:39:42 +00:00
akr
858a832d40
* bignum.c (rb_integer_float_cmp): rename a local variable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 10:02:59 +00:00
akr
cf469774d1
* bignum.c (rb_integer_float_cmp): renamed from rb_big_float_cmp.
...
* internal.h: follow the above change.
* numeric.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 09:41:25 +00:00
akr
94735e9e54
* bignum.c (rb_big_float_cmp): compare an integer and float precisely.
...
[ruby-core:31376] [Bug #3589 ] reported by Tomasz Wegrzanowski.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 09:08:58 +00:00
akr
984729ba30
* bignum.c (rb_big_float_cmp): support fixnum for argument x.
...
* numeric.c (fix_equal): use rb_big_float_cmp.
(fix_cmp): ditto.
(fix_gt): ditto.
(fix_ge): ditto.
(fix_lt): ditto.
(fix_le): ditto.
(flo_eq): ditto.
(flo_cmp): use rb_big_float_cmp for fixnum argument.
(flo_gt): ditto.
(flo_ge): ditto.
(flo_lt): ditto.
(flo_le): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 08:44:32 +00:00
ayumin
3fe481ae72
fixed ChangeLog
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 08:15:12 +00:00
ayumin
d570a76cba
* test/fileutils/test_fileutils.rb: add test for FileUtils#uptodate?
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 08:15:08 +00:00
ayumin
e6021a1be2
* lib/fileutils.rb (uptodate?): remove useless parameter.
...
patched by Oscar Del Ben.[Bug #6708 ][ruby-core:46256]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 08:15:05 +00:00
akr
8d0b1c2518
* bignum.c (rb_big_eq): use rb_big_float_cmp.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 06:38:28 +00:00
akr
6dd65bb377
* internal.h (rb_big_float_cmp): declared.
...
* bignum.c (rb_big_float_cmp): extracted from rb_big_cmp and big_op.
(rb_big_cmp): use rb_big_float_cmp.
(big_op): ditto.
* numeric.c (flo_cmp): use rb_big_float_cmp.
(flo_gt): ditto.
(flo_ge): ditto.
(flo_lt): ditto.
(flo_le): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-16 06:02:21 +00:00