morgoth-picasa 0.1.2 → 0.1.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.
- data/README.rdoc +2 -2
- data/VERSION.yml +1 -1
- data/lib/picasa.rb +4 -0
- data/picasa.gemspec +1 -1
- metadata +1 -1
    
        data/README.rdoc
    CHANGED
    
    | @@ -14,10 +14,10 @@ In RAILS_ROOT/config/environment.rb | |
| 14 14 |  | 
| 15 15 | 
             
            == Usage
         | 
| 16 16 |  | 
| 17 | 
            -
              Picasa.albums(: | 
| 17 | 
            +
              Picasa.albums(:google_user => 'google_username')
         | 
| 18 18 | 
             
              #=> [ {:id => "666", :title => "satan-album", :photos_count => 6}, {another one} ]
         | 
| 19 19 |  | 
| 20 | 
            -
              Picasa.photos(: | 
| 20 | 
            +
              Picasa.photos(:google_user => 'google_username', :album_id => 'album_id')
         | 
| 21 21 | 
             
              #=> {:photos => [{ :title, :thumbnail_1, :thumbnail_2, :thumbnail_3, :photo },{}],
         | 
| 22 22 | 
             
              #    :slideshow => "link to picasa slideshow"}
         | 
| 23 23 |  | 
    
        data/VERSION.yml
    CHANGED
    
    
    
        data/lib/picasa.rb
    CHANGED
    
    | @@ -5,11 +5,15 @@ module Picasa | |
| 5 5 | 
             
              require 'web_albums.rb'
         | 
| 6 6 |  | 
| 7 7 | 
             
              def self.albums(options = {})
         | 
| 8 | 
            +
                raise ArgumentError, "You must specify google_user" unless options[:google_user]
         | 
| 8 9 | 
             
                web_albums = Picasa::WebAlbums.new(options[:google_user])
         | 
| 9 10 | 
             
                web_albums.albums
         | 
| 10 11 | 
             
              end
         | 
| 11 12 |  | 
| 12 13 | 
             
              def self.photos(options = {})
         | 
| 14 | 
            +
                unless options[:google_user] and options[:album_id]
         | 
| 15 | 
            +
                  raise ArgumentError, "You must specify google_user and album_id"
         | 
| 16 | 
            +
                end
         | 
| 13 17 | 
             
                web_albums = Picasa::WebAlbums.new(options[:google_user])
         | 
| 14 18 | 
             
                web_albums.photos(options[:album_id])
         | 
| 15 19 | 
             
              end
         | 
    
        data/picasa.gemspec
    CHANGED