修订版 | 49d525c3a7964b159aca27f995b6faac7133bff4 (tree) |
---|---|
时间 | 2017-02-15 14:49:38 |
作者 | Tatsuki Sugiura <sugi@nemu...> |
Commiter | Tatsuki Sugiura |
Fix command class loader to support ruby1.9.x.
@@ -1,3 +1,8 @@ | ||
1 | +2017-02-15 Tatsuki Sugiura <sugi@nemui.org> | |
2 | + | |
3 | + * Fix command class loader to support ruby 1.9.x. | |
4 | + * Version 0.1.8 | |
5 | + | |
1 | 6 | 2016-10-04 Tatsuki Sugiura <sugi@nemui.org> |
2 | 7 | |
3 | 8 | * Version 0.1.7 |
@@ -55,7 +55,7 @@ module OSDN | ||
55 | 55 | def get_command_class(command_name) |
56 | 56 | class_name = command_name.to_s.split('_').map(&:capitalize).join |
57 | 57 | begin |
58 | - return self.class.const_get("OSDN::CLI::Command::#{class_name}") | |
58 | + return OSDN::CLI::Command.const_get(class_name) | |
59 | 59 | rescue NameError => e |
60 | 60 | logger.fatal "Invalid command name '#{command_name}'. Use 'help' to list commands." |
61 | 61 | exit |
@@ -1,5 +1,5 @@ | ||
1 | 1 | module OSDN |
2 | 2 | module CLI |
3 | - VERSION = "0.1.7" | |
3 | + VERSION = "0.1.8" | |
4 | 4 | end |
5 | 5 | end |