sane 0.25.0 → 0.25.1
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/ChangeLog +2 -0
 - data/VERSION +1 -1
 - data/lib/sane/present.rb +24 -0
 - data/spec/spec.sane.rb +1 -1
 - metadata +69 -82
 
    
        data/ChangeLog
    CHANGED
    
    
    
        data/VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            0.25. 
     | 
| 
      
 1 
     | 
    
         
            +
            0.25.1
         
     | 
    
        data/lib/sane/present.rb
    ADDED
    
    | 
         @@ -0,0 +1,24 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # LODO move to sane :) also remove the andand dep.
         
     | 
| 
      
 2 
     | 
    
         
            +
            class String
         
     | 
| 
      
 3 
     | 
    
         
            +
              def present?
         
     | 
| 
      
 4 
     | 
    
         
            +
                length > 0
         
     | 
| 
      
 5 
     | 
    
         
            +
              end
         
     | 
| 
      
 6 
     | 
    
         
            +
            end
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            class NilClass
         
     | 
| 
      
 9 
     | 
    
         
            +
              def present?
         
     | 
| 
      
 10 
     | 
    
         
            +
                false
         
     | 
| 
      
 11 
     | 
    
         
            +
              end
         
     | 
| 
      
 12 
     | 
    
         
            +
            end
         
     | 
| 
      
 13 
     | 
    
         
            +
            class Object
         
     | 
| 
      
 14 
     | 
    
         
            +
              def present?
         
     | 
| 
      
 15 
     | 
    
         
            +
                true
         
     | 
| 
      
 16 
     | 
    
         
            +
              end
         
     | 
| 
      
 17 
     | 
    
         
            +
            end
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
            class Array
         
     | 
| 
      
 20 
     | 
    
         
            +
              def present?
         
     | 
| 
      
 21 
     | 
    
         
            +
                length > 0
         
     | 
| 
      
 22 
     | 
    
         
            +
              end
         
     | 
| 
      
 23 
     | 
    
         
            +
            end
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
    
        data/spec/spec.sane.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,90 +1,83 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: sane
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
     | 
    
         
            -
              hash: 123
         
     | 
| 
       5 
4 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       6 
     | 
    
         
            -
               
     | 
| 
       7 
     | 
    
         
            -
              - 0
         
     | 
| 
       8 
     | 
    
         
            -
              - 25
         
     | 
| 
       9 
     | 
    
         
            -
              - 0
         
     | 
| 
       10 
     | 
    
         
            -
              version: 0.25.0
         
     | 
| 
      
 5 
     | 
    
         
            +
              version: 0.25.1
         
     | 
| 
       11 
6 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       12 
7 
     | 
    
         
             
            authors: 
         
     | 
| 
       13 
     | 
    
         
            -
            - Roger Pack
         
     | 
| 
      
 8 
     | 
    
         
            +
              - Roger Pack
         
     | 
| 
       14 
9 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       15 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       16 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       17 
12 
     | 
    
         | 
| 
       18 
     | 
    
         
            -
            date: 2011-12- 
     | 
| 
      
 13 
     | 
    
         
            +
            date: 2011-12-15 00:00:00 Z
         
     | 
| 
       19 
14 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       20 
     | 
    
         
            -
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
             
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
                    version: "0"
         
     | 
| 
       32 
     | 
    
         
            -
              type: :runtime
         
     | 
| 
       33 
     | 
    
         
            -
              version_requirements: *id001
         
     | 
| 
      
 15 
     | 
    
         
            +
              - !ruby/object:Gem::Dependency 
         
     | 
| 
      
 16 
     | 
    
         
            +
                name: os
         
     | 
| 
      
 17 
     | 
    
         
            +
                prerelease: false
         
     | 
| 
      
 18 
     | 
    
         
            +
                requirement: &id001 !ruby/object:Gem::Requirement 
         
     | 
| 
      
 19 
     | 
    
         
            +
                  none: false
         
     | 
| 
      
 20 
     | 
    
         
            +
                  requirements: 
         
     | 
| 
      
 21 
     | 
    
         
            +
                    - - ">="
         
     | 
| 
      
 22 
     | 
    
         
            +
                      - !ruby/object:Gem::Version 
         
     | 
| 
      
 23 
     | 
    
         
            +
                        version: "0"
         
     | 
| 
      
 24 
     | 
    
         
            +
                type: :runtime
         
     | 
| 
      
 25 
     | 
    
         
            +
                version_requirements: *id001
         
     | 
| 
       34 
26 
     | 
    
         
             
            description: Helpers for ruby core to make it easier to work with--things that are missing from core but should arguably be there
         
     | 
| 
       35 
27 
     | 
    
         
             
            email: 
         
     | 
| 
       36 
     | 
    
         
            -
            - rogerdpack@gmail.com
         
     | 
| 
      
 28 
     | 
    
         
            +
              - rogerdpack@gmail.com
         
     | 
| 
       37 
29 
     | 
    
         
             
            executables: []
         
     | 
| 
       38 
30 
     | 
    
         | 
| 
       39 
31 
     | 
    
         
             
            extensions: []
         
     | 
| 
       40 
32 
     | 
    
         | 
| 
       41 
33 
     | 
    
         
             
            extra_rdoc_files: 
         
     | 
| 
       42 
     | 
    
         
            -
            - ChangeLog
         
     | 
| 
       43 
     | 
    
         
            -
            - README
         
     | 
| 
       44 
     | 
    
         
            -
            - TODO
         
     | 
| 
      
 34 
     | 
    
         
            +
              - ChangeLog
         
     | 
| 
      
 35 
     | 
    
         
            +
              - README
         
     | 
| 
      
 36 
     | 
    
         
            +
              - TODO
         
     | 
| 
       45 
37 
     | 
    
         
             
            files: 
         
     | 
| 
       46 
     | 
    
         
            -
            - ChangeLog
         
     | 
| 
       47 
     | 
    
         
            -
            - README
         
     | 
| 
       48 
     | 
    
         
            -
            - Rakefile
         
     | 
| 
       49 
     | 
    
         
            -
            - VERSION
         
     | 
| 
       50 
     | 
    
         
            -
            - lib/_dbg.rb
         
     | 
| 
       51 
     | 
    
         
            -
            - lib/sane.rb
         
     | 
| 
       52 
     | 
    
         
            -
            - lib/sane/array_blank.rb
         
     | 
| 
       53 
     | 
    
         
            -
            - lib/sane/array_contain.rb
         
     | 
| 
       54 
     | 
    
         
            -
            - lib/sane/array_select_bang.rb
         
     | 
| 
       55 
     | 
    
         
            -
            - lib/sane/assert.rb
         
     | 
| 
       56 
     | 
    
         
            -
            - lib/sane/bugs.rb
         
     | 
| 
       57 
     | 
    
         
            -
            - lib/sane/contain.rb
         
     | 
| 
       58 
     | 
    
         
            -
            - lib/sane/enumerable.rb
         
     | 
| 
       59 
     | 
    
         
            -
            - lib/sane/file.rb
         
     | 
| 
       60 
     | 
    
         
            -
            - lib/sane/file_filename.rb
         
     | 
| 
       61 
     | 
    
         
            -
            - lib/sane/file_home.rb
         
     | 
| 
       62 
     | 
    
         
            -
            - lib/sane/float.rb
         
     | 
| 
       63 
     | 
    
         
            -
            - lib/sane/hash_hashes.rb
         
     | 
| 
       64 
     | 
    
         
            -
            - lib/sane/hash_minus_hash.rb
         
     | 
| 
       65 
     | 
    
         
            -
            - lib/sane/irb_startup_options.rb
         
     | 
| 
       66 
     | 
    
         
            -
            - lib/sane/map_by.rb
         
     | 
| 
       67 
     | 
    
         
            -
            - lib/sane/numeric.rb
         
     | 
| 
       68 
     | 
    
         
            -
            - lib/sane/pp.rb
         
     | 
| 
       69 
     | 
    
         
            -
            - lib/sane/pps.rb
         
     | 
| 
       70 
     | 
    
         
            -
            - lib/sane/ 
     | 
| 
       71 
     | 
    
         
            -
            - lib/sane/ 
     | 
| 
       72 
     | 
    
         
            -
            - lib/sane/ 
     | 
| 
       73 
     | 
    
         
            -
            - lib/sane/ 
     | 
| 
       74 
     | 
    
         
            -
            - lib/sane/ 
     | 
| 
       75 
     | 
    
         
            -
            - lib/sane/ 
     | 
| 
       76 
     | 
    
         
            -
            - lib/sane/test 
     | 
| 
       77 
     | 
    
         
            -
            - lib/sane/ 
     | 
| 
       78 
     | 
    
         
            -
            -  
     | 
| 
       79 
     | 
    
         
            -
            - spec/files/ 
     | 
| 
       80 
     | 
    
         
            -
            - spec/files/ 
     | 
| 
       81 
     | 
    
         
            -
            - spec/ 
     | 
| 
       82 
     | 
    
         
            -
            - spec/ 
     | 
| 
       83 
     | 
    
         
            -
            - spec/ 
     | 
| 
       84 
     | 
    
         
            -
            - spec/ 
     | 
| 
       85 
     | 
    
         
            -
            - spec/ 
     | 
| 
       86 
     | 
    
         
            -
            -  
     | 
| 
       87 
     | 
    
         
            -
            -  
     | 
| 
      
 38 
     | 
    
         
            +
              - ChangeLog
         
     | 
| 
      
 39 
     | 
    
         
            +
              - README
         
     | 
| 
      
 40 
     | 
    
         
            +
              - Rakefile
         
     | 
| 
      
 41 
     | 
    
         
            +
              - VERSION
         
     | 
| 
      
 42 
     | 
    
         
            +
              - lib/_dbg.rb
         
     | 
| 
      
 43 
     | 
    
         
            +
              - lib/sane.rb
         
     | 
| 
      
 44 
     | 
    
         
            +
              - lib/sane/array_blank.rb
         
     | 
| 
      
 45 
     | 
    
         
            +
              - lib/sane/array_contain.rb
         
     | 
| 
      
 46 
     | 
    
         
            +
              - lib/sane/array_select_bang.rb
         
     | 
| 
      
 47 
     | 
    
         
            +
              - lib/sane/assert.rb
         
     | 
| 
      
 48 
     | 
    
         
            +
              - lib/sane/bugs.rb
         
     | 
| 
      
 49 
     | 
    
         
            +
              - lib/sane/contain.rb
         
     | 
| 
      
 50 
     | 
    
         
            +
              - lib/sane/enumerable.rb
         
     | 
| 
      
 51 
     | 
    
         
            +
              - lib/sane/file.rb
         
     | 
| 
      
 52 
     | 
    
         
            +
              - lib/sane/file_filename.rb
         
     | 
| 
      
 53 
     | 
    
         
            +
              - lib/sane/file_home.rb
         
     | 
| 
      
 54 
     | 
    
         
            +
              - lib/sane/float.rb
         
     | 
| 
      
 55 
     | 
    
         
            +
              - lib/sane/hash_hashes.rb
         
     | 
| 
      
 56 
     | 
    
         
            +
              - lib/sane/hash_minus_hash.rb
         
     | 
| 
      
 57 
     | 
    
         
            +
              - lib/sane/irb_startup_options.rb
         
     | 
| 
      
 58 
     | 
    
         
            +
              - lib/sane/map_by.rb
         
     | 
| 
      
 59 
     | 
    
         
            +
              - lib/sane/numeric.rb
         
     | 
| 
      
 60 
     | 
    
         
            +
              - lib/sane/pp.rb
         
     | 
| 
      
 61 
     | 
    
         
            +
              - lib/sane/pps.rb
         
     | 
| 
      
 62 
     | 
    
         
            +
              - lib/sane/present.rb
         
     | 
| 
      
 63 
     | 
    
         
            +
              - lib/sane/require_relative.rb
         
     | 
| 
      
 64 
     | 
    
         
            +
              - lib/sane/sane_random.rb
         
     | 
| 
      
 65 
     | 
    
         
            +
              - lib/sane/socket_ips.rb
         
     | 
| 
      
 66 
     | 
    
         
            +
              - lib/sane/string.rb
         
     | 
| 
      
 67 
     | 
    
         
            +
              - lib/sane/string_blank.rb
         
     | 
| 
      
 68 
     | 
    
         
            +
              - lib/sane/test.rb
         
     | 
| 
      
 69 
     | 
    
         
            +
              - lib/sane/test/assertions.rb
         
     | 
| 
      
 70 
     | 
    
         
            +
              - lib/sane/thread.rb
         
     | 
| 
      
 71 
     | 
    
         
            +
              - spec/files/pp_after.rb
         
     | 
| 
      
 72 
     | 
    
         
            +
              - spec/files/pp_before_hand.rb
         
     | 
| 
      
 73 
     | 
    
         
            +
              - spec/files/test.rb
         
     | 
| 
      
 74 
     | 
    
         
            +
              - spec/go2.rb
         
     | 
| 
      
 75 
     | 
    
         
            +
              - spec/req_rel_bug/recreate.rb
         
     | 
| 
      
 76 
     | 
    
         
            +
              - spec/spec.sane.rb
         
     | 
| 
      
 77 
     | 
    
         
            +
              - spec/subdir/go.rb
         
     | 
| 
      
 78 
     | 
    
         
            +
              - spec/subdir2/require_relative2.rb
         
     | 
| 
      
 79 
     | 
    
         
            +
              - todo
         
     | 
| 
      
 80 
     | 
    
         
            +
              - TODO
         
     | 
| 
       88 
81 
     | 
    
         
             
            homepage: http://github.com/rogerdpack/sane_ruby
         
     | 
| 
       89 
82 
     | 
    
         
             
            licenses: []
         
     | 
| 
       90 
83 
     | 
    
         | 
| 
         @@ -92,29 +85,23 @@ post_install_message: 
     | 
|
| 
       92 
85 
     | 
    
         
             
            rdoc_options: []
         
     | 
| 
       93 
86 
     | 
    
         | 
| 
       94 
87 
     | 
    
         
             
            require_paths: 
         
     | 
| 
       95 
     | 
    
         
            -
            - lib
         
     | 
| 
      
 88 
     | 
    
         
            +
              - lib
         
     | 
| 
       96 
89 
     | 
    
         
             
            required_ruby_version: !ruby/object:Gem::Requirement 
         
     | 
| 
       97 
90 
     | 
    
         
             
              none: false
         
     | 
| 
       98 
91 
     | 
    
         
             
              requirements: 
         
     | 
| 
       99 
     | 
    
         
            -
             
     | 
| 
       100 
     | 
    
         
            -
             
     | 
| 
       101 
     | 
    
         
            -
             
     | 
| 
       102 
     | 
    
         
            -
                  segments: 
         
     | 
| 
       103 
     | 
    
         
            -
                  - 0
         
     | 
| 
       104 
     | 
    
         
            -
                  version: "0"
         
     | 
| 
      
 92 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 93 
     | 
    
         
            +
                  - !ruby/object:Gem::Version 
         
     | 
| 
      
 94 
     | 
    
         
            +
                    version: "0"
         
     | 
| 
       105 
95 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement 
         
     | 
| 
       106 
96 
     | 
    
         
             
              none: false
         
     | 
| 
       107 
97 
     | 
    
         
             
              requirements: 
         
     | 
| 
       108 
     | 
    
         
            -
             
     | 
| 
       109 
     | 
    
         
            -
             
     | 
| 
       110 
     | 
    
         
            -
             
     | 
| 
       111 
     | 
    
         
            -
                  segments: 
         
     | 
| 
       112 
     | 
    
         
            -
                  - 0
         
     | 
| 
       113 
     | 
    
         
            -
                  version: "0"
         
     | 
| 
      
 98 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 99 
     | 
    
         
            +
                  - !ruby/object:Gem::Version 
         
     | 
| 
      
 100 
     | 
    
         
            +
                    version: "0"
         
     | 
| 
       114 
101 
     | 
    
         
             
            requirements: []
         
     | 
| 
       115 
102 
     | 
    
         | 
| 
       116 
103 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       117 
     | 
    
         
            -
            rubygems_version: 1. 
     | 
| 
      
 104 
     | 
    
         
            +
            rubygems_version: 1.8.9
         
     | 
| 
       118 
105 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       119 
106 
     | 
    
         
             
            specification_version: 3
         
     | 
| 
       120 
107 
     | 
    
         
             
            summary: Helpers for ruby core to make it easier to work with--things that are missing from core but should arguably be there
         
     |