picasa 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -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}, {another one} ]
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 },{}],
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 6
4
+ :patch: 7
5
5
  :build:
@@ -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
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{picasa}
8
- s.version = "0.1.6"
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 Wn\304\231trzak"]
12
- s.date = %q{2009-11-29}
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 = [
@@ -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.6
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-11-29 00:00:00 +01:00
12
+ date: 2009-12-09 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency