Permalink
Commits on Dec 30, 2013
  1. Add temporary workaround for failing build on Ruby 1.8.7

    Rubygems broke builds on Ruby 1.8.7:
    
    travis-ci/travis-ci#1793
    rubygems/rubygems#763
    
    This patch is a temporary workaround until rubygems is updated.
    sferik committed Dec 30, 2013
Commits on Dec 23, 2013
  1. Merge pull request #389 from TimMoore/ruby-1.8.7-compat

    Only set non-nil Readline.completion_proc.
    sferik committed Dec 23, 2013
  2. Only set non-nil Readline.completion_proc.

    This fixes an ArgumentError when running with Ruby 1.8.7.
    TimMoore committed Dec 23, 2013
Commits on Dec 17, 2013
  1. Merge pull request #360 from georgebrock/gb-readline

    Use Readline for user input
    sferik committed Dec 17, 2013
  2. Fix Readline check on Ruby 1.8.7

    `Kernel.const_defined?` will return true for root-level constants in Ruby
    1.9+, but false in Ruby 1.8. `Object.const_defined?` works consistently in
    all versions.
    georgebrock committed Dec 17, 2013
Commits on Dec 16, 2013
  1. Merge pull request #386 from markets/numeric_enum

    Check if numeric value is in enum
    sferik committed Dec 16, 2013
Commits on Dec 15, 2013
  1. Move :echo => false support into LineEditors

    :echo => false was added to the ask method in dbfdd30, this maintains that
    behaviour with Readline support.
    
    Tip o' the hat to @cwninja, we paired on this.
    georgebrock committed with georgebrock Aug 18, 2013
  2. Add path completion to Readline.

    Arguably the most common use for tab completion is paths, so let's support
    it! Calls to #ask can now take `:path => true` which will enable tab
    completion relative to the current working directory on systems that have
    Readline support.
    georgebrock committed with georgebrock Aug 11, 2013
  3. Support Readline tab completion.

    When the input is restricted by the :limited_to option, support tab
    completion for the options.
    georgebrock committed with georgebrock Aug 11, 2013
  4. Support Readline history.

    * By default, the response to any #ask call is added to the history.
    * Pass `:add_to_history => false` to #ask to avoid adding to history.
    * #yes?, #no?, and #file_collision? have `:add_to_history => false` by
      default.
    georgebrock committed with georgebrock Aug 11, 2013
  5. Pass #ask options on to LineEditor.readline

    This will allow for various editor-level customisations based on the
    options, and for the set of #ask options to be expanded to include options
    that specifically effect the line editor.
    georgebrock committed with georgebrock Aug 11, 2013
  6. Replace line editor conditional with polymorphism.

    This refactoring paves the way for adding more advanced Readline
    functionality, like tab completion and selective addition to history.
    
    Thanks to Tom Lea (@cwninja) for pairing on the tests for this.
    georgebrock committed with georgebrock Aug 11, 2013
  7. Push user input into a Thor::LineEditor module.

    This paves the way for using Readline.
    
    Since Readline needs to display its own prompt (for history navigation etc.)
    the #ask method can no longer use the #say method, so the code for adding
    colours and padding has been extracted into #prepare_message
    georgebrock committed with georgebrock Aug 11, 2013
  8. Push conditionals into set_color method.

    Calling #set_color required the client code to check the argument and
     #can_display_colors?. Pushing these checks into #set_color makes it much
    easier to reuse this method.
    
    This means that #set_color will now behave differently on TTY and non-TTY
    terminals, so the #tty? method of $stdout has been stubbed in the
    Thor::Shell::Color specs to always return true.
    georgebrock committed with georgebrock Aug 11, 2013
  9. Merge pull request #358 from apotonick/dynamic_command

    Simple Override Of DynamicCommand
    sferik committed Dec 15, 2013
Commits on Dec 14, 2013
  1. Update invocation.rb

    when calling invoke with a bad name, raise "Missing Thor class for invoke #{name}"
    jcangas committed with sferik Dec 5, 2013
  2. Merge pull request #383 from developingchris/alias_help_option_to_help

    alias --help to help on subcommands
    sferik committed Dec 14, 2013
  3. remove stray whitespace

    developingchris committed Dec 14, 2013
  4. revising branch to also inlude the short option

    Now the -h and --help enact the same functionality as if help was called
    on the subcommand.
    developingchris committed Dec 14, 2013
  5. Correct RuboCop offences

    sferik committed Dec 14, 2013
Commits on Dec 12, 2013
  1. Add RuboCop

    sferik committed Dec 12, 2013
  2. Enforce code coverage minimums

    sferik committed Dec 12, 2013
  3. Merge pull request #385 from spastorino/accept_tt_at_end

    Accept .tt as for templates
    sferik committed Dec 12, 2013
  4. Rename local var

    spastorino committed Dec 12, 2013
Commits on Dec 11, 2013
  1. Remove unused local vars

    spastorino committed Dec 11, 2013
  2. Accept .tt as for templates

    spastorino committed Dec 11, 2013