sml-flickr 1.0.9 → 1.0.10
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/lib/flickr.rb +6 -2
- metadata +3 -3
data/lib/flickr.rb
CHANGED
@@ -172,8 +172,12 @@ class Flickr
|
|
172
172
|
end
|
173
173
|
|
174
174
|
# Returns url for user to login in to Flickr to authenticate app for a user
|
175
|
-
def login_url(perms)
|
176
|
-
|
175
|
+
def login_url(perms, extra = nil)
|
176
|
+
if extra
|
177
|
+
"http://flickr.com/services/auth/?api_key=#{@api_key}&perms=#{perms}&extra=#{extra}&api_sig=#{signature_from('api_key'=>@api_key, 'perms' => perms, 'extra' => extra)}"
|
178
|
+
else
|
179
|
+
"http://flickr.com/services/auth/?api_key=#{@api_key}&perms=#{perms}&api_sig=#{signature_from('api_key'=>@api_key, 'perms' => perms)}"
|
180
|
+
end
|
177
181
|
end
|
178
182
|
|
179
183
|
# Implements everything else.
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sml-flickr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 10
|
10
|
+
version: 1.0.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Scott Raymond, Patrick Plattes
|