omniauth-flickr 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,3 +1,15 @@
1
1
  An Omniauth 1.0 Strategy for Flickr
2
2
 
3
- * Version 0.0.1 starting point, see omniauth 1.0 documentations for more information
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
@@ -1,4 +1,4 @@
1
1
 
2
2
  * Add tests
3
- * Try to get more user information from flickr and put it into the info and extras
3
+ * Add documentation comments
4
4
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Flickr
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  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
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: &70199307090160 !ruby/object:Gem::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: *70199307090160
24
+ version_requirements: *70110384049680
25
25
  description: OmniAuth strategy for Flickr
26
26
  email:
27
27
  - tim@sbrew.com