Sha256: 59b026592c5c06b4163318e7ba6cad53bce0122145ba342463f4ff31ded2f032

Contents?: true

Size: 630 Bytes

Versions: 19

Compression:

Stored size: 630 Bytes

Contents

module TaskwarriorWeb::CommandBuilder
  autoload :Base, 'taskwarrior-web/services/builder/base'
  autoload :V1,   'taskwarrior-web/services/builder/v1'
  autoload :V2,   'taskwarrior-web/services/builder/v2'

  class InvalidCommandError < Exception; end
  class MissingTaskIDError < Exception; end

  def self.included(class_name)
    class_name.class_eval do
      case TaskwarriorWeb::Config.version.major
      when 2
        include TaskwarriorWeb::CommandBuilder::V2
      when 1
        include TaskwarriorWeb::CommandBuilder::V1
      else
        raise TaskwarriorWeb::UnrecognizedTaskVersion
      end
    end
  end

end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
taskwarrior-web-1.1.12 lib/taskwarrior-web/services/builder.rb
taskwarrior-web-1.1.11 lib/taskwarrior-web/services/builder.rb
taskwarrior-web-1.1.10 lib/taskwarrior-web/services/builder.rb
taskwarrior-web-1.1.9 lib/taskwarrior-web/services/builder.rb
taskwarrior-web-1.1.8 lib/taskwarrior-web/services/builder.rb
taskwarrior-web-1.1.7 lib/taskwarrior-web/services/builder.rb
taskwarrior-web-1.1.6 lib/taskwarrior-web/services/builder.rb
taskwarrior-web-1.1.5 lib/taskwarrior-web/services/builder.rb
taskwarrior-web-1.1.4 lib/taskwarrior-web/services/builder.rb
taskwarrior-web-1.1.3 lib/taskwarrior-web/services/builder.rb
taskwarrior-web-1.1.2 lib/taskwarrior-web/services/builder.rb
taskwarrior-web-1.1.1 lib/taskwarrior-web/services/builder.rb
taskwarrior-web-1.1.0 lib/taskwarrior-web/services/builder.rb
taskwarrior-web-1.0.14 lib/taskwarrior-web/services/builder.rb
taskwarrior-web-1.0.13 lib/taskwarrior-web/services/builder.rb
taskwarrior-web-1.0.12 lib/taskwarrior-web/services/builder.rb
taskwarrior-web-1.0.11 lib/taskwarrior-web/services/builder.rb
taskwarrior-web-1.0.10 lib/taskwarrior-web/services/builder.rb
taskwarrior-web-1.0.9 lib/taskwarrior-web/services/builder.rb