flickrie 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data/.gitignore +1 -0
  2. data/CHANGELOG.md +13 -0
  3. data/Gemfile +0 -4
  4. data/flickrie.gemspec +2 -2
  5. data/lib/flickrie/api_methods.rb +4 -1
  6. data/lib/flickrie/license.rb +6 -1
  7. data/lib/flickrie/location.rb +29 -12
  8. data/lib/flickrie/media/exif.rb +3 -1
  9. data/lib/flickrie/media/note.rb +24 -13
  10. data/lib/flickrie/media/tag.rb +9 -6
  11. data/lib/flickrie/media/visibility.rb +8 -5
  12. data/lib/flickrie/media.rb +54 -55
  13. data/lib/flickrie/media_count.rb +8 -6
  14. data/lib/flickrie/photo.rb +48 -7
  15. data/lib/flickrie/set.rb +47 -31
  16. data/lib/flickrie/ticket.rb +8 -5
  17. data/lib/flickrie/user.rb +67 -25
  18. data/lib/flickrie/version.rb +1 -1
  19. data/lib/flickrie/video.rb +19 -11
  20. data/spec/custom_matchers.rb +51 -0
  21. data/spec/flickrie/api_methods_spec.rb +112 -31
  22. data/spec/flickrie/error_spec.rb +2 -4
  23. data/spec/flickrie/instance_spec.rb +11 -11
  24. data/spec/flickrie/media_spec.rb +74 -53
  25. data/spec/flickrie/photo_spec.rb +4 -5
  26. data/spec/flickrie/set_spec.rb +23 -12
  27. data/spec/flickrie/upload_client_spec.rb +3 -0
  28. data/spec/flickrie/user_spec.rb +31 -5
  29. data/spec/flickrie/video_spec.rb +13 -13
  30. data/spec/flickrie_spec.rb +15 -0
  31. data/spec/spec_helper.rb +13 -50
  32. data/spec/vcr_cassettes/api_methods/people/get_media_from_user.yml +108 -0
  33. data/spec/vcr_cassettes/api_methods/people/get_public_media_from_user.yml +108 -0
  34. data/spec/vcr_cassettes/api_methods/photos/add_and_remove_tags.yml +528 -0
  35. data/spec/vcr_cassettes/api_methods/photos/get_context.yml +108 -0
  36. data/spec/vcr_cassettes/api_methods/photos/get_counts.yml +108 -0
  37. data/spec/vcr_cassettes/api_methods/photos/get_exif.yml +73 -0
  38. data/spec/vcr_cassettes/api_methods/photos/get_favorites.yml +73 -0
  39. data/spec/vcr_cassettes/api_methods/photos/get_from_contacts.yml +73 -0
  40. data/spec/vcr_cassettes/api_methods/photos/get_info.yml +108 -0
  41. data/spec/vcr_cassettes/api_methods/photos/get_public_from_user_contacts.yml +73 -0
  42. data/spec/vcr_cassettes/api_methods/photos/get_sizes.yml +73 -0
  43. data/spec/vcr_cassettes/api_methods/photos/search.yml +108 -0
  44. data/spec/vcr_cassettes/api_methods/photosets/get_media.yml +108 -0
  45. data/spec/vcr_cassettes/api_methods/{replace.yml → upload/replace.yml} +16 -16
  46. data/spec/vcr_cassettes/api_methods/upload/upload.yml +82 -0
  47. data/spec/vcr_cassettes/api_methods/upload/upload_asynchronously.yml +117 -0
  48. data/spec/vcr_cassettes/error/{a_request_was_made_and_failed.yml → a_request_was_made_and_failed/be_raised.yml} +9 -9
  49. data/spec/vcr_cassettes/error/a_request_was_made_and_failed/have_code_attribute_present.yml +84 -0
  50. data/spec/vcr_cassettes/{api_methods/upload_and_delete.yml → flickrie/a_new_credential_is_filled_in/reset_the_client.yml} +113 -32
  51. data/spec/vcr_cassettes/instance/client_is_already_initialized/be_able_to_call_API_methods.yml +152 -0
  52. data/spec/vcr_cassettes/license/{get.yml → get/have_all_attributes_correctly_set.yml} +4 -4
  53. data/spec/vcr_cassettes/media/{from_contacts.yml → from_contacts/have_all_attributes_correctly_set.yml} +8 -8
  54. data/spec/vcr_cassettes/media/{from_set.yml → from_set/have_all_attributes_correctly_set.yml} +6 -6
  55. data/spec/vcr_cassettes/media/{from_user.yml → from_user/have_all_attributes_correctly_set.yml} +6 -6
  56. data/spec/vcr_cassettes/media/{get_context.yml → get_context/have_all_attributes_correctly_set.yml} +6 -6
  57. data/spec/vcr_cassettes/media/{get_exif.yml → get_exif/get_exif_correctly.yml} +8 -8
  58. data/spec/vcr_cassettes/media/get_info/have_all_attributes_correctly_set.yml +108 -0
  59. data/spec/vcr_cassettes/media/{public_from_user.yml → public_from_user/have_all_attributes_correctly_set.yml} +6 -6
  60. data/spec/vcr_cassettes/media/{search.yml → search/have_all_attributes_correctly_set.yml} +6 -6
  61. data/spec/vcr_cassettes/media_count/{get.yml → get/have_correctly_set_all_attributes.yml} +9 -9
  62. data/spec/vcr_cassettes/o_auth/{incorrect_credentials.yml → incorrect_credentials/raise_exceptions.yml} +42 -42
  63. data/spec/vcr_cassettes/photo/get_info/have_all_attributes_correctly_set.yml +38 -0
  64. data/spec/vcr_cassettes/photo/{get_sizes.yml → get_sizes/have_attributes_correctly_set.yml} +12 -12
  65. data/spec/vcr_cassettes/photo/{search.yml → search/have_all_sizes_available.yml} +6 -6
  66. data/spec/vcr_cassettes/set/{from_user.yml → from_user/have_all_attributes_correctly_set.yml} +18 -18
  67. data/spec/vcr_cassettes/set/{get_info.yml → get_info/have_all_attributes_correctly_set.yml} +36 -36
  68. data/spec/vcr_cassettes/upload_client/content_type/pass_the_content_type.yml +117 -0
  69. data/spec/vcr_cassettes/upload_client/invalid_credentials/raise_errors.yml +276 -0
  70. data/spec/vcr_cassettes/user/{find_by_username_or_email.yml → find_by_username_or_email/have_all_attributes_correctly_set.yml} +9 -9
  71. data/spec/vcr_cassettes/user/get_info/have_all_attributes_correctly_set.yml +73 -0
  72. data/spec/vcr_cassettes/video/get_info/have_all_attributes_correctly_set.yml +38 -0
  73. data/spec/vcr_cassettes/video/{get_sizes.yml → get_sizes/have_all_attributes_correctly_set.yml} +12 -12
  74. metadata +111 -74
  75. data/spec/vcr_cassettes/api_methods/asynchronous_upload.yml +0 -362
  76. data/spec/vcr_cassettes/api_methods/tag_manipulation.yml +0 -178
  77. data/spec/vcr_cassettes/instance/calling_api_methods.yml +0 -231
  78. data/spec/vcr_cassettes/media/get_info.yml +0 -108
  79. data/spec/vcr_cassettes/photo/get_info.yml +0 -38
  80. data/spec/vcr_cassettes/upload_client/content_type.yml +0 -117
  81. data/spec/vcr_cassettes/upload_client/invalid_credentials.yml +0 -208
  82. data/spec/vcr_cassettes/user/get_info.yml +0 -73
  83. data/spec/vcr_cassettes/video/get_info.yml +0 -38
@@ -0,0 +1,73 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.people.getInfo&user_id=67131352%40N04
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Authorization:
11
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="79576d7c1477074860f5c543d1249c56", oauth_signature="%2B28JRr6iJFFsWklLJeJc4Vid45A%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337627319", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
12
+ response:
13
+ status:
14
+ code: 200
15
+ message:
16
+ headers:
17
+ date:
18
+ - Mon, 21 May 2012 19:08:40 GMT
19
+ p3p:
20
+ - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
21
+ cache-control:
22
+ - private
23
+ x-served-by:
24
+ - www66.flickr.mud.yahoo.com
25
+ vary:
26
+ - Accept-Encoding
27
+ content-length:
28
+ - "467"
29
+ connection:
30
+ - close
31
+ content-type:
32
+ - application/json
33
+ body:
34
+ encoding: ASCII-8BIT
35
+ string: "{\"person\":{\"id\":\"67131352@N04\", \"nsid\":\"67131352@N04\", \"ispro\":0, \"iconserver\":\"5464\", \"iconfarm\":6, \"path_alias\":null, \"username\":{\"_content\":\"Janko Marohni\\u0107\"}, \"realname\":{\"_content\":\"Janko Marohni\\u0107\"}, \"mbox_sha1sum\":{\"_content\":\"6dd298dfcacfff13d4b6750d5ae44df646ca6045\"}, \"location\":{\"_content\":\"Zagreb, Croatia\"}, \"timezone\":{\"label\":\"Sarajevo, Skopje, Warsaw, Zagreb\", \"offset\":\"+01:00\"}, \"description\":{\"_content\":\"I'm a programmer, and I'm gonna program a badass Ruby library for Flickr.\"}, \"photosurl\":{\"_content\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/\"}, \"profileurl\":{\"_content\":\"http:\\/\\/www.flickr.com\\/people\\/67131352@N04\\/\"}, \"mobileurl\":{\"_content\":\"http:\\/\\/m.flickr.com\\/photostream.gne?id=67099213\"}, \"photos\":{\"firstdatetaken\":{\"_content\":\"2011-03-20 12:29:43\"}, \"firstdate\":{\"_content\":\"1334832295\"}, \"count\":{\"_content\":98}, \"views\":{\"_content\":\"35\"}}}, \"stat\":\"ok\"}"
36
+ http_version:
37
+ recorded_at: Mon, 21 May 2012 19:08:40 GMT
38
+ - request:
39
+ method: get
40
+ uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.people.getInfo&user_id=67131352%40N04
41
+ body:
42
+ encoding: US-ASCII
43
+ string: ""
44
+ headers:
45
+ Authorization:
46
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="3c4708768a61979bbc925c359745b27c", oauth_signature="svDIS9hQQhZsdWGpdVkfZYcbrNM%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337627320", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
47
+ response:
48
+ status:
49
+ code: 200
50
+ message:
51
+ headers:
52
+ date:
53
+ - Mon, 21 May 2012 19:08:40 GMT
54
+ p3p:
55
+ - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
56
+ cache-control:
57
+ - private
58
+ x-served-by:
59
+ - www100.flickr.mud.yahoo.com
60
+ vary:
61
+ - Accept-Encoding
62
+ content-length:
63
+ - "467"
64
+ connection:
65
+ - close
66
+ content-type:
67
+ - application/json
68
+ body:
69
+ encoding: ASCII-8BIT
70
+ string: "{\"person\":{\"id\":\"67131352@N04\", \"nsid\":\"67131352@N04\", \"ispro\":0, \"iconserver\":\"5464\", \"iconfarm\":6, \"path_alias\":null, \"username\":{\"_content\":\"Janko Marohni\\u0107\"}, \"realname\":{\"_content\":\"Janko Marohni\\u0107\"}, \"mbox_sha1sum\":{\"_content\":\"6dd298dfcacfff13d4b6750d5ae44df646ca6045\"}, \"location\":{\"_content\":\"Zagreb, Croatia\"}, \"timezone\":{\"label\":\"Sarajevo, Skopje, Warsaw, Zagreb\", \"offset\":\"+01:00\"}, \"description\":{\"_content\":\"I'm a programmer, and I'm gonna program a badass Ruby library for Flickr.\"}, \"photosurl\":{\"_content\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/\"}, \"profileurl\":{\"_content\":\"http:\\/\\/www.flickr.com\\/people\\/67131352@N04\\/\"}, \"mobileurl\":{\"_content\":\"http:\\/\\/m.flickr.com\\/photostream.gne?id=67099213\"}, \"photos\":{\"firstdatetaken\":{\"_content\":\"2011-03-20 12:29:43\"}, \"firstdate\":{\"_content\":\"1334832295\"}, \"count\":{\"_content\":98}, \"views\":{\"_content\":\"35\"}}}, \"stat\":\"ok\"}"
71
+ http_version:
72
+ recorded_at: Mon, 21 May 2012 19:08:40 GMT
73
+ recorded_with: VCR 2.1.1
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.getInfo&photo_id=7093038981
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Authorization:
11
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="376616874e64e480f93c5510853fee04", oauth_signature="aOJAQi9Ydb%2BTp%2BxeMa5ZC6ZdI%2FU%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337627321", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
12
+ response:
13
+ status:
14
+ code: 200
15
+ message:
16
+ headers:
17
+ date:
18
+ - Mon, 21 May 2012 19:08:42 GMT
19
+ p3p:
20
+ - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
21
+ cache-control:
22
+ - private
23
+ x-served-by:
24
+ - www94.flickr.mud.yahoo.com
25
+ vary:
26
+ - Accept-Encoding
27
+ content-length:
28
+ - "858"
29
+ connection:
30
+ - close
31
+ content-type:
32
+ - application/json
33
+ body:
34
+ encoding: ASCII-8BIT
35
+ string: "{\"photo\":{\"id\":\"7093038981\", \"secret\":\"9a616b9f6e\", \"server\":\"5457\", \"farm\":6, \"dateuploaded\":\"1334832295\", \"isfavorite\":0, \"license\":\"0\", \"safety_level\":\"0\", \"rotation\":0, \"owner\":{\"nsid\":\"67131352@N04\", \"username\":\"Janko Marohni\\u0107\", \"realname\":\"Janko Marohni\\u0107\", \"location\":\"Zagreb, Croatia\", \"iconserver\":\"5464\", \"iconfarm\":6}, \"title\":{\"_content\":\"5 meter backflip\"}, \"description\":{\"_content\":\"Description\"}, \"visibility\":{\"ispublic\":1, \"isfriend\":0, \"isfamily\":0}, \"dates\":{\"posted\":\"1334832295\", \"taken\":\"2012-04-19 03:44:55\", \"takengranularity\":\"0\", \"lastupdate\":\"1337626707\"}, \"permissions\":{\"permcomment\":3, \"permaddmeta\":2}, \"views\":\"1\", \"editability\":{\"cancomment\":1, \"canaddmeta\":1}, \"publiceditability\":{\"cancomment\":1, \"canaddmeta\":0}, \"usage\":{\"candownload\":1, \"canblog\":1, \"canprint\":1, \"canshare\":0}, \"comments\":{\"_content\":\"1\"}, \"notes\":{\"note\":[]}, \"people\":{\"haspeople\":0}, \"tags\":{\"tag\":[{\"id\":\"67099213-7093038981-5987\", \"author\":\"67131352@N04\", \"raw\":\"Tag\", \"_content\":\"tag\", \"machine_tag\":0}]}, \"location\":{\"latitude\":45.809537, \"longitude\":15.970344, \"accuracy\":\"11\", \"context\":\"0\", \"locality\":{\"_content\":\"Zagreb\", \"place_id\":\"00j4IylZV7scWik\", \"woeid\":\"851128\"}, \"county\":{\"_content\":\"Zagreb\", \"place_id\":\"306dHrhQV7o6jm.ZUQ\", \"woeid\":\"15022257\"}, \"region\":{\"_content\":\"Grad Zagreb\", \"place_id\":\"Js1DU.pTUrpBCIKhVw\", \"woeid\":\"20070170\"}, \"country\":{\"_content\":\"Croatia\", \"place_id\":\"FunRCI5TUb6a6soTyw\", \"woeid\":\"23424843\"}, \"place_id\":\"00j4IylZV7scWik\", \"woeid\":\"851128\"}, \"geoperms\":{\"ispublic\":1, \"iscontact\":0, \"isfriend\":0, \"isfamily\":0}, \"urls\":{\"url\":[{\"type\":\"photopage\", \"_content\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/\"}]}, \"media\":\"video\", \"video\":{\"ready\":1, \"failed\":0, \"pending\":0, \"duration\":\"16\", \"width\":\"352\", \"height\":\"288\"}}, \"stat\":\"ok\"}"
36
+ http_version:
37
+ recorded_at: Mon, 21 May 2012 19:08:42 GMT
38
+ recorded_with: VCR 2.1.1
@@ -8,33 +8,33 @@ http_interactions:
8
8
  string: ""
9
9
  headers:
10
10
  Authorization:
11
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="ccbd68544b1cae1e96405fade400433f", oauth_signature="8KxBQzIbS4xk83f1XW9mcgdKU9A%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337292046", oauth_token="", oauth_version="1.0"
11
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="f6ceed9b4cb8488193e9a1a64d96bd11", oauth_signature="4aK52ZbOeepD2hRxghFAvoHg4Fc%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337627322", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
12
12
  response:
13
13
  status:
14
14
  code: 200
15
15
  message:
16
16
  headers:
17
17
  date:
18
- - Thu, 17 May 2012 22:00:46 GMT
18
+ - Mon, 21 May 2012 19:08:42 GMT
19
19
  p3p:
20
20
  - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
21
21
  cache-control:
22
22
  - private
23
23
  x-served-by:
24
- - www114.flickr.mud.yahoo.com
24
+ - www132.flickr.mud.yahoo.com
25
25
  vary:
26
26
  - Accept-Encoding
27
27
  content-length:
28
- - "457"
28
+ - "455"
29
29
  connection:
30
30
  - close
31
31
  content-type:
32
32
  - application/json
33
33
  body:
34
34
  encoding: ASCII-8BIT
35
- string: "{\"sizes\":{\"canblog\":0, \"canprint\":0, \"candownload\":1, \"size\":[{\"label\":\"Square\", \"width\":75, \"height\":75, \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e_s.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/sq\\/\", \"media\":\"photo\"}, {\"label\":\"Large Square\", \"width\":\"150\", \"height\":\"150\", \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e_q.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/q\\/\", \"media\":\"photo\"}, {\"label\":\"Thumbnail\", \"width\":\"100\", \"height\":\"82\", \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e_t.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/t\\/\", \"media\":\"photo\"}, {\"label\":\"Small\", \"width\":\"240\", \"height\":\"196\", \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e_m.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/s\\/\", \"media\":\"photo\"}, {\"label\":\"Small 320\", \"width\":\"320\", \"height\":262, \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e_n.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/n\\/\", \"media\":\"photo\"}, {\"label\":\"Medium\", \"width\":\"352\", \"height\":\"288\", \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/m\\/\", \"media\":\"photo\"}, {\"label\":\"Video Player\", \"width\":\"352\", \"height\":\"288\", \"source\":\"http:\\/\\/www.flickr.com\\/apps\\/video\\/stewart.swf?v=109786&photo_id=7093038981&photo_secret=9a616b9f6e\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/\", \"media\":\"video\"}, {\"label\":\"Site MP4\", \"width\":\"352\", \"height\":\"288\", \"source\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/play\\/site\\/9a616b9f6e\\/\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/\", \"media\":\"video\"}, {\"label\":\"Mobile MP4\", \"width\":\"480\", \"height\":\"360\", \"source\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/play\\/mobile\\/9a616b9f6e\\/\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/\", \"media\":\"video\"}]}, \"stat\":\"ok\"}"
35
+ string: "{\"sizes\":{\"canblog\":1, \"canprint\":1, \"candownload\":1, \"size\":[{\"label\":\"Square\", \"width\":75, \"height\":75, \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e_s.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/sq\\/\", \"media\":\"photo\"}, {\"label\":\"Large Square\", \"width\":\"150\", \"height\":\"150\", \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e_q.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/q\\/\", \"media\":\"photo\"}, {\"label\":\"Thumbnail\", \"width\":\"100\", \"height\":\"82\", \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e_t.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/t\\/\", \"media\":\"photo\"}, {\"label\":\"Small\", \"width\":\"240\", \"height\":\"196\", \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e_m.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/s\\/\", \"media\":\"photo\"}, {\"label\":\"Small 320\", \"width\":\"320\", \"height\":262, \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e_n.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/n\\/\", \"media\":\"photo\"}, {\"label\":\"Medium\", \"width\":\"352\", \"height\":\"288\", \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/m\\/\", \"media\":\"photo\"}, {\"label\":\"Video Player\", \"width\":\"352\", \"height\":\"288\", \"source\":\"http:\\/\\/www.flickr.com\\/apps\\/video\\/stewart.swf?v=109786&photo_id=7093038981&photo_secret=9a616b9f6e\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/\", \"media\":\"video\"}, {\"label\":\"Site MP4\", \"width\":\"352\", \"height\":\"288\", \"source\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/play\\/site\\/9a616b9f6e\\/\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/\", \"media\":\"video\"}, {\"label\":\"Mobile MP4\", \"width\":\"480\", \"height\":\"360\", \"source\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/play\\/mobile\\/9a616b9f6e\\/\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/\", \"media\":\"video\"}]}, \"stat\":\"ok\"}"
36
36
  http_version:
