emboss
bbb3cfb12b
* ext/openssl/ossl_pkey.c: added PKey.read module function that allow
...
reading arbitrary public/private keys from DER-/PEM-encoded File or
string instances.
* ext/openssl/ossl_pkey_dh.c: improved documentation.
* test/openssl/utils.rb: added EC test key.
* test/openssl/test_pkey_rsa.rb
test/openssl/test_pkey_dsa.rb: Test PKey.read. Reuse keys from
OpenSSL::TestUtils.
* test/openssl/test_pkey_ec.rb: Created test file for EC tests.
Test PKey.read.
[Ruby 1.9 - Feature #4424 ] [ruby-core:35330]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 20:39:38 +00:00
ko1
7b614a53dd
* ext/objspace/objspace.c (total_i): fix to skip no ruby objects.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 19:44:48 +00:00
naruse
a7198a3c73
Ignore exception from Process.kill.
...
On NetBSD this usually raises Errno::ESRCH.
Of course, the process is already finished and should be ignored.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 18:20:25 +00:00
naruse
e445f1c684
* test/benchmark/test_benchmark.rb (capture_output):
...
replace '-' as space. On NetBSD, subtract between two Process.times
after and before the short process may return negative value like:
t0=Process.times; yield; t1=Process.times; p t1.utime-t0.utime
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 18:13:06 +00:00
emboss
f2c7a874a7
* test/openssl/test_pkey_dsa.rb: Test for DSA#syssign/sysverify.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 17:43:38 +00:00
emboss
48a399d620
* ext/openssl/ossl_pkey_dh.c: completed documentation.
...
* ext/openssl/ossl_pkey_dsa.c: corrected examples. Improved parameter
sections.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 17:03:26 +00:00
svn
eac9225471
* 2011-06-13
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 15:48:31 +00:00
emboss
d6b4cf46ad
* ext/openssl/ossl_pkey_dsa.c: completed documentation.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 15:48:28 +00:00
seki
c6a506d04d
lib/drb/drb.rb (kill_sub_thread): remove the method. [ruby-core:34185]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 14:40:15 +00:00
tadf
1afbc783d4
* ext/date/date_core.c (d_lite_marshal_load): should give converted value.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 12:09:22 +00:00
tadf
ef9fe8219c
* ext/date/date_core.c: edited doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 11:38:00 +00:00
ko1
d5abe72cca
* benchmark/bm_vm3_clearmethodcache.rb: added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 09:12:38 +00:00
ko1
8c09664a94
* vm_method.c (rb_clear_cache*): update only vm state version.
...
* vm_method.c (rb_method_entry_get_without_cache, rb_method_entry):
Fill method cache entry with vm state version, and
check current vm state version for method (cache) look up.
This modification speed-up invaridating of global method cache table.
[Ruby 1.9 - Feature #3905 ] [ruby-core:36908]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 08:53:15 +00:00
nagai
483efa1fda
* ext/tk/extconf.rb: fails on Mac OS X [Ruby 1.9 - Bug #4853 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 07:22:41 +00:00
kosaki
f0041fa0fd
* thread.c: remove th->transition_for_lock. It's thread unsafe.
...
[Bug #4723 ][ruby-dev:43563]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 06:58:15 +00:00
kosaki
614fcdf66c
* thread.c: introduce spurious wakeup safe deadlock check.
...
[Bug #4696 ][ruby-dev:43554]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 06:55:12 +00:00
ko1
3c9187a2ad
* benchmark/bm_vm3_thread_mutex.rb: remove it.
...
* benchmark/bm_vm3_thread_mutex[1-3].rb: added 3 benchmarks.
1: one thread with one mutex (no contention).
2: two threads with one mutex (contention).
3: 1000 threads with one mutex (huge number of contention)
Abobe removed benchmark was type 3.
Therefore, this commit adds type 1 and 2 benchmark.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 04:38:50 +00:00
akr
60e078c860
* io.c: use select() appropriately for sendfile().
...
Fixed by Eric Wong. [ruby-core:36150]
(maygvl_copy_stream_wait_readwrite): removed.
(nogvl_copy_stream_sendfile): use nogvl_copy_stream_wait_write and
maygvl_copy_stream_wait_read instead of
maygvl_copy_stream_wait_readwrite.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 02:18:51 +00:00
nobu
df3e3768e9
* atomic.h (ATOMIC_OR): _InterlockedOr is not available on migw.
...
* gc.c (rb_gc_set_params): VM_OBJSPACE is disabled on mignw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 00:32:32 +00:00
svn
465b0d49d6
* 2011-06-12
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 16:07:41 +00:00
tadf
67345bfa82
* ext/date/date_core.c: edited doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 16:07:37 +00:00
kosaki
29f7ea1b50
add to bug number
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 14:47:41 +00:00
kosaki
9d4e471cf9
* vm_core.h (RUBY_VM_SET_TIMER_INTERRUPT, RUBY_VM_SET_INTERRUPT,
...
RUBY_VM_SET_FINALIZER_INTERRUPT): use atomic ops for preventing
interrupt_flag bit lost.
* thread.c (rb_threadptr_execute_interrupts_rec): ditto.
* vm_core.h (typedef struct rb_thread_struct): change type of
interrupt_flag to rb_atomic_t.
* atomic.h: move atomic ops definition from signal.c.
* signal.c: remove atomic ops definition.
* common.mk (gc, signal, thread, cont): add to dependency to atomic.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 14:27:08 +00:00
tadf
8df20d6b16
* ext/date/date_core.c: edited doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 14:24:29 +00:00
nahi
47f89c982c
* ext/openssl/lib/openssl/buffering.rb (module OpenSSL):
...
Buffering#each_byte should return String in accordance with IO in
1.9.
* test/openssl/test_buffering.rb (class OpenSSL): add tests for getc
and each_byte.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 14:07:42 +00:00
tadf
35c16fe35f
* time.c: a correction of doc for strftime (%v).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 13:42:35 +00:00
tadf
aab8224360
* ext/date/date_core.c: replaced doc for strftime based on Time's one.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 13:32:43 +00:00
tadf
87eeed5103
* ext/date/date_core.c (datetime_s_{iso8601,rfc3339,xmlschema,rfc2822,httpdate}):
...
do not take argument comp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 13:10:04 +00:00
tadf
4a400e5372
* ext/date/date_core.c: added examples.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 12:59:21 +00:00
nari
11c43f7ae9
* gc.c: expand heap if initial_heap_min_slots is bigger than
...
HEAP_MIN_SLOTS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 10:51:51 +00:00
eban
f53a117c7b
* ChangeLog (vim): set shiftwidth to 2.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 10:44:51 +00:00
nahi
004bd2590b
* ext/openssl/ossl_x509req.c: raise RequestError instead of
...
CertificateError when Request#to_der gets an error from OpenSSL.
Patch from Ippei Obayashi, see #4420 . I cannot write a test for
this... Request does not allow to create broken bytes...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 10:39:47 +00:00
tadf
a6567f2b99
* ext/date/date_core.c (Date::(ABBR_)?(MONTH|DAY)NAMES): should be usascii.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 10:36:19 +00:00
tadf
4dbc9af8af
* ext/date/date_core.c: rewrote doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 10:25:25 +00:00
nobu
95e42dc152
* lib/test/unit.rb (Test::Unit::GlobOption#non_options): should run
...
with 1.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 10:04:19 +00:00
eban
10bf738bee
* bootstraptest/runner.rb: should initilize $stress to avoid warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 09:07:26 +00:00
nobu
34b19050b3
* io.c (io_getc): should be 7bit if ascii. fixes #4557
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 09:02:11 +00:00
nobu
6f58118e4c
* numeric.c (rb_enc_uint_chr): fix message format. Bug#4869
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 07:52:34 +00:00
kou
0347b17b27
* ChangeLog: fix ticket number at r31995. fixes #4161 is correct.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 07:32:49 +00:00
kou
da672779e2
* lib/rexml/formatters/pretty.rb
...
(REXML::Formatters::Pretty#write_text),
test/rexml/test_core.rb
(Tester#test_pretty_format_long_text_finite): don't ignore
'width' parameter in pretty formatter. fixes #4498
Reported by Michael Frasca. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 07:29:48 +00:00
kou
962956e8a1
* test/rexml/test_core.rb
...
(Tester#test_pretty_format_long_text_finite): remove needless
assert_nothing_raised.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 07:12:12 +00:00
kou
80cb3351dd
* lib/rexml/parsers/xpathparser.rb
...
(REXML::Parsers::XPathParser#parse),
test/rexml/test_elements.rb
(ElementsTester::test_each_with_frozen_condition):
don't modify original XPath. fixes #4164
Reported by Pavel Shved. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 07:05:42 +00:00
kou
8aecece693
* test/rexml/test_elements.rb (ElementsTester): remove needless
...
prefix from test name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 06:53:59 +00:00
duerst
0dfbb49a83
fixed a grammatical error
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 06:37:25 +00:00
kosaki
1485f3c168
* vm.c (thread_memsize): don't ignore size of th->local_storage.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 05:21:30 +00:00
nobu
ac0ab1f675
* lib/mkmf.rb: should quote arch_hdrdir and libpath for the case
...
installed prefix contains spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 01:32:49 +00:00
nobu
fe244c77b0
* thread_pthread.c (native_cond_timeout): wrap conditinally used label.
...
* thread_pthread.c (native_sleep): remove unused variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 01:21:10 +00:00
akr
71fdb43e6e
* thread.c (rb_thread_execute_interrupts): use GetThreadPtr to extract
...
rb_thread_t from VALUE.
reorted by Motohiro KOSAKI. [ruby-dev:43700]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 01:17:11 +00:00
svn
2e29d255d3
* 2011-06-11
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 01:01:12 +00:00
nobu
1482fccef5
* ruby.c (ruby_process_options): add missing return type.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 01:01:09 +00:00