omniauth-yammer 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/.ruby-version +1 -0
- data/.travis.yml +8 -3
- data/README.md +3 -2
- data/lib/omniauth-yammer/version.rb +1 -1
- data/lib/omniauth/strategies/yammer.rb +2 -1
- data/omniauth-yammer.gemspec +8 -8
- data/spec/spec_helper.rb +2 -2
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09fb13c791b80e229deac44f3a800121501635d8
|
4
|
+
data.tar.gz: 05baea693243a74e3b472ef15477b6585b5c6695
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 873992d2a0fc392bfd4c82ed247e219ee0a43287b482ddd34cf90d9523f31c6863fea64b590873ffca730e213e3aff83ac8c94492953b205384265aeb09fa1eb
|
7
|
+
data.tar.gz: 8b71e4114c196b9b39e1d71f630a302e410239920b518b39cc1fe88a215f4d130f55d2ff71bd9326270a22da30139aba47d6f0c539e5a852e391d1db0de2002e
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.3.1
|
data/.travis.yml
CHANGED
@@ -1,15 +1,20 @@
|
|
1
1
|
language: ruby
|
2
|
+
|
2
3
|
rvm:
|
3
|
-
-
|
4
|
-
- 2.
|
5
|
-
- 2.1.0
|
4
|
+
- 2.2.2
|
5
|
+
- 2.3.1
|
6
6
|
- ruby-head
|
7
|
+
|
8
|
+
sudo: false
|
9
|
+
|
7
10
|
notifications:
|
8
11
|
email: false
|
12
|
+
|
9
13
|
branches:
|
10
14
|
only:
|
11
15
|
- master
|
12
16
|
- development
|
17
|
+
|
13
18
|
matrix:
|
14
19
|
allow_failures:
|
15
20
|
- rvm: ruby-head
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# OmniAuth Yammer
|
2
|
-
|
3
|
-
[![
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/le0pard/omniauth-yammer.svg?branch=master)](https://travis-ci.org/le0pard/omniauth-yammer)
|
4
|
+
[![Code Climate](https://codeclimate.com/github/le0pard/omniauth-yammer/badges/gpa.svg)](https://codeclimate.com/github/le0pard/omniauth-yammer)
|
4
5
|
|
5
6
|
This gem contains the Yammer strategy for OmniAuth 1.0.
|
6
7
|
|
@@ -5,6 +5,7 @@ module OmniAuth
|
|
5
5
|
class Yammer < OmniAuth::Strategies::OAuth2
|
6
6
|
|
7
7
|
option :name, 'yammer'
|
8
|
+
option :provider_ignores_state, true
|
8
9
|
|
9
10
|
option :client_options, {
|
10
11
|
:site => (ENV['YAMMER_DOMAIN'] || 'https://www.yammer.com'),
|
@@ -43,7 +44,7 @@ module OmniAuth
|
|
43
44
|
end
|
44
45
|
|
45
46
|
def build_access_token
|
46
|
-
access_token = super
|
47
|
+
access_token = request.params[:access_token] || super
|
47
48
|
token = eval(access_token.token)['token']
|
48
49
|
@access_token = ::OAuth2::AccessToken.new(client, token, access_token.params)
|
49
50
|
end
|
data/omniauth-yammer.gemspec
CHANGED
@@ -2,23 +2,23 @@
|
|
2
2
|
require File.expand_path('../lib/omniauth-yammer/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
|
-
gem.authors = [
|
6
|
-
gem.email = [
|
5
|
+
gem.authors = ['Alexey Vasiliev']
|
6
|
+
gem.email = ['leopard.not.a@gmail.com']
|
7
7
|
gem.description = %q{OmniAuth strategy for Yammer}
|
8
8
|
gem.summary = %q{OmniAuth strategy for Yammer}
|
9
|
-
gem.homepage =
|
10
|
-
gem.license =
|
9
|
+
gem.homepage = 'https://github.com/le0pard/omniauth-yammer'
|
10
|
+
gem.license = 'MIT'
|
11
11
|
|
12
12
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
13
13
|
gem.files = `git ls-files`.split("\n")
|
14
14
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
15
|
-
gem.name =
|
16
|
-
gem.require_paths = [
|
15
|
+
gem.name = 'omniauth-yammer'
|
16
|
+
gem.require_paths = ['lib']
|
17
17
|
gem.version = OmniAuth::Yammer::VERSION
|
18
18
|
|
19
|
-
gem.add_runtime_dependency 'omniauth-oauth2',
|
19
|
+
gem.add_runtime_dependency 'omniauth-oauth2', '>= 1.1'
|
20
20
|
|
21
|
-
gem.add_development_dependency 'rspec',
|
21
|
+
gem.add_development_dependency 'rspec', '>= 3'
|
22
22
|
gem.add_development_dependency 'rake'
|
23
23
|
gem.add_development_dependency 'rack-test'
|
24
24
|
gem.add_development_dependency 'simplecov'
|
data/spec/spec_helper.rb
CHANGED
@@ -9,7 +9,7 @@ require 'omniauth'
|
|
9
9
|
require 'omniauth-yammer'
|
10
10
|
|
11
11
|
RSpec.configure do |config|
|
12
|
-
|
12
|
+
|
13
13
|
config.expect_with :rspec do |c|
|
14
14
|
c.syntax = :expect
|
15
15
|
end
|
@@ -17,5 +17,5 @@ RSpec.configure do |config|
|
|
17
17
|
config.include WebMock::API
|
18
18
|
config.include Rack::Test::Methods
|
19
19
|
config.extend OmniAuth::Test::StrategyMacros, type: :strategy
|
20
|
-
|
20
|
+
|
21
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-yammer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey Vasiliev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-oauth2
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '3'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -102,6 +102,7 @@ extensions: []
|
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
104
|
- ".gitignore"
|
105
|
+
- ".ruby-version"
|
105
106
|
- ".travis.yml"
|
106
107
|
- Gemfile
|
107
108
|
- LICENSE.txt
|
@@ -133,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
134
|
version: '0'
|
134
135
|
requirements: []
|
135
136
|
rubyforge_project:
|
136
|
-
rubygems_version: 2.
|
137
|
+
rubygems_version: 2.5.1
|
137
138
|
signing_key:
|
138
139
|
specification_version: 4
|
139
140
|
summary: OmniAuth strategy for Yammer
|