aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* * lib/prime.rb (Prime::EratosthenesGenerator,yugui2013-07-151-56/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prime::EratosthenesSieve): New implementation by robertjlooby <robertjlooby AT gmail.com>. * test/test_prime.rb: updated with new method name commit 4b6090ea852d63b26e02796c69b41caa0fa95077 Merge: ceda881 c8f7809 Author: Yuki Sonoda (Yugui) <yugui@yugui.jp> Date: Mon Jul 15 12:50:04 2013 +0900 Merge commit 'c8f780987fbdfbae428977487e1cf793c4c36d3f' Conflicts: lib/prime.rb commit c8f780987fbdfbae428977487e1cf793c4c36d3f Author: robertjlooby <robertjlooby@gmail.com> Date: Thu Jun 27 23:04:45 2013 -0500 updated test/test_prime.rb with new method name commit 996517bdbb3108cd1687d99613b69e539eb1567b Author: robertjlooby <robertjlooby@gmail.com> Date: Thu Jun 27 22:59:39 2013 -0500 new implementation of Prime::EratosthenesGenerator and Prime::EratosthenesSieve git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/psych_additions.rb: Ignore Psych docs herezzak2013-07-121-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/securerandom.rb: Refactor conditions by Rafal Chmielzzak2013-07-111-5/+5
| | | | | | | [Fixes GH-326] https://github.com/ruby/ruby/pull/326 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/delegate.rb: Add example for __setobj__ and __getobj__zzak2013-07-101-0/+28
| | | | | | | [Bug #8615] Patch by Caleb Thompson git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/logger.rb: Use :call-seq: for method signature rdoczzak2013-07-101-6/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/logger.rb (#add): Remove incorrect rdoc for return valuezzak2013-07-101-2/+0
| | | | | | | [Bug #8567] Reported by Tim Pease. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use Tempfile.create to unlink the tempfile on Windowsnaruse2013-07-101-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.nobu2013-07-096-16/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems: Import RubyGems 2.1drbrain2013-07-0964-1568/+2958
| | | | | | | * test/rubygems: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/ext/ext_conf_builder.rb: Remove siteconf file afterdrbrain2013-07-092-0/+5
| | | | | | | | | | | | | | building the gem. * test/rubygems/test_gem_ext_ext_conf_builder.rb: Test for the above. * lib/rubygems/psych_tree.rb (module Gem): Add backward compatibility for r41148 * test/rubygems/test_gem_package.rb: Add backward compatibility for double-slash elimination. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (FileUtils#chown_R): Do not skip traversal evenknu2013-07-091-1/+0
| | | | | | | if user and group are both nil, to be consistent with #chown and other commands. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (FileUtils#mode_to_s): Define mode_to_s() alsoknu2013-07-091-0/+1
| | | | | | as singleton method, or FileUtils.chmod fails in verbose mode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (FileUtils#chown, FileUtils#chown_R): If userknu2013-07-091-4/+4
| | | | | | and group are both nil, print ":". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Apply r41148 againnaruse2013-07-091-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems: Update to RubyGems 2.0.4. Seedrbrain2013-07-0820-81/+145
| | | | | | | https://github.com/rubygems/rubygems/blob/2.0/History.txt for changes git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/text.rb (REXML::Text#<<): Support appending in notkou2013-07-071-0/+1
| | | | | | | | | | "raw" mode. [Bug #8602] [ruby-dev:47482] Reported by Ippei Obayashi. Thanks!!! * test/rexml/test_text.rb (TextTester#test_shift_operator_cache): Add a test for the above case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/text.rb (REXML::Text#<<): Support method chain use by "<<"kou2013-07-071-0/+4
| | | | | | | | | like other objects. * test/rexml/test_text.rb (TextTester#test_shift_operator_chain): Add a test for the above case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/text.rb (REXML::Text#clear_cache): Extract commonkou2013-07-071-3/+8
| | | | | | | cache clear code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* un.rb: help ordernobu2013-07-051-3/+13
| | | | | | * lib/un.rb (UN#help): show help messages in the given order. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* un.rb: help messagenobu2013-07-051-1/+14
| | | | | | * lib/un.rb (setup): show help message by help method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* un.rb: refine regexpnobu2013-07-051-1/+1
| | | | | | * lib/un.rb (help): refine regexp to extract method name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* un.rb: nodoc setupnobu2013-07-051-0/+1
| | | | | | * lib/un.rb (setup): nodoc for internal use method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (FileUtils#chown, FileUtils#chown_R): Fix theknu2013-07-051-2/+2
| | | | | | | wrong output message when user is nil, which should be "chown :group file" instead of "chown group file". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/unit: assert_raise_with_messagenobu2013-07-051-0/+36
| | | | | | | | * lib/test/unit/assertions.rb (assert_raise_with_message): move from test/fileutils/test_fileutils.rb. this is still experimental and the interface may be changed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkmf.rb: config_stringnobu2013-07-051-1/+1
| | | | | | | * lib/mkmf.rb (CPPOUTFILE): use config_string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (CONFIG['CPPOUTFILE']): fix r41769; CONFIG['CPPOUTFILE']naruse2013-07-051-1/+1
| | | | | | may be nil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (FileUtils.chmod{,_R}): Enhance the symbolicknu2013-07-041-46/+62
| | | | | | | | | mode parser to support the permission symbols u/g/o and multiple actions as defined in SUS, so that chmod("g=o+w", file) works as expected. Invalid symbolic modes are now rejected with ArgumentError. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (FileUtils#symbolic_modes_to_i): Fix the wrongknu2013-07-041-2/+2
| | | | | | | character class [+-=], which happened to match all desired characters but also match undesired characters. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkmf.rb: old syntaxnobu2013-07-041-2/+6
| | | | | | | * lib/mkmf.rb (have_framework): get rid of newer syntax to run with ruby 1.8 for cross compiling. [ruby-core:55745] [Bug #8593] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkmf.rb: header in frameworknobu2013-07-041-2/+6
| | | | | | | * lib/mkmf.rb (have_framework): allow header file to check. [ruby-core:55745] [Bug #8593] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkmf.rb: CONFTESTnobu2013-07-041-18/+19
| | | | | | * lib/mkmf.rb (CONFTEST): constify hardcoded filename. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fixing example in comments that raised an error by @JackDanger [fix GH-345]hsbt2013-07-041-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkmf.rb: revert DESTDIR prefixnobu2013-07-031-13/+12
| | | | | | | * lib/mkmf.rb (install_dirs): revert DESTDIR prefix by r39841, since it is fixed by r41648. [ruby-core:55760] [Bug #8115] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (try_config): Fix to not replace $LDFLAGS with $libssorah2013-07-021-1/+2
| | | | | | (1.9.3 behavior) [ruby-core:55752] [Bug #8595] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* csv.rb: get rid of discarding coderangenobu2013-07-011-1/+1
| | | | | | | | | * lib/csv.rb (CSV#<<): use StringIO#set_encoding instead of creating new StringIO instance with String#force_encoding, forcing encoding discards the cached coderange bits and can make further operations very slow. [ruby-core:55714] [Bug #8585] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/prime.rb: Corrected a few comments. Patch by @Nullset14.charliesome2013-06-301-18/+18
| | | | | | Fixes GH-346. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* mkmf.rb: use expanded valuesnobu2013-06-261-3/+2
| | | | | | | | | * lib/mkmf.rb: should use expanded values for header directories unless extmk. patch by vo.x (Vit Ondruch) at [ruby-core:55653] [Bug #8115], rhbz#921650. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/ext/builder.rb (Gem::Ext::Builder.make): Passknu2013-06-252-3/+66
| | | | | | | | | DESTDIR via command line to override what's in MAKEFLAGS. This fixes an installation problem under a package building environment where DESTDIR is specified in the (parent) command line. [Fixes GH-327] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Imported minitest 4.7.5 (r8724)ryan2013-06-222-3/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/util.rb (CGI.escapeHTML): performance improvement.xibbar2013-06-191-1/+1
| | | | | | thank you nagachika-san. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/util.rb(CGI.escapeHTML): performance improvement.xibbar2013-06-191-1/+2
| | | | | | | thank you @bbxiao1 via https://github.com/ruby/ruby/pull/333 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb (XMLRPC::Client#http): Add reader for rawkou2013-06-131-0/+7
| | | | | | | | Net::HTTP. [ruby-core:55197] [Feature #8461] Reported by Herwin Weststrate. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb (XMLRPC::Client#parse_set_cookies): Supportkou2013-06-131-3/+9
| | | | | | | | | | multiple names in a response. [ruby-core:41711] [Bug #5774] Reported by Roman Riha. Thanks!!! * test/xmlrpc/test_client.rb (XMLRPC::ClientTest#test_cookie_override): Add a test of the above case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb (XMLRPC::Client#parse_set_cookies): Usekou2013-06-131-7/+7
| | | | | | | guard style. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fileutils.rb: fix traversal loopnobu2013-06-131-0/+1
| | | | | | | * lib/fileutils.rb (FileUtils#rmdir): fix traversal loop, not trying remove same directory only. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/test_autoload.rb, bootstraptest/test_method.rb:shugo2013-06-131-3/+3
| | | | | | | | | remove tests for $SAFE=4. * lib/pp.rb: use taint instead of untrust to avoid warnings when $VERBOSE is set to true. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/client.rb (XMLRPC::Client#parse_set_cookies): Extract.kou2013-06-121-3/+6
| | | | | | | Sorry for forgetting it in r41236. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update rdoc for pkg_config() and move :stopdoc: below to enable it.knu2013-06-121-3/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update documentation for pkg_config().knu2013-06-111-4/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/specification.rb (Gem::Specification#to_yaml):naruse2013-06-071-1/+1
| | | | | | | use Gem::NoAliasYAMLTree.create instead of Gem::NoAliasYAMLTree.new to suppress deprecated warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e