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

40693 Коммитов

Автор SHA1 Сообщение Дата
nobu 09cbe9d640 process.c: do not inherit saved fds
* process.c (save_redirect_fd): make saved FDs close-on-exec not
  to be inherited.
* process.c (run_exec_dup2): restore close-on-exec flags too.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-12 05:30:05 +00:00
nobu f150a381db win32.c: more fcntl
* win32/win32.c (fcntl): implement F_GETFD, F_SETFD, and
  F_DUPFD_CLOEXEC.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-12 05:23:22 +00:00
nobu 78f7e342d1 test_rational.rb: fix default external
* test/ruby/test_rational.rb (test_conv): fix default external
  encoding, which affects inspect results.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-12 04:48:36 +00:00
nobu 7a0981facc test_rational.rb: r51828
* test/ruby/test_rational.rb (test_conv): test for r51828,
  encoding of exception message.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-12 01:29:32 +00:00
normal bc8dfdc059 rational.c: preserve encoding in exception
* rational.c (string_to_r_strict): preserve encoding in exception

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-11 20:36:18 +00:00
ko1 731c9288da * vm_core.h: remove rb_call_info_t::aux.opt_pc.
* vm_insnhelper.c: introduce shortcut functions for opt_pc == 0
  because opt_pc is always 0 on shortcut function.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-11 18:25:54 +00:00
svn d0bb9ed164 * 2015-09-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-11 15:51:03 +00:00
ko1 22ea03bb7e * iseq.c: disable ISeq.load. It enabled accidentally at r51794.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-11 15:50:42 +00:00
shugo 782e2148af * lib/net/ftp.rb (size, mdtm, system): parse responses according to
RFC 959 and 3659, where reply codes must be followed by SP.