37
- recorded_at: Thu, 17 May 2012 22:00:46 GMT
37
+ recorded_at: Mon, 21 May 2012 19:08:42 GMT
38
38
  - request:
39
39
  method: get
40
40
  uri: http://api.flickr.com/services/rest?format=json&nojsoncallback=1&api_key=API_KEY&method=flickr.photos.getSizes&photo_id=7093038981
@@ -43,31 +43,31 @@ http_interactions:
43
43
  string: ""
44
44
  headers:
45
45
  Authorization:
46
- - OAuth oauth_consumer_key="API_KEY", oauth_nonce="2c1c73362c49b56601e3c5a9e0b9dad5", oauth_signature="46Z%2BkuRkBrEqGHPtdg6HPsOTTqc%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337292046", oauth_token="", oauth_version="1.0"
46
+ - OAuth oauth_consumer_key="API_KEY", oauth_nonce="2ac6ae3e0b52417f2117fa934c84cb9e", oauth_signature="7xkTw1tWZA9%2FXSJ0V7MSpeRqE1Y%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1337627322", oauth_token="ACCESS_TOKEN", oauth_version="1.0"
47
47
  response:
48
48
  status:
49
49
  code: 200
50
50
  message:
51
51
  headers:
52
52
  date:
53
- - Thu, 17 May 2012 22:00:46 GMT
53
+ - Mon, 21 May 2012 19:08:42 GMT
54
54
  p3p:
55
55
  - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
56
56
  cache-control:
57
57
  - private
58
58
  x-served-by:
59
- - www217.flickr.mud.yahoo.com
59
+ - www116.flickr.mud.yahoo.com
60
60
  vary:
61
61
  - Accept-Encoding
62
62
  content-length:
63
- - "457"
63
+ - "455"
64
64
  connection:
65
65
  - close
66
66
  content-type:
67
67
  - application/json
68
68
  body:
69
69
  encoding: ASCII-8BIT
70
- string: "{\"sizes\":{\"canblog\":0, \"canprint\":0, \"candownload\":1, \"size\":[{\"label\":\"Square\", \"width\":75, \"height\":75, \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e_s.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/sq\\/\", \"media\":\"photo\"}, {\"label\":\"Large Square\", \"width\":\"150\", \"height\":\"150\", \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e_q.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/q\\/\", \"media\":\"photo\"}, {\"label\":\"Thumbnail\", \"width\":\"100\", \"height\":\"82\", \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e_t.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/t\\/\", \"media\":\"photo\"}, {\"label\":\"Small\", \"width\":\"240\", \"height\":\"196\", \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e_m.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/s\\/\", \"media\":\"photo\"}, {\"label\":\"Small 320\", \"width\":\"320\", \"height\":262, \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e_n.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/n\\/\", \"media\":\"photo\"}, {\"label\":\"Medium\", \"width\":\"352\", \"height\":\"288\", \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/m\\/\", \"media\":\"photo\"}, {\"label\":\"Video Player\", \"width\":\"352\", \"height\":\"288\", \"source\":\"http:\\/\\/www.flickr.com\\/apps\\/video\\/stewart.swf?v=109786&photo_id=7093038981&photo_secret=9a616b9f6e\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/\", \"media\":\"video\"}, {\"label\":\"Site MP4\", \"width\":\"352\", \"height\":\"288\", \"source\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/play\\/site\\/9a616b9f6e\\/\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/\", \"media\":\"video\"}, {\"label\":\"Mobile MP4\", \"width\":\"480\", \"height\":\"360\", \"source\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/play\\/mobile\\/9a616b9f6e\\/\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/\", \"media\":\"video\"}]}, \"stat\":\"ok\"}"
70
+ string: "{\"sizes\":{\"canblog\":1, \"canprint\":1, \"candownload\":1, \"size\":[{\"label\":\"Square\", \"width\":75, \"height\":75, \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e_s.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/sq\\/\", \"media\":\"photo\"}, {\"label\":\"Large Square\", \"width\":\"150\", \"height\":\"150\", \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e_q.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/q\\/\", \"media\":\"photo\"}, {\"label\":\"Thumbnail\", \"width\":\"100\", \"height\":\"82\", \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e_t.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/t\\/\", \"media\":\"photo\"}, {\"label\":\"Small\", \"width\":\"240\", \"height\":\"196\", \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e_m.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/s\\/\", \"media\":\"photo\"}, {\"label\":\"Small 320\", \"width\":\"320\", \"height\":262, \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e_n.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/n\\/\", \"media\":\"photo\"}, {\"label\":\"Medium\", \"width\":\"352\", \"height\":\"288\", \"source\":\"http:\\/\\/farm6.staticflickr.com\\/5457\\/7093038981_9a616b9f6e.jpg\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/sizes\\/m\\/\", \"media\":\"photo\"}, {\"label\":\"Video Player\", \"width\":\"352\", \"height\":\"288\", \"source\":\"http:\\/\\/www.flickr.com\\/apps\\/video\\/stewart.swf?v=109786&photo_id=7093038981&photo_secret=9a616b9f6e\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/\", \"media\":\"video\"}, {\"label\":\"Site MP4\", \"width\":\"352\", \"height\":\"288\", \"source\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/play\\/site\\/9a616b9f6e\\/\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/\", \"media\":\"video\"}, {\"label\":\"Mobile MP4\", \"width\":\"480\", \"height\":\"360\", \"source\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/play\\/mobile\\/9a616b9f6e\\/\", \"url\":\"http:\\/\\/www.flickr.com\\/photos\\/67131352@N04\\/7093038981\\/\", \"media\":\"video\"}]}, \"stat\":\"ok\"}"
71
71
  http_version:
72
- recorded_at: Thu, 17 May 2012 22:00:46 GMT
72
+ recorded_at: Mon, 21 May 2012 19:08:43 GMT
73
73
  recorded_with: VCR 2.1.1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flickrie
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-20 00:00:00.000000000 Z
12
+ date: 2012-05-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday_middleware
16
- requirement: &70241200690780 !ruby/object:Gem::Requirement
16
+ requirement: &70103345822660 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -24,10 +24,10 @@ dependencies:
24
24
  version: '0.9'
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *70241200690780
27
+ version_requirements: *70103345822660
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: faraday
30
- requirement: &70241200690040 !ruby/object:Gem::Requirement
30
+ requirement: &70103345838840 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
33
  - - ! '>='
@@ -38,10 +38,10 @@ dependencies:
38
38
  version: '0.9'
39
39
  type: :runtime
40
40
  prerelease: false
41
- version_requirements: *70241200690040
41
+ version_requirements: *70103345838840
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: simple_oauth
44
- requirement: &70241200689320 !ruby/object:Gem::Requirement
44
+ requirement: &70103345835540 !ruby/object:Gem::Requirement
45
45
  none: false
46
46
  requirements:
47
47
  - - ~>
@@ -49,10 +49,10 @@ dependencies:
49
49
  version: '0.1'
50
50
  type: :runtime
51
51
  prerelease: false
52
- version_requirements: *70241200689320
52
+ version_requirements: *70103345835540
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: multi_xml
55
- requirement: &70241200688860 !ruby/object:Gem::Requirement
55
+ requirement: &70103345831900 !ruby/object:Gem::Requirement
56
56
  none: false
57
57
  requirements:
58
58
  - - ~>
@@ -60,10 +60,10 @@ dependencies:
60
60
  version: '0.4'
61
61
  type: :runtime
62
62
  prerelease: false
63
- version_requirements: *70241200688860
63
+ version_requirements: *70103345831900
64
64
  - !ruby/object:Gem::Dependency
65
65
  name: rake
66
- requirement: &70241200688400 !ruby/object:Gem::Requirement
66
+ requirement: &70103345841660 !ruby/object:Gem::Requirement
67
67
  none: false
68
68
  requirements:
69
69
  - - ~>
@@ -71,21 +71,24 @@ dependencies:
71
71
  version: '0.9'
72
72
  type: :development
73
73
  prerelease: false
74
- version_requirements: *70241200688400
74
+ version_requirements: *70103345841660
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rspec
77
- requirement: &70241200687940 !ruby/object:Gem::Requirement
77
+ requirement: &70103345840020 !ruby/object:Gem::Requirement
78
78
  none: false
79
79
  requirements:
80
80
  - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
- version: '2'
82
+ version: '2.10'
83
+ - - <
84
+ - !ruby/object:Gem::Version
85
+ version: '3'
83
86
  type: :development
84
87
  prerelease: false
85
- version_requirements: *70241200687940
88
+ version_requirements: *70103345840020
86
89
  - !ruby/object:Gem::Dependency
87
90
  name: vcr
88
- requirement: &70241200687480 !ruby/object:Gem::Requirement
91
+ requirement: &70103345861740 !ruby/object:Gem::Requirement
89
92
  none: false
90
93
  requirements:
91
94
  - - ~>
@@ -93,7 +96,7 @@ dependencies:
93
96
  version: '2.1'
94
97
  type: :development
95
98
  prerelease: false
96
- version_requirements: *70241200687480
99
+ version_requirements: *70103345861740
97
100
  description: This gem wraps the Flickr API with a nice object-oriented interface.
98
101
  email: janko.marohnic@gmail.com
99
102
  executables: []
@@ -130,6 +133,7 @@ files:
130
133
  - lib/flickrie/user.rb
131
134
  - lib/flickrie/version.rb
132
135
  - lib/flickrie/video.rb
136
+ - spec/custom_matchers.rb
133
137
  - spec/files/photo.bla
134
138
  - spec/files/photo.jpg
135
139
  - spec/files/video.mov
@@ -146,35 +150,50 @@ files:
146
150
  - spec/flickrie/upload_client_spec.rb
147
151
  - spec/flickrie/user_spec.rb
148
152
  - spec/flickrie/video_spec.rb
153
+ - spec/flickrie_spec.rb
149
154
  - spec/spec_helper.rb
