Last active
August 29, 2015 14:04
-
-
Save glabra/70f2bf9c6f5525ebbdb7 to your computer and use it in GitHub Desktop.
天安門事件
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=begin | |
/***** | |
tiananmen.rb | |
*****/ | |
Great Firewall | |
=end | |
Earthquake.init do | |
output_filter do |item| | |
next unless item["text"] | |
if item["text"].match(/天.*安.*門/) | |
raise Exception.new("TiananmenSquareMassacreException") | |
exit! | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment