serpscan 0.0.2 → 0.1.0

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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/serpscan/api.rb +2 -1
  4. data/lib/serpscan/keyword.rb +2 -1
  5. data/lib/serpscan/version.rb +1 -1
  6. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_creatable_object/should_return_object_after_creation.yml +11 -10
  7. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_deletable_object/should_return_true_after_delete.yml +25 -19
  8. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_alltime_change.yml +8 -8
  9. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_current_rank.yml +8 -8
  10. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_day_change.yml +8 -8
  11. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_id.yml +8 -8
  12. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_initial_rank.yml +8 -8
  13. data/spec/fixtures/vcr_cassettes/{Serpscan_SearchEngine/it_should_behave_like_a_listable_object/should_return_an_array_of_objects.yml → Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_month_change.yml} +8 -8
  14. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_phrase.yml +8 -8
  15. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_search_engine_country_id.yml +8 -8
  16. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_search_volume.yml +8 -8
  17. data/spec/fixtures/vcr_cassettes/{Serpscan_Website/it_should_behave_like_a_listable_object/should_return_an_array_of_objects.yml → Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_website_id.yml} +8 -8
  18. data/spec/fixtures/vcr_cassettes/Serpscan_Keyword/it_should_behave_like_a_findable_object/should_return_a_value_for_week_change.yml +8 -8
  19. data/spec/fixtures/vcr_cassettes/Serpscan_SearchEngine/it_should_behave_like_a_findable_object/should_return_a_value_for_countries.yml +5 -5
  20. data/spec/fixtures/vcr_cassettes/Serpscan_SearchEngine/it_should_behave_like_a_findable_object/should_return_a_value_for_id.yml +5 -5
  21. data/spec/fixtures/vcr_cassettes/Serpscan_SearchEngine/it_should_behave_like_a_findable_object/should_return_a_value_for_title.yml +5 -5
  22. data/spec/fixtures/vcr_cassettes/Serpscan_SearchEngine/it_should_behave_like_a_listable_object/should_return_an_array_of_Serpscan_SearchEngine_objects.yml +5 -5
  23. data/spec/fixtures/vcr_cassettes/Serpscan_Website/create_keyword/should_return_a_keyword_object.yml +19 -19
  24. data/spec/fixtures/vcr_cassettes/Serpscan_Website/it_should_behave_like_a_creatable_object/should_return_object_after_creation.yml +8 -8
  25. data/spec/fixtures/vcr_cassettes/Serpscan_Website/it_should_behave_like_a_deletable_object/should_return_true_after_delete.yml +25 -19
  26. data/spec/fixtures/vcr_cassettes/Serpscan_Website/it_should_behave_like_a_findable_object/should_return_a_value_for_id.yml +8 -8
  27. data/spec/fixtures/vcr_cassettes/Serpscan_Website/it_should_behave_like_a_findable_object/should_return_a_value_for_url.yml +8 -8
  28. data/spec/fixtures/vcr_cassettes/Serpscan_Website/it_should_behave_like_a_listable_object/should_return_an_array_of_Serpscan_Website_objects.yml +8 -8
  29. data/spec/fixtures/vcr_cassettes/Serpscan_Website/keywords/should_return_a_paginated_array_of_keyword_objects.yml +18 -590
  30. data/spec/lib/serpscan/keyword_spec.rb +1 -1
  31. data/spec/lib/serpscan/website_spec.rb +1 -1
  32. data/spec/spec_helper.rb +2 -1
  33. metadata +6 -8
  34. data/spec/fixtures/vcr_cassettes/Serpscan_Website/keywords/should_return_an_array_of_keyword_objects.yml +0 -90
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:5055/api/v1/keywords/1?token=123
5
+ uri: http://localhost:5055/api/v2/keywords/1?token=123
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -23,24 +23,24 @@ http_interactions:
23
23
  X-Ua-Compatible:
24
24
  - IE=Edge
25
25
  Etag:
26
- - '"227c5fa24bcc8a2adac7353eae5b60df"'
26
+ - '"55bbf33bfa501ca7c51423cdd6691e40"'
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - f2b688f1926d10e7cbd5059f8341edc7
30
+ - ed3eef46c880913d507e27f7f86fda67
31
31
  X-Runtime:
32
- - '0.026000'
32
+ - '0.024864'
33
33
  Server:
