Skip to content

Instantly share code, notes, and snippets.

@ryumu
Created April 12, 2011 05:42
Show Gist options
  • Save ryumu/915007 to your computer and use it in GitHub Desktop.
Save ryumu/915007 to your computer and use it in GitHub Desktop.
あるあるをフィルターしちゃうearthquake.gemプラグイン
# coding: UTF-8
Earthquake.init do
output_filter do |item|
if item["_stream"] && item["text"]
item["text"] !~ /【.+あるある】/i
else
true
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment