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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: daa5f4cb1087f26adffcf7159b354298d80aab3e
4
- data.tar.gz: dac3da1c7e6ab727426494d4f53830dadb2e0d58
3
+ metadata.gz: 09fb13c791b80e229deac44f3a800121501635d8
4
+ data.tar.gz: 05baea693243a74e3b472ef15477b6585b5c6695
5
5
  SHA512:
6
- metadata.gz: b5d1f5e4fc4c0eb8e6a0f447b1ebd8cdda249a0b3d537fd9b5d263c38440911243be30f982e0d6998e89cfbb3b2c0cdfd8df232c9d178aa525acf0a5b1cfc707
7
- data.tar.gz: 925b79da39ae0f6dcec9263e2379f2226a90f46fd776c2ccc2c9395615cbe2ab641117cc9dc1a1f6e6070486033fc694ddf7b3a369b5d549c9e9ef09a550cfed
6
+ metadata.gz: 873992d2a0fc392bfd4c82ed247e219ee0a43287b482ddd34cf90d9523f31c6863fea64b590873ffca730e213e3aff83ac8c94492953b205384265aeb09fa1eb
7
+ data.tar.gz: 8b71e4114c196b9b39e1d71f630a302e410239920b518b39cc1fe88a215f4d130f55d2ff71bd9326270a22da30139aba47d6f0c539e5a852e391d1db0de2002e
data/.gitignore CHANGED
@@ -4,7 +4,7 @@
4
4
  .config
5
5
  .yardoc
6
6
  .project
7
- .ruby-version
7
+ .idea
8
8
  Gemfile.lock
9
9
  InstalledFiles
10
10
  _yardoc
@@ -0,0 +1 @@
1
+ 2.3.1
@@ -1,15 +1,20 @@
1
1
  language: ruby
2
+
2
3
  rvm:
3
- - 1.9.3
4
- - 2.0.0
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
- [![Build Status](https://travis-ci.org/le0pard/omniauth-yammer.png)](https://travis-ci.org/le0pard/omniauth-yammer)
3
- [![Code Climate](https://codeclimate.com/github/le0pard/omniauth-yammer.png)](https://codeclimate.com/github/le0pard/omniauth-yammer)
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
 
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Yammer
3
- VERSION = "0.1.0"
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
@@ -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
@@ -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 = ["Alexey Vasiliev"]
6
- gem.email = ["leopard.not.a@gmail.com"]
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 = "https://github.com/le0pard/omniauth-yammer"
10
- gem.license = "MIT"
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 = "omniauth-yammer"
16
- gem.require_paths = ["lib"]
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', '>= 1.1'
19
+ gem.add_runtime_dependency 'omniauth-oauth2', '>= 1.1'
20
20
 
21
- gem.add_development_dependency 'rspec', '>= 2.14'
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'
@@ -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.1.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: 2014-01-30 00:00:00.000000000 Z
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: '2.14'
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: '2.14'
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.2.1
137
+ rubygems_version: 2.5.1
137
138
  signing_key:
138
139
  specification_version: 4
139
140
  summary: OmniAuth strategy for Yammer