omniauth-flickr 0.0.4 → 0.0.5
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.md +13 -1
- data/TODO +1 -1
- data/lib/omniauth/strategies/flickr.rb +3 -2
- data/lib/omniauth-flickr/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
An Omniauth 1.0 Strategy for Flickr
|
|
2
2
|
|
|
3
|
-
* Version 0.0.
|
|
3
|
+
* Version 0.0.5
|
|
4
|
+
|
|
5
|
+
- Most available user information should now be available in the info hash
|
|
6
|
+
- Still needs some testing and documentation--to come
|
|
7
|
+
- Fixed a rescue so it is more contained
|
|
8
|
+
|
|
9
|
+
* Version 0.0.4
|
|
10
|
+
|
|
11
|
+
- Added more user info explicitly into the info hash
|
|
12
|
+
|
|
13
|
+
* Version 0.0.1
|
|
14
|
+
|
|
15
|
+
- First cut
|
data/TODO
CHANGED
|
@@ -27,6 +27,7 @@ module OmniAuth
|
|
|
27
27
|
:iconfarm => user_info["iconfarm"],
|
|
28
28
|
:path_alias => user_info["path_alias"],
|
|
29
29
|
:photosurl => user_info["photosurl"],
|
|
30
|
+
:profileurl => user_info["profileurl"],
|
|
30
31
|
:mbox_sha1sum => user_info["mbox_sha1sum"],
|
|
31
32
|
:location => user_info["location"],
|
|
32
33
|
:image => "http://farm#{user_info["iconfarm"]}.static.flickr.com/#{user_info["iconserver"]}/buddyicons/#{uid}.jpg"
|
|
@@ -43,6 +44,8 @@ module OmniAuth
|
|
|
43
44
|
# This is a public API and does not need signing or authentication
|
|
44
45
|
url = "/services/rest/?api_key=#{options.consumer_key}&format=json&method=flickr.people.getInfo&nojsoncallback=1&user_id=#{uid}"
|
|
45
46
|
@raw_info ||= Net::HTTP.get(options.client_options[:site].gsub(/.*:\/\//, ""), url)
|
|
47
|
+
rescue ::Errno::ETIMEDOUT
|
|
48
|
+
raise ::Timeout::Error
|
|
46
49
|
end
|
|
47
50
|
|
|
48
51
|
def user_info
|
|
@@ -52,8 +55,6 @@ module OmniAuth
|
|
|
52
55
|
@user_info = info["person"] unless info.nil?
|
|
53
56
|
end
|
|
54
57
|
@user_info
|
|
55
|
-
rescue ::Errno::ETIMEDOUT
|
|
56
|
-
raise ::Timeout::Error
|
|
57
58
|
end
|
|
58
59
|
end
|
|
59
60
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-flickr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -13,7 +13,7 @@ date: 2011-12-03 00:00:00.000000000Z
|
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: omniauth-oauth
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &70110384049680 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ~>
|
|
@@ -21,7 +21,7 @@ dependencies:
|
|
|
21
21
|
version: '1.0'
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements: *
|
|
24
|
+
version_requirements: *70110384049680
|
|
25
25
|
description: OmniAuth strategy for Flickr
|
|
26
26
|
email:
|
|
27
27
|
- tim@sbrew.com
|