Граф коммитов

29732 Коммитов

Автор SHA1 Сообщение Дата
zzak c7bb797410 * object.c: Document Data class [Bug #7890] [ruby-core:52549]
Patch by Matthew Mongeau


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-20 03:19:01 +00:00
nobu 4b81b403eb enumerator.c: suppress warnings
* enumerator.c (lazy_zip_arrays_func, lazy_zip_func, lazy_take_func),
  (lazy_drop_func, lazy_drop_while_func): suppress uninitialized
  instance vriable warnings.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-20 03:15:32 +00:00
zzak 2d112d2c78 * lib/mutex_m.rb: Add rdoc for Mutex_m module
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-20 02:51:51 +00:00
drbrain 75eb6cc98e * lib/rubygems/commands/update_command.rb: Create the installer after
options are processed.  [ruby-trunk - Bug #7779]
* test/rubygems/test_gem_commands_update_command.rb:  Test for the
  above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-20 00:34:58 +00:00
drbrain cd8ef79d22 * lib/rubygems/installer.rb: Use gsub instead of gsub! to avoid
altering @bin_dir.  Fixes tests on windows.  [ruby-trunk - Bug #7885]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-19 22:51:38 +00:00
svn b6cdc43976 * 2013-02-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-19 16:19:18 +00:00
eregon 92abfccaa3 * array.c: Fix typo in class documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-19 16:19:13 +00:00
mrkn c42cf83f26 * ext/bigdecimal/bigdecimal.gemspec: bump to 1.2.0.
[ruby-core:51777] [Bug #7761]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-19 11:50:48 +00:00
kazu 7ffd5405bd fix typo and remove trailing space
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-19 04:40:40 +00:00
knu e38972354a Remove Syslog#inspect and have only Syslog.inspect.
* ext/syslog/syslog.c (Init_syslog): Define inspect as a singleton
  method and remove it as an instance method. [Bug #6502]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-19 04:13:57 +00:00
nobu 1955ac9e82 * tool/mkconfig.rb: exclude variables to just build libruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-19 03:49:37 +00:00
nobu a168db1cb2 * tool/mkrunnable.rb: needs rbconfig.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-19 03:49:35 +00:00
nobu bbd9223f60 * ChangeLog: remove duplicated entry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-19 03:49:32 +00:00
zzak 281e6e1b3b * object.c: rdoc formatting for Kernel#Array()
* array.c: Add rdoc for Array() method to Creating Arrays section


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-19 03:32:11 +00:00
drbrain 2163738ffb * ext/openssl/ossl.c (class OpenSSL): Use only inner parenthesis in
create_extension examples.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-19 01:36:30 +00:00
drbrain b043b0592b * ext/openssl/ossl.c (class OpenSSL): Fixed ExtensionFactory example.
Patch by Richard Bradley.  [ruby-trunk - Bug #7551]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-19 01:27:33 +00:00
ko1 cc16b2139b * vm_eval.c (vm_call0_body): check interrupts after method dispatch
from C methods. [Bug #7878]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-18 23:53:41 +00:00
drbrain aec0735f6d * lib/rubygems/installer.rb: Fixed placement of executables with
--user-install.  [ruby-trunk - Bug #7779]
* test/rubygems/test_gem_installer.rb:  Test for above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-18 23:15:49 +00:00
naruse 10103e8cc7 Correct condition of r39302
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-18 21:46:00 +00:00
svn 52b0181306 * 2013-02-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-18 21:21:05 +00:00
naruse 0b261c379b * vm_dump: FreeBSD ports' libexecinfo's backtrace(3) can't trace
beyond signal trampoline, and as described in r38342 it can't
  trace on -O because it see stack frame pointers.
  libunwind unw_backtrace see dwarf information in the binary
  and it works with -O (without frame pointers).

* configure.in: remove r38342's hack and check libunwind.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-18 21:21:02 +00:00
naruse e233ca15e0 * configure.in: check whether backtrace(3) works well or not.
* vm_dump.c: set HAVE_BACKTRACE 0 if BROKEN_BACKTRACE.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-18 21:20:59 +00:00
knu a16c76f7c5 * lib/ipaddr.rb (IPAddr#in6_addr): Fix a typo with the closing
parenthesis.




git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-18 07:31:17 +00:00
knu 7d63004fce Fix the IPv6 parser.
* lib/ipaddr.rb (IPAddr#in6_addr): Fix the parser so that it can
  recognize IPv6 addresses with only one edge 16-bit piece
  compressed, like [::2:3:4:5:6:7:8] or [1:2:3:4:5:6:7::].
  [Bug #7477]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-18 03:45:21 +00:00
nobu e8c57cd850 configure.in: unexpand exec_prefix
* configure.in (exec_prefix): unexpand after RUBY_EXEC_PREFIX is set.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-18 01:49:14 +00:00
nobu 3f1a334504 mkconfig.rb: clear exec_prefix
* tool/mkconfig.rb: clear exec_prefix which may differ from prefix,
  before expanding rubyarchdir to remove prefix.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-18 01:49:11 +00:00
nobu 46cdc66f84 version.c: move ruby_exec_prefix
* version.c (ruby_exec_prefix): move all path configuration stuffs.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-18 01:11:58 +00:00
svn 97ef7189dd * 2013-02-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-18 01:10:02 +00:00
nobu f8530342f4 configure.in: unexpand_shvar
* configure.in (unexpand_shvar): regularize a shell variable by
  unexpanding shell variables in it.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-18 01:09:56 +00:00
naruse c4d4107486 Revert r39289
* "configure.in: unexpand_shvar"
it breaks $LOAD_PATH.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-17 12:46:45 +00:00
nobu 44c5c2a312 compar.c: inversed comarison without infinite recursion
* compar.c (rb_invcmp): compare by inversed comarison, with preventing
  from infinite recursion.  [ruby-core:52305] [Bug #7870]
* string.c (rb_str_cmp_m), time.c (time_cmp): get rid of infinite
  recursion.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-17 11:55:50 +00:00
nobu c9283b5c5d * configure.in: remove debug print.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-17 09:41:31 +00:00
nobu 1264600d5c mkmf.rb: remove extra topdir in VPATH
* lib/mkmf.rb: remove extra topdir in VPATH, which was in
  win32/Makefile.sub for some reason and moved from there.
  [ruby-dev:46998] [Bug #7864]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-17 08:23:25 +00:00
nobu 17b898e182 configure.in: unexpand_shvar
* configure.in (unexpand_shvar): regularize a shell variable by
  unexpanding shell variables in it.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-17 07:57:43 +00:00
nobu e2bd72d524 .gdbinit: revert colored prompt
* .gdbinit: revert colored prompt because incremental search does not
  work well with invisible sequence in prompt.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-17 07:56:57 +00:00
zzak 91696db42d wrong github issue from r39286
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 16:25:59 +00:00
zzak e39caa7550 * ext/psych/lib/psych/y.rb: Document Kernel#y by Adam Stankiewicz
[Github tenderlove/psych#118]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 16:19:46 +00:00
svn 25575b7cd7 * 2013-02-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 16:11:00 +00:00
naruse 16d775d94e * tool/mkconfig.rb: remove prefix from rubyarchdir.
r39267 expands variables, it changes expansion timing,
  breaks RbConfig::CONFIG["includedir"] and building
  extension libraries with installed ruby.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 16:10:55 +00:00
ktsj 11498d9b1e * .gdbinit (iseq): rename dummy_gdb_enums to ruby_dummy_gdb_enums.
This is follow up to changes in r24407.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 12:11:37 +00:00
ktsj 16aedfe0a0 * vm.c (ENV_IN_HEAP_P): fix off-by-one error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 11:58:33 +00:00
knu b38334e2ec Properly reflect --with-opt-dir to LIBRUBY_DLDFLAGS on all platforms.
* configure.in (LIBRUBY_DLDFLAGS): Fix a bug where --with-opt-dir
  options given were not reflected to LIBRUBY_DLDFLAGS on many
  platforms including Linux and other GNU-based systems, NetBSD,
  AIX and BeOS.




git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 11:52:12 +00:00
akr 75a5be3717 * ext/socket/ancdata.c (rsock_recvmsg): ignore truncated part of
socket address returned from recvmsg().

* ext/socket/init.c (recvfrom_blocking): ignore truncated part of
  socket address returned from recvfrom().
  (rsock_s_recvfrom_nonblock): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 11:44:42 +00:00
ayumin 1061371f29 * test/ruby/test_thread.rb: fixed typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 11:14:23 +00:00
ko1 b4add2ac2b * vm.c (rb_thread_mark): mark a working Proc of bmethod
(a method defined by define_method) even if the method was removed.
  We could not trace working Proc object which represents the body
  of bmethod if the method was removed (alias/undef/overridden).
  Simply, it was mark miss.
  This patch by Kazuki Tsujimoto. [Bug #7825]
  NOTE: We can brush up this marking because we do not need to mark
  `me' on each living control frame. We need to mark `me's
  only if `me' was free'ed. This is future work after Ruby 2.0.0.
* test/ruby/test_method.rb: add a test.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 07:41:55 +00:00
ko1 7cbeff908f * proc.c (rb_binding_new_with_cfp): create binding object even if
the frame is IFUNC. But return a ruby-level binding to keep
  compatibility.
  This patch fix degradation introduced from r39067.
  [Bug #7774] [ruby-dev:46960]
* test/ruby/test_settracefunc.rb: add a test.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 06:51:17 +00:00
nobu 3d490d209a .gdbinit: colorize
* .gdbinit: colorize prompt and output headers, so boundaries get
  clearer.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 05:46:06 +00:00
nobu bb7e19c8e9 configure.in: don't substitute exec_prefix itself
* configure.in (shvar_to_cpp): do not substitute exec_prefix itself
  with RUBY_EXEC_PREFIX, which cause recursive definition.
  [ruby-core:52296] [Bug #7860]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 04:40:17 +00:00
nobu 78b50f26dc io/console: 0.4.2
* ext/io/console/io-console.gemspec: bump to 0.4.2.  now explicitly
  requires ruby 1.9.3 or later.  [Bug #7847]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 04:13:07 +00:00
nobu 923b8c4eda io/console: set HAVE_RB_SCAN_ARGS_OPTIONAL_HASH
* ext/io/console/extconf.rb: obtain optional hash by rb_scan_args() by
  default right now.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-16 04:00:33 +00:00