picasa 0.5.4 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. data/.gitignore +2 -0
  2. data/.travis.yml +4 -9
  3. data/Gemfile +4 -4
  4. data/README.md +4 -12
  5. data/extra/Thorfile +0 -3
  6. data/lib/picasa.rb +1 -8
  7. data/lib/picasa/api/album.rb +11 -11
  8. data/lib/picasa/api/base.rb +0 -3
  9. data/lib/picasa/api/comment.rb +6 -8
  10. data/lib/picasa/api/photo.rb +9 -9
  11. data/lib/picasa/api/tag.rb +6 -8
  12. data/lib/picasa/client.rb +2 -2
  13. data/lib/picasa/connection.rb +14 -51
  14. data/lib/picasa/exceptions.rb +1 -0
  15. data/lib/picasa/file.rb +8 -0
  16. data/lib/picasa/http.rb +28 -0
  17. data/lib/picasa/presenter/album.rb +15 -15
  18. data/lib/picasa/presenter/album_list.rb +10 -10
  19. data/lib/picasa/presenter/comment.rb +6 -6
  20. data/lib/picasa/presenter/comment_list.rb +10 -10
  21. data/lib/picasa/presenter/media.rb +5 -5
  22. data/lib/picasa/presenter/photo.rb +15 -15
  23. data/lib/picasa/presenter/tag.rb +3 -3
  24. data/lib/picasa/presenter/tag_list.rb +10 -10
  25. data/lib/picasa/utils.rb +11 -13
  26. data/lib/picasa/version.rb +1 -1
  27. data/picasa.gemspec +2 -1
  28. data/test/api/album_test.rb +163 -20
  29. data/test/api/comment_test.rb +95 -10
  30. data/test/api/photo_test.rb +27 -11
  31. data/test/api/tag_test.rb +84 -13
  32. data/test/cassettes/album-404.yml +52 -0
  33. data/test/cassettes/album-create.yml +107 -0
  34. data/test/cassettes/album-destroy.yml +55 -0
  35. data/test/cassettes/album-list.yml +85 -0
  36. data/test/cassettes/album-show.yml +123 -0
  37. data/test/cassettes/auth-failed.yml +50 -0
  38. data/test/cassettes/auth-success.yml +64 -0
  39. data/test/cassettes/comment-400.yml +56 -0
  40. data/test/cassettes/comment-create.yml +88 -0
  41. data/test/cassettes/comment-destroy.yml +53 -0
  42. data/test/cassettes/comment-list.yml +87 -0
  43. data/test/cassettes/photo-412.yml +58 -0
  44. data/test/cassettes/photo-create.yml +1908 -0
  45. data/test/cassettes/photo-destroy.yml +55 -0
  46. data/test/cassettes/tag-create.yml +85 -0
  47. data/test/cassettes/tag-destroy.yml +53 -0
  48. data/test/cassettes/tag-list.yml +79 -0
  49. data/test/client_test.rb +10 -10
  50. data/test/connection_test.rb +0 -35
  51. data/test/helper.rb +21 -7
  52. data/test/utils_test.rb +0 -6
  53. metadata +37 -40
  54. data/test/fixtures/album/album-create.txt +0 -21
  55. data/test/fixtures/album/album-list-with-tag.txt +0 -105
  56. data/test/fixtures/album/album-list.txt +0 -105
  57. data/test/fixtures/album/album-show-with-max-results.txt +0 -131
  58. data/test/fixtures/album/album-show-with-tag-and-many-photos.txt +0 -156
  59. data/test/fixtures/album/album-show-with-tag-and-one-photo.txt +0 -105
  60. data/test/fixtures/album/album-show.txt +0 -169
  61. data/test/fixtures/auth/success.txt +0 -14
  62. data/test/fixtures/comment/comment-list.txt +0 -65
  63. data/test/fixtures/exceptions/forbidden.txt +0 -12
  64. data/test/fixtures/exceptions/not_found.txt +0 -14
  65. data/test/fixtures/exceptions/precondition_failed.txt +0 -14
  66. data/test/fixtures/json.txt +0 -435
  67. data/test/fixtures/photo/photo-created.txt +0 -21
  68. data/test/fixtures/photo/photo-list-all-with-q.txt +0 -556
  69. data/test/fixtures/photo/photo-list-all.txt +0 -623
  70. data/test/fixtures/photo/photo-list-user.txt +0 -388
  71. data/test/fixtures/presenters/album_list.xml +0 -88
  72. data/test/fixtures/presenters/album_show.xml +0 -152
  73. data/test/fixtures/presenters/album_show_with_one_photo.xml +0 -88
  74. data/test/fixtures/presenters/comment_list.xml +0 -48
  75. data/test/fixtures/presenters/tag_list.xml +0 -51
  76. data/test/fixtures/tag/tag-list.txt +0 -68
  77. data/test/presenter/album_list_test.rb +0 -67
  78. data/test/presenter/album_test.rb +0 -189
  79. data/test/presenter/author_test.rb +0 -17
  80. data/test/presenter/base_test.rb +0 -50
  81. data/test/presenter/comment_list_test.rb +0 -67
  82. data/test/presenter/comment_test.rb +0 -56
  83. data/test/presenter/content_test.rb +0 -18
  84. data/test/presenter/link_test.rb +0 -21
  85. data/test/presenter/media_test.rb +0 -29
  86. data/test/presenter/photo_test.rb +0 -90
  87. data/test/presenter/tag_list_test.rb +0 -67
  88. data/test/presenter/tag_test.rb +0 -48
  89. data/test/presenter/thumbnail_test.rb +0 -24
