omniauth-seesaw 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile +11 -1
- data/LICENSE +1 -1
- data/Rakefile +9 -1
- data/lib/omniauth/seesaw/version.rb +1 -1
- data/lib/omniauth/strategies/seesaw.rb +8 -8
- data/omniauth-seesaw.gemspec +2 -0
- data/test/omniauth/strategies/seesaw_test.rb +15 -0
- data/test/test_helper.rb +17 -0
- metadata +59 -35
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -2,4 +2,14 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
-
|
5
|
+
# Gem dependencies
|
6
|
+
gemspec
|
7
|
+
|
8
|
+
gem 'rake', :group => [:development, :test]
|
9
|
+
|
10
|
+
# Testing dependencies
|
11
|
+
group :test do
|
12
|
+
gem 'minitest'
|
13
|
+
gem 'turn'
|
14
|
+
gem 'simplecov', :require => false
|
15
|
+
end
|
data/LICENSE
CHANGED
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'omniauth/strategies/oauth2'
|
|
2
2
|
|
3
3
|
class OmniAuth::Strategies::Seesaw < OmniAuth::Strategies::OAuth2
|
4
4
|
option :name, 'seesaw'
|
5
|
-
option :client_options, { site
|
5
|
+
option :client_options, { :site => 'https://api.seesaw.co' }
|
6
6
|
|
7
7
|
uid do
|
8
8
|
raw_info['id']
|
@@ -10,18 +10,18 @@ class OmniAuth::Strategies::Seesaw < OmniAuth::Strategies::OAuth2
|
|
10
10
|
|
11
11
|
info do
|
12
12
|
{
|
13
|
-
username
|
14
|
-
display_name
|
15
|
-
short_display_name
|
16
|
-
biography
|
17
|
-
created_at
|
18
|
-
avatar_url
|
13
|
+
:username => raw_info['username'],
|
14
|
+
:display_name => raw_info['display_name'],
|
15
|
+
:short_display_name => raw_info['short_display_name'],
|
16
|
+
:biography => raw_info['biography'],
|
17
|
+
:created_at => raw_info['created_at'],
|
18
|
+
:avatar_url => raw_info['avatar_url']
|
19
19
|
}
|
20
20
|
end
|
21
21
|
|
22
22
|
extra do
|
23
23
|
{
|
24
|
-
raw_info
|
24
|
+
:raw_info => raw_info
|
25
25
|
}
|
26
26
|
end
|
27
27
|
|
data/omniauth-seesaw.gemspec
CHANGED
@@ -11,11 +11,13 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.description = 'Seesaw OAuth2 Strategy for OmniAuth'
|
12
12
|
gem.summary = 'Seesaw OAuth2 Strategy for OmniAuth'
|
13
13
|
gem.homepage = 'https://github.com/seesawco/omniauth-seesaw'
|
14
|
+
gem.license = 'MIT'
|
14
15
|
|
15
16
|
gem.files = `git ls-files`.split($/)
|
16
17
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
19
|
gem.require_paths = ['lib']
|
19
20
|
|
21
|
+
gem.required_ruby_version = '>= 1.8.7'
|
20
22
|
gem.add_runtime_dependency 'omniauth-oauth2', '~> 1.1'
|
21
23
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class TestSeesaw < SeesawTestCase
|
4
|
+
def subject
|
5
|
+
@subject ||= OmniAuth::Strategies::Seesaw.new({})
|
6
|
+
end
|
7
|
+
|
8
|
+
def test_name
|
9
|
+
assert_equal 'seesaw', subject.options.name
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_site
|
13
|
+
assert_equal 'https://api.seesaw.co', subject.options.client_options.site
|
14
|
+
end
|
15
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
Bundler.require :test
|
4
|
+
|
5
|
+
require 'simplecov'
|
6
|
+
SimpleCov.start
|
7
|
+
|
8
|
+
require 'minitest/autorun'
|
9
|
+
require 'omniauth-seesaw'
|
10
|
+
|
11
|
+
# Support files
|
12
|
+
Dir["#{File.expand_path(File.dirname(__FILE__))}/support/*.rb"].each do |file|
|
13
|
+
require file
|
14
|
+
end
|
15
|
+
|
16
|
+
class SeesawTestCase < MiniTest::Unit::TestCase
|
17
|
+
end
|
metadata
CHANGED
@@ -1,41 +1,50 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-seesaw
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Sam Soffes
|
9
14
|
- Aaron Gotwalt
|
10
15
|
autorequire:
|
11
16
|
bindir: bin
|
12
17
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
+
|
19
|
+
date: 2013-02-25 00:00:00 -05:00
|
20
|
+
default_executable:
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
24
|
none: false
|
19
|
-
requirements:
|
25
|
+
requirements:
|
20
26
|
- - ~>
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 13
|
29
|
+
segments:
|
30
|
+
- 1
|
31
|
+
- 1
|
32
|
+
version: "1.1"
|
23
33
|
type: :runtime
|
34
|
+
name: omniauth-oauth2
|
35
|
+
version_requirements: *id001
|
24
36
|
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
|
-
requirements:
|
28
|
-
- - ~>
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
version: '1.1'
|
31
37
|
description: Seesaw OAuth2 Strategy for OmniAuth
|
32
|
-
email:
|
38
|
+
email:
|
33
39
|
- sam@soff.es
|
34
40
|
- gotwalt@gmail.com
|
35
41
|
executables: []
|
42
|
+
|
36
43
|
extensions: []
|
44
|
+
|
37
45
|
extra_rdoc_files: []
|
38
|
-
|
46
|
+
|
47
|
+
files:
|
39
48
|
- .gitignore
|
40
49
|
- Gemfile
|
41
50
|
- LICENSE
|
@@ -46,29 +55,44 @@ files:
|
|
46
55
|
- lib/omniauth/seesaw/version.rb
|
47
56
|
- lib/omniauth/strategies/seesaw.rb
|
48
57
|
- omniauth-seesaw.gemspec
|
58
|
+
- test/omniauth/strategies/seesaw_test.rb
|
59
|
+
- test/test_helper.rb
|
60
|
+
has_rdoc: true
|
49
61
|
homepage: https://github.com/seesawco/omniauth-seesaw
|
50
|
-
licenses:
|
62
|
+
licenses:
|
63
|
+
- MIT
|
51
64
|
post_install_message:
|
52
65
|
rdoc_options: []
|
53
|
-
|
66
|
+
|
67
|
+
require_paths:
|
54
68
|
- lib
|
55
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
56
70
|
none: false
|
57
|
-
requirements:
|
58
|
-
- -
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
|
61
|
-
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
hash: 57
|
75
|
+
segments:
|
76
|
+
- 1
|
77
|
+
- 8
|
78
|
+
- 7
|
79
|
+
version: 1.8.7
|
80
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
81
|
none: false
|
63
|
-
requirements:
|
64
|
-
- -
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
hash: 3
|
86
|
+
segments:
|
87
|
+
- 0
|
88
|
+
version: "0"
|
67
89
|
requirements: []
|
90
|
+
|
68
91
|
rubyforge_project:
|
69
|
-
rubygems_version: 1.
|
92
|
+
rubygems_version: 1.6.2
|
70
93
|
signing_key:
|
71
94
|
specification_version: 3
|
72
95
|
summary: Seesaw OAuth2 Strategy for OmniAuth
|
73
|
-
test_files:
|
74
|
-
|
96
|
+
test_files:
|
97
|
+
- test/omniauth/strategies/seesaw_test.rb
|
98
|
+
- test/test_helper.rb
|