ruby-nuggets 0.3.4.291 → 0.3.5.292
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/HEADER +27 -0
- data/README +1 -1
- data/lib/nuggets/tempfile.rb +48 -0
- data/lib/nuggets/version.rb +1 -1
- metadata +54 -52
    
        data/HEADER
    ADDED
    
    | @@ -0,0 +1,27 @@ | |
| 1 | 
            +
            #--
         | 
| 2 | 
            +
            ###############################################################################
         | 
| 3 | 
            +
            #                                                                             #
         | 
| 4 | 
            +
            # A component of ruby-nuggets, some extensions to the Ruby programming        #
         | 
| 5 | 
            +
            # language.                                                                   #
         | 
| 6 | 
            +
            #                                                                             #
         | 
| 7 | 
            +
            # Copyright (C) 2007-2008 Jens Wille                                          #
         | 
| 8 | 
            +
            #                                                                             #
         | 
| 9 | 
            +
            # Authors:                                                                    #
         | 
| 10 | 
            +
            #     Jens Wille <jens.wille@uni-koeln.de>                                    #
         | 
| 11 | 
            +
            #                                                                             #
         | 
| 12 | 
            +
            # ruby-nuggets is free software; you can redistribute it and/or modify it     #
         | 
| 13 | 
            +
            # under the terms of the GNU General Public License as published by the Free  #
         | 
| 14 | 
            +
            # Software Foundation; either version 3 of the License, or (at your option)   #
         | 
| 15 | 
            +
            # any later version.                                                          #
         | 
| 16 | 
            +
            #                                                                             #
         | 
| 17 | 
            +
            # ruby-nuggets is distributed in the hope that it will be useful, but WITHOUT #
         | 
| 18 | 
            +
            # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or       #
         | 
| 19 | 
            +
            # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for    #
         | 
| 20 | 
            +
            # more details.                                                               #
         | 
| 21 | 
            +
            #                                                                             #
         | 
| 22 | 
            +
            # You should have received a copy of the GNU General Public License along     #
         | 
| 23 | 
            +
            # with ruby-nuggets. If not, see <http://www.gnu.org/licenses/>.              #
         | 
| 24 | 
            +
            #                                                                             #
         | 
| 25 | 
            +
            ###############################################################################
         | 
| 26 | 
            +
            #++
         | 
| 27 | 
            +
             | 
    
        data/README
    CHANGED
    
    
| @@ -0,0 +1,48 @@ | |
| 1 | 
            +
            #--
         | 
| 2 | 
            +
            ###############################################################################
         | 
| 3 | 
            +
            #                                                                             #
         | 
| 4 | 
            +
            # A component of ruby-nuggets, some extensions to the Ruby programming        #
         | 
| 5 | 
            +
            # language.                                                                   #
         | 
| 6 | 
            +
            #                                                                             #
         | 
| 7 | 
            +
            # Copyright (C) 2007-2008 Jens Wille                                          #
         | 
| 8 | 
            +
            #                                                                             #
         | 
| 9 | 
            +
            # Authors:                                                                    #
         | 
| 10 | 
            +
            #     Jens Wille <jens.wille@uni-koeln.de>                                    #
         | 
| 11 | 
            +
            #                                                                             #
         | 
| 12 | 
            +
            # ruby-nuggets is free software; you can redistribute it and/or modify it     #
         | 
| 13 | 
            +
            # under the terms of the GNU General Public License as published by the Free  #
         | 
| 14 | 
            +
            # Software Foundation; either version 3 of the License, or (at your option)   #
         | 
| 15 | 
            +
            # any later version.                                                          #
         | 
| 16 | 
            +
            #                                                                             #
         | 
| 17 | 
            +
            # ruby-nuggets is distributed in the hope that it will be useful, but WITHOUT #
         | 
| 18 | 
            +
            # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or       #
         | 
| 19 | 
            +
            # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for    #
         | 
| 20 | 
            +
            # more details.                                                               #
         | 
| 21 | 
            +
            #                                                                             #
         | 
| 22 | 
            +
            # You should have received a copy of the GNU General Public License along     #
         | 
| 23 | 
            +
            # with ruby-nuggets. If not, see <http://www.gnu.org/licenses/>.              #
         | 
| 24 | 
            +
            #                                                                             #
         | 
| 25 | 
            +
            ###############################################################################
         | 
| 26 | 
            +
            #++
         | 
| 27 | 
            +
             | 
| 28 | 
            +
            require 'tempfile'
         | 
| 29 | 
            +
             | 
| 30 | 
            +
            # use enhanced Tempfile#make_tmpname, as of r13631
         | 
| 31 | 
            +
            if RUBY_RELEASE_DATE < '2007-10-05'
         | 
| 32 | 
            +
              class Tempfile
         | 
| 33 | 
            +
             | 
| 34 | 
            +
                alias_method :_nuggets_original_make_tmpname, :make_tmpname
         | 
| 35 | 
            +
             | 
| 36 | 
            +
                def make_tmpname(basename, name)
         | 
| 37 | 
            +
                  case basename
         | 
| 38 | 
            +
                    when Array
         | 
| 39 | 
            +
                      prefix, suffix = *basename
         | 
| 40 | 
            +
                    else
         | 
| 41 | 
            +
                      prefix, suffix = basename, ''
         | 
| 42 | 
            +
                  end
         | 
| 43 | 
            +
             | 
| 44 | 
            +
                  "#{prefix}#{Time.now.strftime('%Y%m%d')}-#{$$}-#{rand(0x100000000).to_s(36)}-#{name}#{suffix}"
         | 
| 45 | 
            +
                end
         | 
| 46 | 
            +
             | 
| 47 | 
            +
              end
         | 
| 48 | 
            +
            end
         | 
    
        data/lib/nuggets/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification 
         | 
| 2 2 | 
             
            name: ruby-nuggets
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            -
              version: 0.3. | 
| 4 | 
            +
              version: 0.3.5.292
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors: 
         | 
| 7 7 | 
             
            - Jens Wille
         | 
| @@ -9,7 +9,7 @@ autorequire: | |
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 11 |  | 
| 12 | 
            -
            date: 2008- | 
| 12 | 
            +
            date: 2008-10-10 00:00:00 +02:00
         | 
| 13 13 | 
             
            default_executable: 
         | 
| 14 14 | 
             
            dependencies: []
         | 
| 15 15 |  | 
| @@ -25,77 +25,79 @@ extra_rdoc_files: | |
| 25 25 | 
             
            - README
         | 
| 26 26 | 
             
            files: 
         | 
| 27 27 | 
             
            - lib/nuggets.rb
         | 
| 28 | 
            -
            - lib/nuggets/all.rb
         | 
| 29 | 
            -
            - lib/nuggets/version.rb
         | 
| 30 | 
            -
            - lib/nuggets/io/agrep.rb
         | 
| 31 | 
            -
            - lib/nuggets/io/modes.rb
         | 
| 32 | 
            -
            - lib/nuggets/file/which.rb
         | 
| 33 | 
            -
            - lib/nuggets/integer/factorial.rb
         | 
| 34 28 | 
             
            - lib/nuggets/integer/to_binary_s.rb
         | 
| 35 | 
            -
            - lib/nuggets/ | 
| 36 | 
            -
            - lib/nuggets/ | 
| 37 | 
            -
            - lib/nuggets/array/format.rb
         | 
| 38 | 
            -
            - lib/nuggets/array/in_order.rb
         | 
| 39 | 
            -
            - lib/nuggets/array/combination.rb
         | 
| 40 | 
            -
            - lib/nuggets/array/flatten_once.rb
         | 
| 41 | 
            -
            - lib/nuggets/array/rand.rb
         | 
| 42 | 
            -
            - lib/nuggets/array/only.rb
         | 
| 43 | 
            -
            - lib/nuggets/array/monotone.rb
         | 
| 44 | 
            -
            - lib/nuggets/uri/exist.rb
         | 
| 45 | 
            -
            - lib/nuggets/uri/content_type.rb
         | 
| 46 | 
            -
            - lib/nuggets/proc/bind.rb
         | 
| 47 | 
            -
            - lib/nuggets/string/word_wrap.rb
         | 
| 48 | 
            -
            - lib/nuggets/string/msub.rb
         | 
| 49 | 
            -
            - lib/nuggets/string/case.rb
         | 
| 50 | 
            -
            - lib/nuggets/string/sub_with_md.rb
         | 
| 51 | 
            -
            - lib/nuggets/string/evaluate.rb
         | 
| 52 | 
            -
            - lib/nuggets/string/nsub.rb
         | 
| 53 | 
            -
            - lib/nuggets/string/capitalize_first.rb
         | 
| 54 | 
            -
            - lib/nuggets/object/blank.rb
         | 
| 29 | 
            +
            - lib/nuggets/integer/factorial.rb
         | 
| 30 | 
            +
            - lib/nuggets/version.rb
         | 
| 55 31 | 
             
            - lib/nuggets/object/metaclass.rb
         | 
| 56 | 
            -
            - lib/nuggets/object/uniclass.rb
         | 
| 57 32 | 
             
            - lib/nuggets/object/singleton_class.rb
         | 
| 33 | 
            +
            - lib/nuggets/object/virtual_class.rb
         | 
| 58 34 | 
             
            - lib/nuggets/object/ghost_class.rb
         | 
| 59 35 | 
             
            - lib/nuggets/object/eigenclass.rb
         | 
| 60 | 
            -
            - lib/nuggets/object/ | 
| 36 | 
            +
            - lib/nuggets/object/blank.rb
         | 
| 61 37 | 
             
            - lib/nuggets/object/msend.rb
         | 
| 62 | 
            -
            - lib/nuggets/ | 
| 63 | 
            -
            - lib/nuggets/ | 
| 38 | 
            +
            - lib/nuggets/object/uniclass.rb
         | 
| 39 | 
            +
            - lib/nuggets/enumerable/agrep.rb
         | 
| 40 | 
            +
            - lib/nuggets/enumerable/all_any_extended.rb
         | 
| 41 | 
            +
            - lib/nuggets/enumerable/minmax.rb
         | 
| 42 | 
            +
            - lib/nuggets/all.rb
         | 
| 43 | 
            +
            - lib/nuggets/string/sub_with_md.rb
         | 
| 44 | 
            +
            - lib/nuggets/string/msub.rb
         | 
| 45 | 
            +
            - lib/nuggets/string/case.rb
         | 
| 46 | 
            +
            - lib/nuggets/string/evaluate.rb
         | 
| 47 | 
            +
            - lib/nuggets/string/word_wrap.rb
         | 
| 48 | 
            +
            - lib/nuggets/string/nsub.rb
         | 
| 49 | 
            +
            - lib/nuggets/string/capitalize_first.rb
         | 
| 50 | 
            +
            - lib/nuggets/env/user_home.rb
         | 
| 51 | 
            +
            - lib/nuggets/env/user_encoding.rb
         | 
| 52 | 
            +
            - lib/nuggets/hash/at.rb
         | 
| 53 | 
            +
            - lib/nuggets/hash/only.rb
         | 
| 54 | 
            +
            - lib/nuggets/hash/in_order.rb
         | 
| 55 | 
            +
            - lib/nuggets/hash/insert.rb
         | 
| 56 | 
            +
            - lib/nuggets/proc/bind.rb
         | 
| 57 | 
            +
            - lib/nuggets/array/rand.rb
         | 
| 58 | 
            +
            - lib/nuggets/array/to_hash.rb
         | 
| 59 | 
            +
            - lib/nuggets/array/flatten_once.rb
         | 
| 60 | 
            +
            - lib/nuggets/array/only.rb
         | 
| 61 | 
            +
            - lib/nuggets/array/in_order.rb
         | 
| 62 | 
            +
            - lib/nuggets/array/shuffle.rb
         | 
| 63 | 
            +
            - lib/nuggets/array/monotone.rb
         | 
| 64 | 
            +
            - lib/nuggets/array/format.rb
         | 
| 65 | 
            +
            - lib/nuggets/array/combination.rb
         | 
| 64 66 | 
             
            - lib/nuggets/numeric/between.rb
         | 
| 67 | 
            +
            - lib/nuggets/numeric/duration.rb
         | 
| 65 68 | 
             
            - lib/nuggets/numeric/signum.rb
         | 
