neves-ruby_picasa 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,99 @@
1
+ <?xml version='1.0' encoding='utf-8'?>
2
+ <feed xmlns='http://www.w3.org/2005/atom'
3
+ xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'
4
+ xmlns:exif='http://schemas.google.com/photos/exif/2007'
5
+ xmlns:geo='http://www.w3.org/2003/01/geo/wgs84_pos#'
6
+ xmlns:gml='http://www.opengis.net/gml'
7
+ xmlns:georss='http://www.georss.org/georss'
8
+ xmlns:photo='http://www.pheed.com/pheed/'
9
+ xmlns:media='http://search.yahoo.com/mrss/'
10
+ xmlns:gphoto='http://schemas.google.com/photos/2007'>
11
+ <id>http://picasaweb.google.com/data/feed/api/all</id>
12
+ <title type='text'>Search Results</title>
13
+ <link rel='http://schemas.google.com/g/2005#feed'
14
+ type='application/atom+xml'
15
+ href='http://picasaweb.google.com/data/feed/api/all' />
16
+ <link rel='self' type='application/atom+xml'
17
+ href='http://picasaweb.google.com/data/feed/api/all?q=puppy&amp;start-index=2&amp;max-results=1' />
18
+ <link rel='previous' type='application/atom+xml'
19
+ href='http://picasaweb.google.com/data/feed/api/all?q=puppy&amp;start-index=1&amp;max-results=1' />
20
+ <link rel='next' type='application/atom+xml'
21
+ href='http://picasaweb.google.com/data/feed/api/all?q=puppy&amp;start-index=3&amp;max-results=1' />
22
+ <generator version='1.00' uri='http://picasaweb.google.com/'>
23
+ Picasaweb</generator>
24
+ <openSearch:totalResults>625082</openSearch:totalResults>
25
+ <openSearch:startIndex>1</openSearch:startIndex>
26
+ <openSearch:itemsPerPage>1</openSearch:itemsPerPage>
27
+ <gphoto:crowded_length>10</gphoto:crowded_length>
28
+ <entry>
29
+ <id>
30
+ http://picasaweb.google.com/data/entry/api/user/captaincool/albumid/5149978741790672209/photoid/5150621887373445842</id>
31
+ <published>2008-01-01T21:23:28.000Z</published>
32
+ <category scheme='http://schemas.google.com/g/2005#kind'
33
+ term='http://schemas.google.com/photos/2007#photo' />
34
+ <title type='text'>Nash2.jpg</title>
35
+ <summary type='text'></summary>
36
+ <content type='image/jpeg'
37
+ src='http://lh3.ggpht.com/captaincool/R3qvUUE_CtI/AAAAAAAAAUI/6OfFN8oPdVs/Nash2.jpg' />
38
+ <link rel='http://schemas.google.com/g/2005#feed'
39
+ type='application/atom+xml'
40
+ href='http://picasaweb.google.com/data/feed/api/user/captaincool/albumid/5149978741790672209/photoid/5150621887373445842' />
41
+ <link rel='alternate' type='text/html'
42
+ href='http://picasaweb.google.com/lh/photo/rWtmnLrEZ2RRHvtL6dFKKw' />
43
+ <link rel='self' type='application/atom+xml'
44
+ href='http://picasaweb.google.com/data/entry/api/user/captaincool/albumid/5149978741790672209/photoid/5150621887373445842' />
45
+ <link rel='http://schemas.google.com/photos/2007#report'
46
+ type='text/html'
47
+ href='http://picasaweb.google.com/lh/reportAbuse?uname=captaincool&amp;aid=5149978741790672209&amp;iid=5150621887373445842' />
48
+ <author>
49
+ <name>Chuck G</name>
50
+ <uri>http://picasaweb.google.com/captaincool</uri>
51
+ <email>captaincool</email>
52
+ <gphoto:user>captaincool</gphoto:user>
53
+ <gphoto:nickname>Chuck G</gphoto:nickname>
54
+ <gphoto:thumbnail>
55
+ http://lh4.ggpht.com/captaincool/AAAAUbIDjgE/AAAAAAAAAAA/U8PdSmOpLUY/s48-c/captaincool.jpg</gphoto:thumbnail>
56
+ </author>
57
+ <gphoto:albumtitle>Monctondog.com Blog</gphoto:albumtitle>
58
+ <gphoto:albumctitle>MonctondogComBlog</gphoto:albumctitle>
59
+ <gphoto:albumdesc>Pictures of Dogs from the Monctondog.com
60
+ Blog</gphoto:albumdesc>
61
+ <gphoto:location>Moncton NB</gphoto:location>
62
+ <gphoto:access>public</gphoto:access>
63
+ <gphoto:id>5150621887373445842</gphoto:id>
64
+ <gphoto:albumid>5149978741790672209</gphoto:albumid>
65
+ <gphoto:width>1024</gphoto:width>
66
+ <gphoto:height>768</gphoto:height>
67
+ <gphoto:timestamp>1196770081000</gphoto:timestamp>
68
+ <exif:tags>
69
+ <exif:fstop>2.8</exif:fstop>
70
+ <exif:make>SONY</exif:make>
71
+ <exif:model>DSC-W1</exif:model>
72
+ <exif:exposure>0.025</exif:exposure>
73
+ <exif:flash>true</exif:flash>
74
+ <exif:focallength>7.9</exif:focallength>
75
+ <exif:iso>100</exif:iso>
76
+ <exif:time>1196770081000</exif:time>
77
+ </exif:tags>
78
+ <media:group>
79
+ <media:title type='plain'>Nash2.jpg</media:title>
80
+ <media:description type='plain'></media:description>
81
+ <media:keywords>doindogs, doindogs nash, lab, labrador,
82
+ labrador retriever, nash, puppies, puppy,
83
+ retriever</media:keywords>
84
+ <media:content url='http://lh3.ggpht.com/captaincool/R3qvUUE_CtI/AAAAAAAAAUI/6OfFN8oPdVs/Nash2.jpg'
85
+ height='768' width='1024' type='image/jpeg' medium='image' />
86
+ <media:thumbnail url='http://lh3.ggpht.com/captaincool/R3qvUUE_CtI/AAAAAAAAAUI/6OfFN8oPdVs/s72/Nash2.jpg'
87
+ height='54' width='72' />
88
+ <media:thumbnail url='http://lh3.ggpht.com/captaincool/R3qvUUE_CtI/AAAAAAAAAUI/6OfFN8oPdVs/s144/Nash2.jpg'
89
+ height='108' width='144' />
90
+ <media:thumbnail url='http://lh3.ggpht.com/captaincool/R3qvUUE_CtI/AAAAAAAAAUI/6OfFN8oPdVs/s288/Nash2.jpg'
91
+ height='216' width='288' />
92
+ <media:credit>Chuck G</media:credit>
93
+ </media:group>
94
+ <gphoto:snippet>... nash, <b>puppies</b>
95
+ ...</gphoto:snippet>
96
+ <gphoto:snippettype>PHOTO_TAGS</gphoto:snippettype>
97
+ <gphoto:truncated>0</gphoto:truncated>
98
+ </entry>
99
+ </feed>
@@ -0,0 +1,107 @@
1
+ <?xml version='1.0' encoding='utf-8'?>
2
+ <feed xmlns='http://www.w3.org/2005/atom'
3
+ xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'
4
+ xmlns:exif='http://schemas.google.com/photos/exif/2007'
5
+ xmlns:geo='http://www.w3.org/2003/01/geo/wgs84_pos#'
6
+ xmlns:gml='http://www.opengis.net/gml'
7
+ xmlns:georss='http://www.georss.org/georss'
8
+ xmlns:photo='http://www.pheed.com/pheed/'
9
+ xmlns:media='http://search.yahoo.com/mrss/'
10
+ xmlns:batch='http://schemas.google.com/gdata/batch'
11
+ xmlns:gphoto='http://schemas.google.com/photos/2007'>
12
+ <id>http://picasaweb.google.com/data/feed/api/user/default</id>
13
+ <updated>2008-08-15T19:20:21.903Z</updated>
14
+ <category scheme='http://schemas.google.com/g/2005#kind'
15
+ term='http://schemas.google.com/photos/2007#user' />
16
+ <title type='text'>liz</title>
17
+ <subtitle type='text'></subtitle>
18
+ <icon>
19
+ http://lh3.ggpht.com/liz/AAAA2X2Bow4/AAAAAAAAAAA/N9xSZ7RoJY4/s64-c/liz.jpg</icon>
20
+ <link rel='http://schemas.google.com/g/2005#feed'
21
+ type='application/atom+xml'
22
+ href='http://picasaweb.google.com/data/feed/api/user/liz' />
23
+ <link rel='http://schemas.google.com/g/2005#post'
24
+ type='application/atom+xml'
25
+ href='http://picasaweb.google.com/data/feed/api/user/liz' />
26
+ <link rel='alternate' type='text/html'
27
+ href='http://picasaweb.google.com/liz' />
28
+ <link rel='http://schemas.google.com/photos/2007#slideshow'
29
+ type='application/x-shockwave-flash'
30
+ href='http://picasaweb.google.com/s/c/bin/slideshow.swf?host=picasaweb.google.com&amp;RGB=0x000000&amp;feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2Fliz%3Falt%3Drss' />
31
+ <link rel='self' type='application/atom+xml'
32
+ href='http://picasaweb.google.com/data/feed/api/user/liz?start-index=1&amp;max-results=1000' />
33
+ <author>
34
+ <name>Liz</name>
35
+ <uri>http://picasaweb.google.com/liz</uri>
36
+ </author>
37
+ <generator version='1.00' uri='http://picasaweb.google.com/'>
38
+ Picasaweb</generator>
39
+ <openSearch:totalResults>1</openSearch:totalResults>
40
+ <openSearch:startIndex>1</openSearch:startIndex>
41
+ <openSearch:itemsPerPage>1000</openSearch:itemsPerPage>
42
+ <gphoto:user>liz</gphoto:user>
43
+ <gphoto:nickname>Liz</gphoto:nickname>
44
+ <gphoto:thumbnail>
45
+ http://lh3.ggpht.com/liz/AAAA2X2Bow4/AAAAAAAAAAA/N9xSZ7RoJY4/s64-c/liz.jpg</gphoto:thumbnail>
46
+ <gphoto:quotalimit>1073741824</gphoto:quotalimit>
47
+ <gphoto:quotacurrent>23044</gphoto:quotacurrent>
48
+ <gphoto:maxPhotosPerAlbum>500</gphoto:maxPhotosPerAlbum>
49
+ <entry>
50
+ <id>
51
+ http://picasaweb.google.com/data/entry/api/user/liz/albumid/5228155363249705041</id>
52
+ <published>2008-07-28T07:00:00.000Z</published>
53
+ <updated>2008-08-15T18:58:45.000Z</updated>
54
+ <category scheme='http://schemas.google.com/g/2005#kind'
55
+ term='http://schemas.google.com/photos/2007#album' />
56
+ <title type='text'>lolcats</title>
57
+ <summary type='text'>Hilarious Felines</summary>
58
+ <rights type='text'>public</rights>
59
+ <link rel='http://schemas.google.com/g/2005#feed'
60
+ type='application/atom+xml'
61
+ href='http://picasaweb.google.com/data/feed/api/user/liz/albumid/5228155363249705041' />
62
+ <link rel='alternate' type='text/html'
63
+ href='http://picasaweb.google.com/liz/Lolcats' />
64
+ <link rel='self' type='application/atom+xml'
65
+ href='http://picasaweb.google.com/data/entry/api/user/liz/albumid/5228155363249705041' />
66
+ <link rel='edit' type='application/atom+xml'
67
+ href='http://picasaweb.google.com/data/entry/api/user/liz/albumid/5228155363249705041/1218826725077000' />
68
+ <author>
69
+ <name>Liz</name>
70
+ <uri>http://picasaweb.google.com/liz</uri>
71
+ </author>
72
+ <gphoto:id>5228155363249705041</gphoto:id>
73
+ <gphoto:name>Lolcats</gphoto:name>
74
+ <gphoto:location>mountain view, ca</gphoto:location>
75
+ <gphoto:access>public</gphoto:access>
76
+ <gphoto:timestamp>1217228400000</gphoto:timestamp>
77
+ <gphoto:numphotos>1</gphoto:numphotos>
78
+ <gphoto:numphotosremaining>499</gphoto:numphotosremaining>
79
+ <gphoto:bytesUsed>23044</gphoto:bytesUsed>
80
+ <gphoto:user>liz</gphoto:user>
81
+ <gphoto:nickname>Liz</gphoto:nickname>
82
+ <gphoto:commentingEnabled>true</gphoto:commentingEnabled>
83
+ <gphoto:commentCount>0</gphoto:commentCount>
84
+ <media:group>
85
+ <media:title type='plain'>lolcats</media:title>
86
+ <media:description type='plain'>Hilarious
87
+ Felines</media:description>
88
+ <media:keywords></media:keywords>
89
+ <media:content url='http://lh5.ggpht.com/liz/SI4jmlkNUFE/AAAAAAAAAzU/J1V3PUhHEoI/Lolcats.jpg'
90
+ type='image/jpeg' medium='image' />
91
+ <media:thumbnail url='http://lh5.ggpht.com/liz/SI4jmlkNUFE/AAAAAAAAAzU/J1V3PUhHEoI/s160-c/Lolcats.jpg'
92
+ height='160' width='160' />
93
+ <media:credit>Liz</media:credit>
94
+ </media:group>
95
+ <georss:where>
96
+ <gml:Point>
97
+ <gml:pos>37.38911780598221 -122.08638668060303</gml:pos>
98
+ </gml:Point>
99
+ <gml:Envelope>
100
+ <gml:lowerCorner>37.38482151758655
101
+ -122.0958924293518</gml:lowerCorner>
102
+ <gml:upperCorner>37.39341409437787
103
+ -122.07688093185425</gml:upperCorner>
104
+ </gml:Envelope>
105
+ </georss:where>
106
+ </entry>
107
+ </feed>
data/spec/spec.opts ADDED
@@ -0,0 +1,2 @@
1
+ --colour
2
+ --format specdoc
@@ -0,0 +1,13 @@
1
+ require 'rubygems'
2
+ require File.expand_path(File.join(File.dirname(__FILE__), '../lib/ruby_picasa'))
3
+ require 'spec'
4
+ require 'mocha'
5
+ require 'pp'
6
+
7
+ def open_file(name)
8
+ open(File.join(File.dirname(__FILE__), File.join('sample', name)))
9
+ end
10
+
11
+ Spec::Runner.configure do |config|
12
+ config.mock_with :mocha
13
+ end
metadata ADDED
@@ -0,0 +1,76 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: neves-ruby_picasa
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.3
5
+ platform: ruby
6
+ authors:
7
+ - Darrick Wiebe
8
+ - Marcos Neves
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2009-06-24 00:00:00 -07:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: objectify-xml
18
+ type: :runtime
19
+ version_requirement:
20
+ version_requirements: !ruby/object:Gem::Requirement
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: 0.2.3
25
+ version:
26
+ description: Provides a super easy to use object layer for authenticating and accessing Picasa through their API.
27
+ email: marcos.neves@gmail.com
28
+ executables: []
29
+
30
+ extensions: []
31
+
32
+ extra_rdoc_files:
33
+ - README.txt
34
+ files:
35
+ - History.txt
36
+ - README.txt
37
+ - lib/ruby_picasa.rb
38
+ - lib/ruby_picasa/types.rb
39
+ - spec/ruby_picasa/types_spec.rb
40
+ - spec/ruby_picasa_spec.rb
41
+ - spec/sample/album.atom
42
+ - spec/sample/recent.atom
43
+ - spec/sample/search.atom
44
+ - spec/sample/user.atom
45
+ - spec/spec.opts
46
+ - spec/spec_helper.rb
47
+ has_rdoc: false
48
+ homepage: http://github.com/neves/ruby_picasa
49
+ post_install_message:
50
+ rdoc_options:
51
+ - --charset=UTF-8
52
+ require_paths:
53
+ - lib
54
+ required_ruby_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: "0"
59
+ version:
60
+ required_rubygems_version: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: "0"
65
+ version:
66
+ requirements: []
67
+
68
+ rubyforge_project:
69
+ rubygems_version: 1.2.0
70
+ signing_key:
71
+ specification_version: 3
72
+ summary: Provides a super easy to use object layer for authenticating and accessing Picasa through their API.
73
+ test_files:
74
+ - spec/ruby_picasa/types_spec.rb
75
+ - spec/ruby_picasa_spec.rb
76
+ - spec/spec_helper.rb