rangeary 0.3.0 → 2.0
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.
- checksums.yaml +5 -5
 - data/.gitignore +55 -0
 - data/ChangeLog +33 -0
 - data/Makefile +24 -0
 - data/News +8 -0
 - data/README.ja.rdoc +597 -146
 - data/lib/rangeary/util/hash_inf.rb +233 -0
 - data/lib/rangeary/util.rb +727 -0
 - data/lib/rangeary.rb +1420 -0
 - data/rangeary.gemspec +27 -24
 - data/test/tee_io.rb +111 -0
 - data/test/test_rangeary.rb +534 -87
 - metadata +29 -23
 - data/lib/rangeary/rangeary.rb +0 -1210
 
    
        metadata
    CHANGED
    
    | 
         @@ -1,53 +1,60 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: rangeary
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version:  
     | 
| 
      
 4 
     | 
    
         
            +
              version: '2.0'
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Masa Sakano
         
     | 
| 
       8 
     | 
    
         
            -
            autorequire: 
     | 
| 
      
 8 
     | 
    
         
            +
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2022-09-08 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: range_extd
         
     | 
| 
       15 
15 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       16 
16 
     | 
    
         
             
                requirements:
         
     | 
| 
       17 
     | 
    
         
            -
                - - " 
     | 
| 
      
 17 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       18 
18 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       19 
     | 
    
         
            -
                    version:  
     | 
| 
      
 19 
     | 
    
         
            +
                    version: '2'
         
     | 
| 
       20 
20 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       21 
21 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       22 
22 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       23 
23 
     | 
    
         
             
                requirements:
         
     | 
| 
       24 
     | 
    
         
            -
                - - " 
     | 
| 
      
 24 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       25 
25 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       26 
     | 
    
         
            -
                    version:  
     | 
| 
       27 
     | 
    
         
            -
            description: Rangeary is a sub-class of Array and represents any 1-dimensional multiple-range 
     | 
| 
       28 
     | 
    
         
            -
              example, (x<4 and 7<x<=9) 
     | 
| 
       29 
     | 
    
         
            -
               
     | 
| 
       30 
     | 
    
         
            -
               
     | 
| 
       31 
     | 
    
         
            -
               
     | 
| 
       32 
     | 
    
         
            -
               
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
      
 26 
     | 
    
         
            +
                    version: '2'
         
     | 
| 
      
 27 
     | 
    
         
            +
            description: Rangeary is a sub-class of Array and represents any 1-dimensional multiple-range,
         
     | 
| 
      
 28 
     | 
    
         
            +
              for example, (x<4 and 7<x<=9) or (x<="c" and "f"<=x), where the infinities can be
         
     | 
| 
      
 29 
     | 
    
         
            +
              abstract like nil or be defined by the user. All the standard logical operations,
         
     | 
| 
      
 30 
     | 
    
         
            +
              including negation, conjunction and disjunction, are supported and can be used with
         
     | 
| 
      
 31 
     | 
    
         
            +
              conventional Ruby-style operators.  Each range is represented as RangeExtd class
         
     | 
| 
      
 32 
     | 
    
         
            +
              (Extended Range), which is a sub-class of Range and supports exclude-begin and open-ended
         
     | 
| 
      
 33 
     | 
    
         
            +
              (to Infinity) ranges, and is downloadable from https://rubygems.org/gems/range_extd
         
     | 
| 
      
 34 
     | 
    
         
            +
            email:
         
     | 
| 
       34 
35 
     | 
    
         
             
            executables: []
         
     | 
| 
       35 
36 
     | 
    
         
             
            extensions: []
         
     | 
| 
       36 
37 
     | 
    
         
             
            extra_rdoc_files:
         
     | 
| 
       37 
38 
     | 
    
         
             
            - README.ja.rdoc
         
     | 
| 
       38 
39 
     | 
    
         
             
            files:
         
     | 
| 
      
 40 
     | 
    
         
            +
            - ".gitignore"
         
     | 
| 
       39 
41 
     | 
    
         
             
            - ChangeLog
         
     | 
| 
      
 42 
     | 
    
         
            +
            - Makefile
         
     | 
| 
       40 
43 
     | 
    
         
             
            - News
         
     | 
| 
       41 
44 
     | 
    
         
             
            - README.ja.rdoc
         
     | 
| 
       42 
45 
     | 
    
         
             
            - Rakefile
         
     | 
| 
       43 
     | 
    
         
            -
            - lib/rangeary 
     | 
| 
      
 46 
     | 
    
         
            +
            - lib/rangeary.rb
         
     | 
| 
      
 47 
     | 
    
         
            +
            - lib/rangeary/util.rb
         
     | 
| 
      
 48 
     | 
    
         
            +
            - lib/rangeary/util/hash_inf.rb
         
     | 
| 
       44 
49 
     | 
    
         
             
            - rangeary.gemspec
         
     | 
| 
      
 50 
     | 
    
         
            +
            - test/tee_io.rb
         
     | 
| 
       45 
51 
     | 
    
         
             
            - test/test_rangeary.rb
         
     | 
| 
       46 
     | 
    
         
            -
            homepage: 
         
     | 
| 
      
 52 
     | 
    
         
            +
            homepage: https://www.wisebabel.com
         
     | 
| 
       47 
53 
     | 
    
         
             
            licenses:
         
     | 
| 
       48 
54 
     | 
    
         
             
            - MIT
         
     | 
| 
       49 
     | 
    
         
            -
            metadata: 
     | 
| 
       50 
     | 
    
         
            -
             
     | 
| 
      
 55 
     | 
    
         
            +
            metadata:
         
     | 
| 
      
 56 
     | 
    
         
            +
              yard.run: yri
         
     | 
| 
      
 57 
     | 
    
         
            +
            post_install_message:
         
     | 
| 
       51 
58 
     | 
    
         
             
            rdoc_options:
         
     | 
| 
       52 
59 
     | 
    
         
             
            - "--charset=UTF-8"
         
     | 
| 
       53 
60 
     | 
    
         
             
            require_paths:
         
     | 
| 
         @@ -56,18 +63,17 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       56 
63 
     | 
    
         
             
              requirements:
         
     | 
| 
       57 
64 
     | 
    
         
             
              - - ">="
         
     | 
| 
       58 
65 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       59 
     | 
    
         
            -
                  version: '2. 
     | 
| 
      
 66 
     | 
    
         
            +
                  version: '2.7'
         
     | 
| 
       60 
67 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       61 
68 
     | 
    
         
             
              requirements:
         
     | 
| 
       62 
69 
     | 
    
         
             
              - - ">="
         
     | 
| 
       63 
70 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       64 
71 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       65 
72 
     | 
    
         
             
            requirements: []
         
     | 
| 
       66 
     | 
    
         
            -
             
     | 
| 
       67 
     | 
    
         
            -
             
     | 
| 
       68 
     | 
    
         
            -
            signing_key: 
         
     | 
| 
      
 73 
     | 
    
         
            +
            rubygems_version: 3.3.7
         
     | 
| 
      
 74 
     | 
    
         
            +
            signing_key:
         
     | 
| 
       69 
75 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       70 
76 
     | 
    
         
             
            summary: Rangeary - class to represent any 1-dimensional multiple-range
         
     | 
| 
       71 
77 
     | 
    
         
             
            test_files:
         
     | 
| 
      
 78 
     | 
    
         
            +
            - test/tee_io.rb
         
     | 
| 
       72 
79 
     | 
    
         
             
            - test/test_rangeary.rb
         
     | 
| 
       73 
     | 
    
         
            -
            has_rdoc: 
         
     |