picasa 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/picasa/template.rb +1 -1
- data/lib/picasa/templates/new_album.xml.erb +6 -6
- data/lib/picasa/templates/new_comment.xml.erb +1 -1
- data/lib/picasa/templates/new_photo.xml.erb +3 -3
- data/lib/picasa/templates/new_tag.xml.erb +1 -1
- data/lib/picasa/version.rb +1 -1
- data/test/api/album_test.rb +2 -2
- data/test/cassettes/album-create.yml +66 -65
- data/test/template_test.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 496380f9ca56ff77437847a5f148e413b4f65c39
|
4
|
+
data.tar.gz: c324fbde995ea020da898a9cc7e8ae6a3826f049
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3b300fbefc289435bf12b39575cc12aaf1c30e1a09fc546d5ec02b09eb5148618426b56ca66dc2c43c1fab39c03e13b31550fcd6a6fcd80f784ec51e31e7b39
|
7
|
+
data.tar.gz: 0004752debc45f4152273917f16536116625f59b86b6256b648eb012f2d11c812ad65ce2a0a58115b192826945242eff36783a773958fa785d6c21bb83006f19
|
data/lib/picasa/template.rb
CHANGED
@@ -1,18 +1,18 @@
|
|
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
|
-
<title type="text"><%= title %></title>
|
2
|
+
<title type="text"><%= h title %></title>
|
3
3
|
<% if summary %>
|
4
|
-
<summary type="text"><%= summary %></summary>
|
4
|
+
<summary type="text"><%= h summary %></summary>
|
5
5
|
<% end %>
|
6
6
|
<% if location %>
|
7
|
-
<gphoto:location><%= location %></gphoto:location>
|
7
|
+
<gphoto:location><%= h location %></gphoto:location>
|
8
8
|
<% end %>
|
9
9
|
<% if access %>
|
10
|
-
<gphoto:access><%= access %></gphoto:access>
|
10
|
+
<gphoto:access><%= h access %></gphoto:access>
|
11
11
|
<% end %>
|
12
|
-
<gphoto:timestamp><%= timestamp %></gphoto:timestamp>
|
12
|
+
<gphoto:timestamp><%= h timestamp %></gphoto:timestamp>
|
13
13
|
<% if keywords %>
|
14
14
|
<media:group>
|
15
|
-
<media:keywords><%= keywords %></media:keywords>
|
15
|
+
<media:keywords><%= h keywords %></media:keywords>
|
16
16
|
</media:group>
|
17
17
|
<% end %>
|
18
18
|
<category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/photos/2007#album"></category>
|
@@ -2,14 +2,14 @@
|
|
2
2
|
Content-type: application/atom+xml
|
3
3
|
|
4
4
|
<entry xmlns="http://www.w3.org/2005/Atom">
|
5
|
-
<title><%= title %></title>
|
5
|
+
<title><%= h title %></title>
|
6
6
|
<% if summary %>
|
7
|
-
<summary><%= summary %></summary>
|
7
|
+
<summary><%= h summary %></summary>
|
8
8
|
<% end %>
|
9
9
|
<category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/photos/2007#photo"/>
|
10
10
|
</entry>
|
11
11
|
--<%= boundary %>
|
12
|
-
Content-type: <%= content_type %>
|
12
|
+
Content-type: <%= h content_type %>
|
13
13
|
|
14
14
|
<%= binary %>
|
15
15
|
--<%= boundary %>
|
data/lib/picasa/version.rb
CHANGED
data/test/api/album_test.rb
CHANGED
@@ -259,12 +259,12 @@ describe Picasa::API::Album do
|
|
259
259
|
describe "#create" do
|
260
260
|
it "creates album" do
|
261
261
|
VCR.use_cassette("album-create") do
|
262
|
-
attributes = {:title => "gem-test", :summary => "created from test suite", :access => "protected",
|
262
|
+
attributes = {:title => "gem-test", :summary => "created from test suite <&>", :access => "protected",
|
263
263
|
:location => "Gilowice", :keywords => "test"}
|
264
264
|
album = Picasa::API::Album.new(:user_id => "w.wnetrzak@gmail.com", :authorization_header => AuthHeader).create(attributes)
|
265
265
|
|
266
266
|
assert_equal "gem-test", album.title
|
267
|
-
assert_equal "created from test suite", album.summary
|
267
|
+
assert_equal "created from test suite <&>", album.summary
|
268
268
|
assert_equal "protected", album.access
|
269
269
|
assert_equal "Gilowice", album.location
|
270
270
|
assert_equal 10, album.timestamp.length
|
@@ -11,18 +11,18 @@ http_interactions:
|
|
11
11
|
bnM6Z3Bob3RvPSJodHRwOi8vc2NoZW1hcy5nb29nbGUuY29tL3Bob3Rvcy8y
|
12
12
|
MDA3Ij4KICA8dGl0bGUgdHlwZT0idGV4dCI+Z2VtLXRlc3Q8L3RpdGxlPgog
|
13
13
|
IAogIDxzdW1tYXJ5IHR5cGU9InRleHQiPmNyZWF0ZWQgZnJvbSB0ZXN0IHN1
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
14
|
+
aXRlICZsdDsmYW1wOyZndDs8L3N1bW1hcnk+CiAgCiAgCiAgPGdwaG90bzps
|
15
|
+
b2NhdGlvbj5HaWxvd2ljZTwvZ3Bob3RvOmxvY2F0aW9uPgogIAogIAogIDxn
|
16
|
+
cGhvdG86YWNjZXNzPnByb3RlY3RlZDwvZ3Bob3RvOmFjY2Vzcz4KICAKICA8
|
17
|
+
Z3Bob3RvOnRpbWVzdGFtcD4xMzY2NzI5MjQ1MDAwPC9ncGhvdG86dGltZXN0
|
18
|
+
YW1wPgogIAogIDxtZWRpYTpncm91cD4KICAgIDxtZWRpYTprZXl3b3Jkcz50
|
19
|
+
ZXN0PC9tZWRpYTprZXl3b3Jkcz4KICA8L21lZGlhOmdyb3VwPgogIAogIDxj
|
20
|
+
YXRlZ29yeSBzY2hlbWU9Imh0dHA6Ly9zY2hlbWFzLmdvb2dsZS5jb20vZy8y
|
21
|
+
MDA1I2tpbmQiIHRlcm09Imh0dHA6Ly9zY2hlbWFzLmdvb2dsZS5jb20vcGhv
|
22
|
+
dG9zLzIwMDcjYWxidW0iPjwvY2F0ZWdvcnk+CjwvZW50cnk+Cg==
|
23
23
|
headers:
|
24
24
|
User-Agent:
|
25
|
-
- ruby-gem-picasa-v0.6.
|
25
|
+
- ruby-gem-picasa-v0.6.5 (gzip)
|
26
26
|
Gdata-Version:
|
27
27
|
- '2'
|
28
28
|
Accept-Encoding:
|
@@ -37,15 +37,15 @@ http_interactions:
|
|
37
37
|
message: Created
|
38
38
|
headers:
|
39
39
|
Expires:
|
40
|
-
-
|
40
|
+
- Tue, 23 Apr 2013 15:00:47 GMT
|
41
41
|
Date:
|
42
|
-
-
|
42
|
+
- Tue, 23 Apr 2013 15:00:47 GMT
|
43
43
|
Cache-Control:
|
44
44
|
- private, max-age=0, must-revalidate, no-transform
|
45
45
|
Set-Cookie:
|
46
|
-
- S=photos_html=
|
46
|
+
- S=photos_html=qOnLPRWCoIFmSccmbQzPDA; Domain=.google.com; Path=/; Secure;
|
47
47
|
HttpOnly
|
48
|
-
- _rtok=
|
48
|
+
- _rtok=bUhOFq5goQrF; Path=/; Secure; HttpOnly
|
49
49
|
Content-Type:
|
50
50
|
- application/json; charset=UTF-8
|
51
51
|
Access-Control-Allow-Origin:
|
@@ -57,9 +57,9 @@ http_interactions:
|
|
57
57
|
Etag:
|
58
58
|
- '"YD0qeyI."'
|
59
59
|
Location:
|
60
|
-
- https://picasaweb.google.com/data/entry/api/user/106136347770555028022/albumid/
|
60
|
+
- https://picasaweb.google.com/data/entry/api/user/106136347770555028022/albumid/5870057420670410593?alt=json
|
61
61
|
Content-Location:
|
62
|
-
- https://picasaweb.google.com/data/entry/api/user/106136347770555028022/albumid/
|
62
|
+
- https://picasaweb.google.com/data/entry/api/user/106136347770555028022/albumid/5870057420670410593?alt=json
|
63
63
|
Transfer-Encoding:
|
64
64
|
- chunked
|
65
65
|
X-Content-Type-Options:
|
@@ -83,58 +83,59 @@ http_interactions:
|
|
83
83
|
bG5zJGdlb3JzcyI6Imh0dHA6Ly93d3cuZ2VvcnNzLm9yZy9nZW9yc3MiLCJn
|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013 15:00:47 GMT
|
140
141
|
recorded_with: VCR 2.4.0
|
data/test/template_test.rb
CHANGED
@@ -21,5 +21,10 @@ describe Picasa::Template do
|
|
21
21
|
template = Picasa::Template.new(:new_album, {:summary => "My summary"})
|
22
22
|
assert_match %q{<summary type="text">My summary</summary>}, template.render
|
23
23
|
end
|
24
|
+
|
25
|
+
it "escapes special characters" do
|
26
|
+
template = Picasa::Template.new(:new_album, {:summary => "Marge & Homer"})
|
27
|
+
assert_match %q{<summary type="text">Marge & Homer</summary>}, template.render
|
28
|
+
end
|
24
29
|
end
|
25
30
|
end
|
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.6.
|
4
|
+
version: 0.6.6
|
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-04-
|
11
|
+
date: 2013-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|