progressbar 0.21.0 → 1.8.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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/LICENSE.txt +19 -0
- data/README.md +38 -0
- data/Rakefile +2 -14
- data/lib/progressbar.rb +14 -284
- data/lib/ruby-progressbar/base.rb +161 -0
- data/lib/ruby-progressbar/calculators/length.rb +88 -0
- data/lib/ruby-progressbar/calculators/length_spec.rb +9 -0
- data/lib/ruby-progressbar/calculators/running_average.rb +9 -0
- data/lib/ruby-progressbar/components.rb +5 -0
- data/lib/ruby-progressbar/components/bar.rb +96 -0
- data/lib/ruby-progressbar/components/percentage.rb +29 -0
- data/lib/ruby-progressbar/components/rate.rb +43 -0
- data/lib/ruby-progressbar/components/time.rb +103 -0
- data/lib/ruby-progressbar/components/title.rb +13 -0
- data/lib/ruby-progressbar/errors/invalid_progress_error.rb +4 -0
- data/lib/ruby-progressbar/format.rb +3 -0
- data/lib/ruby-progressbar/format/formatter.rb +27 -0
- data/lib/ruby-progressbar/format/molecule.rb +58 -0
- data/lib/ruby-progressbar/format/string.rb +36 -0
- data/lib/ruby-progressbar/output.rb +61 -0
- data/lib/ruby-progressbar/outputs/non_tty.rb +47 -0
- data/lib/ruby-progressbar/outputs/tty.rb +32 -0
- data/lib/ruby-progressbar/progress.rb +114 -0
- data/lib/ruby-progressbar/throttle.rb +25 -0
- data/lib/ruby-progressbar/time.rb +30 -0
- data/lib/ruby-progressbar/timer.rb +72 -0
- data/lib/ruby-progressbar/version.rb +3 -0
- data/spec/fixtures/benchmark.rb +28 -0
- data/spec/ruby-progressbar/base_spec.rb +949 -0
- data/spec/ruby-progressbar/calculators/length_calculator_spec.rb +17 -0
- data/spec/ruby-progressbar/calculators/running_average_spec.rb +19 -0
- data/spec/ruby-progressbar/components/bar_spec.rb +234 -0
- data/spec/ruby-progressbar/components/percentage_spec.rb +9 -0
- data/spec/ruby-progressbar/components/rate_spec.rb +9 -0
- data/spec/ruby-progressbar/components/throttle_spec.rb +157 -0
- data/spec/ruby-progressbar/components/time_spec.rb +307 -0
- data/spec/ruby-progressbar/components/title_spec.rb +12 -0
- data/spec/ruby-progressbar/format/formatter_spec.rb +9 -0
- data/spec/ruby-progressbar/format/molecule_spec.rb +30 -0
- data/spec/ruby-progressbar/format/string_spec.rb +9 -0
- data/spec/ruby-progressbar/output_spec.rb +7 -0
- data/spec/ruby-progressbar/outputs/non_tty_spec.rb +9 -0
- data/spec/ruby-progressbar/outputs/tty_spec.rb +9 -0
- data/spec/ruby-progressbar/progress_spec.rb +156 -0
- data/spec/ruby-progressbar/time_spec.rb +45 -0
- data/spec/ruby-progressbar/timer_spec.rb +7 -0
- data/spec/spec_helper.rb +6 -0
- data/spec/support/time.rb +17 -0
- metadata +134 -69
- metadata.gz.sig +3 -0
- data/.gitignore +0 -23
- data/.ruby-version +0 -1
- data/.travis.yml +0 -6
- data/ChangeLog +0 -113
- data/Gemfile +0 -4
- data/Gemfile.lock +0 -27
- data/LICENSE +0 -1
- data/README.rdoc +0 -116
- data/progressbar.gemspec +0 -29
- data/test/test.rb +0 -125
| @@ -0,0 +1,45 @@ | |
| 1 | 
            +
            require 'spec_helper'
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            class TimeMockedWithTimecop
         | 
| 4 | 
            +
              def self.now_without_mock_time; end
         | 
| 5 | 
            +
            end
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            class TimeMockedWithDelorean
         | 
| 8 | 
            +
              def self.now_without_delorean; end
         | 
| 9 | 
            +
            end
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            class TimeMockedWithActiveSupport
         | 
| 12 | 
            +
              def self.__simple_stub__now; end
         | 
| 13 | 
            +
            end
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            class UnmockedTime
         | 
| 16 | 
            +
              def self.now; end
         | 