34
34
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
35
35
  Date:
36
- - Sun, 22 Feb 2015 20:41:41 GMT
36
+ - Tue, 07 Apr 2015 16:20:06 GMT
37
37
  Content-Length:
38
- - '185'
38
+ - '223'
39
39
  Connection:
40
40
  - Keep-Alive
41
41
  body:
42
42
  encoding: UTF-8
43
- string: '{"id":1,"phrase":"example keyword","current_rank":1,"initial_rank":100,"day_change":"+99","week_change":"+99","alltime_change":"+99","search_volume":"1000","search_engine_country_id":1}'
43
+ string: '{"id":1,"phrase":"example keyword 0","current_rank":1,"initial_rank":100,"day_change":"+99","week_change":"+99","month_change":"+55","alltime_change":"+99","search_volume":"1000","search_engine_country_id":1,"website_id":1}'
44
44
  http_version:
45
- recorded_at: Sun, 22 Feb 2015 20:41:41 GMT
45
+ recorded_at: Tue, 07 Apr 2015 16:20:06 GMT
46
46
  recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:5055/api/v1/keywords/1?token=123
5
+ uri: http://localhost:5055/api/v2/keywords/1?token=123
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -23,24 +23,24 @@ http_interactions:
23
23
  X-Ua-Compatible:
24
24
  - IE=Edge
25
25
  Etag:
26
- - '"227c5fa24bcc8a2adac7353eae5b60df"'
26
+ - '"55bbf33bfa501ca7c51423cdd6691e40"'
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - cf4bed2e26c1931946f7878c168ca556
30
+ - c181753d244e18acc4ecf05cea2f6e38
31
31
  X-Runtime:
32
- - '0.025082'
32
+ - '0.023753'
33
33
  Server:
34
34
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
35
35
  Date:
36
- - Sun, 22 Feb 2015 20:41:41 GMT
36
+ - Tue, 07 Apr 2015 16:20:06 GMT
37
37
  Content-Length:
38
- - '185'
38
+ - '223'
39
39
  Connection:
40
40
  - Keep-Alive
41
41
  body:
42
42
  encoding: UTF-8
43
- string: '{"id":1,"phrase":"example keyword","current_rank":1,"initial_rank":100,"day_change":"+99","week_change":"+99","alltime_change":"+99","search_volume":"1000","search_engine_country_id":1}'
43
+ string: '{"id":1,"phrase":"example keyword 0","current_rank":1,"initial_rank":100,"day_change":"+99","week_change":"+99","month_change":"+55","alltime_change":"+99","search_volume":"1000","search_engine_country_id":1,"website_id":1}'
44
44
  http_version:
45
- recorded_at: Sun, 22 Feb 2015 20:41:41 GMT
45
+ recorded_at: Tue, 07 Apr 2015 16:20:06 GMT
46
46
  recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:5055/api/v1/websites?token=123
5
+ uri: http://localhost:5055/api/v2/keywords/1?token=123
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -23,24 +23,24 @@ http_interactions:
23
23
  X-Ua-Compatible:
24
24
  - IE=Edge
25
25
  Etag:
26
- - '"f47a9a60d97ae9f3dc6a20f76eeaeaba"'
26
+ - '"55bbf33bfa501ca7c51423cdd6691e40"'
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - 940c2aee83734f12d859be2f94b7b5d3
30
+ - b817dbea13a65328c0d4beca8a4ea006
31
31
  X-Runtime:
32
- - '0.030534'
32
+ - '0.025464'
33
33
  Server:
34
34
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
35
35
  Date:
36
- - Sun, 22 Feb 2015 20:41:42 GMT
36
+ - Tue, 07 Apr 2015 16:20:06 GMT
37
37
  Content-Length:
38
- - '79'
38
+ - '223'
39
39
  Connection:
40
40
  - Keep-Alive
41
41
  body:
42
42
  encoding: UTF-8
43
- string: '{"results":[{"id":2,"url":"example-website.com"},{"id":1,"url":"example.com"}]}'
43
+ string: '{"id":1,"phrase":"example keyword 0","current_rank":1,"initial_rank":100,"day_change":"+99","week_change":"+99","month_change":"+55","alltime_change":"+99","search_volume":"1000","search_engine_country_id":1,"website_id":1}'
44
44
  http_version:
45
- recorded_at: Sun, 22 Feb 2015 20:41:42 GMT
45
+ recorded_at: Tue, 07 Apr 2015 16:20:06 GMT
46
46
  recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:5055/api/v1/keywords/1?token=123
5
+ uri: http://localhost:5055/api/v2/keywords/1?token=123
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -23,24 +23,24 @@ http_interactions:
23
23
  X-Ua-Compatible:
24
24
  - IE=Edge
25
25
  Etag:
26
- - '"227c5fa24bcc8a2adac7353eae5b60df"'
26
+ - '"55bbf33bfa501ca7c51423cdd6691e40"'
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - f96d17cdacc39bb04bcf7c2ef9b8b49d
30
+ - ce5d4ff49a4d5aed8386ce15a89f1873
31
31
  X-Runtime:
32
- - '0.078011'
32
+ - '0.023882'
33
33
  Server:
34
34
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
35
35
  Date:
36
- - Sun, 22 Feb 2015 20:41:41 GMT
36
+ - Tue, 07 Apr 2015 16:20:06 GMT
37
37
  Content-Length:
38
- - '185'
38
+ - '223'
39
39
  Connection:
40
40
  - Keep-Alive
41
41
  body:
42
42
  encoding: UTF-8
43
- string: '{"id":1,"phrase":"example keyword","current_rank":1,"initial_rank":100,"day_change":"+99","week_change":"+99","alltime_change":"+99","search_volume":"1000","search_engine_country_id":1}'
43
+ string: '{"id":1,"phrase":"example keyword 0","current_rank":1,"initial_rank":100,"day_change":"+99","week_change":"+99","month_change":"+55","alltime_change":"+99","search_volume":"1000","search_engine_country_id":1,"website_id":1}'
44
44
  http_version:
45
- recorded_at: Sun, 22 Feb 2015 20:41:41 GMT
45
+ recorded_at: Tue, 07 Apr 2015 16:20:06 GMT
46
46
  recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:5055/api/v1/search_engines/1?token=123
5
+ uri: http://localhost:5055/api/v2/search_engines/1?token=123
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -27,13 +27,13 @@ http_interactions:
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - bf52aca53e461b13547c5ca87420e86a
30
+ - cf0cdf638c6c200e794b2c27098dcbe8
31
31
  X-Runtime:
32
- - '0.082465'
32
+ - '0.024232'
33
33
  Server:
34
34
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
35
35
  Date:
36
- - Sun, 22 Feb 2015 20:41:42 GMT
36
+ - Tue, 07 Apr 2015 16:20:06 GMT
37
37
  Content-Length:
38
38
  - '86'
39
39
  Connection:
@@ -42,5 +42,5 @@ http_interactions:
42
42
  encoding: UTF-8
43
43
  string: '{"id":1,"title":"Google","countries":[{"id":1,"location":"USA","search_engine_id":1}]}'
44
44
  http_version:
45
- recorded_at: Sun, 22 Feb 2015 20:41:42 GMT
45
+ recorded_at: Tue, 07 Apr 2015 16:20:06 GMT
46
46
  recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:5055/api/v1/search_engines/1?token=123
5
+ uri: http://localhost:5055/api/v2/search_engines/1?token=123
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -27,13 +27,13 @@ http_interactions:
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - 79ce9d3c204ed4ed419afa0afac6c6e7
30
+ - 807f554494a8f68d068830da7502e8da
31
31
  X-Runtime:
32
- - '0.031583'
32
+ - '0.026559'
33
33
  Server:
34
34
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
35
35
  Date:
36
- - Sun, 22 Feb 2015 20:41:42 GMT
36
+ - Tue, 07 Apr 2015 16:20:06 GMT
37
37
  Content-Length:
38
38
  - '86'
39
39
  Connection:
@@ -42,5 +42,5 @@ http_interactions:
42
42
  encoding: UTF-8
43
43
  string: '{"id":1,"title":"Google","countries":[{"id":1,"location":"USA","search_engine_id":1}]}'
44
44
  http_version:
45
- recorded_at: Sun, 22 Feb 2015 20:41:42 GMT
45
+ recorded_at: Tue, 07 Apr 2015 16:20:06 GMT
46
46
  recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:5055/api/v1/search_engines/1?token=123
5
+ uri: http://localhost:5055/api/v2/search_engines/1?token=123
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -27,13 +27,13 @@ http_interactions:
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - 398bdbe9d0dc814804ceff50fb3efca0
30
+ - 596d71dc34284e393988fb174ab86587
31
31
  X-Runtime:
32
- - '0.032671'
32
+ - '0.024333'
33
33
  Server:
34
34
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
35
35
  Date:
36
- - Sun, 22 Feb 2015 20:41:42 GMT
36
+ - Tue, 07 Apr 2015 16:20:06 GMT
37
37
  Content-Length:
38
38
  - '86'
39
39
  Connection:
@@ -42,5 +42,5 @@ http_interactions:
42
42
  encoding: UTF-8
43
43
  string: '{"id":1,"title":"Google","countries":[{"id":1,"location":"USA","search_engine_id":1}]}'
44
44
  http_version:
45
- recorded_at: Sun, 22 Feb 2015 20:41:42 GMT
45
+ recorded_at: Tue, 07 Apr 2015 16:20:06 GMT
46
46
  recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:5055/api/v1/search_engines?token=123
5
+ uri: http://localhost:5055/api/v2/search_engines?token=123
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -27,13 +27,13 @@ http_interactions:
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - bd15aff67b46719c41f3ec63f0b4d3bc
30
+ - e3aab8b6269b05b2954f8779391a98f8
31
31
  X-Runtime:
32
- - '0.683118'
32
+ - '0.029545'
33
33
  Server:
34
34
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
35
35
  Date:
36
- - Tue, 24 Feb 2015 06:25:43 GMT
36
+ - Tue, 07 Apr 2015 16:20:06 GMT
37
37
  Content-Length:
38
38
  - '100'
39
39
  Connection:
@@ -42,5 +42,5 @@ http_interactions:
42
42
  encoding: UTF-8
43
43
  string: '{"results":[{"id":1,"title":"Google","countries":[{"id":1,"location":"USA","search_engine_id":1}]}]}'
44
44
  http_version:
45
- recorded_at: Tue, 24 Feb 2015 06:25:43 GMT
45
+ recorded_at: Tue, 07 Apr 2015 16:20:06 GMT
46
46
  recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:5055/api/v1/websites/1?token=123
5
+ uri: http://localhost:5055/api/v2/websites/1?token=123
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -23,29 +23,29 @@ http_interactions:
23
23
  X-Ua-Compatible:
24
24
  - IE=Edge
25
25
  Etag:
26
- - '"c959b5255215b9b0a60282ec6a65f51d"'
26
+ - '"16aafa997a49128e79f0b18e1e9f01f0"'
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - 4c717fc2c65ebcddc46f8c3131f446ff
30
+ - d4f6e9aa783e3427b6398a81783b33fd
31
31
  X-Runtime:
32
- - '0.022719'
32
+ - '0.020573'
33
33
  Server:
34
34
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
35
35
  Date:
36
- - Sun, 22 Feb 2015 21:26:07 GMT
36
+ - Tue, 07 Apr 2015 16:20:07 GMT
37
37
  Content-Length:
38
- - '28'
38
+ - '30'
39
39
  Connection:
40
40
  - Keep-Alive
41
41
  body:
42
42
  encoding: UTF-8
43
- string: '{"id":1,"url":"example.com"}'
43
+ string: '{"id":1,"url":"example-0.com"}'
44
44
  http_version:
45
- recorded_at: Sun, 22 Feb 2015 21:26:07 GMT
45
+ recorded_at: Tue, 07 Apr 2015 16:20:07 GMT
46
46
  - request:
47
47
  method: post
48
- uri: http://localhost:5055/api/v1/keywords?keyword%5Bphrase%5D=new%20keyword&keyword%5Bwebsite_id%5D=1&token=123
48
+ uri: http://localhost:5055/api/v2/keywords?keyword%5Bphrase%5D=new%20keyword&keyword%5Bwebsite_id%5D=1&token=123
49
49
  body:
50
50
  encoding: UTF-8
51
51
  string: '{"keyword":{"phrase":"new keyword","website_id":1}}'
@@ -68,29 +68,29 @@ http_interactions:
68
68
  X-Ua-Compatible:
69
69
  - IE=Edge
70
70
  Etag:
71
- - '"bdf4ef2089d02e9a52a59ccfa7b3499e"'
71
+ - '"91b63656425d42576d737949529138ff"'
72
72
  Cache-Control:
73
73
  - max-age=0, private, must-revalidate
74
74
  X-Request-Id:
75
- - aec48d9577adfcc69cd7a907303f2b28
75
+ - d0023c82a414afd19855faec4909c771
76
76
  X-Runtime:
77
- - '0.064045'
77
+ - '0.062052'
78
78
  Server:
79
79
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
80
80
  Date:
81
- - Sun, 22 Feb 2015 21:26:07 GMT
81
+ - Tue, 07 Apr 2015 16:20:07 GMT
82
82
  Content-Length:
83
- - '420'
83
+ - '472'
84
84
  Connection:
85
85
  - Keep-Alive
86
86
  Set-Cookie:
87
- - _serps_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTUzYzMwMTI5ZTc5ZTNhMGJjNjE0ZjQxMTFmOGUwYmQyBjsAVA%3D%3D--0fdb66a13fc7cc2c5d19fef5add5ce13692479a7;
87
+ - _serps_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTBkNzZiNjI0MmVhYTU4OGU2Mjc1NDg1ZmM5NTVlNzNhBjsAVA%3D%3D--def6f99dd69f32a9a583b616988ce2140e002381;
88
88
  path=/; HttpOnly
89
89
  body:
90
90
  encoding: UTF-8
91
- string: '{"website_id":null,"page":null,"total_pages":null,"results":[{"id":9,"phrase":"new
92
- keyword","current_rank":null,"initial_rank":null,"day_change":null,"week_change":null,"alltime_change":"_","search_volume":null,"search_engine_country_id":1}],"id":9,"phrase":"new
93
- keyword","current_rank":null,"initial_rank":null,"day_change":null,"week_change":null,"alltime_change":"_","search_volume":null,"search_engine_country_id":1}'
91
+ string: '{"website_id":1,"page":null,"total_pages":null,"results":[{"id":4,"phrase":"new
92
+ keyword","current_rank":null,"initial_rank":null,"day_change":null,"week_change":null,"month_change":null,"alltime_change":"_","search_volume":null,"search_engine_country_id":1,"website_id":1}],"id":4,"phrase":"new
93
+ keyword","current_rank":null,"initial_rank":null,"day_change":null,"week_change":null,"month_change":null,"alltime_change":"_","search_volume":null,"search_engine_country_id":1}'
94
94
  http_version:
95
- recorded_at: Sun, 22 Feb 2015 21:26:07 GMT
95
+ recorded_at: Tue, 07 Apr 2015 16:20:07 GMT
96
96
  recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:5055/api/v1/websites?token=123&website%5Burl%5D=example-website.com
5
+ uri: http://localhost:5055/api/v2/websites?token=123&website%5Burl%5D=example-website.com
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"website":{"url":"example-website.com"}}'
@@ -25,27 +25,27 @@ http_interactions:
25
25
  X-Ua-Compatible:
26
26
  - IE=Edge
27
27
  Etag:
28
- - '"cb0620dfa50f8c4e40e50bb022cb58fd"'
28
+ - '"c18d14a267c436d0dc53ef6c510f3ae2"'
29
29
  Cache-Control:
30
30
  - max-age=0, private, must-revalidate
31
31
  X-Request-Id:
32
- - 4971dad8b521774ac6255c26663344eb
32
+ - e303f967386ee63cb9726409b049cfdc
33
33
  X-Runtime:
34
- - '0.177275'
34
+ - '0.038845'
35
35
  Server:
36
36
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
37
37
  Date:
38
- - Sun, 22 Feb 2015 20:41:42 GMT
38
+ - Tue, 07 Apr 2015 16:20:06 GMT
39
39
  Content-Length:
40
40
  - '36'
41
41
  Connection:
42
42
  - Keep-Alive
43
43
  Set-Cookie:
44
- - _serps_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTA0NjE1MTE3YzYwYjIzNmNhZmUxNjE5Yzc3YzgwNjVkBjsAVA%3D%3D--be6f4e2644285c9687c1027e0728731407c21855;
44
+ - _serps_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWUzZDdmZDAwMmQ3NjdhYTdlNDY0Mjc0OGQ1MWFiZmMyBjsAVA%3D%3D--907751a1293227d70659570089f34e6072590514;
45
45
  path=/; HttpOnly
46
46
  body:
47
47
  encoding: UTF-8
48
- string: '{"id":2,"url":"example-website.com"}'
48
+ string: '{"id":3,"url":"example-website.com"}'
49
49
  http_version:
50
- recorded_at: Sun, 22 Feb 2015 20:41:42 GMT
50
+ recorded_at: Tue, 07 Apr 2015 16:20:06 GMT
51
51
  recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:5055/api/v1/websites/2?token=123
5
+ uri: http://localhost:5055/api/v2/websites/2?token=123
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -23,29 +23,29 @@ http_interactions:
23
23
  X-Ua-Compatible:
24
24
  - IE=Edge
25
25
  Etag:
26
- - '"cb0620dfa50f8c4e40e50bb022cb58fd"'
26
+ - '"3a335914e5d0421318ff92818ba861db"'
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - 8922cbff9ae33e9e4cc9da1f50f2651c
30
+ - 12a96fed80998414f622ad54bed38289
31
31
  X-Runtime:
32
- - '0.023296'
32
+ - '0.100699'
33
33
  Server:
34
34
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
35
35
  Date:
36
- - Sun, 22 Feb 2015 20:41:42 GMT
36
+ - Tue, 07 Apr 2015 16:20:07 GMT
37
37
  Content-Length:
38
- - '36'
38
+ - '30'
39
39
  Connection:
40
40
  - Keep-Alive
41
41
  body:
42
42
  encoding: UTF-8
43
- string: '{"id":2,"url":"example-website.com"}'
43
+ string: '{"id":2,"url":"example-1.com"}'
44
44
  http_version:
45
- recorded_at: Sun, 22 Feb 2015 20:41:42 GMT
45
+ recorded_at: Tue, 07 Apr 2015 16:20:07 GMT
46
46
  - request:
47
47
  method: delete
48
- uri: http://localhost:5055/api/v1/websites/2?token=123
48
+ uri: http://localhost:5055/api/v2/websites/2?token=123
49
49
  body:
50
50
  encoding: US-ASCII
51
51
  string: ''
@@ -58,29 +58,35 @@ http_interactions:
58
58
  - Ruby
59
59
  response:
60
60
  status:
61
- code: 204
62
- message: 'No Content '
61
+ code: 200
62
+ message: 'OK '
63
63
  headers:
64
+ Content-Type:
65
+ - application/json; charset=utf-8
64
66
  X-Ua-Compatible:
65
67
  - IE=Edge
68
+ Etag:
69
+ - '"7215ee9c7d9dc229d2921a40e899ec5f"'
66
70
  Cache-Control:
67
- - no-cache
71
+ - max-age=0, private, must-revalidate
68
72
  X-Request-Id:
69
- - 980183b5f2ebcd003d7234eb4d27fffd
73
+ - 03905dd5dd97cf5b418b40792e5101e9
70
74
  X-Runtime:
71
- - '0.123777'
75
+ - '0.029835'
72
76
  Server:
73
77
  - WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15)
74
78
  Date:
75
- - Sun, 22 Feb 2015 20:41:42 GMT
79
+ - Tue, 07 Apr 2015 16:20:07 GMT
80
+ Content-Length:
81
+ - '1'
76
82
  Connection:
77
- - close
83
+ - Keep-Alive
78
84
  Set-Cookie:
79
- - _serps_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTU3ZDkyODMxZjVkMjU1MDgwZDVlNGVhMGFmYWRhMmUwBjsAVA%3D%3D--63979569eb863084ffc0c18f178ab3475f770c19;
85
+ - _serps_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWYwMDJhZDZlMTU4NTUzNWU3ZmMwNjE0MmZjNjE3MWRkBjsAVA%3D%3D--27d0d0636ac8dca1c41af6151c7bafd757afb7d4;
80
86
  path=/; HttpOnly
81
87
  body:
82
88
  encoding: UTF-8
83
- string: ''
89
+ string: " "
84
90
  http_version:
85
- recorded_at: Sun, 22 Feb 2015 20:41:42 GMT
91
+ recorded_at: Tue, 07 Apr 2015 16:20:07 GMT
86
92
  recorded_with: VCR 2.9.3