From 31c43c3170dc2e42aa6f4e2fbf62f02882c12dc6 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Fri, 24 Oct 2014 16:25:53 -0700 Subject: [PATCH] Fix and add mock black box --- ext/black_box.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ext/black_box.rb diff --git a/ext/black_box.rb b/ext/black_box.rb new file mode 100644 index 00000000..ec944378 --- /dev/null +++ b/ext/black_box.rb @@ -0,0 +1,19 @@ +# The BlackBox is a component that we don't include in the source code. +# It is used for our anti-spam code, which is not public. +# If you're a spammer and reading this to try to break it, please leave us alone. +# All you're doing is hurting a site that's trying to make the internet suck +# less and prevent it from turning into an soviet-apartment-bloc social network Orwellian nightmare. +# Also, we will very quickly detect and change the black box as soon as you figure out how to break it. +# Please choose another site to go after, we implore you. + +class BlackBox + class << self + def generate(*args) + 'derp' + end + + def valid?(input, ip) + input == 'derp' + end + end +end \ No newline at end of file