flickrie 0.5.2 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. data/.gitignore +0 -1
  2. data/CHANGELOG.md +10 -0
  3. data/Gemfile +3 -2
  4. data/Rakefile +7 -2
  5. data/flickrie.gemspec +3 -0
  6. data/lib/flickrie/api_methods.rb +5 -0
  7. data/lib/flickrie/client.rb +17 -4
  8. data/lib/flickrie/location.rb +23 -50
  9. data/lib/flickrie/media/exif.rb +4 -0
  10. data/lib/flickrie/media/tag.rb +4 -0
  11. data/lib/flickrie/media/ticket.rb +4 -0
  12. data/lib/flickrie/media/visibility.rb +10 -6
  13. data/lib/flickrie/media.rb +7 -70
  14. data/lib/flickrie/media_count.rb +4 -0
  15. data/lib/flickrie/oauth.rb +5 -3
  16. data/lib/flickrie/set.rb +5 -21
  17. data/lib/flickrie/upload_client.rb +4 -2
  18. data/lib/flickrie/user.rb +4 -1
  19. data/lib/flickrie/version.rb +1 -1
  20. data/lib/flickrie/video.rb +0 -13
  21. data/test/error_test.rb +20 -0
  22. data/test/instance_test.rb +13 -14
  23. data/test/license_test.rb +7 -13
  24. data/test/location_test.rb +11 -2
  25. data/test/media_count_test.rb +20 -12
  26. data/test/media_test.rb +319 -311
  27. data/test/oauth_test.rb +17 -18
  28. data/test/photo_test.rb +78 -60
  29. data/test/set_test.rb +72 -63
  30. data/test/{test.rb → test_helper.rb} +7 -0
  31. data/test/user_test.rb +43 -34
  32. data/test/vcr_cassettes/error/code.yml +1165 -0
  33. data/test/vcr_cassettes/instance/calling_api_methods.yml +182 -0
  34. data/test/vcr_cassettes/license/get_licenses.yml +73 -0
  35. data/test/vcr_cassettes/location/square_brackets.yml +85 -0
  36. data/test/vcr_cassettes/media/delete.yml +1380 -0
  37. data/test/vcr_cassettes/media/from_contacts.yml +155 -0
  38. data/test/vcr_cassettes/media/from_set.yml +276 -0
  39. data/test/vcr_cassettes/media/from_user.yml +275 -0
  40. data/test/vcr_cassettes/media/get_context.yml +73 -0
  41. data/test/vcr_cassettes/media/get_info.yml +167 -0
  42. data/test/vcr_cassettes/media/remove_tag.yml +264 -0
  43. data/test/vcr_cassettes/media/replace.yml +2252 -0
  44. data/test/vcr_cassettes/media/search.yml +275 -0
  45. data/test/vcr_cassettes/media/tags.yml +346 -0
  46. data/test/vcr_cassettes/media_count/get.yml +135 -0
  47. data/test/vcr_cassettes/media_count/square_brackets.yml +69 -0
  48. data/test/vcr_cassettes/oauth/tokens.yml +400 -0
  49. data/test/vcr_cassettes/photo/asynchronous_upload.yml +1693 -0
  50. data/test/vcr_cassettes/photo/from_set.yml +273 -0
  51. data/test/vcr_cassettes/photo/from_user.yml +275 -0
  52. data/test/vcr_cassettes/photo/get_exif.yml +239 -0
  53. data/test/vcr_cassettes/photo/get_sizes.yml +147 -0
  54. data/test/vcr_cassettes/photo/other_api_calls.yml +506 -0
  55. data/test/vcr_cassettes/photo/search.yml +271 -0
  56. data/test/vcr_cassettes/photo/square_brackets.yml +85 -0
  57. data/test/vcr_cassettes/photo/upload.yml +1229 -0
  58. data/test/vcr_cassettes/set/from_user.yml +477 -0
  59. data/test/vcr_cassettes/set/get_info.yml +951 -0
  60. data/test/vcr_cassettes/set/square_brackets.yml +73 -0
  61. data/test/vcr_cassettes/user/find_by_email_or_username.yml +135 -0
  62. data/test/vcr_cassettes/user/get_info.yml +151 -0
  63. data/test/vcr_cassettes/user/square_brackets.yml +77 -0
  64. data/test/vcr_cassettes/video/get_exif.yml +135 -0
  65. data/test/vcr_cassettes/video/get_info.yml +86 -0
  66. data/test/vcr_cassettes/video/get_sizes.yml +151 -0
  67. data/test/vcr_cassettes/video/other_api_calls.yml +643 -0
  68. data/test/vcr_cassettes/video/square_brackets.yml +86 -0
  69. data/test/vcr_cassettes/video/upload.yml +308 -0
  70. data/test/video_test.rb +66 -53
  71. metadata +123 -12
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: 0.5.2
4
+ version: 0.6.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-06 00:00:00.000000000 Z
12
+ date: 2012-05-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday_middleware
16
- requirement: &70275161967080 !ruby/object:Gem::Requirement
16
+ requirement: &70306140464480 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70275161967080
24
+ version_requirements: *70306140464480
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: simple_oauth
27
- requirement: &70275161964780 !ruby/object:Gem::Requirement
27
+ requirement: &70306157035920 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0.1'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70275161964780
35
+ version_requirements: *70306157035920
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: multi_xml
38
- requirement: &70275161961880 !ruby/object:Gem::Requirement
38
+ requirement: &70306157033800 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0.4'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70275161961880
46
+ version_requirements: *70306157033800
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: activesupport
49
- requirement: &70275161959640 !ruby/object:Gem::Requirement
49
+ requirement: &70306157033420 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,40 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70275161959640
57
+ version_requirements: *70306157033420
58
+ - !ruby/object:Gem::Dependency
59
+ name: turn
60
+ requirement: &70306157032800 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *70306157032800
69
+ - !ruby/object:Gem::Dependency
70
+ name: vcr
71
+ requirement: &70306157032160 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *70306157032160
80
+ - !ruby/object:Gem::Dependency
81
+ name: webmock
82
+ requirement: &70306157031740 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *70306157031740
58
91
  description: This gem is a nice wrapper for the Flickr API with an intuitive interface.
59
92
  email: janko.marohnic@gmail.com
60
93
  executables: []
@@ -89,6 +122,7 @@ files:
89
122
  - lib/flickrie/user.rb
90
123
  - lib/flickrie/version.rb
91
124
  - lib/flickrie/video.rb
125
+ - test/error_test.rb
92
126
  - test/instance_test.rb
93
127
  - test/license_test.rb
94
128
  - test/location_test.rb
@@ -98,8 +132,46 @@ files:
98
132
  - test/photo.jpg
99
133
  - test/photo_test.rb
100
134
  - test/set_test.rb
101
- - test/test.rb
135
+ - test/test_helper.rb
102
136
  - test/user_test.rb
137
+ - test/vcr_cassettes/error/code.yml
138
+ - test/vcr_cassettes/instance/calling_api_methods.yml
139
+ - test/vcr_cassettes/license/get_licenses.yml
140
+ - test/vcr_cassettes/location/square_brackets.yml
141
+ - test/vcr_cassettes/media/delete.yml
142
+ - test/vcr_cassettes/media/from_contacts.yml
143
+ - test/vcr_cassettes/media/from_set.yml
144
+ - test/vcr_cassettes/media/from_user.yml
145
+ - test/vcr_cassettes/media/get_context.yml
146
+ - test/vcr_cassettes/media/get_info.yml
147
+ - test/vcr_cassettes/media/remove_tag.yml
148
+ - test/vcr_cassettes/media/replace.yml
149
+ - test/vcr_cassettes/media/search.yml
150
+ - test/vcr_cassettes/media/tags.yml
151
+ - test/vcr_cassettes/media_count/get.yml
152
+ - test/vcr_cassettes/media_count/square_brackets.yml
153
+ - test/vcr_cassettes/oauth/tokens.yml
154
+ - test/vcr_cassettes/photo/asynchronous_upload.yml
155
+ - test/vcr_cassettes/photo/from_set.yml
156
+ - test/vcr_cassettes/photo/from_user.yml
157
+ - test/vcr_cassettes/photo/get_exif.yml
158
+ - test/vcr_cassettes/photo/get_sizes.yml
159
+ - test/vcr_cassettes/photo/other_api_calls.yml
160
+ - test/vcr_cassettes/photo/search.yml
161
+ - test/vcr_cassettes/photo/square_brackets.yml
162
+ - test/vcr_cassettes/photo/upload.yml
163
+ - test/vcr_cassettes/set/from_user.yml
164
+ - test/vcr_cassettes/set/get_info.yml
165
+ - test/vcr_cassettes/set/square_brackets.yml
166
+ - test/vcr_cassettes/user/find_by_email_or_username.yml
167
+ - test/vcr_cassettes/user/get_info.yml
168
+ - test/vcr_cassettes/user/square_brackets.yml
169
+ - test/vcr_cassettes/video/get_exif.yml
170
+ - test/vcr_cassettes/video/get_info.yml
171
+ - test/vcr_cassettes/video/get_sizes.yml
172
+ - test/vcr_cassettes/video/other_api_calls.yml
173
+ - test/vcr_cassettes/video/square_brackets.yml
174
+ - test/vcr_cassettes/video/upload.yml
103
175
  - test/video.mov
104
176
  - test/video_test.rb
105
177
  homepage: https://github.com/janko-m/flickrie
@@ -131,6 +203,7 @@ summary: The reason why I did this gem is because the other ones either weren't
131
203
  call wasn't processed almost at all. It doesn't seem too bad at first, but after
132
204
  a while you realize it's not pretty. So I wanted to make it pretty :)
133
205
  test_files:
206
+ - test/error_test.rb
134
207
  - test/instance_test.rb
135
208
  - test/license_test.rb
136
209
  - test/location_test.rb
@@ -140,8 +213,46 @@ test_files:
140
213
  - test/photo.jpg
141
214
  - test/photo_test.rb
142
215
  - test/set_test.rb
143
- - test/test.rb
216
+ - test/test_helper.rb
144
217
  - test/user_test.rb
218
+ - test/vcr_cassettes/error/code.yml
219
+ - test/vcr_cassettes/instance/calling_api_methods.yml
220
+ - test/vcr_cassettes/license/get_licenses.yml
221
+ - test/vcr_cassettes/location/square_brackets.yml
222
+ - test/vcr_cassettes/media/delete.yml
223
+ - test/vcr_cassettes/media/from_contacts.yml
224
+ - test/vcr_cassettes/media/from_set.yml
225
+ - test/vcr_cassettes/media/from_user.yml
226
+ - test/vcr_cassettes/media/get_context.yml
227
+ - test/vcr_cassettes/media/get_info.yml
228
+ - test/vcr_cassettes/media/remove_tag.yml
229
+ - test/vcr_cassettes/media/replace.yml
230
+ - test/vcr_cassettes/media/search.yml
231
+ - test/vcr_cassettes/media/tags.yml
232
+ - test/vcr_cassettes/media_count/get.yml
233
+ - test/vcr_cassettes/media_count/square_brackets.yml
234
+ - test/vcr_cassettes/oauth/tokens.yml
235
+ - test/vcr_cassettes/photo/asynchronous_upload.yml
236
+ - test/vcr_cassettes/photo/from_set.yml
237
+ - test/vcr_cassettes/photo/from_user.yml
238
+ - test/vcr_cassettes/photo/get_exif.yml
239
+ - test/vcr_cassettes/photo/get_sizes.yml
240
+ - test/vcr_cassettes/photo/other_api_calls.yml
241
+ - test/vcr_cassettes/photo/search.yml
242
+ - test/vcr_cassettes/photo/square_brackets.yml
243
+ - test/vcr_cassettes/photo/upload.yml
244
+ - test/vcr_cassettes/set/from_user.yml
245
+ - test/vcr_cassettes/set/get_info.yml
246
+ - test/vcr_cassettes/set/square_brackets.yml
247
+ - test/vcr_cassettes/user/find_by_email_or_username.yml
248
+ - test/vcr_cassettes/user/get_info.yml
249
+ - test/vcr_cassettes/user/square_brackets.yml
250
+ - test/vcr_cassettes/video/get_exif.yml
251
+ - test/vcr_cassettes/video/get_info.yml
252
+ - test/vcr_cassettes/video/get_sizes.yml
253
+ - test/vcr_cassettes/video/other_api_calls.yml
254
+ - test/vcr_cassettes/video/square_brackets.yml
255
+ - test/vcr_cassettes/video/upload.yml
145
256
  - test/video.mov
146
257
  - test/video_test.rb
147
258
  has_rdoc: