Permalink
Browse files

fixes for 1.9

  • Loading branch information...
1 parent 43ddca7 commit b35b5f56bb0612e8ed5c2eecdd90c34f336b1fd8 @erikh erikh committed Jul 24, 2012
Showing with 10 additions and 4 deletions.
  1. +5 −1 lib/logstash-cli/cli.rb
  2. +5 −3 lib/logstash-cli/command.rb
View
@@ -4,7 +4,11 @@
require 'amqp'
require 'tire'
require 'time'
-require 'fastercsv'
+if RUBY_VERSION > '1.9'
+ require 'csv'
+else
+ require 'fastercsv'
+end
require 'logstash-cli/command'
module LogstashCli
@@ -1,7 +1,9 @@
require 'logstash-cli/command/grep'
require 'logstash-cli/command/tail'
-module LogstashCli::Command
- include Grep
- include Tail
+module LogstashCli
+ module Command
+ include Grep
+ include Tail
+ end
end

0 comments on commit b35b5f5

Please sign in to comment.