| 17 | 
            +
            end
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            class           ProgressBar
         | 
| 20 | 
            +
            RSpec.describe  Time do
         | 
| 21 | 
            +
              it 'when Time is being mocked by Timecop retrieves the unmocked Timecop time' do
         | 
| 22 | 
            +
                expect(TimeMockedWithTimecop).to receive(:now_without_mock_time).once
         | 
| 23 | 
            +
             | 
| 24 | 
            +
                Time.new(TimeMockedWithTimecop).now
         | 
| 25 | 
            +
              end
         | 
| 26 | 
            +
             | 
| 27 | 
            +
              it 'when Time is being mocked by Delorean retrieves the unmocked Delorean time' do
         | 
| 28 | 
            +
                expect(TimeMockedWithDelorean).to receive(:now_without_delorean).once
         | 
| 29 | 
            +
             | 
| 30 | 
            +
                Time.new(TimeMockedWithDelorean).now
         | 
| 31 | 
            +
              end
         | 
| 32 | 
            +
             | 
| 33 | 
            +
              it 'when Time is being mocked by ActiveSupport retrieves the unmocked time' do
         | 
| 34 | 
            +
                expect(TimeMockedWithActiveSupport).to receive(:__simple_stub__now).once
         | 
| 35 | 
            +
             | 
| 36 | 
            +
                Time.new(TimeMockedWithActiveSupport).now
         | 
| 37 | 
            +
              end
         | 
| 38 | 
            +
             | 
| 39 | 
            +
              it 'when Time is not being mocked will return the actual time' do
         | 
| 40 | 
            +
                expect(UnmockedTime).to receive(:now).once
         | 
| 41 | 
            +
             | 
| 42 | 
            +
                Time.new(UnmockedTime).now
         | 
| 43 | 
            +
              end
         | 
| 44 | 
            +
            end
         | 
| 45 | 
            +
            end
         | 
    
        data/spec/spec_helper.rb
    ADDED
    
    
| @@ -0,0 +1,17 @@ | |
| 1 | 
            +
            ###
         | 
| 2 | 
            +
            # In our specs, I want to make sure time gets mocked so I can accurately test
         | 
| 3 | 
            +
            # times displayed to the user.
         | 
| 4 | 
            +
            #
         | 
| 5 | 
            +
            class PBTimeTester
         | 
| 6 | 
            +
              def self.now
         | 
| 7 | 
            +
                ::Time.now
         | 
| 8 | 
            +
              end
         | 
| 9 | 
            +
            end
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            class ProgressBar
         | 
| 12 | 
            +
            class Time
         | 
| 13 | 
            +
              def initialize(time = ::PBTimeTester)
         | 
| 14 | 
            +
                self.time = time
         | 
| 15 | 
            +
              end
         | 
| 16 | 
            +
            end
         | 
| 17 | 
            +
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,144 +1,209 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: progressbar
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version:  | 
| 4 | 
            +
              version: 1.8.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 | 
            -
            -  | 
| 8 | 
            -
            -  | 
| 7 | 
            +
            - thekompanee
         | 
| 8 | 
            +
            - jfelchner
         | 
| 9 9 | 
             
            autorequire: 
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 | 
            -
            cert_chain: | 
| 12 | 
            -
             | 
| 11 | 
            +
            cert_chain:
         | 
| 12 | 
            +
            - |
         | 
| 13 | 
            +
              -----BEGIN CERTIFICATE-----
         | 
| 14 | 
            +
              MIIDrjCCApagAwIBAgIBATANBgkqhkiG9w0BAQUFADBOMRowGAYDVQQDDBFhY2Nv
         | 
| 15 | 
            +
              dW50c19ydWJ5Z2VtczEbMBkGCgmSJomT8ixkARkWC3RoZWtvbXBhbmVlMRMwEQYK
         | 
| 16 | 
            +
              CZImiZPyLGQBGRYDY29tMB4XDTE2MDQyNDAyNTEyM1oXDTE3MDQyNDAyNTEyM1ow
         | 
| 17 | 
            +
              TjEaMBgGA1UEAwwRYWNjb3VudHNfcnVieWdlbXMxGzAZBgoJkiaJk/IsZAEZFgt0
         | 
| 18 | 
            +
              aGVrb21wYW5lZTETMBEGCgmSJomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEB
         | 
| 19 | 
            +
              BQADggEPADCCAQoCggEBANklzdaVeHtut6LTe/hrl6Krz2Z60InEbNb+TMG43tww
         | 
