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 CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ .ruby-version
data/Gemfile CHANGED
@@ -2,4 +2,14 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'rake'
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
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 Seesaw Decisions Corporation
1
+ Copyright (c) 2012-2013 Seesaw Decisions Corporation
2
2
 
3
3
  MIT License
4
4
 
data/Rakefile CHANGED
@@ -1 +1,9 @@
1
- require 'bundler/gem_tasks'
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
3
+
4
+ require 'rake/testtask'
5
+ Rake::TestTask.new(:test) do |t|
6
+ t.libs << 'test'
7
+ t.pattern = 'test/**/*_test.rb'
8
+ end
9
+ task :default => :test
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Seesaw
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  end
5
5
  end
@@ -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: 'https://api.seesaw.co' }
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: 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']
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: raw_info
24
+ :raw_info => raw_info
25
25
  }
26
26
  end
27
27
 
@@ -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
@@ -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
- version: 0.1.2
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
- date: 2013-02-07 00:00:00.000000000 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: omniauth-oauth2
17
- requirement: !ruby/object:Gem::Requirement
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
- version: '1.1'
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
- files:
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
- require_paths:
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
- version: '0'
61
- required_rubygems_version: !ruby/object:Gem::Requirement
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
- version: '0'
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.8.23
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
- has_rdoc:
96
+ test_files:
97
+ - test/omniauth/strategies/seesaw_test.rb
98
+ - test/test_helper.rb