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
commit0b71a39886db23a36088f201ab2f0b2e318257e7 (patch)
treef3253bbe2a37466c944a7fecc579fa1664dd1d30 /dev-ruby/flickr/files
parentAutomated update of use.local.desc (diff)
downloadgentoo-2-0b71a39886db23a36088f201ab2f0b2e318257e7.tar.gz
gentoo-2-0b71a39886db23a36088f201ab2f0b2e318257e7.tar.bz2
gentoo-2-0b71a39886db23a36088f201ab2f0b2e318257e7.zip
Add a new revision of flickr using a manually-forged tarball, and add a fix for the URLs.
(Portage version: 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