flickrie 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/flickrie.gemspec +1 -1
  2. data/lib/flickrie/version.rb +1 -1
  3. metadata +22 -150
  4. data/.gitignore +0 -10
  5. data/.travis.yml +0 -4
  6. data/.yardopts +0 -11
  7. data/CHANGELOG.md +0 -139
  8. data/Gemfile +0 -9
  9. data/Rakefile +0 -60
  10. data/spec/custom_matchers.rb +0 -51
  11. data/spec/files/photo.bla +0 -0
  12. data/spec/files/photo.jpg +0 -0
  13. data/spec/files/video.mov +0 -0
  14. data/spec/flickrie/api_methods_spec.rb +0 -124
  15. data/spec/flickrie/error_spec.rb +0 -26
  16. data/spec/flickrie/instance_spec.rb +0 -17
  17. data/spec/flickrie/license_spec.rb +0 -15
  18. data/spec/flickrie/location_spec.rb +0 -24
  19. data/spec/flickrie/media_count_spec.rb +0 -22
  20. data/spec/flickrie/media_spec.rb +0 -292
  21. data/spec/flickrie/oauth_spec.rb +0 -25
  22. data/spec/flickrie/photo_spec.rb +0 -132
  23. data/spec/flickrie/set_spec.rb +0 -76
  24. data/spec/flickrie/upload_client_spec.rb +0 -43
  25. data/spec/flickrie/user_spec.rb +0 -84
  26. data/spec/flickrie/video_spec.rb +0 -52
  27. data/spec/flickrie_spec.rb +0 -15
  28. data/spec/spec_helper.rb +0 -71
  29. data/spec/vcr_cassettes/api_methods/people/get_media_from_user.yml +0 -108
  30. data/spec/vcr_cassettes/api_methods/people/get_public_media_from_user.yml +0 -108
  31. data/spec/vcr_cassettes/api_methods/photos/add_and_remove_tags.yml +0 -528
  32. data/spec/vcr_cassettes/api_methods/photos/get_context.yml +0 -108
  33. data/spec/vcr_cassettes/api_methods/photos/get_counts.yml +0 -108
  34. data/spec/vcr_cassettes/api_methods/photos/get_exif.yml +0 -73
  35. data/spec/vcr_cassettes/api_methods/photos/get_favorites.yml +0 -73
  36. data/spec/vcr_cassettes/api_methods/photos/get_from_contacts.yml +0 -73
  37. data/spec/vcr_cassettes/api_methods/photos/get_info.yml +0 -108
  38. data/spec/vcr_cassettes/api_methods/photos/get_public_from_user_contacts.yml +0 -73
  39. data/spec/vcr_cassettes/api_methods/photos/get_sizes.yml +0 -73
  40. data/spec/vcr_cassettes/api_methods/photos/search.yml +0 -108
  41. data/spec/vcr_cassettes/api_methods/photosets/get_media.yml +0 -108
  42. data/spec/vcr_cassettes/api_methods/upload/replace.yml +0 -126
  43. data/spec/vcr_cassettes/api_methods/upload/upload.yml +0 -82
  44. data/spec/vcr_cassettes/api_methods/upload/upload_asynchronously.yml +0 -117
  45. data/spec/vcr_cassettes/error/a_request_was_made_and_failed/be_raised.yml +0 -84
  46. data/spec/vcr_cassettes/error/a_request_was_made_and_failed/have_code_attribute_present.yml +0 -84
  47. data/spec/vcr_cassettes/flickrie/a_new_credential_is_filled_in/reset_the_client.yml +0 -233
  48. data/spec/vcr_cassettes/instance/client_is_already_initialized/be_able_to_call_API_methods.yml +0 -152
  49. data/spec/vcr_cassettes/license/get/have_all_attributes_correctly_set.yml +0 -38
  50. data/spec/vcr_cassettes/media/from_contacts/have_all_attributes_correctly_set.yml +0 -73
  51. data/spec/vcr_cassettes/media/from_set/have_all_attributes_correctly_set.yml +0 -38
  52. data/spec/vcr_cassettes/media/from_user/have_all_attributes_correctly_set.yml +0 -38
  53. data/spec/vcr_cassettes/media/get_context/have_all_attributes_correctly_set.yml +0 -38
  54. data/spec/vcr_cassettes/media/get_exif/get_exif_correctly.yml +0 -73
  55. data/spec/vcr_cassettes/media/get_info/have_all_attributes_correctly_set.yml +0 -108
  56. data/spec/vcr_cassettes/media/public_from_user/have_all_attributes_correctly_set.yml +0 -38
  57. data/spec/vcr_cassettes/media/search/have_all_attributes_correctly_set.yml +0 -38
  58. data/spec/vcr_cassettes/media_count/get/have_correctly_set_all_attributes.yml +0 -73
  59. data/spec/vcr_cassettes/o_auth/incorrect_credentials/raise_exceptions.yml +0 -249
  60. data/spec/vcr_cassettes/photo/get_info/have_all_attributes_correctly_set.yml +0 -38
  61. data/spec/vcr_cassettes/photo/get_sizes/have_attributes_correctly_set.yml +0 -73
  62. data/spec/vcr_cassettes/photo/search/have_all_sizes_available.yml +0 -38
  63. data/spec/vcr_cassettes/set/from_user/have_all_attributes_correctly_set.yml +0 -143
  64. data/spec/vcr_cassettes/set/get_info/have_all_attributes_correctly_set.yml +0 -283
  65. data/spec/vcr_cassettes/upload_client/content_type/pass_the_content_type.yml +0 -117
  66. data/spec/vcr_cassettes/upload_client/invalid_credentials/raise_errors.yml +0 -276
  67. data/spec/vcr_cassettes/user/find_by_username_or_email/have_all_attributes_correctly_set.yml +0 -73
  68. data/spec/vcr_cassettes/user/get_info/have_all_attributes_correctly_set.yml +0 -73
  69. data/spec/vcr_cassettes/video/get_info/have_all_attributes_correctly_set.yml +0 -38
  70. data/spec/vcr_cassettes/video/get_sizes/have_all_attributes_correctly_set.yml +0 -73
