tty-prompt 0.20.0 → 0.21.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 +4 -4
- data/CHANGELOG.md +11 -0
- data/README.md +29 -4
- data/lib/tty/prompt.rb +3 -3
- data/lib/tty/prompt/multi_list.rb +33 -10
- data/lib/tty/prompt/version.rb +1 -1
- metadata +11 -175
- data/Rakefile +0 -8
- data/examples/ask.rb +0 -7
- data/examples/ask_blank.rb +0 -9
- data/examples/ask_multiline.rb +0 -7
- data/examples/ask_valid.rb +0 -12
- data/examples/collect.rb +0 -21
- data/examples/echo.rb +0 -11
- data/examples/enum_select.rb +0 -7
- data/examples/enum_select_disabled.rb +0 -16
- data/examples/enum_select_paged.rb +0 -9
- data/examples/enum_select_wrapped.rb +0 -15
- data/examples/expand.rb +0 -29
- data/examples/expand_auto.rb +0 -29
- data/examples/in.rb +0 -9
- data/examples/inputs.rb +0 -10
- data/examples/key_events.rb +0 -15
- data/examples/keypress.rb +0 -9
- data/examples/mask.rb +0 -13
- data/examples/multi_select.rb +0 -8
- data/examples/multi_select_disabled.rb +0 -17
- data/examples/multi_select_disabled_paged.rb +0 -22
- data/examples/multi_select_paged.rb +0 -9
- data/examples/multi_select_wrapped.rb +0 -15
- data/examples/multiline.rb +0 -9
- data/examples/pause.rb +0 -9
- data/examples/select.rb +0 -24
- data/examples/select_disabled.rb +0 -18
- data/examples/select_disabled_paged.rb +0 -22
- data/examples/select_enum.rb +0 -8
- data/examples/select_filtered.rb +0 -11
- data/examples/select_paginated.rb +0 -11
- data/examples/select_wrapped.rb +0 -15
- data/examples/slider.rb +0 -6
- data/examples/validation.rb +0 -9
- data/examples/yes_no.rb +0 -7
- data/spec/spec_helper.rb +0 -61
- data/spec/unit/ask_spec.rb +0 -173
- data/spec/unit/block_paginator_spec.rb +0 -84
- data/spec/unit/choice/eql_spec.rb +0 -22
- data/spec/unit/choice/from_spec.rb +0 -130
- data/spec/unit/choices/add_spec.rb +0 -12
- data/spec/unit/choices/each_spec.rb +0 -13
- data/spec/unit/choices/find_by_spec.rb +0 -10
- data/spec/unit/choices/new_spec.rb +0 -10
- data/spec/unit/choices/pluck_spec.rb +0 -9
- data/spec/unit/collect_spec.rb +0 -96
- data/spec/unit/converters/convert_bool_spec.rb +0 -58
- data/spec/unit/converters/convert_char_spec.rb +0 -11
- data/spec/unit/converters/convert_custom_spec.rb +0 -14
- data/spec/unit/converters/convert_date_spec.rb +0 -34
- data/spec/unit/converters/convert_file_spec.rb +0 -18
- data/spec/unit/converters/convert_number_spec.rb +0 -39
- data/spec/unit/converters/convert_path_spec.rb +0 -15
- data/spec/unit/converters/convert_range_spec.rb +0 -22
- data/spec/unit/converters/convert_regex_spec.rb +0 -12
- data/spec/unit/converters/convert_string_spec.rb +0 -21
- data/spec/unit/converters/on_error_spec.rb +0 -9
- data/spec/unit/distance/distance_spec.rb +0 -73
- data/spec/unit/enum_select_spec.rb +0 -518
- data/spec/unit/error_spec.rb +0 -20
- data/spec/unit/evaluator_spec.rb +0 -67
- data/spec/unit/expand_spec.rb +0 -290
- data/spec/unit/keypress_spec.rb +0 -66
- data/spec/unit/mask_spec.rb +0 -140
- data/spec/unit/multi_select_spec.rb +0 -741
- data/spec/unit/multiline_spec.rb +0 -77
- data/spec/unit/new_spec.rb +0 -20
- data/spec/unit/ok_spec.rb +0 -10
- data/spec/unit/paginator_spec.rb +0 -92
- data/spec/unit/question/checks_spec.rb +0 -97
- data/spec/unit/question/default_spec.rb +0 -31
- data/spec/unit/question/echo_spec.rb +0 -38
- data/spec/unit/question/in_spec.rb +0 -115
- data/spec/unit/question/initialize_spec.rb +0 -12
- data/spec/unit/question/modifier/apply_to_spec.rb +0 -24
- data/spec/unit/question/modifier/letter_case_spec.rb +0 -41
- data/spec/unit/question/modifier/whitespace_spec.rb +0 -51
- data/spec/unit/question/modify_spec.rb +0 -41
- data/spec/unit/question/required_spec.rb +0 -92
- data/spec/unit/question/validate_spec.rb +0 -115
- data/spec/unit/question/validation/call_spec.rb +0 -31
- data/spec/unit/question/validation/coerce_spec.rb +0 -30
- data/spec/unit/result_spec.rb +0 -40
- data/spec/unit/say_spec.rb +0 -67
- data/spec/unit/select_spec.rb +0 -942
- data/spec/unit/slider_spec.rb +0 -142
- data/spec/unit/statement/initialize_spec.rb +0 -15
- data/spec/unit/subscribe_spec.rb +0 -22
- data/spec/unit/suggest_spec.rb +0 -28
- data/spec/unit/timer_spec.rb +0 -29
- data/spec/unit/warn_spec.rb +0 -21
- data/spec/unit/yes_no_spec.rb +0 -285
- data/tasks/console.rake +0 -11
- data/tasks/coverage.rake +0 -11
- data/tasks/spec.rake +0 -29
- data/tty-prompt.gemspec +0 -40
    
        data/tasks/console.rake
    DELETED
    
    
    
        data/tasks/coverage.rake
    DELETED
    
    
    
        data/tasks/spec.rake
    DELETED
    
    | @@ -1,29 +0,0 @@ | |
