picasa 0.2.0 → 0.2.1

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, :photo => "url", :thumbnail => "url"},
17
+ #=> [ {:id => "666", :title => "satan-album", :photos_count => 6, :photo => "url",
18
+ # :thumbnail => "url", :slideshow => "url"},
18
19
  # {another one} ]
19
20
 
20
21
  Picasa.photos(:google_user => 'google_username', :album_id => 'album_id')
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 2
4
- :patch: 0
4
+ :patch: 1
5
5
  :build:
@@ -16,6 +16,7 @@ module Picasa
16
16
  attributes[:photos_count] = album['numphotos'][0].to_i
17
17
  attributes[:photo] = album['group'][0]['content']['url']
18
18
  attributes[:thumbnail] = album['group'][0]['thumbnail'][0]['url']
19
+ attributes[:slideshow] = album['link'][1]['href'] + "#slideshow"
19
20
  albums << attributes
20
21
  end if xml['entry']
21
22
  albums
@@ -35,7 +36,7 @@ module Picasa
35
36
  attributes[:photo] = photo['content']['src']
36
37
  photos << attributes
37
38
  end if xml['entry']
38
- { :photos => photos, :slideshow => xml['link'][2]['href'] }
39
+ { :photos => photos, :slideshow => xml['link'][1]['href'] + "#slideshow" }
39
40
  end
40
41
 
41
42
  private
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{picasa}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Wojciech Wnętrzak"]
@@ -12,6 +12,7 @@ class WebAlbumsTest < Test::Unit::TestCase
12
12
  assert_equal "5277503612406515713", albums.first[:id]
13
13
  assert_not_nil albums.first[:photo]
14
14
  assert_not_nil albums.first[:thumbnail]
15
+ assert_not_nil albums.first[:slideshow]
15
16
  end
16
17
 
17
18
  test 'Should parse photos page' do
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Wojciech Wn\xC4\x99trzak"