| 20 | 
            +
              jBpWZrdU/SBkR3EYbTAQv/yGTuMHoVKGK2kDlFvdofW2hX0d14qPyYJUNYt+7VWE
         | 
| 21 | 
            +
              3UhPSxw1i6MxeU1QwfkIyaN8A5lj0225+rwI/mbplv+lSXPlJEroCQ9EfniZD4jL
         | 
| 22 | 
            +
              URlrHWl/UejcQ32C1IzBwth3+nacrO1197v5nSdozFzQwm4groaggXn9F/WpThu+
         | 
| 23 | 
            +
              MhcE4bfttwEjAfU3zAThyzOFoVPpACP+SwOuyPJSl02+9BiwzeAnFJDfge7+rsd5
         | 
| 24 | 
            +
              64W/VzBIklEKUZMmxZwr5DwpSXLrknBDtHLABG9Nr3cCAwEAAaOBljCBkzAJBgNV
         | 
| 25 | 
            +
              HRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUP7v0f/qfa0LMrhkzHRI3l10X
         | 
| 26 | 
            +
              LYIwLAYDVR0RBCUwI4EhYWNjb3VudHMrcnVieWdlbXNAdGhla29tcGFuZWUuY29t
         | 
| 27 | 
            +
              MCwGA1UdEgQlMCOBIWFjY291bnRzK3J1YnlnZW1zQHRoZWtvbXBhbmVlLmNvbTAN
         | 
| 28 | 
            +
              BgkqhkiG9w0BAQUFAAOCAQEASqdfJKMun1twosHfvdDH7Vgrb5VqX28qJ6MgnhjF
         | 
| 29 | 
            +
              p+3HYTjYo/KMQqu78TegUFO5xQ4oumU0FTXADW0ryXZvUGV74M0zwqpFqeo8onII
         | 
| 30 | 
            +
              lsVsWdMCLZS21M0uCQmcV+OQMNxL8jV3c0D3x9Srr9yO4oamW3seIdb+b9RfhmV2
         | 
| 31 | 
            +
              ryr+NH8U/4xgzdJ4hWV4qk93nwigp4lwJ4u93XJ7Cdyw7itvaEPnn8HpCfzsiLcw
         | 
| 32 | 
            +
              QwSfDGz6+zsImi5N3UT71+mk7YcviQSgvMRl3VkAv8MZ6wcJ5SQRpf9w0OeFH6Ln
         | 
| 33 | 
            +
              nNbCoHiYeXX/lz/M6AIbxDIZZTwxcyvF7bdrQ2fbH5MsfQ==
         | 
| 34 | 
            +
              -----END CERTIFICATE-----
         | 
| 35 | 
            +
            date: 2016-12-10 00:00:00.000000000 Z
         | 
| 13 36 | 
             
            dependencies:
         | 
| 14 37 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 | 
            -
              name:  | 
| 38 | 
            +
              name: rspec
         | 
| 16 39 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 17 40 | 
             
                requirements:
         | 
| 18 | 
            -
                - -  | 
| 41 | 
            +
                - - "~>"
         | 
| 19 42 | 
             
                  - !ruby/object:Gem::Version
         | 
| 20 | 
            -
                    version:  | 
| 43 | 
            +
                    version: '3.2'
         | 
| 21 44 | 
             
              type: :development
         | 
| 22 45 | 
             
              prerelease: false
         | 
| 23 46 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 24 47 | 
             
                requirements:
         | 
| 25 | 
            -
                - -  | 
| 48 | 
            +
                - - "~>"
         | 
| 26 49 | 
             
                  - !ruby/object:Gem::Version
         | 
| 27 | 
            -
                    version:  | 
| 50 | 
            +
                    version: '3.2'
         | 
| 28 51 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 29 | 
            -
              name:  | 
| 52 | 
            +
              name: rspectacular
         | 
| 30 53 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 31 54 | 
             
                requirements:
         | 
| 32 | 
            -
                - -  | 
| 55 | 
            +
                - - "~>"
         | 
| 33 56 | 
             
                  - !ruby/object:Gem::Version
         | 
| 34 | 
            -
                    version:  | 
| 57 | 
            +
                    version: 0.70.6
         | 
| 35 58 | 
             
              type: :development
         | 
| 36 59 | 
             
              prerelease: false
         | 
| 37 60 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 38 61 | 
             
                requirements:
         | 
| 39 | 
            -
                - -  | 
| 62 | 
            +
                - - "~>"
         | 
| 40 63 | 
             
                  - !ruby/object:Gem::Version
         | 