@@ -1,152 +0,0 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
2
- <feed xmlns='http://www.w3.org/2005/Atom' xmlns:exif='http://schemas.google.com/photos/exif/2007' xmlns:gphoto='http://schemas.google.com/photos/2007' xmlns:media='http://search.yahoo.com/mrss/' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;DUICQX0_fSp7ImA9WhdSGEo.&quot;'>
3
- <id>https://picasaweb.google.com/data/feed/user/106136347770555028022/albumid/5243667126168669553</id>
4
- <updated>2011-07-28T18:26:00.345Z</updated>
5
- <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#album'/>
6
- <title>test2</title>
7
- <subtitle/>
8
- <rights>public</rights>
9
- <icon>https://lh6.googleusercontent.com/-u_2FJXbbliU/SMU_eBetTXE/AAAAAAAAAkU/3XThNVnAM-4/s160-c/Test2.jpg</icon>
10
- <link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://picasaweb.google.com/data/feed/api/user/106136347770555028022/albumid/5243667126168669553'/>
11
- <link rel='alternate' type='text/html' href='https://picasaweb.google.com/106136347770555028022/Test2'/>
12
- <link rel='http://schemas.google.com/photos/2007#slideshow' type='application/x-shockwave-flash' href='https://picasaweb.google.com/s/c/bin/slideshow.swf?host=picasaweb.google.com&amp;RGB=0x000000&amp;feed=https%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F106136347770555028022%2Falbumid%2F5243667126168669553%3Falt%3Drss'/>
13
- <link rel='http://schemas.google.com/photos/2007#report' type='text/html' href='https://picasaweb.google.com/lh/reportAbuse?uname=106136347770555028022&amp;aid=5243667126168669553'/>
14
- <link rel='self' type='application/atom+xml' href='https://picasaweb.google.com/data/feed/api/user/106136347770555028022/albumid/5243667126168669553?start-index=1&amp;max-results=1000'/>
15
- <author>
16
- <name>Wojciech Wnętrzak</name>
17
- <uri>https://picasaweb.google.com/106136347770555028022</uri>
18
- </author>
19
- <generator version='1.00' uri='http://picasaweb.google.com/'>Picasaweb</generator>
20
- <openSearch:totalResults>3</openSearch:totalResults>
21
- <openSearch:startIndex>1</openSearch:startIndex>
22
- <openSearch:itemsPerPage>1000</openSearch:itemsPerPage>
23
- <gphoto:id>5243667126168669553</gphoto:id>
24
- <gphoto:name>Test2</gphoto:name>
25
- <gphoto:location/>
26
- <gphoto:access>public</gphoto:access>
27
- <gphoto:timestamp>1220857200000</gphoto:timestamp>
28
- <gphoto:numphotos>3</gphoto:numphotos>
29
- <gphoto:user>106136347770555028022</gphoto:user>
30
- <gphoto:nickname>Wojciech Wnętrzak</gphoto:nickname>
31
- <gphoto:allowPrints>true</gphoto:allowPrints>
32
- <gphoto:allowDownloads>true</gphoto:allowDownloads>
33
- <entry gd:etag='&quot;YD4qeyI.&quot;'>
34
- <id>https://picasaweb.google.com/data/entry/user/106136347770555028022/albumid/5243667126168669553/photoid/5243667226703402962</id>
35
- <published>2008-09-08T15:06:55.000Z</published>
36
- <updated>2009-06-24T15:59:48.639Z</updated>
37
- <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#photo'/>
38
- <title>Kashmir range.jpg</title>
39
- <summary/>
40
- <content type='image/jpeg' src='https://lh4.googleusercontent.com/-O0AOpTAPGBQ/SMU_j4ADl9I/AAAAAAAAAFs/DRnmROPuRVU/Kashmir%252520range.jpg'/>
41
- <link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://picasaweb.google.com/data/feed/api/user/106136347770555028022/albumid/5243667126168669553/photoid/5243667226703402962'/>
42
- <link rel='alternate' type='text/html' href='https://picasaweb.google.com/106136347770555028022/Test2#5243667226703402962'/>
43
- <link rel='http://schemas.google.com/photos/2007#canonical' type='text/html' href='https://picasaweb.google.com/lh/photo/FowxCXojZeLQRA2W3Hq2wtMTjNZETYmyPJy0liipFm0'/>
44
- <link rel='self' type='application/atom+xml' href='https://picasaweb.google.com/data/entry/api/user/106136347770555028022/albumid/5243667126168669553/photoid/5243667226703402962'/>
45
- <link rel='http://schemas.google.com/photos/2007#report' type='text/html' href='https://picasaweb.google.com/lh/reportAbuse?uname=106136347770555028022&amp;aid=5243667126168669553&amp;iid=5243667226703402962'/>
46
- <gphoto:id>5243667226703402962</gphoto:id>
47
- <gphoto:albumid>5243667126168669553</gphoto:albumid>
48
- <gphoto:access>public</gphoto:access>
49
- <gphoto:width>717</gphoto:width>
50
- <gphoto:height>468</gphoto:height>
51
- <gphoto:size>79465</gphoto:size>
52
- <gphoto:checksum/>
53
- <gphoto:timestamp>1220886415000</gphoto:timestamp>
54
- <gphoto:imageVersion>91</gphoto:imageVersion>
55
- <gphoto:commentingEnabled>true</gphoto:commentingEnabled>
56
- <gphoto:commentCount>0</gphoto:commentCount>
57
- <gphoto:license id='0' name='All Rights Reserved' url=''>ALL_RIGHTS_RESERVED</gphoto:license>
58
- <exif:tags>
59
- <exif:imageUniqueID>875bf5220bc6e4d8f57cfa31c48d8406</exif:imageUniqueID>
60
- </exif:tags>
61
- <media:group>
62
- <media:content url='https://lh4.googleusercontent.com/-O0AOpTAPGBQ/SMU_j4ADl9I/AAAAAAAAAFs/DRnmROPuRVU/Kashmir%252520range.jpg' height='468' width='717' type='image/jpeg' medium='image'/>
63
- <media:credit>Wojciech Wnętrzak</media:credit>
64
- <media:description type='plain'/>
65
- <media:keywords/>
66
- <media:thumbnail url='https://lh4.googleusercontent.com/-O0AOpTAPGBQ/SMU_j4ADl9I/AAAAAAAAAFs/DRnmROPuRVU/s72/Kashmir%252520range.jpg' height='47' width='72'/>
67
- <media:thumbnail url='https://lh4.googleusercontent.com/-O0AOpTAPGBQ/SMU_j4ADl9I/AAAAAAAAAFs/DRnmROPuRVU/s144/Kashmir%252520range.jpg' height='94' width='144'/>
68
- <media:thumbnail url='https://lh4.googleusercontent.com/-O0AOpTAPGBQ/SMU_j4ADl9I/AAAAAAAAAFs/DRnmROPuRVU/s288/Kashmir%252520range.jpg' height='188' width='288'/>
69
- <media:title type='plain'>Kashmir range.jpg</media:title>
70
- </media:group>
71
- </entry>
72
- <entry gd:etag='&quot;YD4qeyI.&quot;'>
73
- <id>https://picasaweb.google.com/data/entry/user/106136347770555028022/albumid/5243667126168669553/photoid/5634470191836365426</id>
74
- <published>2011-07-28T18:22:01.000Z</published>
75
- <updated>2011-07-28T18:22:10.358Z</updated>
76
- <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#photo'/>
77
- <title>pączki.jpg</title>
78
- <summary>pączki</summary>
79
- <content type='image/jpeg' src='https://lh6.googleusercontent.com/-CW7znxKv9Vg/TjGoyWnvAnI/AAAAAAAAAkM/Z2YE2j-U98s/p%2525C4%252585czki.jpg'/>
80
- <link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://picasaweb.google.com/data/feed/api/user/106136347770555028022/albumid/5243667126168669553/photoid/5634470191836365426'/>
81
- <link rel='alternate' type='text/html' href='https://picasaweb.google.com/106136347770555028022/Test2#5634470191836365426'/>
82
- <link rel='http://schemas.google.com/photos/2007#canonical' type='text/html' href='https://picasaweb.google.com/lh/photo/8SrPwdA4Qs3CK3wjK24_otMTjNZETYmyPJy0liipFm0'/>
83
- <link rel='self' type='application/atom+xml' href='https://picasaweb.google.com/data/entry/api/user/106136347770555028022/albumid/5243667126168669553/photoid/5634470191836365426'/>
84
- <link rel='http://schemas.google.com/photos/2007#report' type='text/html' href='https://picasaweb.google.com/lh/reportAbuse?uname=106136347770555028022&amp;aid=5243667126168669553&amp;iid=5634470191836365426'/>
85
- <gphoto:id>5634470191836365426</gphoto:id>
86
- <gphoto:albumid>5243667126168669553</gphoto:albumid>
87
- <gphoto:access>public</gphoto:access>
88
- <gphoto:width>1600</gphoto:width>
89
- <gphoto:height>1200</gphoto:height>
90
- <gphoto:size>208223</gphoto:size>
91
- <gphoto:checksum/>
92
- <gphoto:timestamp>1311877321000</gphoto:timestamp>
93
- <gphoto:imageVersion>579</gphoto:imageVersion>
94
- <gphoto:commentingEnabled>true</gphoto:commentingEnabled>
95
- <gphoto:commentCount>0</gphoto:commentCount>
96
- <gphoto:license id='0' name='All Rights Reserved' url=''>ALL_RIGHTS_RESERVED</gphoto:license>
97
- <exif:tags>
98
- <exif:make>Nokia</exif:make>
99
- <exif:model>6300</exif:model>
100
- <exif:imageUniqueID>e9d6f547640f4536518b716ab2ac58f5</exif:imageUniqueID>
101
- </exif:tags>
102
- <media:group>
103
- <media:content url='https://lh6.googleusercontent.com/-CW7znxKv9Vg/TjGoyWnvAnI/AAAAAAAAAkM/Z2YE2j-U98s/p%2525C4%252585czki.jpg' height='1200' width='1600' type='image/jpeg' medium='image'/>
104
- <media:credit>Wojciech Wnętrzak</media:credit>
105
- <media:description type='plain'>pączki</media:description>
106
- <media:keywords/>
107
- <media:thumbnail url='https://lh6.googleusercontent.com/-CW7znxKv9Vg/TjGoyWnvAnI/AAAAAAAAAkM/Z2YE2j-U98s/s72/p%2525C4%252585czki.jpg' height='54' width='72'/>
108
- <media:thumbnail url='https://lh6.googleusercontent.com/-CW7znxKv9Vg/TjGoyWnvAnI/AAAAAAAAAkM/Z2YE2j-U98s/s144/p%2525C4%252585czki.jpg' height='108' width='144'/>
109
- <media:thumbnail url='https://lh6.googleusercontent.com/-CW7znxKv9Vg/TjGoyWnvAnI/AAAAAAAAAkM/Z2YE2j-U98s/s288/p%2525C4%252585czki.jpg' height='216' width='288'/>
110
- <media:title type='plain'>pączki.jpg</media:title>
111
- </media:group>
112
- </entry>
113
- <entry gd:etag='&quot;YD0qeyI.&quot;'>
114
- <id>https://picasaweb.google.com/data/entry/user/106136347770555028022/albumid/5243667126168669553/photoid/5634470303146876834</id>
115
- <published>2011-07-28T18:22:27.000Z</published>
116
- <updated>2011-07-28T18:22:27.080Z</updated>
117
- <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#photo'/>
118
- <title>pink_floyd_ladies.jpg</title>
119
- <summary/>
120
- <content type='image/jpeg' src='https://lh3.googleusercontent.com/-k2SAcZgBGQc/TjGo41SOn6I/AAAAAAAAAkU/bgLxZj7rW0E/pink_floyd_ladies.jpg'/>
121
- <link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://picasaweb.google.com/data/feed/api/user/106136347770555028022/albumid/5243667126168669553/photoid/5634470303146876834'/>
122
- <link rel='alternate' type='text/html' href='https://picasaweb.google.com/106136347770555028022/Test2#5634470303146876834'/>
123
- <link rel='http://schemas.google.com/photos/2007#canonical' type='text/html' href='https://picasaweb.google.com/lh/photo/gipEdejdx4mYdBP57zti6dMTjNZETYmyPJy0liipFm0'/>
124
- <link rel='self' type='application/atom+xml' href='https://picasaweb.google.com/data/entry/api/user/106136347770555028022/albumid/5243667126168669553/photoid/5634470303146876834'/>
125
- <link rel='http://schemas.google.com/photos/2007#report' type='text/html' href='https://picasaweb.google.com/lh/reportAbuse?uname=106136347770555028022&amp;aid=5243667126168669553&amp;iid=5634470303146876834'/>
126
- <gphoto:id>5634470303146876834</gphoto:id>
127
- <gphoto:albumid>5243667126168669553</gphoto:albumid>
128
- <gphoto:access>public</gphoto:access>
129
- <gphoto:width>1024</gphoto:width>
130
- <gphoto:height>768</gphoto:height>
131
- <gphoto:size>140724</gphoto:size>
132
- <gphoto:checksum/>
133
- <gphoto:timestamp>1311877347000</gphoto:timestamp>
134
- <gphoto:imageVersion>581</gphoto:imageVersion>
135
- <gphoto:commentingEnabled>true</gphoto:commentingEnabled>
136
- <gphoto:commentCount>0</gphoto:commentCount>
137
- <gphoto:license id='0' name='All Rights Reserved' url=''>ALL_RIGHTS_RESERVED</gphoto:license>
138
- <exif:tags>
139
- <exif:imageUniqueID>26875afdfa1eb82ab62d6ef7ccea95ab</exif:imageUniqueID>
140
- </exif:tags>
141
- <media:group>
142
- <media:content url='https://lh3.googleusercontent.com/-k2SAcZgBGQc/TjGo41SOn6I/AAAAAAAAAkU/bgLxZj7rW0E/pink_floyd_ladies.jpg' height='768' width='1024' type='image/jpeg' medium='image'/>
143
- <media:credit>Wojciech Wnętrzak</media:credit>
144
- <media:description type='plain'/>
145
- <media:keywords/>
146
- <media:thumbnail url='https://lh3.googleusercontent.com/-k2SAcZgBGQc/TjGo41SOn6I/AAAAAAAAAkU/bgLxZj7rW0E/s72/pink_floyd_ladies.jpg' height='54' width='72'/>
147
- <media:thumbnail url='https://lh3.googleusercontent.com/-k2SAcZgBGQc/TjGo41SOn6I/AAAAAAAAAkU/bgLxZj7rW0E/s144/pink_floyd_ladies.jpg' height='108' width='144'/>
148
- <media:thumbnail url='https://lh3.googleusercontent.com/-k2SAcZgBGQc/TjGo41SOn6I/AAAAAAAAAkU/bgLxZj7rW0E/s288/pink_floyd_ladies.jpg' height='216' width='288'/>
149
- <media:title type='plain'>pink_floyd_ladies.jpg</media:title>
150
- </media:group>
151
- </entry>
152
- </feed>
@@ -1,88 +0,0 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
2
- <feed xmlns='http://www.w3.org/2005/Atom' xmlns:exif='http://schemas.google.com/photos/exif/2007' xmlns:gphoto='http://schemas.google.com/photos/2007' xmlns:media='http://search.yahoo.com/mrss/' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;CEMBQnk7fyp7ImA9WhRQEUw.&quot;'>
3
- <id>https://picasaweb.google.com/data/feed/user/106136347770555028022/albumid/5243667126168669553</id>
4
- <updated>2011-12-05T19:14:13.707Z</updated>
5
- <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#album'/>
6
- <title>test2</title>
7
- <subtitle/>
8
- <rights>public</rights>
9
- <icon>https://lh6.googleusercontent.com/-u_2FJXbbliU/SMU_eBetTXE/AAAAAAAAAkU/3XThNVnAM-4/s160-c/Test2.jpg</icon>
10
- <link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://picasaweb.google.com/data/feed/api/user/106136347770555028022/albumid/5243667126168669553'/>
11
- <link rel='alternate' type='text/html' href='https://picasaweb.google.com/106136347770555028022/Test2'/>
12
- <link rel='http://schemas.google.com/photos/2007#slideshow' type='application/x-shockwave-flash' href='https://picasaweb.google.com/s/c/bin/slideshow.swf?host=picasaweb.google.com&amp;RGB=0x000000&amp;feed=https%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F106136347770555028022%2Falbumid%2F5243667126168669553%3Falt%3Drss'/>
13
- <link rel='http://schemas.google.com/photos/2007#report' type='text/html' href='https://picasaweb.google.com/lh/reportAbuse?uname=106136347770555028022&amp;aid=5243667126168669553'/>
14
- <link rel='self' type='application/atom+xml' href='https://picasaweb.google.com/data/feed/api/user/106136347770555028022/albumid/5243667126168669553?start-index=1&amp;max-results=1000&amp;tag=ziemniaki'/>
15
- <author>
16
- <name>Wojciech Wnętrzak</name>
17
- <uri>https://picasaweb.google.com/106136347770555028022</uri>
18
- </author>
19
- <generator version='1.00' uri='http://picasaweb.google.com/'>Picasaweb</generator>
20
- <openSearch:totalResults>1</openSearch:totalResults>
21
- <openSearch:startIndex>1</openSearch:startIndex>
22
- <openSearch:itemsPerPage>1000</openSearch:itemsPerPage>
23
- <gphoto:id>5243667126168669553</gphoto:id>
24
- <gphoto:name>Test2</gphoto:name>
25
- <gphoto:location/>
26
- <gphoto:access>public</gphoto:access>
27
- <gphoto:timestamp>1220857200000</gphoto:timestamp>
28
- <gphoto:numphotos>3</gphoto:numphotos>
29
- <gphoto:user>106136347770555028022</gphoto:user>
30
- <gphoto:nickname>Wojciech Wnętrzak</gphoto:nickname>
31
- <gphoto:allowPrints>true</gphoto:allowPrints>
32
- <gphoto:allowDownloads>true</gphoto:allowDownloads>
33
- <entry gd:etag='&quot;YD8qeyI.&quot;'>
34
- <id>https://picasaweb.google.com/data/entry/user/106136347770555028022/albumid/5243667126168669553/photoid/5634470191836365426</id>
35
- <published>2011-07-28T18:22:01.000Z</published>
36
- <updated>2011-12-05T19:14:13.707Z</updated>
37
- <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#photo'/>
38
- <title>pączki.jpg</title>
39
- <summary>pączki</summary>
40
- <content type='image/jpeg' src='https://lh6.googleusercontent.com/-CW7znxKv9Vg/TjGoyWnvAnI/AAAAAAAAAkM/Z2YE2j-U98s/p%2525C4%252585czki.jpg'/>
41
- <link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://picasaweb.google.com/data/feed/api/user/106136347770555028022/albumid/5243667126168669553/photoid/5634470191836365426'/>
42
- <link rel='alternate' type='text/html' href='https://picasaweb.google.com/106136347770555028022/Test2#5634470191836365426'/>
43
- <link rel='http://schemas.google.com/photos/2007#canonical' type='text/html' href='https://picasaweb.google.com/lh/photo/8SrPwdA4Qs3CK3wjK24_otMTjNZETYmyPJy0liipFm0'/>
44
- <link rel='self' type='application/atom+xml' href='https://picasaweb.google.com/data/entry/api/user/106136347770555028022/albumid/5243667126168669553/photoid/5634470191836365426'/>
45
- <link rel='http://schemas.google.com/photos/2007#report' type='text/html' href='https://picasaweb.google.com/lh/reportAbuse?uname=106136347770555028022&amp;aid=5243667126168669553&amp;iid=5634470191836365426'/>
46
- <author type='owner'>
47
- <name>Wojciech Wnętrzak</name>
48
- <uri>https://picasaweb.google.com/106136347770555028022</uri>
49
- <email>106136347770555028022</email>
50
- <gphoto:nickname>Wojciech Wnętrzak</gphoto:nickname>
51
- <gphoto:thumbnail>https://lh3.googleusercontent.com/-6ezHc54U8x0/AAAAAAAAAAI/AAAAAAAAAAA/PBuxm7Ehn6E/s32-c/106136347770555028022.jpg</gphoto:thumbnail>
52
- <gphoto:user>106136347770555028022</gphoto:user>
53
- </author>
54
- <gphoto:id>5634470191836365426</gphoto:id>
55
- <gphoto:albumid>5243667126168669553</gphoto:albumid>
56
- <gphoto:access>public</gphoto:access>
57
- <gphoto:width>1600</gphoto:width>
58
- <gphoto:height>1200</gphoto:height>
59
- <gphoto:size>208223</gphoto:size>
60
- <gphoto:timestamp>1311877321000</gphoto:timestamp>
61
- <gphoto:imageVersion>579</gphoto:imageVersion>
62
- <gphoto:commentingEnabled>true</gphoto:commentingEnabled>
63
- <gphoto:commentCount>0</gphoto:commentCount>
64
- <gphoto:license id='0' name='All Rights Reserved' url=''>ALL_RIGHTS_RESERVED</gphoto:license>
65
- <exif:tags>
66
- <exif:make>Nokia</exif:make>
67
- <exif:model>6300</exif:model>
68
- <exif:time>1311877321000</exif:time>
69
- <exif:imageUniqueID>e9d6f547640f4536518b716ab2ac58f5</exif:imageUniqueID>
70
- </exif:tags>
71
- <media:group>
72
- <media:content url='https://lh6.googleusercontent.com/-CW7znxKv9Vg/TjGoyWnvAnI/AAAAAAAAAkM/Z2YE2j-U98s/p%2525C4%252585czki.jpg' height='1200' width='1600' type='image/jpeg' medium='image'/>
73
- <media:credit>Wojciech Wnętrzak</media:credit>
74
- <media:description type='plain'>pączki</media:description>
75
- <media:keywords>ziemniaki</media:keywords>
76
- <media:thumbnail url='https://lh6.googleusercontent.com/-CW7znxKv9Vg/TjGoyWnvAnI/AAAAAAAAAkM/Z2YE2j-U98s/s72/p%2525C4%252585czki.jpg' height='54' width='72'/>
77
- <media:thumbnail url='https://lh6.googleusercontent.com/-CW7znxKv9Vg/TjGoyWnvAnI/AAAAAAAAAkM/Z2YE2j-U98s/s144/p%2525C4%252585czki.jpg' height='108' width='144'/>
78
- <media:thumbnail url='https://lh6.googleusercontent.com/-CW7znxKv9Vg/TjGoyWnvAnI/AAAAAAAAAkM/Z2YE2j-U98s/s288/p%2525C4%252585czki.jpg' height='216' width='288'/>
79
- <media:title type='plain'>pączki.jpg</media:title>
80
- </media:group>
81
- <gphoto:albumtitle>test2</gphoto:albumtitle>
82
- <gphoto:albumdesc/>
83
- <gphoto:location/>
84
- <gphoto:snippet/>
85
- <gphoto:snippettype>PHOTO_DESCRIPTION</gphoto:snippettype>
86
- <gphoto:truncated>0</gphoto:truncated>
87
- </entry>
88
- </feed>
@@ -1,48 +0,0 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
2
- <feed xmlns='http://www.w3.org/2005/Atom' xmlns:app='http://www.w3.org/2007/app' xmlns:gphoto='http://schemas.google.com/photos/2007' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;D0ADRncyeip7ImA9WhJbGUQ.&quot;'>
3
- <id>https://picasaweb.google.com/data/feed/user/106136347770555028022</id>
4
- <updated>2012-09-30T09:02:57.992Z</updated>
5
- <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#user'/>
6
- <title>106136347770555028022</title>
7
- <subtitle/>
8
- <icon>https://lh3.googleusercontent.com/-6ezHc54U8x0/AAAAAAAAAAI/AAAAAAAAAAA/PBuxm7Ehn6E/s64-c/106136347770555028022.jpg</icon>
9
- <link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://picasaweb.google.com/data/feed/api/user/106136347770555028022'/>
10
- <link rel='alternate' type='text/html' href='https://picasaweb.google.com/106136347770555028022'/>
11
- <link rel='http://schemas.google.com/photos/2007#slideshow' type='application/x-shockwave-flash' href='https://picasaweb.google.com/s/c/bin/slideshow.swf?host=picasaweb.google.com&amp;RGB=0x000000&amp;feed=https%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F106136347770555028022%3Falt%3Drss'/>
12
- <link rel='self' type='application/atom+xml' href='https://picasaweb.google.com/data/feed/api/user/106136347770555028022?start-index=1&amp;max-results=100&amp;kind=comment'/>
13
- <author>
14
- <name>Wojciech Wnętrzak</name>
15
- <uri>https://picasaweb.google.com/106136347770555028022</uri>
16
- </author>
17
- <generator version='1.00' uri='http://picasaweb.google.com/'>Picasaweb</generator>
18
- <openSearch:totalResults>1</openSearch:totalResults>
19
- <openSearch:startIndex>1</openSearch:startIndex>
20
- <openSearch:itemsPerPage>100</openSearch:itemsPerPage>
21
- <gphoto:user>106136347770555028022</gphoto:user>
22
- <gphoto:nickname>Wojciech Wnętrzak</gphoto:nickname>
23
- <gphoto:thumbnail>https://lh3.googleusercontent.com/-6ezHc54U8x0/AAAAAAAAAAI/AAAAAAAAAAA/PBuxm7Ehn6E/s64-c/106136347770555028022.jpg</gphoto:thumbnail>
24
- <gphoto:quotalimit>1073741824</gphoto:quotalimit>
25
- <gphoto:quotacurrent>758213</gphoto:quotacurrent>
26
- <gphoto:maxPhotosPerAlbum>1000</gphoto:maxPhotosPerAlbum>
27
- <entry gd:etag='W/&quot;D0ADRn04fCp7ImA9WhJbGUQ.&quot;'>
28
- <id>https://picasaweb.google.com/data/entry/user/106136347770555028022/albumid/5793892606777564353/photoid/5793892628357238194/commentid/z13stn0rtrvkvpnbm04cgjbgjkmwyr5ot4g-1348995777334000</id>
29
- <published>2012-09-30T09:02:57.334Z</published>
30
- <updated>2012-09-30T09:02:57.334Z</updated>
31
- <app:edited>2012-09-30T09:02:57.334Z</app:edited>
32
- <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#comment'/>
33
- <title>Wojciech Wnętrzak</title>
34
- <content type='html'>testing comment</content>
35
- <link rel='alternate' type='text/html' href='https://picasaweb.google.com/lh/photo/sPdyu2Pl7tE-Je04UbLSuiUdvMQllM3aC4Soztgbiog'/>
36
- <link rel='self' type='application/atom+xml' href='https://picasaweb.google.com/data/entry/api/user/106136347770555028022/albumid/5793892606777564353/photoid/5793892628357238194/commentid/z13stn0rtrvkvpnbm04cgjbgjkmwyr5ot4g-1348995777334000?authkey=Gv1sRgCNmigd3KrbOHLA'/>
37
- <link rel='edit' type='application/atom+xml' href='https://picasaweb.google.com/data/entry/api/user/106136347770555028022/albumid/5793892606777564353/photoid/5793892628357238194/commentid/z13stn0rtrvkvpnbm04cgjbgjkmwyr5ot4g-1348995777334000?authkey=Gv1sRgCNmigd3KrbOHLA'/>
38
- <author>
39
- <name>Wojciech Wnętrzak</name>
40
- <uri>https://picasaweb.google.com/106136347770555028022</uri>
41
- <gphoto:nickname>Wojciech Wnętrzak</gphoto:nickname>
42
- <gphoto:thumbnail>https://lh3.googleusercontent.com/-6ezHc54U8x0/AAAAAAAAAAI/AAAAAAAAAAA/PBuxm7Ehn6E/s48-c/106136347770555028022.jpg</gphoto:thumbnail>
43
- <gphoto:user>106136347770555028022</gphoto:user>
44
- </author>
45
- <gphoto:id>z13stn0rtrvkvpnbm04cgjbgjkmwyr5ot4g-1348995777334000</gphoto:id>
46
- <gphoto:photoid>5793892628357238194</gphoto:photoid>
47
- </entry>
48
- </feed>
@@ -1,51 +0,0 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
2
- <feed xmlns='http://www.w3.org/2005/Atom' xmlns:gphoto='http://schemas.google.com/photos/2007' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;CE8GRXczfip7ImA9WhJWEUQ.&quot;'>
3
- <id>https://picasaweb.google.com/data/feed/user/106136347770555028022</id>
4
- <updated>2012-08-17T08:40:24.986Z</updated>
5
- <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#user'/>
6
- <title>106136347770555028022</title>
7
- <subtitle/>
8
- <icon>https://lh3.googleusercontent.com/-6ezHc54U8x0/AAAAAAAAAAI/AAAAAAAAAAA/PBuxm7Ehn6E/s64-c/106136347770555028022.jpg</icon>
9
- <link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://picasaweb.google.com/data/feed/api/user/106136347770555028022'/>
10
- <link rel='alternate' type='text/html' href='https://picasaweb.google.com/106136347770555028022'/>
11
- <link rel='http://schemas.google.com/photos/2007#slideshow' type='application/x-shockwave-flash' href='https://picasaweb.google.com/s/c/bin/slideshow.swf?host=picasaweb.google.com&amp;RGB=0x000000&amp;feed=https%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F106136347770555028022%3Falt%3Drss'/>
12
- <link rel='self' type='application/atom+xml' href='https://picasaweb.google.com/data/feed/api/user/106136347770555028022?start-index=1&amp;max-results=500&amp;kind=tag'/>
13
- <author>
14
- <name>Wojciech Wnętrzak</name>
15
- <uri>https://picasaweb.google.com/106136347770555028022</uri>
16
- </author>
17
- <generator version='1.00' uri='http://picasaweb.google.com/'>Picasaweb</generator>
18
- <openSearch:totalResults>2</openSearch:totalResults>
19
- <openSearch:startIndex>1</openSearch:startIndex>
20
- <openSearch:itemsPerPage>500</openSearch:itemsPerPage>
21
- <gphoto:user>106136347770555028022</gphoto:user>
22
- <gphoto:nickname>Wojciech Wnętrzak</gphoto:nickname>
23
- <gphoto:thumbnail>https://lh3.googleusercontent.com/-6ezHc54U8x0/AAAAAAAAAAI/AAAAAAAAAAA/PBuxm7Ehn6E/s64-c/106136347770555028022.jpg</gphoto:thumbnail>
24
- <entry gd:etag='W/&quot;CE8GRXczfip7ImA9WhJWEUQ.&quot;'>
25
- <id>https://picasaweb.google.com/data/entry/user/106136347770555028022/tag/nice</id>
26
- <updated>2012-08-17T08:40:24.986Z</updated>
27
- <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#tag'/>
28
- <title>nice</title>
29
- <summary>nice</summary>
30
- <link rel='alternate' type='text/html' href='https://picasaweb.google.com/lh/searchbrowse?q=nice&amp;psc=G&amp;uname=106136347770555028022&amp;filter=0'/>
31
- <link rel='self' type='application/atom+xml' href='https://picasaweb.google.com/data/entry/api/user/106136347770555028022/tag/nice'/>
32
- <author>
33
- <name>Wojciech Wnętrzak</name>
34
- <uri>https://picasaweb.google.com/106136347770555028022</uri>
35
- </author>
36
- <gphoto:weight>2</gphoto:weight>
37
- </entry>
38
- <entry gd:etag='W/&quot;CE8GRXczfip7ImA9WhJWEUQ.&quot;'>
39
- <id>https://picasaweb.google.com/data/entry/user/106136347770555028022/tag/ziemniaki</id>
40
- <updated>2012-08-17T08:40:24.986Z</updated>
41
- <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#tag'/>
42
- <title>ziemniaki</title>
43
- <summary>ziemniaki</summary>
44
- <link rel='alternate' type='text/html' href='https://picasaweb.google.com/lh/searchbrowse?q=ziemniaki&amp;psc=G&amp;uname=106136347770555028022&amp;filter=0'/>
45
- <link rel='self' type='application/atom+xml' href='https://picasaweb.google.com/data/entry/api/user/106136347770555028022/tag/ziemniaki'/>
46
- <author>
47
- <name>Wojciech Wnętrzak</name>
48
- <uri>https://picasaweb.google.com/106136347770555028022</uri>
49
- </author>
50
- </entry>
51
- </feed>
@@ -1,68 +0,0 @@
1
- HTTP/1.1 200 OK
2
- Expires: Fri, 24 Aug 2012 16:49:12 GMT
3
- Date: Fri, 24 Aug 2012 16:49:12 GMT
4
- Cache-Control: private, max-age=0, must-revalidate, no-transform
5
- Set-Cookie: _rtok=K94BmWQbwPpS; Path=/; Secure; HttpOnly
6
- Set-Cookie: S=photos_html=HoT1z5c0-FHu3mvDkW-BiA; Domain=.google.com; Path=/; Secure; HttpOnly
7
- Content-Type: application/atom+xml; charset=UTF-8; type=feed
8
- Vary: Accept, X-GData-Authorization, GData-Version, Cookie
9
- GData-Version: 2.0
10
- ETag: W/"CE8GRXczfip7ImA9WhJWEUQ."
11
- Last-Modified: Fri, 17 Aug 2012 08:40:24 GMT
12
- X-Content-Type-Options: nosniff
13
- X-Frame-Options: SAMEORIGIN
14
- X-XSS-Protection: 1; mode=block
15
- Server: GSE
16
- Transfer-Encoding: chunked
17
-
18
- <?xml version='1.0' encoding='UTF-8'?>
19
- <feed xmlns='http://www.w3.org/2005/Atom' xmlns:gphoto='http://schemas.google.com/photos/2007' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;CE8GRXczfip7ImA9WhJWEUQ.&quot;'>
20
- <id>https://picasaweb.google.com/data/feed/user/106136347770555028022</id>
21
- <updated>2012-08-17T08:40:24.986Z</updated>
22
- <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#user'/>
23
- <title>106136347770555028022</title>
24
- <subtitle/>
25
- <icon>https://lh3.googleusercontent.com/-6ezHc54U8x0/AAAAAAAAAAI/AAAAAAAAAAA/PBuxm7Ehn6E/s64-c/106136347770555028022.jpg</icon>
26
- <link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://picasaweb.google.com/data/feed/api/user/106136347770555028022'/>
27
- <link rel='alternate' type='text/html' href='https://picasaweb.google.com/106136347770555028022'/>
28
- <link rel='http://schemas.google.com/photos/2007#slideshow' type='application/x-shockwave-flash' href='https://picasaweb.google.com/s/c/bin/slideshow.swf?host=picasaweb.google.com&amp;RGB=0x000000&amp;feed=https%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F106136347770555028022%3Falt%3Drss'/>
29
- <link rel='self' type='application/atom+xml' href='https://picasaweb.google.com/data/feed/api/user/106136347770555028022?start-index=1&amp;max-results=500&amp;kind=tag'/>
30
- <author>
31
- <name>Wojciech Wnętrzak</name>
32
- <uri>https://picasaweb.google.com/106136347770555028022</uri>
33
- </author>
34
- <generator version='1.00' uri='http://picasaweb.google.com/'>Picasaweb</generator>
35
- <openSearch:totalResults>2</openSearch:totalResults>
36
- <openSearch:startIndex>1</openSearch:startIndex>
37
- <openSearch:itemsPerPage>500</openSearch:itemsPerPage>
38
- <gphoto:user>106136347770555028022</gphoto:user>
39
- <gphoto:nickname>Wojciech Wnętrzak</gphoto:nickname>
40
- <gphoto:thumbnail>https://lh3.googleusercontent.com/-6ezHc54U8x0/AAAAAAAAAAI/AAAAAAAAAAA/PBuxm7Ehn6E/s64-c/106136347770555028022.jpg</gphoto:thumbnail>
41
- <entry gd:etag='W/&quot;CE8GRXczfip7ImA9WhJWEUQ.&quot;'>
42
- <id>https://picasaweb.google.com/data/entry/user/106136347770555028022/tag/nice</id>
43
- <updated>2012-08-17T08:40:24.986Z</updated>
44
- <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#tag'/>
45
- <title>nice</title>
46
- <summary>nice</summary>
47
- <link rel='alternate' type='text/html' href='https://picasaweb.google.com/lh/searchbrowse?q=nice&amp;psc=G&amp;uname=106136347770555028022&amp;filter=0'/>
48
- <link rel='self' type='application/atom+xml' href='https://picasaweb.google.com/data/entry/api/user/106136347770555028022/tag/nice'/>
49
- <author>
50
- <name>Wojciech Wnętrzak</name>
51
- <uri>https://picasaweb.google.com/106136347770555028022</uri>
52
- </author>
53
- <gphoto:weight>2</gphoto:weight>
54
- </entry>
55
- <entry gd:etag='W/&quot;CE8GRXczfip7ImA9WhJWEUQ.&quot;'>
56
- <id>https://picasaweb.google.com/data/entry/user/106136347770555028022/tag/ziemniaki</id>
57
- <updated>2012-08-17T08:40:24.986Z</updated>
58
- <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#tag'/>
59
- <title>ziemniaki</title>
60
- <summary>ziemniaki</summary>
61
- <link rel='alternate' type='text/html' href='https://picasaweb.google.com/lh/searchbrowse?q=ziemniaki&amp;psc=G&amp;uname=106136347770555028022&amp;filter=0'/>
62
- <link rel='self' type='application/atom+xml' href='https://picasaweb.google.com/data/entry/api/user/106136347770555028022/tag/ziemniaki'/>
63
- <author>
64
- <name>Wojciech Wnętrzak</name>
65
- <uri>https://picasaweb.google.com/106136347770555028022</uri>
66
- </author>
67
- </entry>
68
- </feed>
@@ -1,67 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- require "helper"
3
-
4
- describe Picasa::Presenter::AlbumList do
5
- before do
6
- body = MultiXml.parse(fixture("presenters/album_list.xml"))
7
- @album_list = Picasa::Presenter::AlbumList.new(body["feed"])
8
- end
9
-
10
- it "has author name" do
11
- assert_equal "Wojciech Wnętrzak", @album_list.author.name
12
- end
13
-
14
- it "has author uri" do
15
- assert_equal "https://picasaweb.google.com/106136347770555028022", @album_list.author.uri
16
- end
17
-
18
- it "has links" do
19
- assert_equal 4, @album_list.links.size
20
- end
21
-
22
- it "has title" do
23
- assert_equal "106136347770555028022", @album_list.title
24
- end
25
-
26
- it "has updated" do
27
- assert_equal "2011-11-19T07:47:33+00:00", @album_list.updated.to_s
28
- end
29
-
30
- it "has icon" do
31
- expected = "https://lh3.googleusercontent.com/-6ezHc54U8x0/AAAAAAAAAAI/AAAAAAAAAAA/PBuxm7Ehn6E/s64-c/106136347770555028022.jpg"
32
- assert_equal expected, @album_list.icon
33
- end
34
-
35
- it "has generator" do
36
- assert_equal "Picasaweb", @album_list.generator
37
- end
38
-
39
- it "has total_results" do
40
- assert_equal 2, @album_list.total_results
41
- end
42
-
43
- it "has start_index" do
44
- assert_equal 1, @album_list.start_index
45
- end
46
-
47
- it "has items_per_page" do
48
- assert_equal 1000, @album_list.items_per_page
49
- end
50
-
51
- it "has user" do
52
- assert_equal "106136347770555028022", @album_list.user
53
- end
54
-
55
- it "has nickname" do
56
- assert_equal "Wojciech Wnętrzak", @album_list.nickname
57
- end
58
-
59
- it "has thumbnail" do
60
- expected = "https://lh3.googleusercontent.com/-6ezHc54U8x0/AAAAAAAAAAI/AAAAAAAAAAA/PBuxm7Ehn6E/s64-c/106136347770555028022.jpg"
61
- assert_equal expected, @album_list.thumbnail
62
- end
63
-
64
- it "has entries" do
65
- assert_equal 2, @album_list.entries.size
66
- end
67
- end