marcandre
a2ae7bccf8
* lib/matrix.rb: Add @- and @+ for Matrix and Vector.
...
patch by gogo tanaka [#10068 ] [#10069 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 20:18:35 +00:00
marcandre
49e9f4714e
* NEWS: Move Matrix changes to the right place
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 20:16:55 +00:00
normal
9bb7dfa247
normalize reference to Timeout::Error
...
From: John Bachir <j@jjb.cc>
* bootstraptest/test_io.rb (assert_finish):
normalize rescue for Timeout::Error
* lib/net/ftp.rb (Net#read_timeout): ditto for doc
* lib/resolv.rb (Resolv::ResolvTimeout): ditto for subclass
* lib/webrick/httprequest.rb (_read_data): ditto for rescue
* sample/timeout.rb (p timeout): ditto for call
* test/drb/drbtest.rb (test_06_timeout): ditto
* test/ruby/test_readpartial.rb (test_open_pipe): ditto
* test/thread/test_queue.rb (test_queue_thread_raise): ditto
* thread.c (rb_thread_s_handle_interrupt): ditto for doc
[ruby-core:65481] [misc #10339 ]
TimeoutError is a legacy constant, Timeout::Error is the canonical constant.
This patch normalizes all code and comments to reference Timeout::Error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 20:00:09 +00:00
odaira
554577015f
test/ruby/test_process.rb (TestProcess#test_setsid): AIX does not allow Process::getsid(pid) when pid is in a different session
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 19:40:13 +00:00
odaira
185c85b26e
test/ruby/test_rubyoptions.rb (TestRubyOptions#test_encoding): On AIX, locale_charmap is ISO-8859-1 with LANG=C. This means the source encoding of stdin is ISO-8859-1, so "invalid multibyte char" error does not occur
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 19:33:48 +00:00
marcandre
56d5728589
* lib/matrix.rb: Add Matrix#laplace_expansion.
...
patch by gogo tanaka [#10073 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 19:30:48 +00:00
svn
19a1257d6c
* 2014-10-08
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 19:30:06 +00:00
marcandre
eb9c3e7120
* lib/matrix.rb: Add Vector.basis.
...
Based on patch by gogo tanaka [#10072 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 19:29:53 +00:00
nobu
2ebafed88a
signal.c: get rid of deadlock by discarded signals
...
* signal.c (rb_f_kill): get rid of deadlock as unhandled and
discarded signals do not make interrupt_cond signaled.
based on the patch by Kazuki Tsujimoto at [ruby-dev:48606].
[Bug #9820 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 14:40:16 +00:00
suke
1bb2721e4b
ext/win32ole/win32ole_method.c: use typed data.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 13:44:45 +00:00
suke
ab73066cf3
ext/win32ole/win32ole_param.c: refactoring
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 12:47:58 +00:00
svn
cfd359ca28
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 12:45:10 +00:00
suke
abd783434a
ext/win32ole/win32ole_method.c: refactoring. add
...
olemethod_data_get_struct to wrap Data_Get_Struct.
ext/win32ole/win32ole_method.h: ditto.
ext/win32ole/win32ole_param.c (oleparam_ole_param):
call olemethod_data_get_struct instead of Data_Get_Struct.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 12:44:53 +00:00
nobu
aabdfeaca3
configure.in: remove arch options from CXXFLAGS
...
* configure.in (RUBY_UNIVERSAL_ARCH): remove arch options from
CXXFLAGS, not only CFLAGS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 02:28:13 +00:00
nobu
f18065f469
etc.c: try confstr on Mac OS X
...
* ext/etc/etc.c (etc_systmpdir): try user temporary directory by
confstr() on Mac OS X.
c.f. http://www.opensource.apple.com/source/ruby/ruby-104/patches/ext_etc_etc.c.diff
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 02:17:10 +00:00
nobu
9b6a8da0eb
configure.in: off_t for struct stat.st_size
...
* configure.in (struct stat.st_size): prefer off_t over int, long,
and so on. inspired by
http://www.opensource.apple.com/source/ruby/ruby-104/patches/config.h.ed
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 01:48:18 +00:00
svn
8a0b7f6479
* 2014-10-07
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 01:37:54 +00:00
nobu
14ae8f6373
configure.in: fix quoting brackets
...
* configure.in (RUBY_UNIVERSAL_ARCH): fix missing quoting
brackets. incorporated from
http://www.opensource.apple.com/source/ruby/ruby-104/patches/configure.diff
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-07 01:37:41 +00:00
suke
a60c5a1945
ext/win32ole/win32ole_param.c: use typed data.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-06 14:35:43 +00:00
nobu
0ca714fa1a
symbol.h: move struct RSymbol
...
* symbol.h (struct RSymbol): move from internal.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-06 13:36:45 +00:00
usa
8474ebad8a
* error.c: update exception tree. [DOC]
...
reported by @hemge via twitter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-06 12:43:51 +00:00
odaira
01a7a62d2b
configure.in: Fix typo. [Bug #9914 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-06 09:45:25 +00:00
nobu
998befe8e6
signal.c: send signal unless handled
...
* signal.c (rb_f_kill): should not ignore signal unless the
default handler is registered. [ruby-dev:48592] [Bug #9820 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-06 07:23:06 +00:00
nobu
559154310f
test_string.rb: enable huge test only on possible platforms
...
* test/ruby/test_string.rb (test_LSHIFT_neary_long_max): enable
only on platforms where string size range is smaller than memory
space. this test does not make sense but just wastes memory and
time on other platforms, as it is hardly possible that a string
size becomes neary LONG_MAX if long size equals pointer size.
[ruby-core:65410] [Bug #10325 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-06 07:06:49 +00:00
nobu
986a893d7a
symbol.c: junk-base attrset
...
* symbol.c (rb_enc_symname_type): allow junk-base attrset ID
unless the stem is not an attrset name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-06 03:08:48 +00:00
nobu
e14440e544
unicode_norm_gen.rb: freeze
...
* tool/unicode_norm_gen.rb: freeze strings and tables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-06 03:08:25 +00:00
nobu
2b6fa9eb0d
unicode_norm_gen.rb: us-ascii
...
* tool/unicode_norm_gen.rb (Integer#to_UTF8): escape non-ascii
code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-06 03:08:13 +00:00
nobu
240b12c6fc
unicode_norm_gen.rb: optimize concatenation
...
* tool/unicode_norm_gen.rb: optimization by string literal
concatenation instead of runtime concatenation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-06 03:08:09 +00:00
duerst
daea1a5f3a
tool/unicode_norm_gen.rb: Adding/tweaking comments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-06 02:21:23 +00:00
duerst
42b382841c
tool/unicode_norm_gen.rb: Adjusted directory paths.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-06 01:58:01 +00:00
svn
a3a2a6c79c
* properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-06 01:27:47 +00:00
svn
cc8a255d25
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-06 01:27:43 +00:00
duerst
33447b80d5
tool/unicode_norm_gen.rb: Data generation script imported from
...
https://github.com/duerst/eprun/blob/master/lib/generate.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-06 01:27:34 +00:00
duerst
0fb67d59b2
tool/downloader.rb: Adjust example in documentation for Downloader.download.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-06 01:15:23 +00:00
duerst
550406c016
lib/unicode_normalize: New folder for Unicode normalization functionality
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-06 01:07:09 +00:00
svn
eb4e5247fc
* 2014-10-06
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-05 15:31:50 +00:00
nobu
e1b5111ff4
io.c: ID instead of Symbol
...
* io.c (get_kwargs_exception): rb_get_kwargs() expects IDs, but
not Symbols.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-05 15:31:38 +00:00
akr
9deb5262d8
update doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-05 14:44:18 +00:00
nobu
bb318692a6
digest/*/extconf.rb: do not link openssl when using bundled
...
* ext/digest/{md5,rmd160,sha1,sha2}/extconf.rb: configure OpenSSL
only if bundled libraries is not used, so that OpenSSL is not
linked unnecessarily. [ruby-core:65404] [Bug #10324 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-05 02:03:55 +00:00
nobu
38dbbf33b0
rmd160/extconf.rb: fix function name
...
* ext/digest/rmd160/extconf.rb: fix transform function name to
check. [ruby-core:65091] [Bug #10252 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-05 01:38:52 +00:00
nobu
acf1ea1ab4
psych: typed data
...
* ext/psych/psych_emitter.c (psych_emitter_type): turn into typed
data.
* ext/psych/psych_parser.c (psych_parser_type): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 23:33:19 +00:00
nobu
163cb5b43d
openssl: typed data
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 23:33:15 +00:00
nobu
1e46f02394
json/parser: typed data
...
* ext/json/parser/parser.rl (JSON_Parser_type): turn into typed
data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 23:33:11 +00:00
nobu
bdfc2e2942
json/generator: typed data
...
* ext/json/generator/generator.c (JSON_Generator_State_type): turn
into typed data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 23:33:09 +00:00
nobu
ab7695fc50
sdbm: typed data
...
* ext/sdbm/init.c (sdbm_type): turn into typed data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 23:33:06 +00:00
nobu
20904659c3
gdbm: typed data
...
* ext/gdbm/gdbm.c (dbm_type): turn into typed data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 23:33:04 +00:00
nobu
ad48d99876
dbm: typed data
...
* ext/dbm/dbm.c (dbm_type): turn into typed data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 23:33:01 +00:00
nobu
ba0655ebdd
ext: protoize no-arguments functions
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 23:29:24 +00:00
nobu
5540c1de81
ext: protoize no-arguments functions
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 23:09:32 +00:00
normal
02be147c8a
ext/zlib/zlib.c: TypedData conversion
...
* ext/zlib/zlib.c (zstream_mark, zstream_free): update signature
(gzfile_mark, gzfile_free): ditto
(zstream_memsize): new function for rb_data_type->dsize
(gzfile_memsize): ditto
(zstream_data_type, gzfile_data_type): new data types
(zstream_new): Data_Make_Struct => TypedData_Make_Struct
(gzfile_new): ditto
(get_zstream, get_gzfile): Data_Get_Struct => TypedData_Get_Struct
(rb_zstream_flush_next_in): ditto
(rb_zstream_flush_next_out): ditto
(rb_zstream_avail_out): ditto
(rb_zstream_avail_in): ditto
(rb_zstream_closed_p): ditto
(rb_deflate_initialize): ditto
(rb_deflate_init_copy): ditto
(rb_inflate_initialize): ditto
(gzfile_ensure_close): ditto
(rb_gzfile_closed_p): ditto
(rb_gzfile_path): ditto
(rb_gzwriter_initialize): ditto
(rb_gzreader_initialize): ditto
(rb_gzreader_unused): ditto
[ruby-core:65377] [Feature #10319 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 20:56:10 +00:00