omniauth-flickr 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +5 -0
- data/lib/omniauth/strategies/flickr.rb +7 -2
- data/lib/omniauth-flickr/version.rb +1 -1
- metadata +49 -28
data/README.md
CHANGED
@@ -6,6 +6,11 @@ For more information see the following:
|
|
6
6
|
|
7
7
|
Release notes:
|
8
8
|
|
9
|
+
|
10
|
+
* Version 0.0.9
|
11
|
+
|
12
|
+
- Allow :scope => 'read' in omniauth setup options
|
13
|
+
|
9
14
|
* Version 0.0.8
|
10
15
|
|
11
16
|
- Use authenticated version of flickr.people.getInfo (contrary to flickr docs, api_key must not be specified on url)
|
@@ -40,9 +40,9 @@ module OmniAuth
|
|
40
40
|
end
|
41
41
|
|
42
42
|
extra do
|
43
|
-
|
43
|
+
{
|
44
44
|
:raw_info => raw_info
|
45
|
-
|
45
|
+
}
|
46
46
|
end
|
47
47
|
|
48
48
|
# Return info gathered from the flickr.people.getInfo API call
|
@@ -60,6 +60,11 @@ module OmniAuth
|
|
60
60
|
def user_info
|
61
61
|
@user_info ||= raw_info.nil? ? {} : raw_info["person"]
|
62
62
|
end
|
63
|
+
|
64
|
+
def request_phase
|
65
|
+
options[:authorize_params] = {:perms => options[:scope]} if options[:scope]
|
66
|
+
super
|
67
|
+
end
|
63
68
|
end
|
64
69
|
end
|
65
70
|
end
|
metadata
CHANGED
@@ -1,34 +1,46 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-flickr
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 9
|
9
|
+
version: 0.0.9
|
6
10
|
platform: ruby
|
7
|
-
authors:
|
11
|
+
authors:
|
8
12
|
- Tim Breitkreutz
|
9
13
|
autorequire:
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
16
|
+
|
17
|
+
date: 2011-12-09 00:00:00 -07:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: omniauth-oauth
|
16
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
24
|
none: false
|
18
|
-
requirements:
|
25
|
+
requirements:
|
19
26
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 1
|
30
|
+
- 0
|
31
|
+
version: "1.0"
|
22
32
|
type: :runtime
|
23
|
-
|
24
|
-
version_requirements: *70261248638380
|
33
|
+
version_requirements: *id001
|
25
34
|
description: OmniAuth strategy for Flickr
|
26
|
-
email:
|
35
|
+
email:
|
27
36
|
- tim@sbrew.com
|
28
37
|
executables: []
|
38
|
+
|
29
39
|
extensions: []
|
40
|
+
|
30
41
|
extra_rdoc_files: []
|
31
|
-
|
42
|
+
|
43
|
+
files:
|
32
44
|
- .gitignore
|
33
45
|
- Gemfile
|
34
46
|
- LICENSE
|
@@ -39,28 +51,37 @@ files:
|
|
39
51
|
- lib/omniauth-flickr/version.rb
|
40
52
|
- lib/omniauth/strategies/flickr.rb
|
41
53
|
- omniauth-flickr.gemspec
|
54
|
+
has_rdoc: true
|
42
55
|
homepage: https://github.com/timbreitkreutz/omniauth-flickr
|
43
56
|
licenses: []
|
57
|
+
|
44
58
|
post_install_message:
|
45
59
|
rdoc_options: []
|
46
|
-
|
60
|
+
|
61
|
+
require_paths:
|
47
62
|
- lib
|
48
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
63
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
49
64
|
none: false
|
50
|
-
requirements:
|
51
|
-
- -
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
|
54
|
-
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
segments:
|
69
|
+
- 0
|
70
|
+
version: "0"
|
71
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
72
|
none: false
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
segments:
|
77
|
+
- 0
|
78
|
+
version: "0"
|
60
79
|
requirements: []
|
80
|
+
|
61
81
|
rubyforge_project: omniauth-flickr
|
62
|
-
rubygems_version: 1.
|
82
|
+
rubygems_version: 1.3.7
|
63
83
|
signing_key:
|
64
84
|
specification_version: 3
|
65
85
|
summary: OmniAuth strategy for Flickr
|
66
86
|
test_files: []
|
87
|
+
|