From 30297ad0aa5591a2ef811b1df6c56f5795f9fe3e Mon Sep 17 00:00:00 2001 From: yu1ch1 Date: Tue, 24 Mar 2015 23:32:41 +0900 Subject: [PATCH] Add URI encoding to list name --- lib/earthquake/commands.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/earthquake/commands.rb b/lib/earthquake/commands.rb index 36773b5..7beb949 100644 --- a/lib/earthquake/commands.rb +++ b/lib/earthquake/commands.rb @@ -225,7 +225,7 @@ def self._eval_as_ruby_string(text) # :recent yugui/ruby-committers command %r|^:recent\s+([^\s]+)\/([^\s]+)$|, :as => :recent do |m| - puts_items twitter.list_statuses(m[1], m[2]) + puts_items twitter.list_statuses(m[1], URI.escape(m[2])) end help :recent, "show recent tweets", <<-HELP