plagiarism2 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f4e43615c24c041d05466d83091b775a26bcde1
4
- data.tar.gz: 2fc69b5c28c9a5da3726765071fc21323bc80ac3
3
+ metadata.gz: c76838179f2f533041c1a29f8c248e490bbdc78d
4
+ data.tar.gz: 4b3184993d4f8b6cf5e9f51bfb1c736ec8b33dec
5
5
  SHA512:
6
- metadata.gz: 5f97108d3ff54b682628ae1328f67726871761cd2121aace55debb7784cdbd5fe21b6d4c7e1661562ed30853bf0afba3397540d3c3e8d62bdd89f2f5dd315841
7
- data.tar.gz: e4e2014486db66aecb23159296c1e03578542e2b1ce3b13a8bbbcf883967640335588e476882d2f1fcf4a67fcbd2649eb73e31b94d7233c90039633cde942904
6
+ metadata.gz: 7bac86541499004dbb99bd336c410417ec6b506cf1d4375f397b400de2055b62aaad7fc77b7b39a8c4a12e2560092db503b24ed069933c0e66108fe10c948264
7
+ data.tar.gz: 2d199601b595ae7d0009413b947a3ebe8c0e0658d7a82d2e9e50f054b4efecb1dbd3fef109a02a40830f2bfefd65a0027abd7aebfb33ade9d2e99cf86e02c131
@@ -21,7 +21,7 @@ module Plagiarism
21
21
  method_option :path, aliases: '-p', desc: 'where put the config', type: :string, default: CONFIG_PATH
22
22
  def init
23
23
  create_file options[:path], <<-STRING
24
- strategies: "yahoo"
24
+ strategies: "free_google"
25
25
  whitelists: "www.ring.md, blog.ring.md"
26
26
  bing_key: xxx
27
27
  google_key: xxx
@@ -6,7 +6,7 @@ module Plagiarism
6
6
  class << self
7
7
 
8
8
  def fetch(content, params)
9
- Typhoeus.get(URL, params: params.merge(p: content), headers: { 'User-Agent' => 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36' })
9
+ Typhoeus.get(URL, params: params.merge(p: content))
10
10
  end
11
11
 
12
12
  def iterate(response, action = :all?)
@@ -1,3 +1,3 @@
1
1
  module Plagiarism
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
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.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - MQuy