* lib/net/ftp.rb (system): remove LF from the return value.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-11 02:23:31 +00:00
svn a7727448a1 * 2015-09-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-10 15:09:52 +00:00
kazu e367d1e821 fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-10 15:08:54 +00:00
kazu dd610003d5 fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-10 13:59:31 +00:00
nobu b4efab9ed9 parse.y: keep literal encoding
* parse.y (literal_concat_gen, evstr2dstr_gen): keep literal
  encoding beginning with an interpolation same as the source file
  encoding.  [ruby-core:70703] [Bug #11519]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-10 13:48:51 +00:00
nobu 9fb0863f4f Clarify spawn pgroup documentation [ci skip]
* process.c (rb_f_spawn): Be more specific regarding "other
  values" by having "non-zero positive integers" Add nil, the
  default value, as a possible value and what it means.
  Try to use more consistent language.
  [Fix GH-1008]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-10 13:15:55 +00:00
shugo 5c09cb9c1e * lib/net/ftp.rb (getmultiline): refactor.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-10 06:16:37 +00:00
svn ffe47606cc * 2015-09-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-10 03:18:07 +00:00
nobu 3d5fd5f30d compile.c: register cdhash
* compile.c (iseq_build_from_ary_body): register cdhash to the
  iseq constant body instead of compile time mark array, not to
  get GCed.  [ruby-core:70708] [Feature #8543]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-10 03:17:30 +00:00
usa 868265cac3 * ChangeLog: typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-09 10:07:08 +00:00
usa 5e262e5277 * lib/rubygems/stub_specification.rb (Gem::StubSpecification#data):
should not change the value of $. when `require`ing gems.
  this fixed test failures introduced by r51813.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-09 09:18:47 +00:00
usa 40f304e025 * ruby.c (usage, enable_option, disable_option, process_options): new
option `--disable_did_you_mean`.

* gem_prelude.rb: now requires did_you_mean gem by default if available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-09 07:57:31 +00:00
nobu abd5b8e1db extlibs.rb: patch options
* tool/extlibs.rb (do_patch): let "patch" command change the
  working directory and open the patch file there, instead of
  spawn options, so that proper error message will be shown by the
  command not just "chdir" or "open".

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-09 04:38:58 +00:00
usa dbe4a7f11c * test/ruby/test_process.rb (TestProcess#test_popen_exit): platform specific
option.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-09 02:57:58 +00:00
usa 01762af749 * test/ruby/test_process.rb (TestProcess#test_popen_exit): platform specific
option.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-09 02:52:27 +00:00
nobu 67f7e82eed io.c: sys/wait.h
* io.c: BSDs need sys/wait.h for WNOHANG.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-09 02:40:02 +00:00
usa 1ab8dc3da8 * common.mk (update-gems): use BASERUBY instead of RUNRUBY.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-09 02:34:39 +00:00
usa 7c97533aec * .travis.yml: retry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-09 02:20:42 +00:00
zzak 0a4129cb7a * lib/delegate.rb: Remove backtrace cleaning for delegated methods
This patch was provided by Rafael França and greatly improves
  performance when an exception is raised. [Bug #11461]

  Before:
    Calculating -------------------------------------
             default    86.209k i/100ms
     default raising     2.209k i/100ms
    -------------------------------------------------
             default      1.953M (±11.0%) i/s -      9.655M
     default raising     21.826k (±13.5%) i/s -    108.241k

  After:
    Calculating -------------------------------------
             default    72.211k i/100ms
     default raising    34.288k i/100ms
    -------------------------------------------------
             default      2.013M (±18.7%) i/s -      9.460M
     default raising    623.950k (± 9.7%) i/s -      3.120M

  Benchmark:
    require 'delegate'
    require 'benchmark/ips'

    class Foo
      def name
        'foo'
      end

      def bla
        raise
      end
    end

    class Bar < DelegateClass(Foo)
    end

    bar = Bar.new(Foo.new)

    Benchmark.ips do |b|
      b.report('default') { bar.name }
      b.report('default raising') { bar.bla rescue nil }
    end


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-09 02:12:52 +00:00
usa 852c345470 * .travis.yml: update unicode data, bundled gems, extlibs, and so on.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-09 02:10:46 +00:00
hsbt 2f227df3f9 * test/rubygems/test_config.rb: fix broken tests for Windows platform.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-09 01:05:47 +00:00
svn d0191f54f4 * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-08 22:47:16 +00:00
svn d42d4c1e23 * 2015-09-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-08 22:47:16 +00:00
hsbt 59991b6ac5 * lib/rubygems: Update to RubyGems HEAD(fe61e4c112).
this version contains new feature that warn invalid SPDX license
  identifiers. https://github.com/rubygems/rubygems/pull/1249
  and #1032, #1023, #1332, #1328, #1306, #1321, #1324
* test/rubygems: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-08 22:46:43 +00:00
yuki 230b8d533e gems/bundled_gems: Upgrade the did_you_mean gem to 1.0.0.beta2
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-08 14:32:00 +00:00
nagachika 37464c5c86 fix a typo of test method name.
* test/ruby/test_file.rb (test_realdirpath_junction): fix a typo of method name.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-08 14:25:56 +00:00
nobu f3f10297f0 io.c: no wait when killed
* io.c (rb_io_s_popen): do not wait the child process during being
  killed.  [ruby-core:70671] [Bug #11510]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-08 14:09:30 +00:00
usa 88d96a4fa9 * test/ruby/test_file.rb (TestFile#test_realdirpath_junktion): test for r51790.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-08 13:51:04 +00:00
usa a8b2dec5e5 * gems/bundled_gems: revert because ruby trunk never be able to install
the did_you_mean gem.  retry after enough test.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-08 13:19:41 +00:00
yuki 39fa5df030 gems/bundled_gems: Automatically install the did_you_mean gem as a bunlded gem.
[Feature #11252]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-08 12:54:35 +00:00
ko1 eec17b718a * vm_core.h: remove rb_call_info_t::blockiseq.
* insns.def (send, invokesuper): pass blockiseq explicitly.
* compile.c: catch up this fix.
* iseq.c: ditto.
* vm_args.c: ditto.
* iseq.c (ISEQ_MINOR_VERSION): 2->3 because instruction spec was
  changed.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-08 08:21:07 +00:00
nobu d3022c424c process.c: keep GVL if WNOHANG
* process.c (rb_waitpid): do not release GVL when WNOHANG is set,
  it should return immediately without blocking.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-08 07:15:09 +00:00
nobu 2a87a0fc73 process.c: retry loop
* process.c (rb_waitpid): refactor retry loop by interrupt.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-08 07:00:13 +00:00
shugo d5d6b149df * lib/net/ftp.rb (list): fetch all the lines before yielding a block
to allow other commands in the block.  [Feature #11454]
  Patched by Srikanth Shreenivas.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-08 06:08:20 +00:00
usa 49cbfc8359 * win32/win32.c (rb_w32_read_reparse_point): return correct required
buffer size for IO_REPARSE_TAG_MOUNT_POINT.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-08 03:06:10 +00:00
nobu 161cee3c48 configure.in: BOOTSTRAPRUBY version
* configure.in (BOOTSTRAPRUBY): avoid too old versions.  current
  fileutils.rb does not work with 1.8 or older, because of the
  return values of Module#singleton_methods and so on.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-07 15:35:26 +00:00
svn 75d765de8a * 2015-09-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-07 15:15:02 +00:00
nobu cfecd21a89 process.c: open exception message
* process.c (rb_execarg_parent_start1): raise with the target path
  name when open() failed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-07 15:14:46 +00:00
nobu be3de529c2 process.c: chdir exception message
* process.c (rb_exec_fail): raise with the target directory name
  when chdir() failed.  pointed out by sorah.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-07 14:45:31 +00:00
nagachika 06cac6d699 ChangeLog: remove a duplicated entry (r51782).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-07 13:45:52 +00:00
nobu 4e43e7ad0d win32.c: use plain strdup
* win32/win32.c (insert): should use plain strdup() instead of
  ruby_strdup() at startup time, and plain free()ed in cmdglob().

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-07 13:05:31 +00:00
nobu d57e043ab5 test_framework.rb: use Ruby framework
* test/mkmf/test_framework.rb (test_single_framework): use Ruby
  framework, as CoreFoundation framework uses Apple extensions
  unsupported by standard GCC other than Apple-patched clang.

* test/mkmf/test_framework.rb (test_multi_frameworks): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-09-07 08:51:01 +00:00