| 69 | 
            +
            - lib/nuggets/numeric/limit.rb
         | 
| 66 70 | 
             
            - lib/nuggets/numeric/to_multiple.rb
         | 
| 67 | 
            -
            - lib/nuggets/ | 
| 68 | 
            -
            - lib/nuggets/ | 
| 69 | 
            -
            - lib/nuggets/util/dotted_decimal.rb
         | 
| 70 | 
            -
            - lib/nuggets/util/i18n.rb
         | 
| 71 | 
            +
            - lib/nuggets/util/added_methods/init.rb
         | 
| 72 | 
            +
            - lib/nuggets/util/added_methods.rb
         | 
| 71 73 | 
             
            - lib/nuggets/util/ansicolor2css.rb
         | 
| 72 74 | 
             
            - lib/nuggets/util/content_type.rb
         | 
| 73 | 
            -
            - lib/nuggets/util/ | 
| 74 | 
            -
            - lib/nuggets/util/ | 
| 75 | 
            -
            - lib/nuggets/ | 
| 76 | 
            -
            - lib/nuggets/ | 
| 77 | 
            -
            - lib/nuggets/ | 
| 78 | 
            -
            - lib/nuggets/ | 
| 79 | 
            -
            - lib/nuggets/ | 
| 80 | 
            -
            - lib/nuggets/ | 
| 81 | 
            -
            - lib/nuggets/hash/insert.rb
         | 
| 75 | 
            +
            - lib/nuggets/util/dotted_decimal.rb
         | 
| 76 | 
            +
            - lib/nuggets/util/i18n.rb
         | 
| 77 | 
            +
            - lib/nuggets/file/which.rb
         | 
| 78 | 
            +
            - lib/nuggets/tempfile.rb
         | 
| 79 | 
            +
            - lib/nuggets/uri/content_type.rb
         | 
| 80 | 
            +
            - lib/nuggets/uri/exist.rb
         | 
| 81 | 
            +
            - lib/nuggets/io/modes.rb
         | 
| 82 | 
            +
            - lib/nuggets/io/agrep.rb
         | 
| 82 83 | 
             
            - COPYING
         | 
| 83 | 
            -
            -  | 
| 84 | 
            +
            - HEADER
         | 
| 84 85 | 
             
            - README
         | 
| 85 86 | 
             
            - ChangeLog
         | 
| 87 | 
            +
            - Rakefile
         | 
| 86 88 | 
             
            has_rdoc: true
         | 
| 87 89 | 
             
            homepage: http://prometheus.rubyforge.org/ruby-nuggets
         | 
| 88 90 | 
             
            post_install_message: 
         | 
| 89 91 | 
             
            rdoc_options: 
         | 
| 90 | 
            -
            - --line-numbers
         | 
| 91 | 
            -
            - --all
         | 
| 92 | 
            -
            - --main
         | 
| 93 | 
            -
            - README
         | 
| 94 | 
            -
            - --inline-source
         | 
| 95 92 | 
             
            - --title
         | 
| 96 93 | 
             
            - ruby-nuggets Application documentation
         | 
| 97 94 | 
             
            - --charset
         | 
| 98 95 | 
             
            - UTF-8
         | 
| 96 | 
            +
            - --main
         | 
| 97 | 
            +
            - README
         | 
| 98 | 
            +
            - --all
         | 
| 99 | 
            +
            - --line-numbers
         | 
| 100 | 
            +
            - --inline-source
         | 
| 99 101 | 
             
            require_paths: 
         | 
| 100 102 | 
             
            - lib
         | 
| 101 103 | 
             
            required_ruby_version: !ruby/object:Gem::Requirement 
         | 
| @@ -113,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 113 115 | 
             
            requirements: []
         | 
| 114 116 |  | 
| 115 117 | 
             
            rubyforge_project: prometheus
         | 
| 116 | 
            -
            rubygems_version: 1. | 
| 118 | 
            +
            rubygems_version: 1.3.0
         | 
| 117 119 | 
             
            signing_key: 
         | 
| 118 120 | 
             
            specification_version: 2
         | 
| 119 121 | 
             
            summary: Some extensions to the Ruby programming language.
         |