si-copyscape 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,8 @@
1
+ require 'crack/xml'
2
+ require 'net/http'
3
+ require 'uri'
4
+
5
+ require 'copyscape'
6
+ require 'copyscape_api'
7
+ require 'copyscape_matches'
8
+ require 'copyscape_response'
data/lib/version.rb ADDED
@@ -0,0 +1,5 @@
1
+ module SI
2
+ class CopyScape
3
+ VERSION = '0.1.0'
4
+ end
5
+ end
@@ -0,0 +1,28 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "si-copyscape"
8
+ spec.version = SI::CopyScape::VERSION
9
+ spec.authors = ['Shane Kretzmann']
10
+ spec.email = ["SKretzmann@searchinfluence.com"]
11
+ spec.summary = %q{Gem to interface with Copyscape api}
12
+ spec.description = %q{Allow any ruby application to easily interact with copyscape premium api}
13
+ spec.homepage = "https://github.com/searchinfluence/copyscape"
14
+ spec.license = "Private Property (c) Search Influence"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "minitest"
22
+ spec.add_development_dependency "guard"
23
+ spec.add_development_dependency "guard-minitest"
24
+ spec.add_development_dependency "webmock"
25
+ spec.add_development_dependency "vcr"
26
+
27
+ spec.add_runtime_dependency "crack"
28
+ end
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://www.copyscape.com/api/?a=&e=UTF-8&i=&k=test&o=pindexadd&u=test
6
+ body:
7
+ encoding: UTF-8
8
+ string: Putting some text in our private index. Fee Fi Fo Fum I smell the blood
9
+ of an englishman
10
+ headers:
11
+ Accept-Encoding:
12
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
13
+ Accept:
14
+ - "*/*"
15
+ User-Agent:
16
+ - Ruby
17
+ response:
18
+ status:
19
+ code: 200
20
+ message: OK
21
+ headers:
22
+ Date:
23
+ - Wed, 26 Aug 2015 18:36:28 GMT
24
+ Server:
25
+ - Apache/2.2.15 (CentOS)
26
+ X-Powered-By:
27
+ - PHP/5.3.3
28
+ Set-Cookie:
29
+ - ck=5SF6BOI6N0G00G0CC8KO0CSO4; expires=Fri, 25-Aug-2017 18:36:28 GMT; path=/;
30
+ domain=.copyscape.com
31
+ Content-Length:
32
+ - '155'
33
+ Connection:
34
+ - close
35
+ Content-Type:
36
+ - text/xml; charset=utf-8
37
+ body:
38
+ encoding: UTF-8
39
+ string: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<response>\n\t<words>18</words>\n\t<handle>SIA_2_E00JOQ0A2W_F0N8GRC4GS</handle>\n\t<id></id>\n\t<title></title>\n</response>\n"
40
+ http_version:
41
+ recorded_at: Wed, 26 Aug 2015 18:40:41 GMT
42
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,43 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://www.copyscape.com/api/?k=test&o=balance&u=test
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ Host:
17
+ - www.copyscape.com
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Tue, 25 Aug 2015 21:16:53 GMT
25
+ Server:
26
+ - Apache/2.2.15 (CentOS)
27
+ X-Powered-By:
28
+ - PHP/5.3.3
29
+ Set-Cookie:
30
+ - ck=BXXO3ODYE2GW4S0OWSOWKG4C4; expires=Thu, 24-Aug-2017 21:16:53 GMT; path=/;
31
+ domain=.copyscape.com
32
+ Content-Length:
33
+ - '129'
34
+ Connection:
35
+ - close
36
+ Content-Type:
37
+ - text/xml; charset=utf-8
38
+ body:
39
+ encoding: UTF-8
40
+ string: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<remaining>\n\t<value>240.51</value>\n\t<total>4810</total>\n\t<today>4810</today>\n</remaining>\n"
41
+ http_version:
42
+ recorded_at: Tue, 25 Aug 2015 21:21:04 GMT
43
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://www.copyscape.com/api/?c=3&e=UTF-8&k=test&o=csearch&u=test
6
+ body:
7
+ encoding: UTF-8
8
+ string: test
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Wed, 26 Aug 2015 14:53:47 GMT
23
+ Server:
24
+ - Apache/2.2.15 (CentOS)
25
+ X-Powered-By:
26
+ - PHP/5.3.3
27
+ Set-Cookie:
28
+ - ck=3CN7AMF95EM8W0SG40CSWSKOG; expires=Fri, 25-Aug-2017 14:53:47 GMT; path=/;
29
+ domain=.copyscape.com
30
+ Content-Length:
31
+ - '129'
32
+ Connection:
33
+ - close
34
+ Content-Type:
35
+ - text/xml; charset=utf-8
36
+ body:
37
+ encoding: UTF-8
38
+ string: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<response>\n\t<error>At
39
+ least 15 words are required to perform a search</error>\n</response>\n"
40
+ http_version:
41
+ recorded_at: Wed, 26 Aug 2015 14:58:00 GMT
42
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,163 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://www.copyscape.com/api/?c=3&e=UTF-8&k=test&o=cpsearch&u=test
6
+ body:
7
+ encoding: UTF-8
8
+ string: A national website promotion company, Search Influence routinely delivers
9
+ a 10:1 return on investment, or better, for our customers.
10
+ headers:
11
+ Accept-Encoding:
12
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
13
+ Accept:
14
+ - "*/*"
15
+ User-Agent:
16
+ - Ruby
17
+ response:
18
+ status:
19
+ code: 200
20
+ message: OK
21
+ headers:
22
+ Date:
23
+ - Wed, 26 Aug 2015 17:02:14 GMT
24
+ Server:
25
+ - Apache/2.2.15 (CentOS)
26
+ X-Powered-By:
27
+ - PHP/5.3.3
28
+ Set-Cookie:
29
+ - ck=N4CXQ3K0X5W4GCSSSWOK04WS; expires=Fri, 25-Aug-2017 17:02:14 GMT; path=/;
30
+ domain=.copyscape.com
31
+ Content-Length:
32
+ - '5406'
33
+ Connection:
34
+ - close
35
+ Content-Type:
36
+ - text/xml; charset=utf-8
37
+ body:
38
+ encoding: ASCII-8BIT
39
+ string: !binary |-
40
+ PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHJlc3Bv
41
+ bnNlPgoJPHF1ZXJ5d29yZHM+MjE8L3F1ZXJ5d29yZHM+Cgk8Y291bnQ+NTwv
42
+ Y291bnQ+Cgk8cmVzdWx0PgoJCTxpbmRleD4xPC9pbmRleD4KCQk8dXJsPmh0
43
+ dHA6Ly93d3cuc2VhcmNoaW5mbHVlbmNlLmNvbS88L3VybD4KCQk8dGl0bGU+
44
+ U2VhcmNoIEluZmx1ZW5jZSB8IFdlYnNpdGUgUHJvbW90aW9uIENvbXBhbnk8
45
+ L3RpdGxlPgoJCTx0ZXh0c25pcHBldD4uLi4gVHJ1c3RlZCwgU2NhbGFibGUg
46
+ U2VhcmNoLCBTb2NpYWwgYW5kIE9ubGluZSBBZHZlcnRpc2luZy4gQSBuYXRp
47
+ b25hbCB3ZWJzaXRlIHByb21vdGlvbiBjb21wYW55LCBTZWFyY2ggSW5mbHVl
48
+ bmNlIHJvdXRpbmVseSBkZWxpd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ug 2015 17:06:27 GMT
163
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,170 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://www.copyscape.com/api/?c=3&e=UTF-8&k=test&o=csearch&u=test
6
+ body:
7
+ encoding: UTF-8
8
+ string: A national website promotion company, Search Influence routinely delivers
9
+ a 10:1 return on investment, or better, for our customers.
10
+ headers:
11
+ Accept-Encoding:
12
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
13
+ Accept:
14
+ - "*/*"
15
+ User-Agent:
16
+ - Ruby
17
+ response:
18
+ status:
19
+ code: 200
20
+ message: OK
21
+ headers:
22
+ Date:
23
+ - Wed, 26 Aug 2015 16:41:56 GMT
24
+ Server:
25
+ - Apache/2.2.15 (CentOS)
26
+ X-Powered-By:
27
+ - PHP/5.3.3
28
+ Set-Cookie:
29
+ - ck=AR9S1OWC5FK048OK4GSGO04CK; expires=Fri, 25-Aug-2017 16:41:56 GMT; path=/;
30
+ domain=.copyscape.com
31
+ Content-Length:
32
+ - '5732'
33
+ Connection:
34
+ - close
35
+ Content-Type:
36
+ - text/xml; charset=utf-8
37
+ body:
38
+ encoding: ASCII-8BIT
39
+ string: !binary |-
40
+ PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHJlc3Bv
41
+ bnNlPgoJPHF1ZXJ5d29yZHM+MjA8L3F1ZXJ5d29yZHM+Cgk8Y291bnQ+NTwv
42
+ Y291bnQ+Cgk8cmVzdWx0PgoJCTxpbmRleD4xPC9pbmRleD4KCQk8dXJsPmh0
43
+ dHA6Ly93d3cuc2VhcmNoaW5mbHVlbmNlLmNvbS88L3VybD4KCQk8dGl0bGU+
44
+ U2VhcmNoIEluZmx1ZW5jZSB8IFdlYnNpdGUgUHJvbW90aW9uIENvbXBhbnk8
45
+ L3RpdGxlPgoJCTx0ZXh0c25pcHBldD4uLi4gVHJ1c3RlZCwgU2NhbGFibGUg
46
+ U2Vhcm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