data/flickrie.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.summary = gem.description
12
12
  gem.homepage = "https://github.com/janko-m/flickrie"
13
13
 
14
- gem.files = `git ls-files`.split($\)
14
+ gem.files = Dir["lib/**/*.rb"] + ["flickrie.gemspec", "README.md", "LICENSE"]
15
15
  gem.require_path = "lib"
16
16
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
17
17
 
@@ -1,3 +1,3 @@
1
1
  module Flickrie
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
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.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ 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: &70103345822660 !ruby/object:Gem::Requirement
16
+ requirement: &70220735818200 !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: *70103345822660
27
+ version_requirements: *70220735818200
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: faraday
30
- requirement: &70103345838840 !ruby/object:Gem::Requirement
30
+ requirement: &70220735829300 !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: *70103345838840
41
+ version_requirements: *70220735829300
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: simple_oauth
44
- requirement: &70103345835540 !ruby/object:Gem::Requirement
44
+ requirement: &70220735826040 !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: *70103345835540
52
+ version_requirements: *70220735826040
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: multi_xml
55
- requirement: &70103345831900 !ruby/object:Gem::Requirement
55
+ requirement: &70220735824540 !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: *70103345831900
63
+ version_requirements: *70220735824540
64
64
  - !ruby/object:Gem::Dependency
65
65
  name: rake
66
- requirement: &70103345841660 !ruby/object:Gem::Requirement
66
+ requirement: &70220735823100 !ruby/object:Gem::Requirement
67
67
  none: false
68
68
  requirements:
69
69
  - - ~>
@@ -71,10 +71,10 @@ dependencies:
71
71
  version: '0.9'
72
72
  type: :development
73
73
  prerelease: false
74
- version_requirements: *70103345841660
74
+ version_requirements: *70220735823100
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rspec
77
- requirement: &70103345840020 !ruby/object:Gem::Requirement
77
+ requirement: &70220735877740 !ruby/object:Gem::Requirement
78
78
  none: false
