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

38353 Коммитов

Автор SHA1 Сообщение Дата
nobu dd1baaabcd vm_method.c: method defined should not use refinements.
* vm_method.c (check_definition): Module#public_method_defined?,
  Module#private_method_defined?, Module#protected_method_defined?
  should not use refinements. [ruby-core:67656] [Bug #10753]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-18 06:57:34 +00:00
nobu 6d2e8b0546 vm_dump.c: check by configured result
* vm_dump.c (rb_vm_bugreport): check by configured result instead
  of system name for old FreeBSD.  based on a patch by Steve Wills
  at [ruby-core:67655].  [Bug #10752]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-18 06:50:41 +00:00
nobu 00459aa89f vcs.rb: search svn directory
* tool/vcs.rb (VCS::SVN#wcroot): search svn directory by
  traversing parent directories for old svn.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-18 06:50:24 +00:00
nobu d32a13a30e vcs.rb: debug
* tool/vcs.rb (VCS::SVN#wcroot): debug info.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-18 05:25:04 +00:00
nobu 6b6178fc3d vcs.rb: workaround
* tool/vcs.rb (VCS::SVN#export): workaround for the case
  wcroot-abspath is not present.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-18 05:24:14 +00:00
nobu fbbf3afc11 builtin encodings and transcoder locations
* Makefile.in (VPATH, NEWLINE_C), common.mk (common-srcs): make
  and use newline.c under enc/trans directory, not toplevel.  no
  longer search enc directory implicitly.
* configure.in, enc/Makefile.in (BUILTIN_ENCS, BUILTIN_TRANSES):
  prefix respective directory names to builtin encodings and
  transcoder source names.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-18 03:56:52 +00:00
svn 20e9b15ed9 * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-18 02:53:31 +00:00
suke 8f67e9807a * ext/win32ole/win32ole.c (ole_invoke): avoid SEGV when VT_RECORD
variable is passed by reference. [ruby-dev:48803] [Bug #10697] 


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-18 02:53:18 +00:00
nobu 8287581afc vcs.rb: export without remote svn
* tool/vcs.rb (VCS::SVN#export): export without access to the
  remote server.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-18 02:22:50 +00:00
nobu 632fb2e15b drb.rb: do not wait handler threads
* lib/drb/drb.rb (stop_service): just stop but do not wait handler
  threads.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-17 15:57:50 +00:00
nobu c474ecb0df drb.rb: stop all handlers to fix thread leaks
* lib/drb/drb.rb (stop_service): stop all handler threads started
  in main_loop.  fix thread leaks.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-17 15:35:09 +00:00
svn 46fe9f1d08 * 2015-01-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-17 15:03:18 +00:00
nobu f8f2b0f165 file2lastrev.rb: no ellipsis shorter names
* tool/file2lastrev.rb (revision_h): do not truncate and ellipsis
  names shorter than the limit.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-17 15:03:07 +00:00
nobu f59ce53f26 yaml_tree.rb: fix anchor
* ext/psych/lib/psych/visitors/yaml_tree.rb (visit_String):
  anchors like `\Z` are not valid inside character class.  use
  negative-lookahead instead.
  Fixes: https://github.com/tenderlove/psych/issues/221

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-17 14:59:18 +00:00
nobu 748372be97 configure.in: no pattern substitution
* configure.in: get rid of pattern substitution, which is not
  supported by ash, and ash on NetBSD parses whole source first
  and fails to start.  [ruby-dev:48823] [Bug #10750]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-17 14:42:30 +00:00
nobu e1aabbd397 file2lastrev.rb: limit branch names
* tool/file2lastrev.rb (revision_h): limit branch names upto 16
  chars, and replace extra part with ".." not to exceed the limit.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-17 13:56:40 +00:00
nobu ae27382632 vcs.rb: no empty names
* tool/vcs.rb (get_revisions): branch names must not be empty.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-17 13:56:28 +00:00
nobu 63491598c6 version.h: include branch name
* tool/file2lastrev.rb, tool/vcs.rb (get_revisions): define
  RUBY_BRANCH_NAME from the current branch name.

* version.h (RUBY_REVISION_STR): include the current branch name
  not "trunk" always.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-17 12:56:10 +00:00
nobu 8cfce15387 fiddle: --disable-bundled-libffi
* ext/fiddle/extconf.rb: disable bundled libffi if explicitly
  disabled by --disable-bundled-libffi.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-17 10:52:17 +00:00
nobu 3842ebb43d suppress alert warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-17 06:55:20 +00:00
nobu 8d5bdaa650 make-snapshot: clear RUBY_PLATFORM
* tool/make-snapshot (package): clear RUBY_PLATFORM of the
  building platform to suppress warnings in rbconfig.rb at
  universal-darwin.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-17 06:55:09 +00:00
nobu 0e7c490811 common.mk: unicode header locations
* common.mk (unicode.o): fix unicode header locations, so that the
  rule for name2ctype.h works.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-17 06:13:05 +00:00
nobu 378480e172 enc/unicode/name2ctype.h.blt: update for r46831
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-17 02:45:20 +00:00
nobu f93a6aaae1 make-snapshot: extract gems
* tool/make-snapshot (package): extract bundled gems for package.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-17 02:42:31 +00:00
nobu 84c181a6e3 vcs.rb: fake string for branch names
* tool/vcs.rb (VCS::GIT#branch): make fake string for branch names
  to suppress expanding as a path.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-17 00:17:36 +00:00
nobu b20b9f67c5 make-snapshot: check the first word of commands
* tool/make-snapshot: commands stored in environment variables may
  contain options, so check only the first word.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-17 00:05:09 +00:00
svn 20ad7c9268 * 2015-01-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-17 00:01:05 +00:00
nobu 6327183361 rbinstall.rb: load zlib earlier
* tool/rbinstall.rb: try to load zlib before using Gem::Installer,
  not to let LoadError raise during autoloading.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-17 00:00:53 +00:00
naruse 84a4125471 * tool/redmine-backporter.rb: support adding related revisions
to issues.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-16 09:48:57 +00:00
ko1 c7124d811f vm.c, vm_core.h: constify VM_CF_LEP, VM_CF_PREV_EP, VM_CF_BLOCK_PTR
and rb_vm_control_frame_block_ptr.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-16 08:21:49 +00:00
tenderlove 136b07aec8 * ext/psych/lib/psych.rb: bump version
* ext/psych/psych.gemspec: ditto

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-16 06:43:08 +00:00
tenderlove fe0414b547 * ext/psych/lib/psych/visitors/yaml_tree.rb: only dump hash
subclasses. Thanks Joe Eli McIlvain <joe.eli.mac@gmail.com>

* test/psych/test_hash.rb: test for change

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-16 06:39:13 +00:00
tenderlove a5c577757e * ext/psych/lib/psych.rb: bump version
* ext/psych/lib/psych/visitors/yaml_tree.rb: fix line width wrapping
  for long strings.  Thanks Jakub Jirutka <jakub@jirutka.cz>

* test/psych/test_string.rb: test for change

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-16 06:37:22 +00:00
nobu 983cbb1aed common.mk: extract-gems
* common.mk (extract-gems): extract gem files to install them even
  if zlib is not available.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-16 04:52:59 +00:00
nobu d0cf23b57e rbinstall.rb: install unpacked gems
* tool/rbinstall.rb (gem): install gems from unpacked directories
  for platforms where zlib is not available.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-16 04:48:56 +00:00
nobu 51e7d0efb2 rbinstall.rb: always make gem directories
* tool/rbinstall.rb (gem): always make gem directories regardless
  of zlib.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-16 04:35:18 +00:00
nobu 9e32277356 rbinstall.rb: use DLEXT
* tool/rbinstall.rb (RbInstall::Specs::FileCollector#built_libraries):
  use configured value DLEXT instead of hardcoded suffix. shared
  object suffix is system dependent.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-16 04:12:58 +00:00
ktsj f4c6ed4650 * vm.c (VM_CF_PREV_EP): remove extra parentheses.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-16 02:54:25 +00:00
ktsj e62a99b924 * eval_intern.h, vm.c, vm_eval.c, vm_insnhelper.c:
change throw mechanism (not save target ep, but save target cfp).
  It fixes `unexpected break' bug that occurs when
  TracePoint#binding is called.
  [ruby-dev:48797] [Bug #10689]

* test/ruby/test_settracefunc.rb: add a test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-16 02:54:22 +00:00
akr 10fe26fe29 Describe IO#close.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-15 22:16:30 +00:00
svn 0b66e2a5e2 * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-15 15:26:24 +00:00
svn bf1459a145 * 2015-01-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-15 15:26:18 +00:00
akr 255955585c * io.c (rb_io_close_m): Don't raise when the IO object is closed.
[ruby-core:67444] [Feature #10718]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-15 15:26:03 +00:00
nobu 0fce0b7ba1 proc.c: singleton_method should not use refinements
* proc.c (rb_obj_singleton_method): Kernel#singleton_method should
  not use refinements, as well as Kernel#method.
  [ruby-core:67603] [Bug #10744]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-15 12:35:00 +00:00
nobu 218029f06d make-snapshot: add fake values
* tool/make-snapshot (package): add fake values, rubylibprefix and
  ruby_version which are necessary for Gem.default_dir.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-15 09:09:14 +00:00
kazu 9fd7afefd0 fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-15 03:12:15 +00:00
svn db4160b54b * 2015-01-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-15 01:45:08 +00:00
nobu 5ec029d1ea array.c: linear performance
* array.c (rb_ary_select_bang, ary_reject_bang): linear
  performance.  [ruby-core:67418] [Feature #10714]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-15 01:44:57 +00:00
duerst e3c4c7e13b * lib/uri/mailto.rb: raising URI::InvalidComponentError instead
of failing with undefined method `split' for nil:NilClass for
  mailto: URIs without opaque part. [Bug #10738]
* test/uri/testuri.rb: Test for above

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-14 09:06:13 +00:00
nobu a9e033b104 downloader.rb: verify gems
* tool/downloader.rb (RubyGems.download): verify downloaded gem
  packages.  LowSecurity to allow untrusted certificates now.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-14 07:45:28 +00:00