john_stamos 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +95 -79
- data/john_stamos.gemspec +3 -2
- data/lib/john_stamos/client.rb +32 -17
- data/lib/john_stamos/pin_search.rb +4 -3
- data/lib/john_stamos/pinner.rb +1 -1
- data/lib/john_stamos/version.rb +1 -1
- data/lib/john_stamos.rb +5 -2
- data/spec/lib/john_stamos/client_spec.rb +55 -66
- data/spec/lib/john_stamos/pin_search_spec.rb +9 -9
- data/spec/support/vcr_cassettes/JohnStamos_Client/_make_request/returns_a_string_representation_of_the_response_body.yml +59 -0
- data/spec/support/vcr_cassettes/JohnStamos_Client/_page_content/returns_a_Nokogiri_HTML_Document_object.yml +59 -0
- data/spec/support/vcr_cassettes/JohnStamos_Client/_search_pins/returns_the_correct_number_of_pins.yml +6448 -980
- data/spec/support/vcr_cassettes/JohnStamos_Pin/scraped_data/_pinner/returns_a_Pinner_object.yml +801 -289
- data/spec/support/vcr_cassettes/JohnStamos_Pin/scraped_data/_pinner/shows_my_fake_account_as_the_owning_Pinner.yml +802 -289
- data/spec/support/vcr_cassettes/JohnStamos_Pin/scraped_data/belongs_to_the_correct_board.yml +801 -289
- data/spec/support/vcr_cassettes/JohnStamos_Pin/scraped_data/has_the_correct_description.yml +801 -289
- data/spec/support/vcr_cassettes/JohnStamos_Pin/scraped_data/has_the_correct_image.yml +801 -289
- data/spec/support/vcr_cassettes/JohnStamos_Pin/scraped_data/has_the_correct_like_count.yml +1329 -287
- data/spec/support/vcr_cassettes/JohnStamos_Pin/scraped_data/has_the_correct_repin_count.yml +801 -289
- data/spec/support/vcr_cassettes/JohnStamos_Pin/scraped_data/has_the_correct_source_url.yml +801 -290
- data/spec/support/vcr_cassettes/JohnStamos_Pin/scraped_data/is_not_a_video.yml +801 -289
- data/spec/support/vcr_cassettes/JohnStamos_PinSearch/_execute_/when_using_a_search_term_that_yields_thousands_of_pins/with_a_limit_higher_than_the_default/collects_the_correct_number_of_pin_ids.yml +16392 -2609
- data/spec/support/vcr_cassettes/JohnStamos_PinSearch/_execute_/when_using_a_search_term_that_yields_thousands_of_pins/with_a_limit_lower_than_the_default/collects_the_correct_number_of_pin_ids.yml +10844 -1157
- data/spec/support/vcr_cassettes/JohnStamos_PinSearch/_execute_/when_using_a_search_term_that_yields_thousands_of_pins/with_a_limit_lower_than_the_default/never_calls_subsequent_retrieval_.yml +10844 -1157
- data/spec/support/vcr_cassettes/JohnStamos_PinSearch/_execute_/when_using_a_search_term_that_yields_thousands_of_pins/with_no_limit_specified/limits_the_pin_ids_collected_to_50.yml +10844 -1655
- data/spec/support/vcr_cassettes/JohnStamos_PinSearch/_execute_/when_using_a_search_term_that_yields_thousands_of_pins/with_no_limit_specified/limits_to_50_the_default.yml +10844 -1655
- data/spec/support/vcr_cassettes/JohnStamos_PinSearch/_first_retrieval_/with_results_found/sets_next_bookmark.yml +5128 -993
- data/spec/support/vcr_cassettes/JohnStamos_PinSearch/_first_retrieval_/with_results_found/sets_next_bookmark_with_a_hash_for_the_next_25_results.yml +5170 -0
- data/spec/support/vcr_cassettes/JohnStamos_PinSearch/_first_retrieval_/with_results_found/sets_next_bookmark_with_a_hash_for_the_next_batch_of_results.yml +5170 -0
- data/spec/support/vcr_cassettes/JohnStamos_PinSearch/_first_retrieval_/with_results_found/should_set_pin_ids.yml +5128 -993
- data/spec/support/vcr_cassettes/JohnStamos_PinSearch/_first_retrieval_/without_any_results_found/has_a_nil_next_bookmark.yml +834 -211
- data/spec/support/vcr_cassettes/JohnStamos_PinSearch/_first_retrieval_/without_any_results_found/leaves_the_pin_ids_array_empty.yml +834 -212
- data/spec/support/vcr_cassettes/JohnStamos_PinSearch/_subsequent_retrieval/with_results_found/sets_next_bookmark_with_a_hash_for_the_next_25_results.yml +9053 -0
- data/spec/support/vcr_cassettes/JohnStamos_PinSearch/_subsequent_retrieval/with_results_found/sets_next_bookmark_with_a_hash_for_the_next_batch_of_results.yml +9053 -0
- data/spec/support/vcr_cassettes/JohnStamos_PinSearch/_subsequent_retrieval/with_results_found/sets_the_next_bookmark.yml +8972 -1691
- data/spec/support/vcr_cassettes/JohnStamos_PinSearch/_subsequent_retrieval/with_results_found/should_append_the_new_pin_ids.yml +8972 -1691
- data/spec/support/vcr_cassettes/JohnStamos_Pinner/_about/returns_the_correct_about_text.yml +639 -247
- data/spec/support/vcr_cassettes/JohnStamos_Pinner/_avatar/returns_the_correct_avatar_URL.yml +639 -246
- data/spec/support/vcr_cassettes/JohnStamos_Pinner/_board_count/returns_the_correct_number_of_boards.yml +639 -246
- data/spec/support/vcr_cassettes/JohnStamos_Pinner/_follower_count/returns_a_follower_count_of_0.yml +639 -246
- data/spec/support/vcr_cassettes/JohnStamos_Pinner/_location/returns_the_correct_location.yml +639 -247
- data/spec/support/vcr_cassettes/JohnStamos_Pinner/_pin_count/returns_the_correct_number_of_pins.yml +639 -246
- data/spec/support/vcr_cassettes/JohnStamos_Pinner/_website_url/returns_the_correct_website_url.yml +639 -246
- data/spec/support/vcr_cassettes/JohnStamos_Pinner/name_related_attributes/returns_the_correct_first_name.yml +1039 -244
- data/spec/support/vcr_cassettes/JohnStamos_Pinner/name_related_attributes/returns_the_correct_full_name.yml +639 -246
- data/spec/support/vcr_cassettes/JohnStamos_Pinner/name_related_attributes/returns_the_correct_last_name.yml +639 -246
- metadata +163 -146
- checksums.yaml +0 -7
- data/spec/support/vcr_cassettes/JohnStamos_Client/_page_content/returns_a_Mechanize_Page.yml +0 -221
- data/spec/support/vcr_cassettes/JohnStamos_PinSearch/_first_retrieval_/with_results_found/sets_next_bookmark_with_a_hash_for_the_next_50_results.yml +0 -1035
- data/spec/support/vcr_cassettes/JohnStamos_PinSearch/_subsequent_retrieval/with_results_found/sets_next_bookmark_with_a_hash_for_the_next_50_results.yml +0 -1772
@@ -0,0 +1,59 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://pinterest.com/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML,
|
12
|
+
like Gecko) Chrome/28.0.1500.95 Safari/537.36
|
13
|
+
response:
|
14
|
+
status:
|
15
|
+
code: 302
|
16
|
+
message: FOUND
|
17
|
+
headers:
|
18
|
+
Accept-Ranges:
|
19
|
+
- bytes
|
20
|
+
Age:
|
21
|
+
- '0'
|
22
|
+
Cache-Control:
|
23
|
+
- no-cache
|
24
|
+
Content-Type:
|
25
|
+
- text/html; charset=utf-8
|
26
|
+
Date:
|
27
|
+
- Thu, 22 Aug 2013 23:38:05 GMT
|
28
|
+
Location:
|
29
|
+
- https://pinterest.com/
|
30
|
+
Pinterest-Breed:
|
31
|
+
- CORGI
|
32
|
+
Pinterest-Generated-By:
|
33
|
+
- ngapp-3d2532c7
|
34
|
+
Pinterest-Version:
|
35
|
+
- 5bdef68
|
36
|
+
Server:
|
37
|
+
- nginx
|
38
|
+
Set-Cookie:
|
39
|
+
- _pinterest_sess="eJzTd3ENtchIzUvLcwzRTvYMDcnz8feJMs8uCim3tY8vycxNtfUN8TX2q/Ks8HOJNPELtLVVK04tLs5MsfXMcsrwzY008MvKroysCq2Mygqs8A3JyfAzcjXxdw808Q1xyorK9cr1d/c19Uy3tQUAh/wjjw==";
|
40
|
+
Domain=.pinterest.com; expires=Sun, 17-Aug-2014 23:38:05 GMT; Max-Age=31103999;
|
41
|
+
Path=/
|
42
|
+
- csrftoken=JYaPKjp6v8c2KnPkP1wX8O3hSAEWGJfB; Domain=.pinterest.com; expires=Thu,
|
43
|
+
21-Aug-2014 23:38:05 GMT; Max-Age=31449600; Path=/
|
44
|
+
Vary:
|
45
|
+
- Cookie
|
46
|
+
Via:
|
47
|
+
- 1.1 varnish
|
48
|
+
X-Varnish:
|
49
|
+
- '2076656858'
|
50
|
+
Content-Length:
|
51
|
+
- '0'
|
52
|
+
Connection:
|
53
|
+
- keep-alive
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: ''
|
57
|
+
http_version:
|
58
|
+
recorded_at: Thu, 22 Aug 2013 23:38:05 GMT
|
59
|
+
recorded_with: VCR 2.5.0
|