rrlist 0.0.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/.gitignore +7 -0
- data/Gemfile +5 -0
- data/README.md +158 -0
- data/Rakefile +1 -0
- data/doc/RRArchive.html +555 -0
- data/doc/RRComposite.html +639 -0
- data/doc/RRList/Functions.html +675 -0
- data/doc/RRList/List.html +2277 -0
- data/doc/RRList/Stores.html +115 -0
- data/doc/RRList/Stores/InMemoryArray.html +609 -0
- data/doc/RRListStore.html +115 -0
- data/doc/RRListStore/InMemoryArray.html +580 -0
- data/doc/RRMath.html +634 -0
- data/doc/RRlist.html +131 -0
- data/doc/_index.html +170 -0
- data/doc/class_list.html +53 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +338 -0
- data/doc/file.README.html +227 -0
- data/doc/file_list.html +55 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +227 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +178 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +268 -0
- data/doc/top-level-namespace.html +112 -0
- data/lib/rrlist.rb +3 -0
- data/lib/rrlist/functions.rb +80 -0
- data/lib/rrlist/list.rb +212 -0
- data/lib/rrlist/stores.rb +45 -0
- data/lib/rrlist/version.rb +3 -0
- data/rrlist.gemspec +27 -0
- data/spec/lib/rrlist/functions_spec.rb +19 -0
- data/spec/lib/rrlist/list_spec.rb +416 -0
- data/spec/spec_helper.rb +36 -0
- metadata +167 -0
    
        data/spec/spec_helper.rb
    ADDED
    
    | @@ -0,0 +1,36 @@ | |
| 1 | 
            +
            # This file was generated by the `rspec --init` command. Conventionally, all
         | 
| 2 | 
            +
            # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
         | 
| 3 | 
            +
            # Require this file using `require "spec_helper"` to ensure that it is only
         | 
| 4 | 
            +
            # loaded once.
         | 
| 5 | 
            +
            #
         | 
| 6 | 
            +
            # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
         | 
| 7 | 
            +
             | 
| 8 | 
            +
             | 
| 9 | 
            +
            require File.expand_path('../../lib/rrlist', __FILE__)
         | 
| 10 | 
            +
            # require File.expand_path('../../lib/rrlist', __FILE__)
         | 
| 11 | 
            +
            # require File.expand_path('../../lib/rrarchive', __FILE__)
         | 
| 12 | 
            +
            # require File.expand_path('../../lib/rrcomposite', __FILE__)
         | 
| 13 | 
            +
            # require File.expand_path('../../lib/rrtime', __FILE__)
         | 
| 14 | 
            +
            # require File.expand_path('../../lib/rrmath', __FILE__)
         | 
| 15 | 
            +
             | 
| 16 | 
            +
             | 
| 17 | 
            +
            RSpec.configure do |config|
         | 
| 18 | 
            +
              config.treat_symbols_as_metadata_keys_with_true_values = true
         | 
| 19 | 
            +
              config.run_all_when_everything_filtered = true
         | 
| 20 | 
            +
              config.filter_run :focus
         | 
| 21 | 
            +
             | 
| 22 | 
            +
              # Run specs in random order to surface order dependencies. If you find an
         | 
| 23 | 
            +
              # order dependency and want to debug it, you can fix the order by providing
         | 
| 24 | 
            +
              # the seed, which is printed after each run.
         | 
| 25 | 
            +
              #     --seed 1234
         | 
| 26 | 
            +
              config.order = 'random'
         | 
| 27 | 
            +
            end
         | 
| 28 | 
            +
             | 
| 29 | 
            +
             | 
| 30 | 
            +
            def rrlist_should_match(rr_list,size,range,position,overal_position,values)
         | 
| 31 | 
            +
              rr_list.size.should be size
         | 
| 32 | 
            +
              rr_list.range.should be range
         | 
| 33 | 
            +
              rr_list.position.should be position
         | 
| 34 | 
            +
              rr_list.overal_position.should be overal_position
         | 
| 35 | 
            +
              rr_list.values.should eq values
         | 
| 36 | 
            +
            end
         | 
    
        metadata
    ADDED
    
    | @@ -0,0 +1,167 @@ | |
| 1 | 
            +
            --- !ruby/object:Gem::Specification
         | 
