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

35463 Коммитов

Автор SHA1 Сообщение Дата
nobu 057186a986 extmk.rb: non-installed extensions when statick-linked-ext
* ext/extmk.rb: exclude extension libraries not to be installed if
  `--with-statick-linked-ext` is set, not only shared library is
  not built.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-22 14:34:56 +00:00
nobu bfa4f32069 file.c: birthtime on Windows
* file.c (stat_birthtime): `ctime` is actually `created time` on Windows.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-22 14:34:54 +00:00
akr 35cd72172c * ext/socket/mkconstants.rb: More TCP option constants.
Describe Linux and glibc versions.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-22 14:08:17 +00:00
naruse 6b4f9210b0 * file.c (stat_birthtime): add birthtime support [Feature #9647]
* file.c (rb_stat_birthtime): add File::Stat.birthtime

* file.c (rb_file_s_birthtime): add File.birthtime

* file.c (rb_file_birthtime): add File#birthtime

* configure.in: check struct stat.st_birthtimespec.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-22 11:49:22 +00:00
naruse a999657e7e sys/param.h is used by linux
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-22 11:17:34 +00:00
svn 39600aaf3b * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-22 10:58:11 +00:00
nobu bd403755d0 remove trailing spaces
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-22 10:58:08 +00:00
naruse 4c9ec80ece I suspect such early wakeup is because of automatic time correction
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-22 10:42:06 +00:00
naruse 210f863906 revert File::Statfs [Feature #9772]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-22 10:39:48 +00:00
naruse fa244db49b add Bug::File::Fs.fsname for tests
get filesystem type name for given path

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-22 10:39:29 +00:00
svn 4548331d38 * 2014-05-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-22 05:02:26 +00:00
nobu f1b49b7bb9 constify character property tables
* enc/jis/props.kwd: constify character property tables of JIS
  based encodings by perfect hash.
* enc/euc_jp.c, enc/shift_jis.c: use character property functions.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-22 05:02:15 +00:00
kazu 5f8fccb451 fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-21 11:36:15 +00:00
nobu 97c2a48960 vm.c: rewind cfp
* vm.c (m_core_hash_{from_ary,merge_{ary,ptr,kwd}}): rewind cfp to
  show proper backtrace.  [ruby-dev:35820] [Bug #416]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-21 06:11:25 +00:00
nobu abf2980b7a test_backtrace.rb: r18554 tests
* test/ruby/test_backtrace.rb (test_core_backtrace_{alias,undef}):
  add tests for r18554.  [ruby-dev:35820] [Bug #416]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-21 06:11:22 +00:00
nobu 108aa6143e extmk.rb: non-installed extensions cannot link statically
* ext/extmk.rb: exclude extension libraries not to be installed
  unless shared library is built, as they cannot be linked
  statically.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-21 04:46:00 +00:00
akr 5b629a7b8a * ext/socket/option.c: Fix complation error on Android.
Bionic doesn't define TCP state constants.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-21 03:22:18 +00:00
svn d9af2fdb05 * 2014-05-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-21 02:42:43 +00:00
nobu 003710957b configure.in: Info.plist workaround
* configure.in: workaround for Info.plist to get rid of `dsymutil`
  crash by wrong files in parent directories.
  [ruby-core:62594] [Bug #9840]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-21 02:42:33 +00:00
hsbt 7bf10e8787 * test/ruby/test_dir.rb: added testcase of double slash path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-20 12:02:03 +00:00
nobu c0dba956d1 id.def: predefine to_i
* defs/id.def: predefine `to_i` as well as `to_int`.

* numeric.c (id_to_i): use predefined `idTo_i`.

* object.c (conv_method_names): add `to_i` ID.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-20 08:28:33 +00:00
nobu 7f3b12f05b use predefined IDs
* array.c (rb_ary_equal), hash.c (hash_equal): use predefined IDs,
  `to_ary` and `to_hash` respectively.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-20 08:28:31 +00:00
naruse e3c3d4e4e5 more insrease timeout of test_LSHIFT_neary_long_max
http://chkbuild002.hsbt.org/chkbuild/ruby-trunk/log/20140520T060016Z.fail.html.gz

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-20 06:41:06 +00:00
naruse 3f1f9e9a0a show progress of rdoc parsing to prevent timeout on chkbuild
http://c64b.rubyci.org/~chkbuild/ruby-trunk/log/20140520T030303Z.fail.html.gz

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-20 06:39:08 +00:00
nobu 6a2ef9d6c3 id.def: predefine conversion method IDs
* defs/id.def: predefine conversion method name IDs.

* object.c (conv_method_names): consitify with predefined IDs.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-20 06:28:52 +00:00
svn a1305f14ec * 2014-05-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-19 20:00:14 +00:00
akr 7a1972ab9c * ext/socket/extconf.rb: Don't check fields of struct tcp_info if the
structure is not available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-19 20:00:00 +00:00
akr b9a178e56c * ext/socket/option.c (inspect_tcp_info): Permit longer data. (glibc
2.7 adds tcpi_rcv_rtt, tcpi_rcv_space and tcpi_total_retrans to
  struct tcp_info.)



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-19 14:28:26 +00:00
kazu 88675fc9a9 fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-19 12:35:43 +00:00
nobu 172f3673ad etc.c: fix typo
* ext/etc/etc.c (etc_uname): fix typo, `len` with `plen`, and an
  extra semicolon.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-19 12:35:22 +00:00
nobu e3653bfe6f etc.c: old VC
* ext/etc/etc.c (etc_uname): fix for old VC.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-19 12:32:25 +00:00
nobu 21190be21c etc.c: fix parameter
* ext/etc/etc.c (etc_uname): call with same first parameters.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-19 12:32:14 +00:00
akr 3aacf88500 * ext/socket/option.c (inspect_tcp_info): New function to inspect struct tcp_info.
(sockopt_inspect): Use inspect_tcp_info.

* ext/socket/extconf.rb: Check tcp_info related things.

* ext/socket/rubysocket.h: Include netinet/tcp_fsm.h if available.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-19 11:52:03 +00:00
akr 2817c2eec4 ignore constdefs.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-19 11:40:48 +00:00
akr 8e6faa4f97 * test/dbm/test_dbm.rb: Use Etc.uname.
* test/gdbm/test_gdbm.rb: Ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-19 10:37:14 +00:00
nobu 82dbd0970c etc.c: Etc.uname on Windows
* ext/etc/etc.c (etc_uname): add support for Windows using
  GetVersionExW(), GetSystemInfo(), and GetComputerNameExW() with
  `ComputerNameDnsHostname`.  [Feature #9842]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-19 07:54:25 +00:00
nobu 8fb925dfcd string.c: byte offset
* string.c (rb_pat_search): advance by byte offset but not by char
  offset.  [ruby-core:62669] [Bug #9849]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-19 07:29:51 +00:00
nobu 72c773b15d string.c: constify
* string.c (rb_str_index): constify local pointer variables.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-19 07:06:54 +00:00
sorah 442879eb57 * bin/testrb: Removed. Forgot to remove in r45971.
[Feature #9711] [ruby-core:62620]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-19 05:07:15 +00:00
nobu 9ebf8496c0 envutil.rb: fix argument
* test/ruby/envutil.rb (assert_separately): fix missing `message`
  argument to FailDesc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-18 23:49:03 +00:00
nobu 6ff56256c3 test_etc.rb: omit unrunnable tests
* test/etc/test_etc.rb (test_sysconf, test_confstr, test_pathconf):
  define test cases only if corresponding constants are available.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-18 23:35:04 +00:00
svn 924af0cc95 * 2014-05-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-18 20:05:35 +00:00
naruse 8e007cc088 increase wait
http://chkbuild002.hsbt.org/chkbuild/ruby-trunk/log/20140518T160015Z.fail.html.gz

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-18 20:05:26 +00:00
nobu 3360dfd294 win32.c: fix infinite recursion
* win32/win32.c: include "missing/nextafter.c" and address
  finite() and isnan() macros, to get rid of infinite recursion.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-18 13:20:39 +00:00
naruse 3d6ecd45c7 fix type
struct RVALUE.file is const char*.
struct RVALUE.line is int.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-18 11:02:43 +00:00
nobu 0e8574f5bd eval_error.c: investigate core dump
* eval_error.c (error_handle): show backtrace at SIGSEGV, to
  investigate core dump in CI.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-18 08:47:41 +00:00
akr bd4fdb714f Use Etc.uname instead of uname command invocation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-18 08:45:37 +00:00
akr 0b373d6bbb [DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-18 08:45:07 +00:00
akr 741b7c46b8 Fix a constant reference.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-18 08:33:39 +00:00
nobu 5d6ed9081e configure.in: rb_cv_atan2_inf_c99
* configure.in (rb_cv_atan2_inf_c99): set `no` if atan2f and
  atan2l are not available, and quote the result.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-18 08:31:34 +00:00