plagiarism2 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 253b52f49b6d8943468f5f58aabe4d98eb0d19b1
4
- data.tar.gz: 6ed790050a1d5efe1715ad596e5f67047a2d82bc
3
+ metadata.gz: 5e004d9b6287e44d05012c60bf573e6ba83a7b42
4
+ data.tar.gz: 5e9a094a0e0180b5d0dc47cc7d3010902f47fdde
5
5
  SHA512:
6
- metadata.gz: c7a9fcf7eb0cfdb33c1521be06a8fed18880c7e24fa4661a151fdc69a1700c45af00693657bbf83759cfc0015bba8369e8df6f525e616de299fe317ca6f30d2f
7
- data.tar.gz: 9560ccc5cb705f9c6a07601f69d14fa6863f56962a62a0261fe87ea663d7a45136ec89be1d6aefd4d5bda770c0df2c41feb9b54dec050e9c69876feee9579bc1
6
+ metadata.gz: 415b6c9790563d0567ad67836c53aef6affc2658aaa700e1c9f6db44f8fab308f5243808d458e99081d78d59b8d68d1231473e6f3d604466e239873d4797aa87
7
+ data.tar.gz: 9060d0de2c72a0f85eafcfbd902b73016779520ef8eb1350f33ecc25f963e19e6dfeb1926f72ccfd18e671a91c17cfb707924f6ea8a635c1c04c4186f70dba0e
@@ -11,7 +11,7 @@ module Plagiarism
11
11
 
12
12
  def exists?(response)
13
13
  doc = Nokogiri::HTML response
14
- doc.css('.results_links_deep').all? do |row|
14
+ doc.css('.results_links_deep:not(.result--no-result)').all? do |row|
15
15
  href = row.at_css('.result__a').attributes['href'].value rescue ''
16
16
  uri = URI.parse href
17
17
  uri.host =~ whitelists_regex
@@ -1,3 +1,3 @@
1
1
  module Plagiarism
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plagiarism2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - MQuy