~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to array.c

  • Committer: Package Import Robot
  • Author(s): Antonio Terceiro, Lucas Nussbaum, Daigo Moriwaki, James Healy, Antonio Terceiro
  • Date: 2012-06-02 07:42:28 UTC
  • mfrom: (21.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20120602074228-09t2jgg1ozrsnnfo
Tags: 1.9.3.194-1
[ Lucas Nussbaum ]
* Add hurd-path-max.diff. Fixes FTBFS on Hurd. (Closes: #648055)

[ Daigo Moriwaki ]
* Removed debian/patches/debian/patches/sparc-continuations.diff,
  which the upstream has applied.
* debian/rules:
  - Bumped up tcltk_ver to 8.5.
  - Used chrpath for tcltklib.so to fix a lintian error,
    binary-or-shlib-defines-rpath.
* debian/control:
  - Suggests ruby-switch. (Closes: #654312)
  - Build-Depends: chrpath.
* debian/libruby1.9.1.symbols: Added a new symbol for
  rb_str_modify_expand@Base.
* debian/run-test-suites.bash:
  - Corrected options for test-all.
  - Enabled timeout to allow hang tests to be aborted.

[ James Healy ]
* New upstream release: 1.9.3p194 (Closes: #669582)
  + This release includes a fix for CVE-2011-0188 (Closes: #628451)
  + This release also does not segfault when running the test suite under
    amd64 (Closes: #674347)
* Enable hardened build flags (Closes: #667964)
* debian/control:
  - depend on specific version on coreutils
  - update policy version (no changes)

[ Antonio Terceiro ]
* debian/ruby1.9.1.postinst:
  + bump alternatives priority for `ruby` to 51 so that Ruby 1.9 has a
    higher priority than Ruby 1.8 (50).
  + bump alternatives priority for `gem` to 181 so that the Rubygems
    provided by Ruby 1.9 has priority over the one provided by the rubygems
    package.
* debian/control: added myself to Uploaders:
* debian/libruby1.9.1.symbols: update with new symbols added in 1.9.3p194
  upstream release.
* debian/manpages/*: fix references to command names with s/1.9/1.9.1/
* debian/rules: skip running DRB tests, since they seem to make the build
  hang. This should close #647296, but let's way and see. Also, with this do
  not need to timeout the test suite anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
  array.c -
4
4
 
5
 
  $Author: kosaki $
 
5
  $Author: marcandre $
6
6
  created at: Fri Aug  6 09:46:12 JST 1993
7
7
 
8
8
  Copyright (C) 1993-2007 Yukihiro Matsumoto
2339
2339
 
2340
2340
/*
2341
2341
 *  call-seq:
2342
 
 *     ary.select! {|item| block } -> new_ary or nil
 
2342
 *     ary.select! {|item| block } -> ary or nil
2343
2343
 *     ary.select!                 -> an_enumerator
2344
2344
 *
2345
2345
 *  Invokes the block passing in successive elements from
2606
2606
 *  Equivalent to <code>Array#delete_if</code>, deleting elements from
2607
2607
 *  +self+ for which the block evaluates to true, but returns
2608
2608
 *  <code>nil</code> if no changes were made.
 
2609
 *  The array is changed instantly every time the block is called and
 
2610
 *  not after the iteration is over.
2609
2611
 *  See also <code>Enumerable#reject</code> and <code>Array#delete_if</code>.
2610
2612
 *
2611
2613
 *  If no block is given, an enumerator is returned instead.
2650
2652
 *
2651
2653
 *  Deletes every element of +self+ for which <i>block</i> evaluates
2652
2654
 *  to true.
 
2655
 *  The array is changed instantly every time the block is called and
 
2656
 *  not after the iteration is over.
2653
2657
 *  See also <code>Array#reject!</code>
2654
2658
 *
2655
2659
 *  If no block is given, an enumerator is returned instead.
4420
4424
 *     ary.product(other_ary, ...)                -> new_ary
4421
4425
 *     ary.product(other_ary, ...) { |p| block }  -> ary
4422
4426
 *
4423
 
 *  Returns an array of all combinations of elements from all arrays,
 
4427
 *  Returns an array of all combinations of elements from all arrays.
4424
4428
 *  The length of the returned array is the product of the length
4425
4429
 *  of +self+ and the argument arrays.
4426
4430
 *  If given a block, <i>product</i> will yield all combinations