flickrie 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. data/.gitignore +1 -0
  2. data/CHANGELOG.md +22 -0
  3. data/Gemfile +0 -6
  4. data/README.md +15 -1
  5. data/Rakefile +8 -13
  6. data/api_methods.md +1 -1
  7. data/flickrie.gemspec +2 -3
  8. data/lib/flickrie/api_methods.rb +17 -0
  9. data/lib/flickrie/client.rb +21 -5
  10. data/lib/flickrie/instance.rb +7 -2
  11. data/lib/flickrie/license.rb +2 -0
  12. data/lib/flickrie/location.rb +10 -8
  13. data/lib/flickrie/media/exif.rb +3 -1
  14. data/lib/flickrie/media/tag.rb +3 -3
  15. data/lib/flickrie/media/visibility.rb +6 -4
  16. data/lib/flickrie/media.rb +69 -84
  17. data/lib/flickrie/media_count.rb +3 -5
  18. data/lib/flickrie/photo.rb +55 -54
  19. data/lib/flickrie/set.rb +31 -25
  20. data/lib/flickrie/ticket.rb +4 -8
  21. data/lib/flickrie/upload_client.rb +7 -2
  22. data/lib/flickrie/user.rb +33 -34
  23. data/lib/flickrie/version.rb +1 -1
  24. data/lib/flickrie/video.rb +13 -12
  25. data/spec/api_methods_spec.rb +43 -0
  26. data/spec/error_spec.rb +32 -0
  27. data/{test → spec/files}/photo.jpg +0 -0
  28. data/{test → spec/files}/video.mov +0 -0
  29. data/spec/instance_spec.rb +22 -0
  30. data/spec/license_spec.rb +15 -0
  31. data/spec/location_spec.rb +11 -0
  32. data/spec/media_count_spec.rb +18 -0
  33. data/spec/media_spec.rb +271 -0
  34. data/spec/oauth_spec.rb +22 -0
  35. data/spec/photo_spec.rb +137 -0
  36. data/spec/set_spec.rb +68 -0
  37. data/spec/spec_helper.rb +68 -0
  38. data/spec/user_spec.rb +56 -0
  39. data/spec/video_spec.rb +54 -0
  40. metadata +47 -132
  41. data/test/error_test.rb +0 -20
  42. data/test/instance_test.rb +0 -20
  43. data/test/license_test.rb +0 -19
  44. data/test/location_test.rb +0 -29
  45. data/test/media_count_test.rb +0 -25
  46. data/test/media_test.rb +0 -432
  47. data/test/oauth_test.rb +0 -25
  48. data/test/photo_test.rb +0 -212
  49. data/test/set_test.rb +0 -92
  50. data/test/test_helper.rb +0 -14
  51. data/test/user_test.rb +0 -70
  52. data/test/vcr_cassettes/error/code.yml +0 -1165
  53. data/test/vcr_cassettes/instance/calling_api_methods.yml +0 -182
  54. data/test/vcr_cassettes/license/get_licenses.yml +0 -73
  55. data/test/vcr_cassettes/location/square_brackets.yml +0 -85
  56. data/test/vcr_cassettes/media/delete.yml +0 -1380
  57. data/test/vcr_cassettes/media/from_contacts.yml +0 -155
  58. data/test/vcr_cassettes/media/from_set.yml +0 -276
  59. data/test/vcr_cassettes/media/from_user.yml +0 -275
  60. data/test/vcr_cassettes/media/get_context.yml +0 -73
  61. data/test/vcr_cassettes/media/get_info.yml +0 -167
  62. data/test/vcr_cassettes/media/remove_tag.yml +0 -264
  63. data/test/vcr_cassettes/media/replace.yml +0 -2252
  64. data/test/vcr_cassettes/media/search.yml +0 -275
  65. data/test/vcr_cassettes/media/tags.yml +0 -346
  66. data/test/vcr_cassettes/media_count/get.yml +0 -135
  67. data/test/vcr_cassettes/media_count/square_brackets.yml +0 -69
  68. data/test/vcr_cassettes/oauth/tokens.yml +0 -400
  69. data/test/vcr_cassettes/photo/asynchronous_upload.yml +0 -1693
  70. data/test/vcr_cassettes/photo/from_set.yml +0 -273
  71. data/test/vcr_cassettes/photo/from_user.yml +0 -275
  72. data/test/vcr_cassettes/photo/get_exif.yml +0 -239
  73. data/test/vcr_cassettes/photo/get_sizes.yml +0 -147
  74. data/test/vcr_cassettes/photo/other_api_calls.yml +0 -506
  75. data/test/vcr_cassettes/photo/search.yml +0 -271
  76. data/test/vcr_cassettes/photo/square_brackets.yml +0 -85
  77. data/test/vcr_cassettes/photo/upload.yml +0 -1229
  78. data/test/vcr_cassettes/set/from_user.yml +0 -477
  79. data/test/vcr_cassettes/set/get_info.yml +0 -951
  80. data/test/vcr_cassettes/set/square_brackets.yml +0 -73
  81. data/test/vcr_cassettes/user/find_by_email_or_username.yml +0 -135
  82. data/test/vcr_cassettes/user/get_info.yml +0 -151
  83. data/test/vcr_cassettes/user/square_brackets.yml +0 -77
  84. data/test/vcr_cassettes/video/get_exif.yml +0 -135
  85. data/test/vcr_cassettes/video/get_info.yml +0 -86
  86. data/test/vcr_cassettes/video/get_sizes.yml +0 -151
  87. data/test/vcr_cassettes/video/other_api_calls.yml +0 -643
  88. data/test/vcr_cassettes/video/square_brackets.yml +0 -86
  89. data/test/vcr_cassettes/video/upload.yml +0 -308
  90. data/test/video_test.rb +0 -118
