yandex_cleanweb 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/yandex_cleanweb.rb +3 -4
- data/lib/yandex_cleanweb/version.rb +1 -1
- metadata +1 -1
data/lib/yandex_cleanweb.rb
CHANGED
@@ -79,15 +79,14 @@ module YandexCleanweb
|
|
79
79
|
|
80
80
|
def api_check_spam(*options)
|
81
81
|
cleanweb_options = {}
|
82
|
+
cleanweb_options["key"] = api_key
|
82
83
|
|
83
|
-
if options[0].is_a?(String) #
|
84
|
-
cleanweb_options[
|
84
|
+
if options[0][0].is_a?(String) # fast check
|
85
|
+
cleanweb_options["body-plain"] = options[0][0]
|
85
86
|
else
|
86
87
|
options = options[0][0]
|
87
88
|
|
88
89
|
cleanweb_options.merge!({
|
89
|
-
"key" => api_key,
|
90
|
-
|
91
90
|
"body-plain" => options[:body_plain],
|
92
91
|
"body-html" => options[:body_html],
|
93
92
|
"body-bbcode" => options[:body_bbcode],
|