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.
@@ -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) # quick check
84
- cleanweb_options[:body_plain] = options[0]
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],
@@ -1,3 +1,3 @@
1
1
  module YandexCleanweb
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yandex_cleanweb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: