morgoth-picasa 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -14,10 +14,10 @@ In RAILS_ROOT/config/environment.rb
14
14
 
15
15
  == Usage
16
16
 
17
- Picasa.albums(:google_username => 'google_username')
17
+ Picasa.albums(:google_user => 'google_username')
18
18
  #=> [ {:id => "666", :title => "satan-album", :photos_count => 6}, {another one} ]
19
19
 
20
- Picasa.photos(:google_username => google_username, :album_id => 'album_id')
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
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 2
4
+ :patch: 3
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{picasa}
5
- s.version = "0.1.2"
5
+ s.version = "0.1.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Wojciech Wn\304\231trzak"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morgoth-picasa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Wojciech Wn\xC4\x99trzak"