| 41 | 
            -
                    version:  | 
| 64 | 
            +
                    version: 0.70.6
         | 
| 42 65 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 43 | 
            -
              name:  | 
| 66 | 
            +
              name: fuubar
         | 
| 44 67 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 45 68 | 
             
                requirements:
         | 
| 46 | 
            -
                - -  | 
| 69 | 
            +
                - - "~>"
         | 
| 47 70 | 
             
                  - !ruby/object:Gem::Version
         | 
| 48 | 
            -
                    version: '0'
         | 
| 71 | 
            +
                    version: '2.0'
         | 
| 49 72 | 
             
              type: :development
         | 
| 50 73 | 
             
              prerelease: false
         | 
| 51 74 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 52 75 | 
             
                requirements:
         | 
| 53 | 
            -
                - -  | 
| 76 | 
            +
                - - "~>"
         | 
| 54 77 | 
             
                  - !ruby/object:Gem::Version
         | 
| 55 | 
            -
                    version: '0'
         | 
| 78 | 
            +
                    version: '2.0'
         | 
| 56 79 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 57 | 
            -
              name:  | 
| 80 | 
            +
              name: warning_filter
         | 
| 58 81 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 59 82 | 
             
                requirements:
         | 
| 60 | 
            -
                - -  | 
| 83 | 
            +
                - - "~>"
         | 
| 61 84 | 
             
                  - !ruby/object:Gem::Version
         | 
| 62 | 
            -
                    version:  | 
| 85 | 
            +
                    version: 0.0.2
         | 
| 63 86 | 
             
              type: :development
         | 
| 64 87 | 
             
              prerelease: false
         | 
| 65 88 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 66 89 | 
             
                requirements:
         | 
| 67 | 
            -
                - -  | 
| 90 | 
            +
                - - "~>"
         | 
| 68 91 | 
             
                  - !ruby/object:Gem::Version
         | 
| 69 | 
            -
                    version:  | 
| 92 | 
            +
                    version: 0.0.2
         | 
| 70 93 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 71 | 
            -
              name:  | 
| 94 | 
            +
              name: timecop
         | 
| 72 95 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 73 96 | 
             
                requirements:
         | 
| 74 | 
            -
                - - ' | 
| 97 | 
            +
                - - '='
         | 
| 75 98 | 
             
                  - !ruby/object:Gem::Version
         | 
| 76 | 
            -
                    version: 0. | 
| 99 | 
            +
                    version: 0.6.1
         | 
| 77 100 | 
             
              type: :development
         | 
| 78 101 | 
             
              prerelease: false
         | 
| 79 102 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 80 103 | 
             
                requirements:
         | 
| 81 | 
            -
                - - ' | 
| 104 | 
            +
                - - '='
         | 
| 82 105 | 
             
                  - !ruby/object:Gem::Version
         | 
| 83 | 
            -
                    version: 0. | 
| 84 | 
            -
             | 
| 85 | 
            -
               | 
| 86 | 
            -
               | 
| 87 | 
            -
             | 
| 88 | 
            -
             | 
| 89 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 90 | 
            -
                    version: 0.3.5
         | 
| 91 | 
            -
              type: :development
         | 
| 92 | 
            -
              prerelease: false
         | 
| 93 | 
            -
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 94 | 
            -
                requirements:
         | 
| 95 | 
            -
                - - '>='
         | 
| 96 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 97 | 
            -
                    version: 0.3.5
         | 
| 98 | 
            -
            description: Ruby/ProgressBar is a text progress bar library for Ruby. It can indicate
         | 
| 99 | 
            -
              progress with percentage, a progress bar, and estimated remaining time.
         | 
| 100 | 
            -
            email:
         | 
| 101 | 
            -
            - satoru@0xcc.net
         | 
| 102 | 
            -
            - jose@peleteiro.net
         | 
| 106 | 
            +
                    version: 0.6.1
         | 
| 107 | 
            +
            description: |
         | 
| 108 | 
            +
              Ruby/ProgressBar is an extremely flexible text progress bar library for Ruby.
         | 
| 109 | 
            +
              The output can be customized with a flexible formatting system including:
         | 
| 110 | 
            +
              percentage, bars of various formats, elapsed time and estimated time remaining.
         | 
| 111 | 
            +
            email: support@thekompanee.com
         | 
| 103 112 | 
             
            executables: []
         | 
| 104 113 | 
             
            extensions: []
         | 
| 105 114 | 
             
            extra_rdoc_files: []
         | 
| 106 115 | 
             
            files:
         | 
| 107 | 
            -
            - . | 
| 108 | 
            -
            - . | 
| 109 | 
            -
            - .travis.yml
         | 
| 110 | 
            -
            - ChangeLog
         | 
| 111 | 
            -
            - Gemfile
         | 
| 112 | 
            -
            - Gemfile.lock
         | 
| 113 | 
            -
            - LICENSE
         | 
| 114 | 
            -
            - README.rdoc
         | 
| 116 | 
            +
            - LICENSE.txt
         | 
| 117 | 
            +
            - README.md
         | 
| 115 118 | 
             
            - Rakefile
         | 
| 116 119 | 
             
            - lib/progressbar.rb
         | 
| 117 | 
            -
            - progressbar. | 
| 118 | 
            -
            -  | 
| 119 | 
            -
             | 
| 120 | 
            +
            - lib/ruby-progressbar/base.rb
         | 
| 121 | 
            +
            - lib/ruby-progressbar/calculators/length.rb
         | 
| 122 | 
            +
            - lib/ruby-progressbar/calculators/length_spec.rb
         | 
| 123 | 
            +
            - lib/ruby-progressbar/calculators/running_average.rb
         | 
| 124 | 
            +
            - lib/ruby-progressbar/components.rb
         | 
| 125 | 
            +
            - lib/ruby-progressbar/components/bar.rb
         | 
| 126 | 
            +
            - lib/ruby-progressbar/components/percentage.rb
         | 
| 127 | 
            +
            - lib/ruby-progressbar/components/rate.rb
         | 
| 128 | 
            +
            - lib/ruby-progressbar/components/time.rb
         | 
| 129 | 
            +
            - lib/ruby-progressbar/components/title.rb
         | 
| 130 | 
            +
            - lib/ruby-progressbar/errors/invalid_progress_error.rb
         | 
| 131 | 
            +
            - lib/ruby-progressbar/format.rb
         | 
| 132 | 
            +
            - lib/ruby-progressbar/format/formatter.rb
         | 
| 133 | 
            +
            - lib/ruby-progressbar/format/molecule.rb
         | 
| 134 | 
            +
            - lib/ruby-progressbar/format/string.rb
         | 
| 135 | 
            +
            - lib/ruby-progressbar/output.rb
         | 
| 136 | 
            +
            - lib/ruby-progressbar/outputs/non_tty.rb
         | 
| 137 | 
            +
            - lib/ruby-progressbar/outputs/tty.rb
         | 
| 138 | 
            +
            - lib/ruby-progressbar/progress.rb
         | 
| 139 | 
            +
            - lib/ruby-progressbar/throttle.rb
         | 
| 140 | 
            +
            - lib/ruby-progressbar/time.rb
         | 
| 141 | 
            +
            - lib/ruby-progressbar/timer.rb
         | 
| 142 | 
            +
            - lib/ruby-progressbar/version.rb
         | 
| 143 | 
            +
            - spec/fixtures/benchmark.rb
         | 
| 144 | 
            +
            - spec/ruby-progressbar/base_spec.rb
         | 
| 145 | 
            +
            - spec/ruby-progressbar/calculators/length_calculator_spec.rb
         | 
| 146 | 
            +
            - spec/ruby-progressbar/calculators/running_average_spec.rb
         | 
| 147 | 
            +
            - spec/ruby-progressbar/components/bar_spec.rb
         | 
| 148 | 
            +
            - spec/ruby-progressbar/components/percentage_spec.rb
         | 
| 149 | 
            +
            - spec/ruby-progressbar/components/rate_spec.rb
         | 
| 150 | 
            +
            - spec/ruby-progressbar/components/throttle_spec.rb
         | 
| 151 | 
            +
            - spec/ruby-progressbar/components/time_spec.rb
         | 
| 152 | 
            +
            - spec/ruby-progressbar/components/title_spec.rb
         | 
| 153 | 
            +
            - spec/ruby-progressbar/format/formatter_spec.rb
         | 
| 154 | 
            +
            - spec/ruby-progressbar/format/molecule_spec.rb
         | 
| 155 | 
            +
            - spec/ruby-progressbar/format/string_spec.rb
         | 
| 156 | 
            +
            - spec/ruby-progressbar/output_spec.rb
         | 
| 157 | 
            +
            - spec/ruby-progressbar/outputs/non_tty_spec.rb
         | 
| 158 | 
            +
            - spec/ruby-progressbar/outputs/tty_spec.rb
         | 
| 159 | 
            +
            - spec/ruby-progressbar/progress_spec.rb
         | 
| 160 | 
            +
            - spec/ruby-progressbar/time_spec.rb
         | 
| 161 | 
            +
            - spec/ruby-progressbar/timer_spec.rb
         | 
| 162 | 
            +
            - spec/spec_helper.rb
         | 
| 163 | 
            +
            - spec/support/time.rb
         | 
| 164 | 
            +
            homepage: https://github.com/jfelchner/ruby-progressbar
         | 
| 120 165 | 
             
            licenses:
         | 
| 121 | 
            -
            -  | 
| 166 | 
            +
            - MIT
         | 
| 122 167 | 
             
            metadata: {}
         | 
| 123 168 | 
             
            post_install_message: 
         | 
| 124 | 
            -
            rdoc_options:
         | 
| 125 | 
            -
            - --charset=UTF-8
         | 
| 169 | 
            +
            rdoc_options: []
         | 
| 126 170 | 
             
            require_paths:
         | 
| 127 171 | 
             
            - lib
         | 
| 128 172 | 
             
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 129 173 | 
             
              requirements:
         | 
| 130 | 
            -
              - -  | 
| 174 | 
            +
              - - ">="
         | 
| 131 175 | 
             
                - !ruby/object:Gem::Version
         | 
| 132 176 | 
             
                  version: '0'
         | 
| 133 177 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 134 178 | 
             
              requirements:
         | 
| 135 | 
            -
              - -  | 
| 179 | 
            +
              - - ">="
         | 
| 136 180 | 
             
                - !ruby/object:Gem::Version
         | 
| 137 | 
            -
                  version:  | 
| 181 | 
            +
                  version: '0'
         | 
| 138 182 | 
             
            requirements: []
         | 
| 139 183 | 
             
            rubyforge_project: 
         | 
| 140 | 
            -
            rubygems_version: 2. | 
| 184 | 
            +
            rubygems_version: 2.5.1
         | 
| 141 185 | 
             
            signing_key: 
         | 
| 142 186 | 
             
            specification_version: 4
         | 
| 143 | 
            -
            summary: Ruby/ProgressBar is a text progress bar library for Ruby.
         | 
| 144 | 
            -
            test_files: | 
| 187 | 
            +
            summary: Ruby/ProgressBar is a flexible text progress bar library for Ruby.
         | 
| 188 | 
            +
            test_files:
         | 
| 189 | 
            +
            - spec/fixtures/benchmark.rb
         | 
| 190 | 
            +
            - spec/ruby-progressbar/base_spec.rb
         | 
| 191 | 
            +
            - spec/ruby-progressbar/calculators/length_calculator_spec.rb
         | 
| 192 | 
            +
            - spec/ruby-progressbar/calculators/running_average_spec.rb
         | 
| 193 | 
            +
            - spec/ruby-progressbar/components/bar_spec.rb
         | 
| 194 | 
            +
            - spec/ruby-progressbar/components/percentage_spec.rb
         | 
| 195 | 
            +
            - spec/ruby-progressbar/components/rate_spec.rb
         | 
| 196 | 
            +
            - spec/ruby-progressbar/components/throttle_spec.rb
         | 
| 197 | 
            +
            - spec/ruby-progressbar/components/time_spec.rb
         | 
| 198 | 
            +
            - spec/ruby-progressbar/components/title_spec.rb
         | 
| 199 | 
            +
            - spec/ruby-progressbar/format/formatter_spec.rb
         | 
| 200 | 
            +
            - spec/ruby-progressbar/format/molecule_spec.rb
         | 
| 201 | 
            +
            - spec/ruby-progressbar/format/string_spec.rb
         | 
| 202 | 
            +
            - spec/ruby-progressbar/output_spec.rb
         | 
| 203 | 
            +
            - spec/ruby-progressbar/outputs/non_tty_spec.rb
         | 
| 204 | 
            +
            - spec/ruby-progressbar/outputs/tty_spec.rb
         | 
| 205 | 
            +
            - spec/ruby-progressbar/progress_spec.rb
         | 
| 206 | 
            +
            - spec/ruby-progressbar/time_spec.rb
         | 
| 207 | 
            +
            - spec/ruby-progressbar/timer_spec.rb
         | 
| 208 | 
            +
            - spec/spec_helper.rb
         | 
| 209 | 
            +
            - spec/support/time.rb
         | 
    
        metadata.gz.sig
    ADDED
    
    
    
        data/.gitignore
    DELETED
    
    
    
        data/.ruby-version
    DELETED
    
    | @@ -1 +0,0 @@ | |
