nobu
5d8c8b46bb
* random.c (make_seed_value): fix leading-zero-guard condition on
...
bdigit is smaller than 32bit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-13 06:00:49 +00:00
keiju
5ee43b0a94
* lib/irb/completion.rb (CompletionProc): fix [ruby-dev:40953]
...
[Bug #3126 ]. Thanks Kazuhiro NISHIYAMA.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-13 05:01:10 +00:00
naruse
c871aee96b
* transcode.c (transcode_loop): insert output the value when
...
fallback hash has a related key. [ruby-dev:40540]
[ruby-dev:40829] #3036
* transcode.c (rb_econv_prepare_opts): pass to newhash
a value with the key :fallback.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-13 01:26:46 +00:00
akr
9afaef347c
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-12 20:50:45 +00:00
svn
db9119bedf
* 2010-04-13
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-12 15:16:48 +00:00
akr
19afeacb88
* random.c (rand_init): use the absolute value of seed to
...
make srand(-2**40) portable with 32bit and 64bit.
[ruby-core:29292](2)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-12 15:16:45 +00:00
akr
309077c9ae
* enumerator.c (inspect_enumerator): don't raise for uninitialized
...
enumerator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-12 13:49:44 +00:00
nobu
a698c7bf72
* LEGAL: separated the section for parse.c. contributed by Paul
...
Betteridge in [ruby-core:29472].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-12 12:47:43 +00:00
nobu
3a2f5d9cf7
* lib/fileutils.rb (fu_each_src_dest): ensure src is accessible.
...
* lib/fileutils.rb (fu_same): use File.identical? to get rid of
exceptions. [ruby-core:28141]
* lib/fileutils.rb (fu_have_st_ino): no longer used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-12 00:19:52 +00:00
nobu
a3dde7df52
* lib/fileutils.rb (fu_have_st_ino): check if required method is
...
defined, instead of platform name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-12 00:18:55 +00:00
marcandre
17fa2ce73a
* lib/matrix.rb: New method Matrix.build [ruby-core:28272]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 20:10:43 +00:00
tenderlove
3a1c0be67f
* ext/psych/lib/psych/deprecated.rb: requiring 'date' for backwards
...
compatibility.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 19:05:53 +00:00
marcandre
521f4a4beb
* lib/matrix.rb: Deprecate Vector#elements_to{i/f/r}
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 18:50:51 +00:00
marcandre
3f64c83eb1
* lib/matrix.rb: Deprecate elements_to_{f/i/r}
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 18:45:58 +00:00
marcandre
e0cfb13c32
* lib/matrix.rb: Handle coercion errors by raising TypeErrors [ruby-core:26736]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 18:30:58 +00:00
marcandre
5469cf0f3a
* NEWS: Add {Hash,ENV}#{keep_if,select!}
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 16:50:33 +00:00
svn
147fbbed62
* 2010-04-12
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 15:56:46 +00:00
kazu
0a6d09330c
* io.c (rb_io_getline_fast, rb_io_getline_1): fix ARGF.lineno behavior. [ruby-core:25205]
...
* test/ruby/test_argf.rb (TestArgf#test_lineno3): add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 15:56:43 +00:00
kanemoto
78a59b37a1
* configure.in: can not load libraries if --with-opt-dir is used
...
on AIX. [Bug #3107 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 14:31:09 +00:00
akr
8f8e4e5ab5
update doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 06:56:28 +00:00
mame
748782bfc9
* lib/irb/ruby-lex.rb (RubyLex#getc): revert r10817, which caused
...
regression for handling case when there is no newline at the end of
file. [ruby-core:28248]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 05:47:18 +00:00
nobu
5017259085
* test/ruby/test_encoding.rb (TestEncoding#test_replicate): more
...
test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 03:21:47 +00:00
nobu
9f9ace81f8
* encoding.c (enc_replicate): new encoding name must be valid
...
c-string. [ruby-dev:40954]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 03:08:51 +00:00
nobu
021e7b7f20
* include/ruby/win32.h (ftruncate): rename to get rid of conflict
...
with same name but non-LFS function on MinGW. [ruby-core:24757]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 02:58:26 +00:00
kazu
1edc8d3b9e
fix rdoc
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 02:20:29 +00:00
tenderlove
f366874814
* test/syck/test_struct.rb: modified to use only syck engine since the
...
YAML is invalid.
* test/syck/test_yaml.rb: ditto
* test/syck/test_yamlstore.rb: modifications for multi-engine
environment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 01:45:15 +00:00
drbrain
ff5366a705
Update to RDoc 2.5.3
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 01:34:28 +00:00
tenderlove
48a68756f5
* ext/syck/lib/syck/dbm.rb: moved to lib/yaml/dbm.rb since it is not
...
YAML engine specific
* ext/syck/lib/syck/store.rb: moved to lib/yaml/store.rb since it is not
YAML engine specific.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 01:21:29 +00:00
tenderlove
5a7b5e7058
* test/rubygems/gemutilities.rb: removing gem requirement on minitest.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 00:44:06 +00:00
tenderlove
a5f05e7ee9
* test/syck/*: Moved test/yaml to test/syck since it's actually
...
testing the syck YAML engine.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 00:37:42 +00:00
drbrain
711b5f35ac
Ignore mkmf.log for psych and tmpdir
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 00:14:48 +00:00
naruse
7f72d102cb
* lib/rdoc/rdoc.rb (setup_output_dir): compare by Time#to_i.
...
Cached created time doesn't have fractinal times,
but FileStat#mtime has; so rdoc almost alway judged files
are updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-11 00:00:43 +00:00
tenderlove
b9617bf7cb
* ext/psych/parser.c: Fixing a segv in test-all. Thanks Yusuke!
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-10 23:50:50 +00:00
naruse
7be704b359
* lib/rdoc/rdoc.rb (setup_output_dir): fix typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-10 22:41:36 +00:00
naruse
e707e05fe8
Fix :nodoc: definition. [ruby-dev:40949]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-10 22:09:09 +00:00
svn
f2467cd06a
* 2010-04-11
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-10 22:05:06 +00:00
naruse
9e30f60dbf
* lib/uri/common.rb (decode_www_form_component): validate.
...
[ruby-dev:40938]
* lib/uri/common.rb (decode_www_form): allow empty string.
* lib/uri/common.rb: fix nodoc for constant. [ruby-dev:40949]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-10 22:05:02 +00:00
naruse
a315079390
* lib/rdoc/markup/preprocess.rb (RDoc::Markup::PreProcess#handle):
...
use File.binread to avoid locale dependency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-10 12:28:13 +00:00
drbrain
1325437297
* lib/rdoc: Import RDoc 2.5.2
...
* lib/rdoc/parser/ruby.rb (RDoc::Parser::Ruby): Don't parse rdoc
files, reverts r24976 in favor of include directive support in C
parser.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-10 06:36:13 +00:00
mame
ce2b574017
* ext/openssl/ossl_ssl.c (Init_ossl_ssl): add SSLContext#ssl_timeout=,
...
which allows net/https to specify timeout. [ruby-core:24812]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-10 04:16:19 +00:00
wanabe
7d73136d06
* vm_method.c (rb_add_method): clear attr.location before rb_ary_new3.
...
a patch from Masaya TARUI in [Bug #3108 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-09 22:38:46 +00:00
tenderlove
6cfcb9d936
* ext/psych/lib/psych/deprecated.rb: implementing Psych.quick_emit and
...
adding deprecation warnings.
* ext/psych/lib/psych/visitors/to_ruby.rb: supporting deprecated
yaml_initialize api.
* ext/psych/lib/psych/visitors/yaml_tree.rb: supporting deprecated
to_yaml api.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-09 20:33:21 +00:00
tenderlove
186e575827
* ext/psych/lib/psych/deprecated.rb: implementing Psych.quick_emit and
...
adding deprecation warnings.
* ext/psych/lib/psych/visitors/to_ruby.rb: supporting deprecated
yaml_initialize api.
* ext/psych/lib/psych/visitors/yaml_tree.rb: supporting deprecated
to_yaml api.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-09 20:33:10 +00:00
tenderlove
052f204dcb
* ext/psych/parser.c: parse raises a TypeError when nil is passed in.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-09 16:09:55 +00:00
mame
5869de449f
* ext/pty/lib/expect.rb: preserve buffer read, instead of discard.
...
based on a patch from Luiz Angelo Daros de Luca in
[ruby-core:23464].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-09 15:07:34 +00:00
mame
d124dcf4eb
* ext/pty/lib/expect.rb: raise an error when argument is unexpected
...
type. based on a patch from Luiz Angelo Daros de Luca in
[ruby-core:23464].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-09 15:04:54 +00:00
svn
453c63c01b
* 2010-04-10
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-09 15:04:43 +00:00
mame
bd623a0915
* ext/pty/lib/expect.rb: add rdoc. based on a patch from Luiz Angelo
...
Daros de Luca in [ruby-core:23464].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-09 15:04:40 +00:00
mame
d3e7b990dc
* lib/irb/init.rb, lib/irb/lc/help-message,
...
lib/irb/lc/ja/help-message: add -w flag. [ruby-core:24594]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-09 14:55:18 +00:00
mame
79a3b7797f
* ext/socket/ipsocket.c (init_inetsock_internal),
...
ext/socket/unixsocket.c (rsock_init_unixsock): check the result of
listen(2). based on a patch from Mike Pomraning. [ruby-core:23698]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-09 14:53:19 +00:00