summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2009-04-27 12:33:50 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2009-04-27 12:33:50 +0000
commita96a7843b0ba70e9b591ed81bd4632160b50f9d0 (patch)
tree9be90bb5a3156107d081971d2b58a52c02471ecc /dev-ruby/flickr/files
parentAutomated update of use.local.desc (diff)
downloadhistorical-a96a7843b0ba70e9b591ed81bd4632160b50f9d0.tar.gz
historical-a96a7843b0ba70e9b591ed81bd4632160b50f9d0.tar.bz2
historical-a96a7843b0ba70e9b591ed81bd4632160b50f9d0.zip
Add a new revision of flickr using a manually-forged tarball, and add a fix for the URLs.
Package-Manager: portage-2.2_rc31/cvs/Linux x86_64
Diffstat (limited to 'dev-ruby/flickr/files')
-rw-r--r--dev-ruby/flickr/files/flickr-1.0.2-fix.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-ruby/flickr/files/flickr-1.0.2-fix.patch b/dev-ruby/flickr/files/flickr-1.0.2-fix.patch
new file mode 100644
index 000000000000..6b9a8add1706
--- /dev/null
+++ b/dev-ruby/flickr/files/flickr-1.0.2-fix.patch
@@ -0,0 +1,30 @@
+Index: flickr-1.0.2-gentoo/lib/flickr.rb
+===================================================================
+--- flickr-1.0.2-gentoo.orig/lib/flickr.rb
++++ flickr-1.0.2-gentoo/lib/flickr.rb
+@@ -64,7 +64,7 @@ class Flickr
+ # Takes a Flickr API method name and set of parameters; returns an XmlSimple object with the response
+ def request(method, *params)
+ response = XmlSimple.xml_in(http_get(request_url(method, params)), { 'ForceArray' => false })
+- raise response['err']['msg'] if response['stat'] != 'ok'
++ raise (response['err']['msg'] + "API key #{@api_key}") if response['stat'] != 'ok'
+ response
+ end
+
+@@ -167,14 +167,14 @@ class Flickr
+
+ attr_reader :client, :id, :name, :location, :photos_url, :url, :count, :firstdate, :firstdatetaken
+
+- def initialize(id=nil, username=nil, email=nil, password=nil, api_key=nil)
++ def initialize(id=nil, api_key=nil, username=nil, email=nil, password=nil)
+ @id = id
++ @api_key = api_key
+ @username = username
+ @email = email
+ @password = password
+ @client = Flickr.new @api_key
+ @client.login(email, password) if email and password
+- @api_key = api_key
+ end
+
+ def username