150
- - spec/vcr_cassettes/api_methods/asynchronous_upload.yml
151
- - spec/vcr_cassettes/api_methods/replace.yml
152
- - spec/vcr_cassettes/api_methods/tag_manipulation.yml
153
- - spec/vcr_cassettes/api_methods/upload_and_delete.yml
154
- - spec/vcr_cassettes/error/a_request_was_made_and_failed.yml
155
- - spec/vcr_cassettes/instance/calling_api_methods.yml
156
- - spec/vcr_cassettes/license/get.yml
157
- - spec/vcr_cassettes/media/from_contacts.yml
158
- - spec/vcr_cassettes/media/from_set.yml
159
- - spec/vcr_cassettes/media/from_user.yml
160
- - spec/vcr_cassettes/media/get_context.yml
161
- - spec/vcr_cassettes/media/get_exif.yml
162
- - spec/vcr_cassettes/media/get_info.yml
163
- - spec/vcr_cassettes/media/public_from_user.yml
164
- - spec/vcr_cassettes/media/search.yml
165
- - spec/vcr_cassettes/media_count/get.yml
166
- - spec/vcr_cassettes/o_auth/incorrect_credentials.yml
167
- - spec/vcr_cassettes/photo/get_info.yml
168
- - spec/vcr_cassettes/photo/get_sizes.yml
169
- - spec/vcr_cassettes/photo/search.yml
170
- - spec/vcr_cassettes/set/from_user.yml
171
- - spec/vcr_cassettes/set/get_info.yml
172
- - spec/vcr_cassettes/upload_client/content_type.yml
173
- - spec/vcr_cassettes/upload_client/invalid_credentials.yml
174
- - spec/vcr_cassettes/user/find_by_username_or_email.yml
175
- - spec/vcr_cassettes/user/get_info.yml
176
- - spec/vcr_cassettes/video/get_info.yml
177
- - spec/vcr_cassettes/video/get_sizes.yml
155
+ - spec/vcr_cassettes/api_methods/people/get_media_from_user.yml
156
+ - spec/vcr_cassettes/api_methods/people/get_public_media_from_user.yml
157
+ - spec/vcr_cassettes/api_methods/photos/add_and_remove_tags.yml
158
+ - spec/vcr_cassettes/api_methods/photos/get_context.yml
159
+ - spec/vcr_cassettes/api_methods/photos/get_counts.yml
160
+ - spec/vcr_cassettes/api_methods/photos/get_exif.yml
161
+ - spec/vcr_cassettes/api_methods/photos/get_favorites.yml
162
+ - spec/vcr_cassettes/api_methods/photos/get_from_contacts.yml
163
+ - spec/vcr_cassettes/api_methods/photos/get_info.yml
164
+ - spec/vcr_cassettes/api_methods/photos/get_public_from_user_contacts.yml
165
+ - spec/vcr_cassettes/api_methods/photos/get_sizes.yml
166
+ - spec/vcr_cassettes/api_methods/photos/search.yml
167
+ - spec/vcr_cassettes/api_methods/photosets/get_media.yml
168
+ - spec/vcr_cassettes/api_methods/upload/replace.yml
169
+ - spec/vcr_cassettes/api_methods/upload/upload.yml
170
+ - spec/vcr_cassettes/api_methods/upload/upload_asynchronously.yml
171
+ - spec/vcr_cassettes/error/a_request_was_made_and_failed/be_raised.yml
172
+ - spec/vcr_cassettes/error/a_request_was_made_and_failed/have_code_attribute_present.yml
173
+ - spec/vcr_cassettes/flickrie/a_new_credential_is_filled_in/reset_the_client.yml
174
+ - spec/vcr_cassettes/instance/client_is_already_initialized/be_able_to_call_API_methods.yml
175
+ - spec/vcr_cassettes/license/get/have_all_attributes_correctly_set.yml
176
+ - spec/vcr_cassettes/media/from_contacts/have_all_attributes_correctly_set.yml
177
+ - spec/vcr_cassettes/media/from_set/have_all_attributes_correctly_set.yml
178
+ - spec/vcr_cassettes/media/from_user/have_all_attributes_correctly_set.yml
179
+ - spec/vcr_cassettes/media/get_context/have_all_attributes_correctly_set.yml
180
+ - spec/vcr_cassettes/media/get_exif/get_exif_correctly.yml
181
+ - spec/vcr_cassettes/media/get_info/have_all_attributes_correctly_set.yml
182
+ - spec/vcr_cassettes/media/public_from_user/have_all_attributes_correctly_set.yml
183
+ - spec/vcr_cassettes/media/search/have_all_attributes_correctly_set.yml
184
+ - spec/vcr_cassettes/media_count/get/have_correctly_set_all_attributes.yml
185
+ - spec/vcr_cassettes/o_auth/incorrect_credentials/raise_exceptions.yml
186
+ - spec/vcr_cassettes/photo/get_info/have_all_attributes_correctly_set.yml
187
+ - spec/vcr_cassettes/photo/get_sizes/have_attributes_correctly_set.yml
188
+ - spec/vcr_cassettes/photo/search/have_all_sizes_available.yml
189
+ - spec/vcr_cassettes/set/from_user/have_all_attributes_correctly_set.yml
190
+ - spec/vcr_cassettes/set/get_info/have_all_attributes_correctly_set.yml
191
+ - spec/vcr_cassettes/upload_client/content_type/pass_the_content_type.yml
192
+ - spec/vcr_cassettes/upload_client/invalid_credentials/raise_errors.yml
193
+ - spec/vcr_cassettes/user/find_by_username_or_email/have_all_attributes_correctly_set.yml
194
+ - spec/vcr_cassettes/user/get_info/have_all_attributes_correctly_set.yml
195
+ - spec/vcr_cassettes/video/get_info/have_all_attributes_correctly_set.yml
196
+ - spec/vcr_cassettes/video/get_sizes/have_all_attributes_correctly_set.yml
178
197
  homepage: https://github.com/janko-m/flickrie
179
198
  licenses:
180
199
  - MIT
@@ -194,6 +213,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
213
  - - ! '>='
195
214
  - !ruby/object:Gem::Version
196
215
  version: '0'
216
+ segments:
217
+ - 0
218
+ hash: 4396393932236919457
197
219
  requirements: []
198
220
  rubyforge_project:
199
221
  rubygems_version: 1.8.11
@@ -201,6 +223,7 @@ signing_key:
201
223
  specification_version: 3
202
224
  summary: This gem wraps the Flickr API with a nice object-oriented interface.
203
225
  test_files:
226
+ - spec/custom_matchers.rb
204
227
  - spec/files/photo.bla
205
228
  - spec/files/photo.jpg
206
229
  - spec/files/video.mov
@@ -217,33 +240,47 @@ test_files:
217
240
  - spec/flickrie/upload_client_spec.rb
218
241
  - spec/flickrie/user_spec.rb
219
242
  - spec/flickrie/video_spec.rb
243
+ - spec/flickrie_spec.rb
220
244
  - spec/spec_helper.rb
221
- - spec/vcr_cassettes/api_methods/asynchronous_upload.yml
222
- - spec/vcr_cassettes/api_methods/replace.yml
223
- - spec/vcr_cassettes/api_methods/tag_manipulation.yml
224
- - spec/vcr_cassettes/api_methods/upload_and_delete.yml
225
- - spec/vcr_cassettes/error/a_request_was_made_and_failed.yml
226
- - spec/vcr_cassettes/instance/calling_api_methods.yml
227
- - spec/vcr_cassettes/license/get.yml
228
- - spec/vcr_cassettes/media/from_contacts.yml
229
- - spec/vcr_cassettes/media/from_set.yml
230
- - spec/vcr_cassettes/media/from_user.yml
231
- - spec/vcr_cassettes/media/get_context.yml
232
- - spec/vcr_cassettes/media/get_exif.yml
233
- - spec/vcr_cassettes/media/get_info.yml
234
- - spec/vcr_cassettes/media/public_from_user.yml
235
- - spec/vcr_cassettes/media/search.yml
236
- - spec/vcr_cassettes/media_count/get.yml
237
- - spec/vcr_cassettes/o_auth/incorrect_credentials.yml
238
- - spec/vcr_cassettes/photo/get_info.yml
239
- - spec/vcr_cassettes/photo/get_sizes.yml
240
- - spec/vcr_cassettes/photo/search.yml
241
- - spec/vcr_cassettes/set/from_user.yml
242
- - spec/vcr_cassettes/set/get_info.yml
243
- - spec/vcr_cassettes/upload_client/content_type.yml
244
- - spec/vcr_cassettes/upload_client/invalid_credentials.yml
245
- - spec/vcr_cassettes/user/find_by_username_or_email.yml
246
- - spec/vcr_cassettes/user/get_info.yml
247
- - spec/vcr_cassettes/video/get_info.yml
248
- - spec/vcr_cassettes/video/get_sizes.yml
249
- has_rdoc:
245
+ - spec/vcr_cassettes/api_methods/people/get_media_from_user.yml
246
+ - spec/vcr_cassettes/api_methods/people/get_public_media_from_user.yml
247
+ - spec/vcr_cassettes/api_methods/photos/add_and_remove_tags.yml
248
+ - spec/vcr_cassettes/api_methods/photos/get_context.yml
249
+ - spec/vcr_cassettes/api_methods/photos/get_counts.yml
250
+ - spec/vcr_cassettes/api_methods/photos/get_exif.yml
251
+ - spec/vcr_cassettes/api_methods/photos/get_favorites.yml
252
+ - spec/vcr_cassettes/api_methods/photos/get_from_contacts.yml
253
+ - spec/vcr_cassettes/api_methods/photos/get_info.yml
254
+ - spec/vcr_cassettes/api_methods/photos/get_public_from_user_contacts.yml
255
+ - spec/vcr_cassettes/api_methods/photos/get_sizes.yml
256
+ - spec/vcr_cassettes/api_methods/photos/search.yml
257
+ - spec/vcr_cassettes/api_methods/photosets/get_media.yml
258
+ - spec/vcr_cassettes/api_methods/upload/replace.yml
259
+ - spec/vcr_cassettes/api_methods/upload/upload.yml
260
+ - spec/vcr_cassettes/api_methods/upload/upload_asynchronously.yml
261
+ - spec/vcr_cassettes/error/a_request_was_made_and_failed/be_raised.yml
262
+ - spec/vcr_cassettes/error/a_request_was_made_and_failed/have_code_attribute_present.yml
263
+ - spec/vcr_cassettes/flickrie/a_new_credential_is_filled_in/reset_the_client.yml
264
+ - spec/vcr_cassettes/instance/client_is_already_initialized/be_able_to_call_API_methods.yml
265
+ - spec/vcr_cassettes/license/get/have_all_attributes_correctly_set.yml
266
+ - spec/vcr_cassettes/media/from_contacts/have_all_attributes_correctly_set.yml
267
+ - spec/vcr_cassettes/media/from_set/have_all_attributes_correctly_set.yml
268
+ - spec/vcr_cassettes/media/from_user/have_all_attributes_correctly_set.yml
269
+ - spec/vcr_cassettes/media/get_context/have_all_attributes_correctly_set.yml
270
+ - spec/vcr_cassettes/media/get_exif/get_exif_correctly.yml
271
+ - spec/vcr_cassettes/media/get_info/have_all_attributes_correctly_set.yml
272
+ - spec/vcr_cassettes/media/public_from_user/have_all_attributes_correctly_set.yml
273
+ - spec/vcr_cassettes/media/search/have_all_attributes_correctly_set.yml
274
+ - spec/vcr_cassettes/media_count/get/have_correctly_set_all_attributes.yml
275
+ - spec/vcr_cassettes/o_auth/incorrect_credentials/raise_exceptions.yml
276
+ - spec/vcr_cassettes/photo/get_info/have_all_attributes_correctly_set.yml
277
+ - spec/vcr_cassettes/photo/get_sizes/have_attributes_correctly_set.yml
278
+ - spec/vcr_cassettes/photo/search/have_all_sizes_available.yml
279
+ - spec/vcr_cassettes/set/from_user/have_all_attributes_correctly_set.yml
280
+ - spec/vcr_cassettes/set/get_info/have_all_attributes_correctly_set.yml
281
+ - spec/vcr_cassettes/upload_client/content_type/pass_the_content_type.yml
282
+ - spec/vcr_cassettes/upload_client/invalid_credentials/raise_errors.yml
283
+ - spec/vcr_cassettes/user/find_by_username_or_email/have_all_attributes_correctly_set.yml
284
+ - spec/vcr_cassettes/user/get_info/have_all_attributes_correctly_set.yml
285
+ - spec/vcr_cassettes/video/get_info/have_all_attributes_correctly_set.yml
286
+ - spec/vcr_cassettes/video/get_sizes/have_all_attributes_correctly_set.yml