@@ -1,151 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://api.flickr.com/services/rest?api_key=1e7490875accc5b9c1ca91a2f27b5604&format=json&method=flickr.photos.getSizes&nojsoncallback=1&photo_id=7093038981
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Authorization:
11
- - OAuth oauth_consumer_key="1e7490875accc5b9c1ca91a2f27b5604", oauth_nonce="d3863b387a3fa0c23880e149f9dbc0ed",
12
- oauth_signature="1UlJ0LRCte%2BoaLvxFusTn%2FvU%2BXU%3D", oauth_signature_method="HMAC-SHA1",
13
- oauth_timestamp="1336343115", oauth_token="72157629879773565-6da848f99ba7038a",
14
- oauth_version="1.0"
15
- Accept-Encoding:
16
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
17
- Accept:
18
- - ! '*/*'
19
- User-Agent:
20
- - Ruby
21
- response:
22
- status:
23
- code: 200
24
- message: !binary |-
25
- T0s=
26
- headers:
27
- !binary "RGF0ZQ==":
28
- - !binary |-
29
- U3VuLCAwNiBNYXkgMjAxMiAyMjoyNToxNSBHTVQ=
30
- !binary "UDNw":
31
- - !binary |-
32
- cG9saWN5cmVmPSJodHRwOi8vaW5mby55YWhvby5jb20vdzNjL3AzcC54bWwi
33
- LCBDUD0iQ0FPIERTUCBDT1IgQ1VSIEFETSBERVYgVEFJIFBTQSBQU0QgSVZB
34
- aSBJVkRpIENPTmkgVEVMbyBPVFBpIE9VUiBERUxpIFNBTWkgT1RSaSBVTlJp
35
- IFBVQmkgSU5EIFBIWSBPTkwgVU5JIFBVUiBGSU4gQ09NIE5BViBJTlQgREVN
36
- IENOVCBTVEEgUE9MIEhFQSBQUkUgTE9DIEdPViI=
37
- !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
38
- - !binary |-
39
- Kg==
40
- !binary "Q2FjaGUtQ29udHJvbA==":
41
- - !binary |-
42
- cHJpdmF0ZQ==
43
- !binary "WC1TZXJ2ZWQtQnk=":
44
- - !binary |-
45
- d3d3MTYuZmxpY2tyLm11ZC55YWhvby5jb20=
46
- !binary "VmFyeQ==":
47
- - !binary |-
48
- QWNjZXB0LUVuY29kaW5n
49
- !binary "Q29udGVudC1FbmNvZGluZw==":
50
- - !binary |-
51
- Z3ppcA==
52
- !binary "Q29udGVudC1MZW5ndGg=":
53
- - !binary |-
54
- NDU1
55
- !binary "Q29ubmVjdGlvbg==":
56
- - !binary |-
57
- Y2xvc2U=
58
- !binary "Q29udGVudC1UeXBl":
59
- - !binary |-
60
- YXBwbGljYXRpb24vanNvbg==
61
- body:
62
- encoding: ASCII-8BIT
63
- string: !binary |-
64
- H4sIAAAAAAAAA73Vy26jMBQA0F9BXnQV8cY8pGj6AZNRpY66KVVkwAlubEyM
65
- KZpG+fcamkwg1YiqcmcF15av77nmcQANecUNSA4gR1VG+RYkzsLog1qQSv6N
66
- Ct5VlKPifaBfBJLHA6AowxQk4H7fIoGBmupIIUuQhIG6LzHZlvIUNLwVuVoF
67
- SinrJLVSa4MEg2YjkST5hpJ8J8ycs9QK/CBMrdCOPduL4shZxwg6MIs3EK8b
68
- 87ne9vu0go5zdV1njnPUJZe8SS0YOp7jBe7tL9sf50ytAa4u+9Tq8zFcEKQy
69
- DgvBcWFccD+R2GLjAxE4gQ1GynOsB7rXDZ13/i5bllWI0AnSniIjV59R6jbK
70
- WeM9Q3Tic/2rQ4yhPiDT/rR+Dmh4rj1GnsIz0oWuNmKlm1jNEldqqmUTX+BO
71
- DtGNIm2HqNvHZn0PpMDcuKPoDxZfUl7XhupabfzSp1VlSNwhIc2m2/x4WTp2
72
- HEbwZqhiTYrlpeDTWINzgeXy0g8tvRh3YKjr6iEmEhurO1+Lfr6aWrW6Px+J
73
- U+sCfa/yu6krnhH6AetH06+SB//xa/kqlg3b/h/u07EvXb1zaojvwPENVu/O
74
- iXUIAAA=
75
- http_version:
76
- recorded_at: Sun, 06 May 2012 22:25:15 GMT
77
- - request:
78
- method: get
79
- uri: http://api.flickr.com/services/rest?api_key=1e7490875accc5b9c1ca91a2f27b5604&format=json&method=flickr.photos.getSizes&nojsoncallback=1&photo_id=7093038981
80
- body:
81
- encoding: US-ASCII
82
- string: ''
83
- headers:
84
- Authorization:
85
- - OAuth oauth_consumer_key="1e7490875accc5b9c1ca91a2f27b5604", oauth_nonce="56c6635a2cd0b811b6e4b8f1f86f92dd",
86
- oauth_signature="aNMPcdV%2BNiS1MRgkXLQyJx6j8V4%3D", oauth_signature_method="HMAC-SHA1",
87
- oauth_timestamp="1336343115", oauth_token="72157629879773565-6da848f99ba7038a",
88
- oauth_version="1.0"
89
- Accept-Encoding:
90
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
91
- Accept:
92
- - ! '*/*'
93
- User-Agent:
94
- - Ruby
95
- response:
96
- status:
97
- code: 200
98
- message: !binary |-
99
- T0s=
100
- headers:
101
- !binary "RGF0ZQ==":
102
- - !binary |-
103
- U3VuLCAwNiBNYXkgMjAxMiAyMjoyNToxNSBHTVQ=
104
- !binary "UDNw":
105
- - !binary |-
106
- cG9saWN5cmVmPSJodHRwOi8vaW5mby55YWhvby5jb20vdzNjL3AzcC54bWwi
107
- LCBDUD0iQ0FPIERTUCBDT1IgQ1VSIEFETSBERVYgVEFJIFBTQSBQU0QgSVZB
108
- aSBJVkRpIENPTmkgVEVMbyBPVFBpIE9VUiBERUxpIFNBTWkgT1RSaSBVTlJp
109
- IFBVQmkgSU5EIFBIWSBPTkwgVU5JIFBVUiBGSU4gQ09NIE5BViBJTlQgREVN
110
- IENOVCBTVEEgUE9MIEhFQSBQUkUgTE9DIEdPViI=
111
- !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
112
- - !binary |-
113
- Kg==
114
- !binary "Q2FjaGUtQ29udHJvbA==":
115
- - !binary |-
116
- cHJpdmF0ZQ==
117
- !binary "WC1TZXJ2ZWQtQnk=":
118
- - !binary |-
119
- d3d3MjAuZmxpY2tyLm11ZC55YWhvby5jb20=
120
- !binary "VmFyeQ==":
121
- - !binary |-
122
- QWNjZXB0LUVuY29kaW5n
123
- !binary "Q29udGVudC1FbmNvZGluZw==":
124
- - !binary |-
125
- Z3ppcA==
126
- !binary "Q29udGVudC1MZW5ndGg=":
127
- - !binary |-
128
- NDU1
129
- !binary "Q29ubmVjdGlvbg==":
130
- - !binary |-
131
- Y2xvc2U=
132
- !binary "Q29udGVudC1UeXBl":
133
- - !binary |-
134
- YXBwbGljYXRpb24vanNvbg==
135
- body:
136
- encoding: ASCII-8BIT
137
- string: !binary |-
138
- H4sIAAAAAAAAA73Vy26jMBQA0F9BXnQV8cY8pGj6AZNRpY66KVVkwAlubEyM
139
- KZpG+fcamkwg1YiqcmcF15av77nmcQANecUNSA4gR1VG+RYkzsLog1qQSv6N
140
- Ct5VlKPifaBfBJLHA6AowxQk4H7fIoGBmupIIUuQhIG6LzHZlvIUNLwVuVoF
141
- SinrJLVSa4MEg2YjkST5hpJ8J8ycs9QK/CBMrdCOPduL4shZxwg6MIs3EK8b
142
- 87ne9vu0go5zdV1njnPUJZe8SS0YOp7jBe7tL9sf50ytAa4u+9Tq8zFcEKQy
143
- DgvBcWFccD+R2GLjAxE4gQ1GynOsB7rXDZ13/i5bllWI0AnSniIjV59R6jbK
144
- WeM9Q3Tic/2rQ4yhPiDT/rR+Dmh4rj1GnsIz0oWuNmKlm1jNEldqqmUTX+BO
145
- DtGNIm2HqNvHZn0PpMDcuKPoDxZfUl7XhupabfzSp1VlSNwhIc2m2/x4WTp2
146
- HEbwZqhiTYrlpeDTWINzgeXy0g8tvRh3YKjr6iEmEhurO1+Lfr6aWrW6Px+J
147
- U+sCfa/yu6krnhH6AetH06+SB//xa/kqlg3b/h/u07EvXb1zaojvwPENVu/O
148
- iXUIAAA=
149
- http_version:
150
- recorded_at: Sun, 06 May 2012 22:25:15 GMT
151
- recorded_with: VCR 2.1.1