picasa 0.1.6 → 0.1.7
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.
- data/README.rdoc +2 -1
- data/VERSION.yml +1 -1
- data/lib/picasa/web_albums.rb +2 -0
- data/picasa.gemspec +3 -3
- data/test/picasa_test.rb +2 -0
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -14,7 +14,8 @@ In RAILS_ROOT/config/environment.rb
|
|
14
14
|
== Usage
|
15
15
|
|
16
16
|
Picasa.albums(:google_user => 'google_username')
|
17
|
-
#=> [ {:id => "666", :title => "satan-album", :photos_count => 6
|
17
|
+
#=> [ {:id => "666", :title => "satan-album", :photos_count => 6, :photo => "url", :thumbnail => "url"},
|
18
|
+
# {another one} ]
|
18
19
|
|
19
20
|
Picasa.photos(:google_user => 'google_username', :album_id => 'album_id')
|
20
21
|
#=> {:photos => [{ :title, :thumbnail_1, :thumbnail_2, :thumbnail_3, :photo },{}],
|
data/VERSION.yml
CHANGED
data/lib/picasa/web_albums.rb
CHANGED
@@ -20,6 +20,8 @@ module Picasa
|
|
20
20
|
attributes[:id] = album['id'][1]
|
21
21
|
attributes[:title] = album['title'][0]['content']
|
22
22
|
attributes[:photos_count] = album['numphotos'][0].to_i
|
23
|
+
attributes[:photo] = album['group'][0]['content']['url']
|
24
|
+
attributes[:thumbnail] = album['group'][0]['thumbnail'][0]['url']
|
23
25
|
albums << attributes
|
24
26
|
end
|
25
27
|
albums
|
data/picasa.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{picasa}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Wojciech
|
12
|
-
s.date = %q{2009-
|
11
|
+
s.authors = ["Wojciech Wnętrzak"]
|
12
|
+
s.date = %q{2009-12-09}
|
13
13
|
s.description = %q{Simple Google Picasa managment}
|
14
14
|
s.email = %q{w.wnetrzak@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/test/picasa_test.rb
CHANGED
@@ -13,6 +13,8 @@ class PicasaTest < Test::Unit::TestCase
|
|
13
13
|
assert_equal "SAPS in da akcion :P", albums.first[:title]
|
14
14
|
assert_equal 10, albums[2][:photos_count]
|
15
15
|
assert_equal "5277503612406515713", albums.first[:id]
|
16
|
+
assert_not_nil albums.first[:photo]
|
17
|
+
assert_not_nil albums.first[:thumbnail]
|
16
18
|
end
|
17
19
|
end
|
18
20
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: picasa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Wojciech Wn\xC4\x99trzak"
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-12-09 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|