Commit MetaInfo

修订版49d525c3a7964b159aca27f995b6faac7133bff4 (tree)
时间2017-02-15 14:49:38
作者Tatsuki Sugiura <sugi@nemu...>
CommiterTatsuki Sugiura

Log Message

Fix command class loader to support ruby1.9.x.

更改概述

差异

--- a/ChangeLog
+++ b/ChangeLog
@@ -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+
16 2016-10-04 Tatsuki Sugiura <sugi@nemui.org>
27
38 * Version 0.1.7
--- a/lib/osdn/cli/runner.rb
+++ b/lib/osdn/cli/runner.rb
@@ -55,7 +55,7 @@ module OSDN
5555 def get_command_class(command_name)
5656 class_name = command_name.to_s.split('_').map(&:capitalize).join
5757 begin
58- return self.class.const_get("OSDN::CLI::Command::#{class_name}")
58+ return OSDN::CLI::Command.const_get(class_name)
5959 rescue NameError => e
6060 logger.fatal "Invalid command name '#{command_name}'. Use 'help' to list commands."
6161 exit
--- a/lib/osdn/cli/version.rb
+++ b/lib/osdn/cli/version.rb
@@ -1,5 +1,5 @@
11 module OSDN
22 module CLI
3- VERSION = "0.1.7"
3+ VERSION = "0.1.8"
44 end
55 end
Show on old repository browser