Sha256: 2310e2ce1af698a27b7bbf4e78b130605d6695f6fbbfcde2d88c4cf3c8c0d63f
Contents?: true
Size: 607 Bytes
Versions: 7
Compression:
Stored size: 607 Bytes
Contents
require 'taskwarrior-web/config' module TaskwarriorWeb module CommandBuilder def self.included(class_name) class_name.class_eval do case TaskwarriorWeb::Config.task_major_version when 2 require 'taskwarrior-web/command_builders/v2' include TaskwarriorWeb::CommandBuilder::V2 when 1 require 'taskwarrior-web/command_builders/v1' include TaskwarriorWeb::CommandBuilder::V1 else raise TaskwarriorWeb::UnrecognizedTaskVersion end end end end class UnrecognizedTaskVersion < Exception; end end
Version data entries
7 entries across 7 versions & 1 rubygems