omniauth-flickr 0.0.1
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/.gitignore +5 -0
- data/Gemfile +4 -0
- data/README.md +3 -0
- data/Rakefile +1 -0
- data/lib/omniauth/strategies/flickr.rb +31 -0
- data/lib/omniauth-flickr/version.rb +5 -0
- data/lib/omniauth-flickr.rb +2 -0
- data/omniauth-flickr.gemspec +22 -0
- metadata +85 -0
data/Gemfile
ADDED
data/README.md
ADDED
data/Rakefile
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require "bundler/gem_tasks"
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
require 'omniauth-oauth'
|
|
2
|
+
require 'multi_json'
|
|
3
|
+
|
|
4
|
+
module OmniAuth
|
|
5
|
+
module Strategies
|
|
6
|
+
class Flickr < OmniAuth::Strategies::OAuth
|
|
7
|
+
option :name, 'flickr'
|
|
8
|
+
option :client_options, {
|
|
9
|
+
:access_token_path => "/services/oauth/access_token",
|
|
10
|
+
:authorize_path => "/services/oauth/authorize",
|
|
11
|
+
:request_token_path => "/services/oauth/request_token",
|
|
12
|
+
:site => "http://www.flickr.com"
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
uid {
|
|
16
|
+
access_token.params['user_nsid']
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
info do
|
|
20
|
+
{
|
|
21
|
+
:username => access_token.params['username'],
|
|
22
|
+
:full_name => access_token.params['fullname']
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
extra do
|
|
27
|
+
{}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
|
3
|
+
require "omniauth-flickr/version"
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |s|
|
|
6
|
+
s.name = "omniauth-flickr"
|
|
7
|
+
s.version = Omniauth::Flickr::VERSION
|
|
8
|
+
s.authors = ["Tim Breitkreutz"]
|
|
9
|
+
s.email = ["tim@sbrew.com"]
|
|
10
|
+
s.homepage = "https://github.com/timbreitkreutz/omniauth-flickr"
|
|
11
|
+
s.summary = %q{OmniAuth strategy for Flickr}
|
|
12
|
+
s.description = %q{OmniAuth strategy for Flickr}
|
|
13
|
+
|
|
14
|
+
s.rubyforge_project = "omniauth-flickr"
|
|
15
|
+
|
|
16
|
+
s.files = `git ls-files`.split("\n")
|
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
19
|
+
s.require_paths = ["lib"]
|
|
20
|
+
|
|
21
|
+
s.add_runtime_dependency 'omniauth-oauth', '~> 1.0'
|
|
22
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: omniauth-flickr
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
prerelease: false
|
|
5
|
+
segments:
|
|
6
|
+
- 0
|
|
7
|
+
- 0
|
|
8
|
+
- 1
|
|
9
|
+
version: 0.0.1
|
|
10
|
+
platform: ruby
|
|
11
|
+
authors:
|
|
12
|
+
- Tim Breitkreutz
|
|
13
|
+
autorequire:
|
|
14
|
+
bindir: bin
|
|
15
|
+
cert_chain: []
|
|
16
|
+
|
|
17
|
+
date: 2011-12-02 00:00:00 -07:00
|
|
18
|
+
default_executable:
|
|
19
|
+
dependencies:
|
|
20
|
+
- !ruby/object:Gem::Dependency
|
|
21
|
+
name: omniauth-oauth
|
|
22
|
+
prerelease: false
|
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
24
|
+
none: false
|
|
25
|
+
requirements:
|
|
26
|
+
- - ~>
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
segments:
|
|
29
|
+
- 1
|
|
30
|
+
- 0
|
|
31
|
+
version: "1.0"
|
|
32
|
+
type: :runtime
|
|
33
|
+
version_requirements: *id001
|
|
34
|
+
description: OmniAuth strategy for Flickr
|
|
35
|
+
email:
|
|
36
|
+
- tim@sbrew.com
|
|
37
|
+
executables: []
|
|
38
|
+
|
|
39
|
+
extensions: []
|
|
40
|
+
|
|
41
|
+
extra_rdoc_files: []
|
|
42
|
+
|
|
43
|
+
files:
|
|
44
|
+
- .gitignore
|
|
45
|
+
- Gemfile
|
|
46
|
+
- README.md
|
|
47
|
+
- Rakefile
|
|
48
|
+
- lib/omniauth-flickr.rb
|
|
49
|
+
- lib/omniauth-flickr/version.rb
|
|
50
|
+
- lib/omniauth/strategies/flickr.rb
|
|
51
|
+
- omniauth-flickr.gemspec
|
|
52
|
+
has_rdoc: true
|
|
53
|
+
homepage: https://github.com/timbreitkreutz/omniauth-flickr
|
|
54
|
+
licenses: []
|
|
55
|
+
|
|
56
|
+
post_install_message:
|
|
57
|
+
rdoc_options: []
|
|
58
|
+
|
|
59
|
+
require_paths:
|
|
60
|
+
- lib
|
|
61
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
|
+
none: false
|
|
63
|
+
requirements:
|
|
64
|
+
- - ">="
|
|
65
|
+
- !ruby/object:Gem::Version
|
|
66
|
+
segments:
|
|
67
|
+
- 0
|
|
68
|
+
version: "0"
|
|
69
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
|
+
none: false
|
|
71
|
+
requirements:
|
|
72
|
+
- - ">="
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
segments:
|
|
75
|
+
- 0
|
|
76
|
+
version: "0"
|
|
77
|
+
requirements: []
|
|
78
|
+
|
|
79
|
+
rubyforge_project: omniauth-flickr
|
|
80
|
+
rubygems_version: 1.3.7
|
|
81
|
+
signing_key:
|
|
82
|
+
specification_version: 3
|
|
83
|
+
summary: OmniAuth strategy for Flickr
|
|
84
|
+
test_files: []
|
|
85
|
+
|