lib/plagiarism/strategries/google.rb in plagiarism2-0.0.5 vs lib/plagiarism/strategries/google.rb in plagiarism2-0.0.6

- old
+ new

@@ -14,14 +14,14 @@ fields: 'items(link)', prettyPrint: false ) end - def exists?(response) + def iterate(response) results = JSON.parse(response)['items'] || [] results.all? do |r| uri = URI.parse URI::encode(r['link']) - uri.host =~ whitelists_regex + yield uri end end end