79
79
  requirements:
80
80
  - - ! '>='
@@ -85,10 +85,10 @@ dependencies:
85
85
  version: '3'
86
86
  type: :development
87
87
  prerelease: false
88
- version_requirements: *70103345840020
88
+ version_requirements: *70220735877740
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: vcr
91
- requirement: &70103345861740 !ruby/object:Gem::Requirement
91
+ requirement: &70220735874120 !ruby/object:Gem::Requirement
92
92
  none: false
93
93
  requirements:
94
94
  - - ~>
@@ -96,33 +96,23 @@ dependencies:
96
96
  version: '2.1'
97
97
  type: :development
98
98
  prerelease: false
99
- version_requirements: *70103345861740
99
+ version_requirements: *70220735874120
100
100
  description: This gem wraps the Flickr API with a nice object-oriented interface.
101
101
  email: janko.marohnic@gmail.com
102
102
  executables: []
103
103
  extensions: []
104
104
  extra_rdoc_files: []
105
105
  files:
106
- - .gitignore
107
- - .travis.yml
108
- - .yardopts
109
- - CHANGELOG.md
110
- - Gemfile
111
- - LICENSE
112
- - README.md
113
- - Rakefile
114
- - flickrie.gemspec
115
- - lib/flickrie.rb
116
106
  - lib/flickrie/api_methods.rb
117
107
  - lib/flickrie/client.rb
118
108
  - lib/flickrie/instance.rb
119
109
  - lib/flickrie/license.rb
120
110
  - lib/flickrie/location.rb
121
- - lib/flickrie/media.rb
122
111
  - lib/flickrie/media/exif.rb
123
112
  - lib/flickrie/media/note.rb
124
113
  - lib/flickrie/media/tag.rb
125
114
  - lib/flickrie/media/visibility.rb
115
+ - lib/flickrie/media.rb
126
116
  - lib/flickrie/media_count.rb
127
117
  - lib/flickrie/middleware.rb
128
118
  - lib/flickrie/oauth.rb
@@ -133,67 +123,10 @@ files:
133
123
  - lib/flickrie/user.rb
134
124
  - lib/flickrie/version.rb
135
125
  - lib/flickrie/video.rb
136
- - spec/custom_matchers.rb
137
- - spec/files/photo.bla
138
- - spec/files/photo.jpg
139
- - spec/files/video.mov
140
- - spec/flickrie/api_methods_spec.rb
141
- - spec/flickrie/error_spec.rb
142
- - spec/flickrie/instance_spec.rb
143
- - spec/flickrie/license_spec.rb
144
- - spec/flickrie/location_spec.rb
145
- - spec/flickrie/media_count_spec.rb
146
- - spec/flickrie/media_spec.rb
147
- - spec/flickrie/oauth_spec.rb
148
- - spec/flickrie/photo_spec.rb
149
- - spec/flickrie/set_spec.rb
150
- - spec/flickrie/upload_client_spec.rb
151
- - spec/flickrie/user_spec.rb
152
- - spec/flickrie/video_spec.rb
153
- - spec/flickrie_spec.rb
154
- - spec/spec_helper.rb
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
126
+ - lib/flickrie.rb
127
+ - flickrie.gemspec
128
+ - README.md
129
+ - LICENSE
197
130
  homepage: https://github.com/janko-m/flickrie
198
131
  licenses:
199
132
  - MIT
@@ -215,72 +148,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
215
148
  version: '0'
216
149
  segments:
217
150
  - 0
218
- hash: 4396393932236919457
151
+ hash: -1628628284167823696
219
152
  requirements: []
220
153
  rubyforge_project:
221
154
  rubygems_version: 1.8.11
222
155
  signing_key:
223
156
  specification_version: 3
224
157
  summary: This gem wraps the Flickr API with a nice object-oriented interface.
225
- test_files:
226
- - spec/custom_matchers.rb
227
- - spec/files/photo.bla
228
- - spec/files/photo.jpg
229
- - spec/files/video.mov
230
- - spec/flickrie/api_methods_spec.rb
231
- - spec/flickrie/error_spec.rb
232
- - spec/flickrie/instance_spec.rb
233
- - spec/flickrie/license_spec.rb
234
- - spec/flickrie/location_spec.rb
235
- - spec/flickrie/media_count_spec.rb
236
- - spec/flickrie/media_spec.rb
237
- - spec/flickrie/oauth_spec.rb
238
- - spec/flickrie/photo_spec.rb
239
- - spec/flickrie/set_spec.rb
240
- - spec/flickrie/upload_client_spec.rb
241
- - spec/flickrie/user_spec.rb
242
- - spec/flickrie/video_spec.rb
243
- - spec/flickrie_spec.rb
244
- - spec/spec_helper.rb
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
158
+ test_files: []
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- TODO.md
2
- Gemfile.lock
3
- pkg/
4
- wiki/
5
- doc/
6
- .DS_Store
7
- api_methods.md
8
- .bundle/
9
- .rspec
10
- .yardoc/
data/.travis.yml DELETED
@@ -1,4 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 1.9.2
4
- - 1.9.3
data/.yardopts DELETED
@@ -1,11 +0,0 @@
1
- --charset utf-8
2
- --readme README.md
3
- --markup markdown
4
- --title "Flickrie documentation"
5
- --exclude "lib/flickrie/middleware.rb"
6
- --exclude "lib/flickrie/client.rb"
7
- --exclude "lib/flickrie/upload_client.rb"
8
- --tag api_method:"Flickr API method"
9
- --tag comment
10
- --hide-tag comment
11
- --no-private
data/CHANGELOG.md DELETED
@@ -1,139 +0,0 @@
1
- # Flickrie changelog
2
-
3
- ## Version 1.0.3
4
-
5
- - Before `Flickrie::User` had only the `#public_photos` method, now, I
6
- just added the missing `#public_videos`, `#public_media`, `#photos`,
7
- `#videos` and `#media`.
8
-
9
- - Fixed Flickr's bug with mixing up the width and the height of a photo
10
- (not only in the API, but also on their website).
11
-
12
- ## Version 1.0.2
13
-
14
- - Fix some mistakes in the documentation
15
-
16
- ## Version 1.0.1
17
-
18
- - Transfered the documentation to YARD. [Documentation](http://rubydoc.info/gems/flickrie/)
19
-
20
- ## Version 1.0.0
21
-
22
- ### Changes that are backwards compatible
23
-
24
- - Fixed content type not being passed to the file you're uploading
25
- if you specified it directly.
26
-
27
- - The request will now be retried once more if it timeouts
28
-
29
- - In authentication:
30
- ** you can now call `request_token.authorize_url` instead of `request_token.get_authorization_url`.
31
- ** you can now call `request_token.get_access_token(code)` instead of `Flickrie::OAuth.get_access_token(code, request_token)`.
32
- ** you also get the infomation about the user who just authenticated,
33
- which you can then access with `access_token.user_info`
34
- (it's a Hash with keys `:fullname`, `:user_nsid` and `:username`)
35
-
36
- - When calling `Flickrie.get_photos_counts`, the `Flickrie::MediaCount`
37
- now also has attributes `#time_interval` (alias for `#date_range`),
38
- `#from` and `#to`.
39
-
40
- ### Changes that are NOT backwards compatible
41
-
42
- - If you're passing in the content type of the file you're uploading,
43
- the parameter is now called `:content_type`, not `:mime_type`.
44
-
45
- - If there is a problem in obtaining the access token, `Flickrie::Error`
46
- is now raised, instead of `Flickrie::OAuth::Error`.
47
-
48
- - When you're calling `request_token.get_authorization_url`, if you want to
49
- specifiy permissions, you now have to pass the `:perms` option,
50
- instead of `:permissions`. In this way you can pass any parameter,
51
- and it will be appended to the URL (in case Flickr adds a new parameter).
52
-
53
- - When you have a `Flickrie::User` instance, the
54
- `Flickrie::User#time_zone` now returns a struct with `#label` and
55
- `#offset` attributes (before it returned a `Hash` with those keys).
56
-
57
- - When you call `Flickrie.get_media_context`, the result is now a
58
- struct with attributes `#count`, `#previous`, `#next`.
59
-
60
- ## Version 0.7.3
61
-
62
- - Covered "flickr.people.getPhotos" (I released it as a patch because
63
- it's important).
64
-
65
- ## Version 0.7.2
66
-
67
- - Specified versions of dependencies and Ruby accurately.
68
-
69
- ## Version 0.7.1
70
-
71
- - Fixed an oauth bug.
72
- - Added `#hash` method to photos, sets etc. which you can call to get the
73
- raw data (in Ruby hash). This is useful if I accidentally left something out,
74
- or if Flickr added something new that I didn't cover yet, that you can
75
- still get to the data. `#[]` reads from the same hash.
76
-
77
- ## Version 0.7.0
78
-
79
- - Covered `flickr.photos.getFavorites` and `flickr.test.login`.
80
- - Bug fixes (especially regarding the `Flickr::Instance`).
81
-
82
- ## Version 0.6.1
83
-
84
- - `Flickrie::Media::Ticket` is now called just `Flickrie::Ticket`.
85
-
86
- ## Version 0.6.0
87
-
88
- - You can access the raw response hash with square brackets, if you notice I
89
- didn't cover some part of it with methods. So, for example, after calling
90
- `Flickrie.get_photo_info`, you can get the photo ID by calling `photo['id']`.
91
-
92
- - When `Flickrie::Error` is raised, you can now access its `#code`
93
- attribute. This makes better error handling, because error code
94
- is (supposed to be) unique, unlike the error message.
95
-
96
- ## Version 0.5.2
97
-
98
- - The gem now also works with Faraday 0.7 (I apologize for not
99
- making Faraday >= 0.8 a dependency before).
100
-
101
- ## Version 0.5.1
102
-
103
- - Fixed a documentation error.
104
-
105
- ## Version 0.5.0
106
-
107
- - Covered `flickr.photos.getCounts`.
108
- - Covered `flickr.photos.getExif`.
109
-
110
- ## Version 0.4.1
111
-
112
- - Handle file uploads for Rails and Sinatra smarter (see [this wiki](https://github.com/janko-m/flickrie/wiki/Some-tips.md), tip #7)
113
-
114
- ## Version 0.4.0
115
-
116
- - Covered `flickr.photos.getContactsPhotos`.
117
- - Covered `flickr.photos.getContactsPublicPhotos`.
118
- - Covered `flickr.photos.getContext`.
119
- - Implemented uploading photos.
120
- - Covered `flickr.photos.upload.checkTickets`.
121
-
122
- ## Version 0.3.2
123
-
124
- - Enabled passing params to `Flickrie::Set#photos`.
125
-
126
- ## Version 0.3.1
127
-
128
- - Fixed an error when accessing tags from photos fetched through
129
- certain API calls.
130
-
131
- ## Version 0.3.0
132
-
133
- - The proper error is now raised on wrong access tokens.
134
- - Implemented a better way of using access tokens, using `Flickrie::Instance.new(access_token, access_secret)`
135
- (see [this wiki](https://github.com/janko-m/flickrie/wiki/Authentication-in-web-applications) for an example).
136
-
137
- ## Version 0.2.2
138
-
139
- - Removed `addressable` gem as a dependency.
data/Gemfile DELETED
@@ -1,9 +0,0 @@
1
- source :rubygems
2
-
3
- gemspec
4
-
5
- # You can run `bundle [install] --without extras` if you don't want to install them
6
- group :extras do
7
- gem "debugger"
8
- gem "pry"
9
- end
data/Rakefile DELETED
@@ -1,60 +0,0 @@
1
- require 'bundler'
2
- Bundler::GemHelper.install_tasks
3
-
4
- task :default => :spec
5
-
6
- desc "Run the specs (use spec:name to run a single spec)"
7
- task :spec do |task, args|
8
- system "rspec -Ispec"
9
- end
10
-
11
- Dir["spec/flickrie/*_spec.rb"].each do |spec|
12
- task_name = File.basename(spec)[/.+(?=_spec\.rb)/]
13
- task :"spec:#{task_name}" do
14
- system "rspec -Ispec #{spec}"
15
- end
16
- end
17
-
18
- desc "Open the console with credentials (API key, secret etc.) already filled in"
19
- task :console do
20
- File.open("credentials.rb", "w") do |f|
21
- f.write <<-CREDENTIALS
22
- Flickrie.api_key = ENV['FLICKR_API_KEY']
23
- Flickrie.shared_secret = ENV['FLICKR_SHARED_SECRET']
24
- Flickrie.access_token = ENV['FLICKR_ACCESS_TOKEN']
25
- Flickrie.access_secret = ENV['FLICKR_ACCESS_SECRET']
26
- CREDENTIALS
27
- end
28
- begin
29
- require 'pry'
30
- system "pry --require 'flickrie' --require './credentials'"
31
- rescue LoadError
32
- system "irb -r 'flickrie' -r './credentials'"
33
- end
34
- FileUtils.remove_file "credentials.rb"
35
- end
36
-
37
- # copied from Rails
38
- begin
39
- require 'rails/source_annotation_extractor'
40
-
41
- desc "Enumerate all annotations (use notes:optimize, :fixme, :todo for focus)"
42
- task :notes do
43
- SourceAnnotationExtractor.enumerate "OPTIMIZE|FIXME|TODO", :tag => true
44
- end
45
-
46
- namespace :notes do
47
- ["OPTIMIZE", "FIXME", "TODO"].each do |annotation|
48
- # desc "Enumerate all #{annotation} annotations"
49
- task annotation.downcase.intern do
50
- SourceAnnotationExtractor.enumerate annotation
51
- end
52
- end
53
-
54
- desc "Enumerate a custom annotation, specify with ANNOTATION=CUSTOM"
55
- task :custom do
56
- SourceAnnotationExtractor.enumerate ENV['ANNOTATION']
57
- end
58
- end
59
- rescue LoadError
60
- end
@@ -1,51 +0,0 @@
1
- RSpec::Matchers.define :correspond_to do |hash_or_value|
2
- match { |object| test_recursively(object, hash_or_value) }
3
-
4
- def test_recursively(object, hash_or_value)
5
- if hash_or_value.is_a?(Hash)
6
- iterate(object, hash_or_value) do |actual, expected|
7
- actual.should == expected
8
- end
9
- else
10
- object.should eq(hash_or_value)
11
- end
12
- end
13
-
14
- def iterate(object, the_rest, &block)
15
- the_rest.each do |key, value|
16
- if value.is_a?(Hash)
17
- iterate(object.send(key), value, &block)
18
- else
19
- yield [object.send(key), value]
20
- end
21
- end
22
- end
23
-
24
- failure_message_for_should do |actual|
25
- "expected: #{expected.first}\n got: #{actual}\n"
26
- end
27
- end
28
-
29
- RSpec::Matchers.define :be_a_number do
30
- match { |object| object.instance_of?(Fixnum) }
31
- end
32
-
33
- RSpec::Matchers.define :be_a_boolean do
34
- match { |object| object == true or object == false }
35
- end
36
-
37
- RSpec::Matchers.define :be_a_media do
38
- match do |object|
39
- object.instance_of?(Flickrie::Photo) \
40
- or
41
- object.instance_of?(Flickrie::Video)
42
- end
43
- end
44
-
45
- RSpec::Matchers.define :be_a_photo do
46
- match { |object| object.instance_of?(Flickrie::Photo) }
47
- end
48
-
49
- RSpec::Matchers.define :be_a_video do
50
- match { |object| object.instance_of?(Flickrie::Video) }
51
- end
data/spec/files/photo.bla DELETED
Binary file
data/spec/files/photo.jpg DELETED
Binary file
data/spec/files/video.mov DELETED
Binary file