| 1 | 
            -
            # encoding: utf-8
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            begin
         | 
| 4 | 
            -
              require 'rspec/core/rake_task'
         | 
| 5 | 
            -
             | 
| 6 | 
            -
              desc 'Run all specs'
         | 
| 7 | 
            -
              RSpec::Core::RakeTask.new(:spec) do |task|
         | 
| 8 | 
            -
                task.pattern = 'spec/{unit,integration}{,/*/**}/*_spec.rb'
         | 
| 9 | 
            -
              end
         | 
| 10 | 
            -
             | 
| 11 | 
            -
              namespace :spec do
         | 
| 12 | 
            -
                desc 'Run unit specs'
         | 
| 13 | 
            -
                RSpec::Core::RakeTask.new(:unit) do |task|
         | 
| 14 | 
            -
                  task.pattern = 'spec/unit{,/*/**}/*_spec.rb'
         | 
| 15 | 
            -
                end
         | 
| 16 | 
            -
             | 
| 17 | 
            -
                desc 'Run integration specs'
         | 
| 18 | 
            -
                RSpec::Core::RakeTask.new(:integration) do |task|
         | 
| 19 | 
            -
                  task.pattern = 'spec/integration{,/*/**}/*_spec.rb'
         | 
| 20 | 
            -
                end
         | 
| 21 | 
            -
              end
         | 
| 22 | 
            -
             | 
| 23 | 
            -
            rescue LoadError
         | 
| 24 | 
            -
              %w[spec spec:unit spec:integration].each do |name|
         | 
| 25 | 
            -
                task name do
         | 
| 26 | 
            -
                  $stderr.puts "In order to run #{name}, do `gem install rspec`"
         | 
| 27 | 
            -
                end
         | 
| 28 | 
            -
              end
         | 
| 29 | 
            -
            end
         | 
    
        data/tty-prompt.gemspec
    DELETED
    
    | @@ -1,40 +0,0 @@ | |
| 1 | 
            -
            lib = File.expand_path('../lib', __FILE__)
         | 
| 2 | 
            -
            $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
         | 
| 3 | 
            -
            require 'tty/prompt/version'
         | 
| 4 | 
            -
             | 
| 5 | 
            -
            Gem::Specification.new do |spec|
         | 
| 6 | 
            -
              spec.name          = "tty-prompt"
         | 
| 7 | 
            -
              spec.version       = TTY::Prompt::VERSION
         | 
| 8 | 
            -
              spec.authors       = ["Piotr Murach"]
         | 
| 9 | 
            -
              spec.email         = ["me@piotrmurach.com"]
         | 
| 10 | 
            -
              spec.summary       = %q{A beautiful and powerful interactive command line prompt.}
         | 
| 11 | 
            -
              spec.description   = %q{A beautiful and powerful interactive command line prompt with a robust API for getting and validating complex inputs.}
         | 
| 12 | 
            -
              spec.homepage      = "https://piotrmurach.github.io/tty"
         | 
| 13 | 
            -
              spec.license       = "MIT"
         | 
| 14 | 
            -
              if spec.respond_to?(:metadata=)
         | 
| 15 | 
            -
                spec.metadata = {
         | 
| 16 | 
            -
                  "allowed_push_host" => "https://rubygems.org",
         | 
| 17 | 
            -
                  "bug_tracker_uri"   => "https://github.com/piotrmurach/tty-prompt/issues",
         | 
| 18 | 
            -
                  "changelog_uri"     => "https://github.com/piotrmurach/tty-prompt/blob/master/CHANGELOG.md",
         | 
| 19 | 
            -
                  "documentation_uri" => "https://www.rubydoc.info/gems/tty-prompt",
         | 
| 20 | 
            -
                  "homepage_uri"      => spec.homepage,
         | 
| 21 | 
            -
                  "source_code_uri"   => "https://github.com/piotrmurach/tty-prompt"
         | 
| 22 | 
            -
                }
         | 
| 23 | 
            -
              end
         | 
| 24 | 
            -
              spec.files         = Dir['{lib,spec,examples}/**/*.rb']
         | 
| 25 | 
            -
              spec.files        += Dir['tasks/*', 'tty-prompt.gemspec']
         | 
| 26 | 
            -
              spec.files        += Dir['README.md', 'CHANGELOG.md', 'LICENSE.txt', 'Rakefile']
         | 
| 27 | 
            -
              spec.executables   = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
         | 
| 28 | 
            -
              spec.test_files    = Dir["spec/**/*.rb"]
         | 
| 29 | 
            -
              spec.require_paths = ["lib"]
         | 
| 30 | 
            -
             | 
| 31 | 
            -
              spec.required_ruby_version = '>= 2.0.0'
         | 
| 32 | 
            -
             | 
| 33 | 
            -
              spec.add_dependency 'necromancer',  '~> 0.5.0'
         | 
| 34 | 
            -
              spec.add_dependency 'pastel',       '~> 0.7.0'
         | 
| 35 | 
            -
              spec.add_dependency 'tty-reader',   '~> 0.7.0'
         | 
| 36 | 
            -
             | 
| 37 | 
            -
              spec.add_development_dependency 'bundler', '>= 1.5.0'
         | 
| 38 | 
            -
              spec.add_development_dependency 'rake'
         | 
| 39 | 
            -
              spec.add_development_dependency 'rspec', '~> 3.0'
         | 
| 40 | 
            -
            end
         |