| 1 | 
            -
            2.0.0
         | 
    
        data/.travis.yml
    DELETED
    
    
    
        data/ChangeLog
    DELETED
    
    | @@ -1,113 +0,0 @@ | |
| 1 | 
            -
            2005-05-21  Satoru Takabayashi  <satoru@namazu.org>
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            	* progressbar.rb (ProgressBar::show): Call IO#flush. Suggestted by
         | 
| 4 | 
            -
            	"Geert Fannes" <Geert.Fannes at ikanconsulting.com>
         | 
| 5 | 
            -
             | 
| 6 | 
            -
            2005-01-07  Satoru Takabayashi  <satoru@namazu.org>
         | 
| 7 | 
            -
             | 
| 8 | 
            -
            	* progressbar.rb (ProgressBar::VERSION): Bumped version number to 0.9.
         | 
| 9 | 
            -
            	(ProgressBar::finished?): New method.
         | 
| 10 | 
            -
            	(ProgressBar::current): New attribute.
         | 
| 11 | 
            -
            	(ProgressBar::total): New attribute.
         | 
| 12 | 
            -
            	(ProgressBar::title): New attribute.
         | 
| 13 | 
            -
            	(ProgressBar::start_time): New attribute.
         | 
| 14 | 
            -
            	(ProgressBar::inspect): Change the format.
         | 
| 15 | 
            -
            	(ProgressBar::show_if_needed): Renamed from show_progress.
         | 
| 16 | 
            -
            	(ProgressBar::clear): New method.
         | 
| 17 | 
            -
            	(ProgressBar::initialize): Renamed a field: bar_width ->
         | 
| 18 | 
            -
            	terminal_width.
         | 
| 19 | 
            -
            	(ProgressBar::do_percentage): New method.
         | 
| 20 | 
            -
            	(ProgressBar::percentage): Use it.
         | 
| 21 | 
            -
            	(ReversedProgressBar): New class.
         | 
| 22 | 
            -
            	(ProgressBar::initialize): Use #clear.
         | 
| 23 | 
            -
            	(ProgressBar::fmt_bar): Ditto.
         | 
| 24 | 
            -
            	(ProgressBar::fmt_percentage): Renamed from percentage.
         | 
| 25 | 
            -
            	(ProgressBar::fmt_stat): Ditto.
         | 
| 26 | 
            -
            	(ProgressBar::fmt_stat_for_file_transfer): Ditto.
         | 
| 27 | 
            -
            	(ProgressBar::fmt_title): Ditto.
         | 
| 28 | 
            -
             | 
| 29 | 
            -
            	* test.rb: Use Test::Unit.
         | 
| 30 | 
            -
             | 
| 31 | 
            -
            	* Makefile (docs): Removed.
         | 
| 32 | 
            -
            	(progressbar.ja.html): Ditto.
         | 
| 33 | 
            -
            	(progressbar.en.html): Ditto.
         | 
| 34 | 
            -
            	(dist): New rule.
         | 
| 35 | 
            -
            	(check): New rule.
         | 
| 36 | 
            -
             | 
| 37 | 
            -
            2004-02-05  Satoru Takabayashi  <satoru@namazu.org>
         | 
| 38 | 
            -
             | 
| 39 | 
            -
            	* Ruby/ProgressBar: Version 0.8 released!
         | 
| 40 | 
            -
             | 
| 41 | 
            -
            	* progressbar.rb (ProgressBar::set): Fixed the bug when caused by
         | 
| 42 | 
            -
            	the invalid count. <http://bugs.debian.org/231009>
         | 
| 43 | 
            -
            	(ProgressBar::VERSION): Bumped version number to 0.8.
         | 
| 44 | 
            -
             | 
| 45 | 
            -
            2004-01-19  Satoru Takabayashi  <satoru@namazu.org>
         | 
| 46 | 
            -
             | 
| 47 | 
            -
            	* Ruby/ProgressBar: Version 0.7 released!
         | 
| 48 | 
            -
             | 
| 49 | 
            -
            	* progressbar.rb (ProgressBar::initialize): Rename a field:
         | 
| 50 | 
            -
            	@bar_length -> @bar_width.
         | 
| 51 | 
            -
            	(ProgressBar::initialize): New field: @title_width.
         | 
| 52 | 
            -
            	(ProgressBar::title): use it.
         | 
| 53 | 
            -
            	(ProgressBar::initialize): New field: @previous_time.
         | 
| 54 | 
            -
            	(ProgressBar::show_progress): Use it and update the progress bar
         | 
| 55 | 
            -
            	if one sec. elapsed.
         | 
| 56 | 
            -
            	(ProgressBar::initialize): Call show instead of show_progress.
         | 
| 57 | 
            -
             | 
| 58 | 
            -
            2004-01-16  Satoru Takabayashi  <satoru@namazu.org>
         | 
| 59 | 
            -
             | 
| 60 | 
            -
            	* Ruby/ProgressBar: Version 0.6 released!
         | 
| 61 | 
            -
             | 
| 62 | 
            -
            	* progressbar.rb (ProgressBar::show): Remove the useless condition
         | 
| 63 | 
            -
            	after "else". Thanks to Neil Spring <nspring@cs.washington.edu>
         | 
| 64 | 
            -
            	for the report.
         | 
| 65 | 
            -
            	<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=227966>
         | 
| 66 | 
            -
            	(ProgressBar): 
         | 
| 67 | 
            -
             | 
| 68 | 
            -
            2003-07-24  Satoru Takabayashi  <satoru@namazu.org>
         | 
| 69 | 
            -
             | 
| 70 | 
            -
            	* Ruby/ProgressBar: Version 0.5 released!
         | 
| 71 | 
            -
             | 
| 72 | 
            -
            	* progressbar.rb (ProgressBar::initialize): New parameter: config.
         | 
| 73 | 
            -
            	(ProgressBar::convert_prefix_multiplier): New method.
         | 
| 74 | 
            -
            	(ProgressBar::transfer_rate): New method.
         | 
| 75 | 
            -
            	(ProgressBar::percentage): New method.
         | 
| 76 | 
            -
            	(ProgressBar::title): New method.
         | 
| 77 | 
            -
            	(ProgressBar::initialize): New fields: @bar_mark, @format,
         | 
| 78 | 
            -
            	@arguments.
         | 
| 79 | 
            -
            	(ProgressBar::get_width): New method.
         | 
| 80 | 
            -
            	(ProgressBar::stat_for_file_transfer): New method.
         | 
| 81 | 
            -
            	(ProgressBar::stat): Renamed from time.
         | 
| 82 | 
            -
            	(ProgressBar::format=): New method.
         | 
| 83 | 
            -
            	(ProgressBar::format_arguments=): New method.
         | 
| 84 | 
            -
            	(ProgressBar::convert_bytes): New method.
         | 
| 85 | 
            -
            	(ProgressBar::file_transfer_mode): New method.
         | 
| 86 | 
            -
             | 
| 87 | 
            -
            2002-10-21  Satoru Takabayashi  <satoru@namazu.org>
         | 
| 88 | 
            -
             | 
| 89 | 
            -
            	* Ruby/ProgressBar: Version 0.4 released!
         | 
| 90 | 
            -
             | 
| 91 | 
            -
            	* progressbar.rb (ProgressBar::halt): New method. allowing a
         | 
| 92 | 
            -
            	"broken" ProgressBar in the event of error.
         | 
| 93 | 
            -
            	- Suggestted by Austin Ziegler <austin@halostatue.ca>
         | 
| 94 | 
            -
             | 
| 95 | 
            -
            2002-01-05  Satoru Takabayashi  <satoru@namazu.org>
         | 
| 96 | 
            -
             | 
| 97 | 
            -
            	* Ruby/ProgressBar: Version 0.3 released!
         | 
| 98 | 
            -
             | 
| 99 | 
            -
            	* progressbar.rb (ProgressBar::show): Shorten @title to fall into
         | 
| 100 | 
            -
            	the format well.
         | 
| 101 | 
            -
             | 
| 102 | 
            -
            2001-11-03  Satoru Takabayashi  <satoru@namazu.org>
         | 
| 103 | 
            -
             | 
| 104 | 
            -
            	* Ruby/ProgressBar: Version 0.2 released!
         | 
| 105 | 
            -
             | 
| 106 | 
            -
            	* progressbar.rb (ProgressBar::eta): Remove an unnecessary condition.
         | 
| 107 | 
            -
             | 
| 108 | 
            -
            	* progressbar.rb (ProgressBar::eta): Fix the return value bug.
         | 
| 109 | 
            -
             | 
| 110 | 
            -
            	* progressbar.rb (ProgressBar::inc): Add an optional parameter `step'.
         | 
| 111 | 
            -
             | 
| 112 | 
            -
            	* Ruby/ProgressBar: Version 0.1 released!
         | 
| 113 | 
            -
             |