examples/sig.rb in net-irc-0.0.7 vs examples/sig.rb in net-irc-0.0.8
- old
+ new
@@ -1,6 +1,7 @@
#!/usr/bin/env ruby
+# vim:fileencoding=UTF-8:
=begin
# sig.rb
ServerLog IRC Gateway
@@ -14,10 +15,10 @@
=end
$LOAD_PATH << "lib"
$LOAD_PATH << "../lib"
-$KCODE = "u" # json use this
+$KCODE = "u" if RUBY_VERSION < "1.9" # json use this
require "rubygems"
require "net/irc"
require "logger"
require "pathname"