picasa 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13c65c05a5b00067765a40f4339e4e11f04680f1
4
- data.tar.gz: 66624e0d8ce131805533eae31ff58803a66f13af
3
+ metadata.gz: 3d67b4c44995304c98892e59559c32d80ab81743
4
+ data.tar.gz: 443226c3f40928306d5cf57676ce2e53d9c97fc5
5
5
  SHA512:
6
- metadata.gz: d233fded3ee7fd4348ba64f3b1849579050467eb64690442ea1367e088b7fbaedd42490a63219b5bd9d8324d58c45c8d15c263d3436b2938e690c8a3ed27b0e9
7
- data.tar.gz: 7b4311985a57ebec4c687061f98bf8085c8440f7ee7807c8497cd7efb5b9ea434c77a1972a2c38fcda1e69d3286fe7faa470269c58568a8f5952a3b29a1b69da
6
+ metadata.gz: 7103872e83ebbb1bb6e20988823720c1f15236304e47f921d12554aebc0a21efb8da8e6f2c48200b399bf2988379747de2fdd518210b947439eb454b79c27a01
7
+ data.tar.gz: cf95144bcabddb5864ec3bcac3bcdbfe9ca156400163c6ba686fb7d2c9592a08dae1321da729129fbf25c3f2b9d30d03d902c2677b99eb099a0391a16c5136a1
data/README.md CHANGED
@@ -96,6 +96,7 @@ Picasa uses gzipped requests to speedup fetching results. Benchmarks are availab
96
96
  * [Vinicius Teles](https://github.com/viniciusteles)
97
97
  * [Ionut-Cristian Florescu](https://github.com/icflorescu)
98
98
  * [Sébastien Grosjean](https://github.com/ZenCocoon)
99
+ * [Grant Gardner](https://github.com/lwoggardner)
99
100
 
100
101
  ## Copyright
101
102
 
@@ -59,6 +59,32 @@ module Picasa
59
59
  Presenter::Album.new(response.parsed_response["entry"])
60
60
  end
61
61
 
62
+ # Update properties of given album
63
+ #
64
+ # @param [String] album_id
65
+ # @param [Hash] options parameters to update
66
+ # @option options [String] :title title of album
67
+ # @option options [String] :summary summary of album
68
+ # @option options [String] :location location of album photos (i.e. Poland)
69
+ # @option options [String] :access ["public", "private", "protected"]
70
+ # @option options [String] :timestamp timestamp of album
71
+ # @option options [String] :keywords keywords (i.e. "vacation, poland")
72
+ # @option options [String] :etag updates only when ETag matches - protects before overwriting other client changes
73
+ #
74
+ # @return [Presenter::Album]
75
+ def update(album_id, params = {})
76
+ if params.has_key?(:timestamp)
77
+ params[:timestamp] = params[:timestamp] * 1000
78
+ end
79
+ headers = auth_header.merge({"If-Match" => params.fetch(:etag, "*")})
80
+
81
+ template = Template.new(:new_album, params)
82
+ path = "/data/entry/api/user/#{user_id}/albumid/#{album_id}"
83
+ response = Connection.new.patch(path: path, body: template.render, headers: headers)
84
+
85
+ Presenter::Album.new(response.parsed_response["entry"])
86
+ end
87
+
62
88
  # Destroys given album
63
89
  #
64
90
  # @param [String] album_id album id
@@ -21,6 +21,12 @@ module Picasa
21
21
  exec_request(params) { |uri, options| HTTP.post(uri, options) }
22
22
  end
23
23
 
24
+ def patch(params = {})
25
+ params[:headers] ||= {}
26
+ params[:headers]["Content-Type"] ||= "application/xml"
27
+ exec_request(params) { |uri, options| HTTP.patch(uri,options) }
28
+ end
29
+
24
30
  # @param [Hash] params request arguments
25
31
  # @option params [String] :host host of request
26
32
  # @option params [String] :path request path
@@ -49,6 +49,12 @@ module Picasa
49
49
  @summary ||= safe_retrieve(parsed_body, "summary")
50
50
  end
51
51
 
52
+ # Picasa API is not consistent - in show API this field contains summary
53
+ # @return [String]
54
+ def subtitle
55
+ @subtitle ||= safe_retrieve(parsed_body, "subtitle")
56
+ end
57
+
52
58
  # @return [String]
53
59
  def rights
54
60
  @rights ||= safe_retrieve(parsed_body, "rights")
@@ -1,5 +1,7 @@
1
1
  <entry xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:gphoto="http://schemas.google.com/photos/2007">
2
+ <% if title %>
2
3
  <title type="text"><%= h title %></title>
4
+ <% end %>
3
5
  <% if summary %>
4
6
  <summary type="text"><%= h summary %></summary>
5
7
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module Picasa
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
@@ -107,6 +107,10 @@ describe Picasa::API::Album do
107
107
  assert_nil @album.summary
108
108
  end
109
109
 
110
+ it "has subtitle" do
111
+ assert_equal "Opis albumu", @album.subtitle
112
+ end
113
+
110
114
  it "has rights" do
111
115
  assert_equal "public", @album.rights
112
116
  end
@@ -260,7 +264,7 @@ describe Picasa::API::Album do
260
264
  it "creates album" do
261
265
  VCR.use_cassette("album-create") do
262
266
  attributes = {:title => "gem-test", :summary => "created from test suite <&>", :access => "protected",
263
- :location => "Gilowice", :keywords => "test"}
267
+ :location => "Gilowice", :keywords => "test"}
264
268
  album = Picasa::API::Album.new(:user_id => "w.wnetrzak@gmail.com", :authorization_header => AuthHeader).create(attributes)
265
269
 
266
270
  assert_equal "gem-test", album.title
@@ -0,0 +1,43 @@
1
+ require "helper"
2
+
3
+ describe Picasa::API::Album do
4
+ describe "#update" do
5
+ it "updates album summary" do
6
+ VCR.use_cassette("album-update") do
7
+ attributes = {:title => "gem-test", :summary => "created from test suite", :access => "protected",
8
+ :location => "Sydney"}
9
+ api = Picasa::API::Album.new(:user_id => "lwoggardner@gmail.com", :authorization_header => AuthHeader)
10
+
11
+ album = api.create(attributes)
12
+ original_timestamp = album.timestamp
13
+
14
+ album = api.show(album.id)
15
+ assert_equal "created from test suite", album.subtitle
16
+
17
+ album = api.update(album.id, :summary => "updated")
18
+
19
+ assert_equal "Sydney", album.location
20
+ assert_equal "updated", album.summary
21
+ assert_equal "protected", album.access
22
+ assert_equal original_timestamp, album.timestamp
23
+
24
+ album = api.show(album.id)
25
+
26
+ assert_equal "Sydney", album.location
27
+ assert_equal "updated", album.subtitle
28
+ assert_equal "protected", album.access
29
+
30
+ new_timestamp = 1385553052
31
+ album = api.update(album.id, :location => "Melbourne", :title => "gem-test-updated", :summary => "updated again",
32
+ :access => "private", :timestamp => new_timestamp)
33
+
34
+ assert_equal "Melbourne", album.location
35
+ assert_equal "updated again", album.summary
36
+ assert_equal "private", album.access
37
+ assert_equal new_timestamp, album.timestamp.to_i
38
+
39
+ api.delete(album.id)
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,661 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://picasaweb.google.com/data/feed/api/user/lwoggardner@gmail.com?alt=json
6
+ body:
7
+ encoding: UTF-8
8
+ base64_string: ! 'PGVudHJ5IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1L0F0b20iIHht
9
+
10
+ bG5zOm1lZGlhPSJodHRwOi8vc2VhcmNoLnlhaG9vLmNvbS9tcnNzLyIgeG1s
11
+
12
+ bnM6Z3Bob3RvPSJodHRwOi8vc2NoZW1hcy5nb29nbGUuY29tL3Bob3Rvcy8y
13
+
14
+ MDA3Ij4KICAKICA8dGl0bGUgdHlwZT0idGV4dCI+Z2VtLXRlc3Q8L3RpdGxl
15
+
16
+ PgogIAogIAogIDxzdW1tYXJ5IHR5cGU9InRleHQiPmNyZWF0ZWQgZnJvbSB0
17
+
18
+ ZXN0IHN1aXRlPC9zdW1tYXJ5PgogIAogIAogIDxncGhvdG86bG9jYXRpb24+
19
+
20
+ U3lkbmV5PC9ncGhvdG86bG9jYXRpb24+CiAgCiAgCiAgPGdwaG90bzphY2Nl
21
+
22
+ c3M+cHJvdGVjdGVkPC9ncGhvdG86YWNjZXNzPgogIAogIDxncGhvdG86dGlt
23
+
24
+ ZXN0YW1wPjEzODU1NTMwNDUwMDA8L2dwaG90bzp0aW1lc3RhbXA+CiAgCiAg
25
+
26
+ PGNhdGVnb3J5IHNjaGVtZT0iaHR0cDovL3NjaGVtYXMuZ29vZ2xlLmNvbS9n
27
+
28
+ LzIwMDUja2luZCIgdGVybT0iaHR0cDovL3NjaGVtYXMuZ29vZ2xlLmNvbS9w
29
+
30
+ aG90b3MvMjAwNyNhbGJ1bSI+PC9jYXRlZ29yeT4KPC9lbnRyeT4K
31
+
32
+ '
33
+ headers:
34
+ User-Agent:
35
+ - ruby-gem-picasa-v0.7.0 (gzip)
36
+ Gdata-Version:
37
+ - '2'
38
+ Accept-Encoding:
39
+ - gzip, deflate
40
+ Authorization:
41
+ - <FILTERED>
42
+ Content-Type:
43
+ - application/atom+xml
44
+ response:
45
+ status:
46
+ code: 201
47
+ message: Created
48
+ headers:
49
+ Expires:
50
+ - Wed, 27 Nov 2013 11:50:50 GMT
51
+ Date:
52
+ - Wed, 27 Nov 2013 11:50:50 GMT
53
+ Cache-Control:
54
+ - private, max-age=0, must-revalidate, no-transform
55
+ Set-Cookie:
56
+ - S=photos_html=192iCXyRopSjnKedPQAsbA; Domain=.google.com; Path=/; Secure;
57
+ HttpOnly
58
+ - _rtok=YYuhPGhB6p3k; Path=/; Secure; HttpOnly
59
+ Content-Type:
60
+ - application/json; charset=UTF-8
61
+ Access-Control-Allow-Origin:
62
+ - ! '*'
63
+ Vary:
64
+ - Accept, X-GData-Authorization, GData-Version
65
+ Gdata-Version:
66
+ - '2.0'
67
+ Etag:
68
+ - ! '"YD0qeyI."'
69
+ Location:
70
+ - https://picasaweb.google.com/data/entry/api/user/103053507272141139593/albumid/5950905031149332161?alt=json
71
+ Content-Location:
72
+ - https://picasaweb.google.com/data/entry/api/user/103053507272141139593/albumid/5950905031149332161?alt=json
73
+ Content-Encoding:
74
+ - gzip
75
+ Transfer-Encoding:
76
+ - chunked
77
+ X-Content-Type-Options:
78
+ - nosniff
79
+ X-Frame-Options:
80
+ - SAMEORIGIN
81
+ X-Xss-Protection:
82
+ - 1; mode=block
83
+ Server:
84
+ - GSE
85
+ Alternate-Protocol:
86
+ - 443:quic
87
+ body:
88
+ encoding: ASCII-8BIT
89
+ base64_string: ! 'H4sIAAAAAAAAAM1WbW/bNhD+K4bqb7MlUrJsy8AwZG0WFGjRFUuAvXQfaImR
90
+
91
+ mJAiR1JVvCD/vUfKlpTNDoyhA2rkQ8x7jvfc3XNHPwafqTZM1sEmwCEKZgGt
92
+
93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TVTzxRw6mXpKSgO7RmKc093rdSFa2l/
124
+
125
+ ZqtGbGvC+P9bI4OXaJ7/q1QVdS9gsAHrLGhZYSv//5D2iWf2nxk6ofhfR9O2
126
+
127
+ oto7wA+r6WX9mXKp+u9ctlS/lroeKW+eLMI4ydY4TiY4ReFqvYS/hdceuDRK
128
+
129
+ HXFJwkWWwgAvwAWHy3iFsyTtaIDPz5I5zXUx1TBC3hGuX6yXmXeM0TLLwA0+
130
+
131
+ XwBailO9OwsAAA==
132
+
133
+ '
134
+ http_version:
135
+ recorded_at: Wed, 27 Nov 2013 11:50:50 GMT
136
+ - request:
137
+ method: get
138
+ uri: https://picasaweb.google.com/data/feed/api/user/lwoggardner@gmail.com/albumid/5950905031149332161?alt=json
139
+ body:
140
+ encoding: US-ASCII
141
+ base64_string: ''
142
+ headers:
143
+ User-Agent:
144
+ - ruby-gem-picasa-v0.7.0 (gzip)
145
+ Gdata-Version:
146
+ - '2'
147
+ Accept-Encoding:
148
+ - gzip, deflate
149
+ Authorization:
150
+ - <FILTERED>
151
+ response:
152
+ status:
153
+ code: 200
154
+ message: OK
155
+ headers:
156
+ Expires:
157
+ - Wed, 27 Nov 2013 11:50:50 GMT
158
+ Date:
159
+ - Wed, 27 Nov 2013 11:50:50 GMT
160
+ Cache-Control:
161
+ - private, max-age=0, must-revalidate, no-transform
162
+ Set-Cookie:
163
+ - S=photos_html=7Y82YDXYdTVIaOscoED-IA; Domain=.google.com; Path=/; Secure;
164
+ HttpOnly
165
+ - _rtok=tYFdkG97z4Ry; Path=/; Secure; HttpOnly
166
+ Content-Type:
167
+ - application/json; charset=UTF-8
168
+ Access-Control-Allow-Origin:
169
+ - ! '*'
170
+ Vary:
171
+ - Accept, X-GData-Authorization, GData-Version, Cookie
172
+ Gdata-Version:
173
+ - '2.0'
174
+ Etag:
175
+ - W/"CUcASXs4eip7ImA9Wh5WFUg."
176
+ Last-Modified:
177
+ - Wed, 27 Nov 2013 11:50:48 GMT
178
+ Content-Encoding:
179
+ - gzip
180
+ Transfer-Encoding:
181
+ - chunked
182
+ X-Content-Type-Options:
183
+ - nosniff
184
+ X-Frame-Options:
185
+ - SAMEORIGIN
186
+ X-Xss-Protection:
187
+ - 1; mode=block
188
+ Server:
189
+ - GSE
190
+ Alternate-Protocol:
191
+ - 443:quic
192
+ body:
193
+ encoding: ASCII-8BIT
194
+ base64_string: ! 'H4sIAAAAAAAAANVWbW/bNhD+K4Hq5csiUS+WbRkwAjdJgwAtmjUJUmwdBlqi
195
+
196
+ JSWUSJBU5DTwf9+RsiXbdTuv2IZO8BeTz90999yRvBfriQiZs9IaW57jWicW
197
+
198
+ KWOW5GUKC3e3b+wRLM0JSazxi7UoaClhPVOKjxGq69qpA4eJFPmuG6KpYgWg
199
+
200
+ DaqX8owp1oFlnJECSydlLKXEiVmBDEJq22FrxjgpbwgWcdaZ4sjAbSQ5iZFG
201
+
202
+ SINAnuOhLmDyzWANxw5d0O1EtNs0l05JFNKbLZAwIXeSbtZM4qvtEytNekRh
203
+
204
+ rdo9+mSd3cXTm4+yT3I+vCqm0X0W3r+5S51PFkBzI2ZPrZxK8MrzGEtck9km
205
+
206
+ 5QQrjLT2qJJEIM8N3DAI3aE/9L2+5wVRGAUI01lV5AkKo9CN3NANPK8fBYHv
207
+
208
+ DTxreWJVHLyQLqDveoHtebY/vPW8ceiO+yMnDPxfNTYGZMrEszX+7cUyEpID
209
+
210
+ JH31mJcJZKWIKA4t9yvD2lr+Dma5oqSll5LCVkQqTUdWs+3NWBCdy9FcsOJI
211
+
212
+ o45klSuisSJPMyVbJBdMkVjnDXt5rLt7R3CaDVbctLaAUKRUTZu9t7nEBH+W
213
+
214
+ QY3u+Me4eFtEXF6g6eo7z6fo4eqX927y+t1F/Q5Jb+DaMbokxS1w8gfOA091
215
+
216
+ XJqXj0ZKQeghOppTBoI8cy075pxCUyg4mgjDwfp5YZoyE2R+eN9gnn9n75xi
217
+
218
+ qiYPEpRbnhycAWdQuf91BoLIqsAzSuym2eyCJDn+53KqOGU4QW0YZPyjVTBJ
219
+
220
+ pL6K/43MYYmIEoJ0uSiyUChTByewn0fb9gfJvHkHSJonRGas3i/vwoa9+LHG
221
+
222
+ T8SeUyyzL2lKBdD4K+cYstMZ0z9Wi18ktWvQ8nFkPT/NoJcn+3Q4/nD5euIu
223
+
224
+ XPMd61JN/pNe/ik41y/N31VZEM6E+v6q0ww1LqYz4H5albggk70JHOM8mex/
225
+
226
+ hv6aMo7p6mWIYzgFZ1AXwejb/Ae6UDTHfUdLEjr/YUi2BI/hcAhlw9tMFhPv
227
+
228
+ uMALW986VEmonuuatxdXKmPCvFG6rO0jeSlwqY4usUhKIswUIfLDRpa9fK2l
229
+
230
+ DpYScAaKiNbT9doD6LM1heox1IRcN8zeWJpYNy72FFOYfmhSXIdwtyFGkiut
231
+
232
+ yBrgbQNgmijkNRHXOG3V0GoBqplnexuz21cmrhVwW9CNS3INoKzpkhZ08wxy
233
+
234
+ P28gmqOwf6hZQVRegF9c8BblBaMwDAO3H5oqd3yqorkWNrXZ3RNwLPPSDP8N
235
+
236
+ yN9KfvYMU9ed3BgnNyPohu1o7G+ELmQeP36755rJuldnRBgUDOW9i/KJUMbb
237
+
238
+ /5TVRJwxUW5EtoO+4wfRyPODIy90neFoAL++cQkmFed7TAKnH4VQwD6YeM7A
239
+
240
+ H3pREELfNjbXLC/VOibvJDSG4L4/GkTG0HcHUQRmGzWkwPFagH1npURFrB3I
241
+
242
+ OatLPRrsopbLPwFEBvslog0AAA==
243
+
244
+ '
245
+ http_version:
246
+ recorded_at: Wed, 27 Nov 2013 11:50:50 GMT
247
+ - request:
248
+ method: patch
249
+ uri: https://picasaweb.google.com/data/entry/api/user/lwoggardner@gmail.com/albumid/5950905031149332161?alt=json
250
+ body:
251
+ encoding: UTF-8
252
+ base64_string: ! 'PGVudHJ5IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1L0F0b20iIHht
253
+
254
+ bG5zOm1lZGlhPSJodHRwOi8vc2VhcmNoLnlhaG9vLmNvbS9tcnNzLyIgeG1s
255
+
256
+ bnM6Z3Bob3RvPSJodHRwOi8vc2NoZW1hcy5nb29nbGUuY29tL3Bob3Rvcy8y
257
+
258
+ MDA3Ij4KICAKICAKICA8c3VtbWFyeSB0eXBlPSJ0ZXh0Ij51cGRhdGVkPC9z
259
+
260
+ dW1tYXJ5PgogIAogIAogIAogIDxncGhvdG86dGltZXN0YW1wPjwvZ3Bob3Rv
261
+
262
+ OnRpbWVzdGFtcD4KICAKICA8Y2F0ZWdvcnkgc2NoZW1lPSJodHRwOi8vc2No
263
+
264
+ ZW1hcy5nb29nbGUuY29tL2cvMjAwNSNraW5kIiB0ZXJtPSJodHRwOi8vc2No
265
+
266
+ ZW1hcy5nb29nbGUuY29tL3Bob3Rvcy8yMDA3I2FsYnVtIj48L2NhdGVnb3J5
267
+
268
+ Pgo8L2VudHJ5Pgo=
269
+
270
+ '
271
+ headers:
272
+ User-Agent:
273
+ - ruby-gem-picasa-v0.7.0 (gzip)
274
+ Gdata-Version:
275
+ - '2'
276
+ Accept-Encoding:
277
+ - gzip, deflate
278
+ Authorization:
279
+ - <FILTERED>
280
+ If-Match:
281
+ - ! '*'
282
+ Content-Type:
283
+ - application/xml
284
+ response:
285
+ status:
286
+ code: 200
287
+ message: OK
288
+ headers:
289
+ Expires:
290
+ - Wed, 27 Nov 2013 11:50:51 GMT
291
+ Date:
292
+ - Wed, 27 Nov 2013 11:50:51 GMT
293
+ Cache-Control:
294
+ - private, max-age=0, must-revalidate
295
+ Set-Cookie:
296
+ - S=photos_html=12gJ2HvJBVeCfv5m4MJ8rw; Domain=.google.com; Path=/; Secure;
297
+ HttpOnly
298
+ - _rtok=nEZzE9r4c259; Path=/; Secure; HttpOnly
299
+ Content-Type:
300
+ - application/json; charset=UTF-8
301
+ Access-Control-Allow-Origin:
302
+ - ! '*'
303
+ Gdata-Version:
304
+ - '2.0'
305
+ Etag:
306
+ - ! '"YD4qeyI."'
307
+ Content-Encoding:
308
+ - gzip
309
+ Transfer-Encoding:
310
+ - chunked
311
+ X-Content-Type-Options:
312
+ - nosniff
313
+ X-Frame-Options:
314
+ - SAMEORIGIN
315
+ X-Xss-Protection:
316
+ - 1; mode=block
317
+ Server:
318
+ - GSE
319
+ Alternate-Protocol:
320
+ - 443:quic
321
+ body:
322
+ encoding: ASCII-8BIT
323
+ base64_string: ! 'H4sIAAAAAAAAAM1WbW/bNhD+K4Xqb7MlUi92ZGAYsjYLCrTohiXAXroPtMRI
324
+
325
+ TEiRI6kqXpD/viMlS8rmBMbQATXyIeY9x3vu7rmjH4LPVBsmm2Ab4BAFy4A2
326
+
327
+ hSxZU8HB9dUPqzN/ZPU+2D4E94I3ZkGUAmNtrdpGUdd1YZeEUldRjNAmcsZl
328
+
329
+ D3wOlEXnVooDalGpWlo5gU1RU0FMWElZcRoWUkQeYXyA0U3QkpGZFyW6qMM9
330
+
331
+ qaX0PkIbE01ByhcD9LwmtOBPyUtFm4qZsKE2csYRSCWEeYrtz3yyg3kZVOWC
332
+
333
+ WuJq+in49W36J92/Cz8FYGClq+vCDlcYuEOxghjS0d2cYEksiXwfotZQHWGU
334
+
335
+ oCzJ0CbexDjFOMmzPIkI37WClVGWZyhHGUowTvMkifEaB4/LQLU7zkxNp5gx
336
+
337
+ wskK41W8ucJ4m6FtmoUIod8culUQ9CVshsN1nHgsdH0B/TgVXsDFlXSa+v0h
338
+
339
+ 8O2gJ7Tn9R1rSqiZpVqcKpfXviTB4x/gxiynI72KipWlxjo6phWC9Ar3tkPm
340
+
341
+ YNKsqq0ZLUpLS4vBxllz5zPQlJ9C/4ZST3+vXLZQMg6dtjB7EYF5+Obe66rW
342
+
343
+ 9OYkMbjbYNrYf9TDd4Tbb28NDP7j8pABHFHdQOoTS0vvbVTbk6kd53FJxRXU
344
+
345
+ Ol7PghnKb75cNfrR+LLlcIL+uhk+LzlS8EH/RUGNeSMhuuTvmfmKMnIkZ1nB
346
+
347
+ iJLW1lL7mWqImIb1UpPGvrokumyo9rtJs9P25lFSwaML1r87i9kGfmZtDsCn
348
+
349
+ jGaKPgC47Is5gn7eA9/9DNE34/g2GSCWCbiXCDWicHKWZVmC0gw285xPK/pF
350
+
351
+ d0CiIzYNwmCNf857EIhihtvtYQdem9nankdwbZ1oHK/kFJIVdy83zb/Yi0rL
352
+
353
+ 1ifXfy1AmSAk3/NW81k/eb0eOul4DDjf1NXHlTKEkr9M0kXX6pdCvBe5MhfR
354
+
355
+ +fB5y86j23c/fUTl9x8uug/T/glvVTUNABOkotGtou7M0WnF4dTLcWCo/SJw
356
+
357
+ BI/lNeJKagrN1BMFHF6SMaTi0I6pGHd030lduhaOZ7Zuxa4hjP+/NTF4jVbF
358
+
359
+ v0pTU/fiBVuwLoOOlbb2/09pPvOM/jNDJwz/62fR1VR7B/jhtLhoPlMu1fid
360
+
361
+ y47qN1I3M6WtkjSMk/wMx8krnKFwc7aGv9RrDVxapY64JGGaZzCwKbi4Hxob
362
+
363
+ nCdZTwN8fpTMaayPqaaR8Y5wfXq2zr1jjNZ5Dm7w+RtXbddkGwsAAA==
364
+
365
+ '
366
+ http_version:
367
+ recorded_at: Wed, 27 Nov 2013 11:50:52 GMT
368
+ - request:
369
+ method: get
370
+ uri: https://picasaweb.google.com/data/feed/api/user/lwoggardner@gmail.com/albumid/5950905031149332161?alt=json
371
+ body:
372
+ encoding: US-ASCII
373
+ base64_string: ''
374
+ headers:
375
+ User-Agent:
376
+ - ruby-gem-picasa-v0.7.0 (gzip)
377
+ Gdata-Version:
378
+ - '2'
379
+ Accept-Encoding:
380
+ - gzip, deflate
381
+ Authorization:
382
+ - <FILTERED>
383
+ response:
384
+ status:
385
+ code: 200
386
+ message: OK
387
+ headers:
388
+ Expires:
389
+ - Wed, 27 Nov 2013 11:50:52 GMT
390
+ Date:
391
+ - Wed, 27 Nov 2013 11:50:52 GMT
392
+ Cache-Control:
393
+ - private, max-age=0, must-revalidate, no-transform
394
+ Set-Cookie:
395
+ - S=photos_html=A5fhHSKbjr57OYzJXEQHRg; Domain=.google.com; Path=/; Secure;
396
+ HttpOnly
397
+ - _rtok=IDKEeT8HRYKz; Path=/; Secure; HttpOnly
398
+ Content-Type:
399
+ - application/json; charset=UTF-8
400
+ Access-Control-Allow-Origin:
401
+ - ! '*'
402
+ Vary:
403
+ - Accept, X-GData-Authorization, GData-Version, Cookie
404
+ Gdata-Version:
405
+ - '2.0'
406
+ Etag:
407
+ - W/"CUcBQHg5eyp7ImA9Wh5WFUg."
408
+ Last-Modified:
409
+ - Wed, 27 Nov 2013 11:50:51 GMT
410
+ Content-Encoding:
411
+ - gzip
412
+ Transfer-Encoding:
413
+ - chunked
414
+ X-Content-Type-Options:
415
+ - nosniff
416
+ X-Frame-Options:
417
+ - SAMEORIGIN
418
+ X-Xss-Protection:
419
+ - 1; mode=block
420
+ Server:
421
+ - GSE
422
+ Alternate-Protocol:
423
+ - 443:quic
424
+ body:
425
+ encoding: ASCII-8BIT
426
+ base64_string: ! 'H4sIAAAAAAAAANVWbW/bNhD+K4Xq5csiUbQsOzJgBHlpswAtmrYJMmwdBka6
427
+
428
+ SEookSDpyF7g/76jZEu263ZesQ2dkS8hn7t77rk78Z6dJ1A6F6UzdqjnO4cO
429
+
430
+ lLFI8jLFg5vr1+4RHt0DJM742ZkVvNR4nhkjx4RUVeVVgSdUSvq+H5ITIwpE
431
+
432
+ 16heKjNhRAfWcQYF014qRMrBi0VBaoS2tqPWTEgoPwJTcdaZsqiGu0RLiIlF
433
+
434
+ 6BpBqEdJFzD5arCGY4cu+GYi1m2aa68EQ+xlCwSh9FbSzVmd+PL60EmTHhhm
435
+
436
+ Vbsln5yzm/j0/U9pCHM5uixOotssvH19k3qfHITmtZg9s3Sq0avMY6ZZBXfr
437
+
438
+ lBNmGLHak6kGRagf+GEQ+qP+qE8HlAZRGAWE8btpkSckjEI/8kM/oHQQBUGf
439
+
440
+ DqmzOHSmEr1AF7Dv08Cl1O2Prikdh/44pN6wH/xisTEiU6HmzvjXZ6eWEPaQ
441
+
442
+ 9OVjXi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KXQvrMyagrOFuRcVKVdDbZRi8Wf1rk9
473
+
474
+ oZINAAA=
475
+
476
+ '
477
+ http_version:
478
+ recorded_at: Wed, 27 Nov 2013 11:50:52 GMT
479
+ - request:
480
+ method: patch
481
+ uri: https://picasaweb.google.com/data/entry/api/user/lwoggardner@gmail.com/albumid/5950905031149332161?alt=json
482
+ body:
483
+ encoding: UTF-8
484
+ base64_string: ! 'PGVudHJ5IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1L0F0b20iIHht
485
+
486
+ bG5zOm1lZGlhPSJodHRwOi8vc2VhcmNoLnlhaG9vLmNvbS9tcnNzLyIgeG1s
487
+
488
+ bnM6Z3Bob3RvPSJodHRwOi8vc2NoZW1hcy5nb29nbGUuY29tL3Bob3Rvcy8y
489
+
490
+ MDA3Ij4KICAKICA8dGl0bGUgdHlwZT0idGV4dCI+Z2VtLXRlc3QtdXBkYXRl
491
+
492
+ ZDwvdGl0bGU+CiAgCiAgCiAgPHN1bW1hcnkgdHlwZT0idGV4dCI+dXBkYXRl
493
+
494
+ ZCBhZ2Fpbjwvc3VtbWFyeT4KICAKICAKICA8Z3Bob3RvOmxvY2F0aW9uPk1l
495
+
496
+ bGJvdXJuZTwvZ3Bob3RvOmxvY2F0aW9uPgogIAogIAogIDxncGhvdG86YWNj
497
+
498
+ ZXNzPnByaXZhdGU8L2dwaG90bzphY2Nlc3M+CiAgCiAgPGdwaG90bzp0aW1l
499
+
500
+ c3RhbXA+MTM4NTU1MzA1MjAwMDwvZ3Bob3RvOnRpbWVzdGFtcD4KICAKICA8
501
+
502
+ Y2F0ZWdvcnkgc2NoZW1lPSJodHRwOi8vc2NoZW1hcy5nb29nbGUuY29tL2cv
503
+
504
+ MjAwNSNraW5kIiB0ZXJtPSJodHRwOi8vc2NoZW1hcy5nb29nbGUuY29tL3Bo
505
+
506
+ b3Rvcy8yMDA3I2FsYnVtIj48L2NhdGVnb3J5Pgo8L2VudHJ5Pgo=
507
+
508
+ '
509
+ headers:
510
+ User-Agent:
511
+ - ruby-gem-picasa-v0.7.0 (gzip)
512
+ Gdata-Version:
513
+ - '2'
514
+ Accept-Encoding:
515
+ - gzip, deflate
516
+ Authorization:
517
+ - <FILTERED>
518
+ If-Match:
519
+ - ! '*'
520
+ Content-Type:
521
+ - application/xml
522
+ response:
523
+ status:
524
+ code: 200
525
+ message: OK
526
+ headers:
527
+ Expires:
528
+ - Wed, 27 Nov 2013 11:50:53 GMT
529
+ Date:
530
+ - Wed, 27 Nov 2013 11:50:53 GMT
531
+ Cache-Control:
532
+ - private, max-age=0, must-revalidate
533
+ Set-Cookie:
534
+ - S=photos_html=kRs0qZ1_qgMlpElG06VDGg; Domain=.google.com; Path=/; Secure;
535
+ HttpOnly
536
+ - _rtok=x5ttaTq_gI1S; Path=/; Secure; HttpOnly
537
+ Content-Type:
538
+ - application/json; charset=UTF-8
539
+ Access-Control-Allow-Origin:
540
+ - ! '*'
541
+ Gdata-Version:
542
+ - '2.0'
543
+ Etag:
544
+ - ! '"YD8qeyI."'
545
+ Content-Encoding:
546
+ - gzip
547
+ Transfer-Encoding:
548
+ - chunked
549
+ X-Content-Type-Options:
550
+ - nosniff
551
+ X-Frame-Options:
552
+ - SAMEORIGIN
553
+ X-Xss-Protection:
554
+ - 1; mode=block
555
+ Server:
556
+ - GSE
557
+ Alternate-Protocol:
558
+ - 443:quic
559
+ body:
560
+ encoding: ASCII-8BIT
561
+ base64_string: ! 'H4sIAAAAAAAAANVWXW/bNhT9K4Fq7GWxREqWbRkoiizNggIJug4J0HbdAy0x
562
+
563
+ EhNS5Egqihfkv++SUiSndTJj2IbN8INNnst7zv0i74Nbqg2TdbAKcIiCw4DW
564
+
565
+ uSxYXcLC5cWP06VfsnoTrO6DO8FrMyFKwWZlrVpFUdu2YZuEUpdRjNAicpuH
566
+
567
+ HfA5UBodWSkeUZNSVdLKEWzyigpiwlLKktMwlyLyCOMdDGaCFoxsWVGi8yrc
568
+
569
+ kEpKbyO0MdHopHjRQcdrRAv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sqX6WOp6
600
+
601
+ qwqnySyMk2yJ4+QApyhcLOfw7doQTBqldpgk4SxLoalnYILDebzAWZJ2NMDm
602
+
603
+ J8lc/XU+1dhO3hCOny3nmTeM0TzLwAw+fwCJRyBI4wsAAA==
604
+
605
+ '
606
+ http_version:
607
+ recorded_at: Wed, 27 Nov 2013 11:50:53 GMT
608
+ - request:
609
+ method: delete
610
+ uri: https://picasaweb.google.com/data/entry/api/user/lwoggardner@gmail.com/albumid/5950905031149332161?alt=json
611
+ body:
612
+ encoding: US-ASCII
613
+ base64_string: ''
614
+ headers:
615
+ User-Agent:
616
+ - ruby-gem-picasa-v0.7.0 (gzip)
617
+ Gdata-Version:
618
+ - '2'
619
+ Accept-Encoding:
620
+ - gzip, deflate
621
+ Authorization:
622
+ - <FILTERED>
623
+ If-Match:
624
+ - ! '*'
625
+ response:
626
+ status:
627
+ code: 200
628
+ message: OK
629
+ headers:
630
+ Expires:
631
+ - Wed, 27 Nov 2013 11:50:54 GMT
632
+ Date:
633
+ - Wed, 27 Nov 2013 11:50:54 GMT
634
+ Cache-Control:
635
+ - private, max-age=0, must-revalidate
636
+ Set-Cookie:
637
+ - S=photos_html=0h3YwaUqc95NGueV7kLT5Q; Domain=.google.com; Path=/; Secure;
638
+ HttpOnly
639
+ - _rtok=51RE8urzMHse; Path=/; Secure; HttpOnly
640
+ Gdata-Version:
641
+ - '2.0'
642
+ X-Content-Type-Options:
643
+ - nosniff
644
+ X-Frame-Options:
645
+ - SAMEORIGIN
646
+ X-Xss-Protection:
647
+ - 1; mode=block
648
+ Content-Length:
649
+ - '0'
650
+ Server:
651
+ - GSE
652
+ Content-Type:
653
+ - text/html; charset=UTF-8
654
+ Alternate-Protocol:
655
+ - 443:quic
656
+ body:
657
+ encoding: US-ASCII
658
+ base64_string: ''
659
+ http_version:
660
+ recorded_at: Wed, 27 Nov 2013 11:50:54 GMT
661
+ recorded_with: VCR 2.8.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picasa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wojciech Wnętrzak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-18 00:00:00.000000000 Z
11
+ date: 2013-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -163,6 +163,7 @@ files:
163
163
  - lib/picasa/version.rb
164
164
  - picasa.gemspec
165
165
  - test/api/album_test.rb
166
+ - test/api/album_update_test.rb
166
167
  - test/api/comment_test.rb
167
168
  - test/api/photo_test.rb
168
169
  - test/api/tag_test.rb
@@ -171,6 +172,7 @@ files:
171
172
  - test/cassettes/album-destroy.yml
172
173
  - test/cassettes/album-list.yml
173
174
  - test/cassettes/album-show.yml
175
+ - test/cassettes/album-update.yml
174
176
  - test/cassettes/auth-failed.yml
175
177
  - test/cassettes/auth-success.yml
176
178
  - test/cassettes/comment-400.yml
@@ -219,6 +221,7 @@ specification_version: 4
219
221
  summary: Simple Google Picasa managment
220
222
  test_files:
221
223
  - test/api/album_test.rb
224
+ - test/api/album_update_test.rb
222
225
  - test/api/comment_test.rb
223
226
  - test/api/photo_test.rb
224
227
  - test/api/tag_test.rb
@@ -227,6 +230,7 @@ test_files:
227
230
  - test/cassettes/album-destroy.yml
228
231
  - test/cassettes/album-list.yml
229
232
  - test/cassettes/album-show.yml
233
+ - test/cassettes/album-update.yml
230
234
  - test/cassettes/auth-failed.yml
231
235
  - test/cassettes/auth-success.yml
232
236
  - test/cassettes/comment-400.yml