| 2 | 
            +
            name: rrlist
         | 
| 3 | 
            +
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            +
              version: 0.0.1
         | 
| 5 | 
            +
              prerelease: 
         | 
| 6 | 
            +
            platform: ruby
         | 
| 7 | 
            +
            authors:
         | 
| 8 | 
            +
            - Federico Dayan
         | 
| 9 | 
            +
            autorequire: 
         | 
| 10 | 
            +
            bindir: bin
         | 
| 11 | 
            +
            cert_chain: []
         | 
| 12 | 
            +
            date: 2013-05-31 00:00:00.000000000 Z
         | 
| 13 | 
            +
            dependencies:
         | 
| 14 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 15 | 
            +
              name: trollop
         | 
| 16 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 17 | 
            +
                none: false
         | 
| 18 | 
            +
                requirements:
         | 
| 19 | 
            +
                - - ! '>='
         | 
| 20 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 21 | 
            +
                    version: '0'
         | 
| 22 | 
            +
              type: :runtime
         | 
| 23 | 
            +
              prerelease: false
         | 
| 24 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 25 | 
            +
                none: false
         | 
| 26 | 
            +
                requirements:
         | 
| 27 | 
            +
                - - ! '>='
         | 
| 28 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 29 | 
            +
                    version: '0'
         | 
| 30 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 31 | 
            +
              name: rainbow
         | 
| 32 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 33 | 
            +
                none: false
         | 
| 34 | 
            +
                requirements:
         | 
| 35 | 
            +
                - - ! '>='
         | 
| 36 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 37 | 
            +
                    version: '0'
         | 
| 38 | 
            +
              type: :runtime
         | 
| 39 | 
            +
              prerelease: false
         | 
| 40 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 41 | 
            +
                none: false
         | 
| 42 | 
            +
                requirements:
         | 
| 43 | 
            +
                - - ! '>='
         | 
| 44 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 45 | 
            +
                    version: '0'
         | 
| 46 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 47 | 
            +
              name: rspec
         | 
| 48 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 49 | 
            +
                none: false
         | 
| 50 | 
            +
                requirements:
         | 
| 51 | 
            +
                - - ! '>='
         | 
| 52 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 53 | 
            +
                    version: '0'
         | 
| 54 | 
            +
              type: :development
         | 
| 55 | 
            +
              prerelease: false
         | 
| 56 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 57 | 
            +
                none: false
         | 
| 58 | 
            +
                requirements:
         | 
| 59 | 
            +
                - - ! '>='
         | 
| 60 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 61 | 
            +
                    version: '0'
         | 
| 62 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 63 | 
            +
              name: yard
         | 
| 64 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 65 | 
            +
                none: false
         | 
| 66 | 
            +
                requirements:
         | 
| 67 | 
            +
                - - ! '>='
         | 
| 68 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 69 | 
            +
                    version: '0'
         | 
| 70 | 
            +
              type: :development
         | 
| 71 | 
            +
              prerelease: false
         | 
| 72 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 73 | 
            +
                none: false
         | 
| 74 | 
            +
                requirements:
         | 
| 75 | 
            +
                - - ! '>='
         | 
| 76 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 77 | 
            +
                    version: '0'
         | 
| 78 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 79 | 
            +
              name: redcarpet
         | 
| 80 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 81 | 
            +
                none: false
         | 
| 82 | 
            +
                requirements:
         | 
| 83 | 
            +
                - - ! '>='
         | 
| 84 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 85 | 
            +
                    version: '0'
         | 
| 86 | 
            +
              type: :development
         | 
| 87 | 
            +
              prerelease: false
         | 
| 88 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 89 | 
            +
                none: false
         | 
| 90 | 
            +
                requirements:
         | 
| 91 | 
            +
                - - ! '>='
         | 
| 92 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 93 | 
            +
                    version: '0'
         | 
| 94 | 
            +
            description: Inspired by RRDTool. A list that its size remains constant over time.
         | 
| 95 | 
            +
              You can use ranges and functions.
         | 
| 96 | 
            +
            email:
         | 
| 97 | 
            +
            - federico.dayan@gmail.com
         | 
| 98 | 
            +
            executables: []
         | 
| 99 | 
            +
            extensions: []
         | 
| 100 | 
            +
            extra_rdoc_files: []
         | 
| 101 | 
            +
            files:
         | 
| 102 | 
            +
            - .gitignore
         | 
| 103 | 
            +
            - Gemfile
         | 
| 104 | 
            +
            - README.md
         | 
| 105 | 
            +
            - Rakefile
         | 
| 106 | 
            +
            - doc/RRArchive.html
         | 
| 107 | 
            +
            - doc/RRComposite.html
         | 
| 108 | 
            +
            - doc/RRList/Functions.html
         | 
| 109 | 
            +
            - doc/RRList/List.html
         | 
| 110 | 
            +
            - doc/RRList/Stores.html
         | 
| 111 | 
            +
            - doc/RRList/Stores/InMemoryArray.html
         | 
| 112 | 
            +
            - doc/RRListStore.html
         | 
| 113 | 
            +
            - doc/RRListStore/InMemoryArray.html
         | 
| 114 | 
            +
            - doc/RRMath.html
         | 
| 115 | 
            +
            - doc/RRlist.html
         | 
| 116 | 
            +
            - doc/_index.html
         | 
| 117 | 
            +
            - doc/class_list.html
         | 
| 118 | 
            +
            - doc/css/common.css
         | 
| 119 | 
            +
            - doc/css/full_list.css
         | 
| 120 | 
            +
            - doc/css/style.css
         | 
| 121 | 
            +
            - doc/file.README.html
         | 
| 122 | 
            +
            - doc/file_list.html
         | 
| 123 | 
            +
            - doc/frames.html
         | 
| 124 | 
            +
            - doc/index.html
         | 
| 125 | 
            +
            - doc/js/app.js
         | 
| 126 | 
            +
            - doc/js/full_list.js
         | 
| 127 | 
            +
            - doc/js/jquery.js
         | 
| 128 | 
            +
            - doc/method_list.html
         | 
| 129 | 
            +
            - doc/top-level-namespace.html
         | 
| 130 | 
            +
            - lib/rrlist.rb
         | 
| 131 | 
            +
            - lib/rrlist/functions.rb
         | 
| 132 | 
            +
            - lib/rrlist/list.rb
         | 
| 133 | 
            +
            - lib/rrlist/stores.rb
         | 
| 134 | 
            +
            - lib/rrlist/version.rb
         | 
| 135 | 
            +
            - rrlist.gemspec
         | 
| 136 | 
            +
            - spec/lib/rrlist/functions_spec.rb
         | 
| 137 | 
            +
            - spec/lib/rrlist/list_spec.rb
         | 
| 138 | 
            +
            - spec/spec_helper.rb
         | 
| 139 | 
            +
            homepage: https://github.com/fddayan/rrlist
         | 
| 140 | 
            +
            licenses: []
         | 
| 141 | 
            +
            post_install_message: 
         | 
| 142 | 
            +
            rdoc_options: []
         | 
| 143 | 
            +
            require_paths:
         | 
| 144 | 
            +
            - lib
         | 
| 145 | 
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 146 | 
            +
              none: false
         | 
| 147 | 
            +
              requirements:
         | 
| 148 | 
            +
              - - ! '>='
         | 
| 149 | 
            +
                - !ruby/object:Gem::Version
         | 
| 150 | 
            +
                  version: '0'
         | 
| 151 | 
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 152 | 
            +
              none: false
         | 
| 153 | 
            +
              requirements:
         | 
| 154 | 
            +
              - - ! '>='
         | 
| 155 | 
            +
                - !ruby/object:Gem::Version
         | 
| 156 | 
            +
                  version: '0'
         | 
| 157 | 
            +
            requirements: []
         | 
| 158 | 
            +
            rubyforge_project: rrlist
         | 
| 159 | 
            +
            rubygems_version: 1.8.24
         | 
| 160 | 
            +
            signing_key: 
         | 
| 161 | 
            +
            specification_version: 3
         | 
| 162 | 
            +
            summary: A list that its size remains constant over time
         | 
| 163 | 
            +
            test_files:
         | 
| 164 | 
            +
            - spec/lib/rrlist/functions_spec.rb
         | 
| 165 | 
            +
            - spec/lib/rrlist/list_spec.rb
         | 
| 166 | 
            +
            - spec/spec_helper.rb
         | 
| 167 | 
            +
            has_rdoc: 
         |