+2017-02-15 Tatsuki Sugiura <sugi@nemui.org>
+
+ * Fix command class loader to support ruby 1.9.x.
+ * Version 0.1.8
+
2016-10-04 Tatsuki Sugiura <sugi@nemui.org>
* Version 0.1.7
def get_command_class(command_name)
class_name = command_name.to_s.split('_').map(&:capitalize).join
begin
- return self.class.const_get("OSDN::CLI::Command::#{class_name}")
+ return OSDN::CLI::Command.const_get(class_name)
rescue NameError => e
logger.fatal "Invalid command name '#{command_name}'. Use 'help' to list commands."
exit