omniauth-line-messenger 0.2.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/omniauth/strategies/{line_messenger.rb → line.rb} +2 -2
- data/lib/omniauth-line/version.rb +5 -0
- data/lib/omniauth-line-messenger.rb +2 -2
- data/omniauth-line-messenger.gemspec +2 -2
- data/spec/omniauth/strategies/{line_messenger_spec.rb → line_spec.rb} +3 -3
- metadata +5 -5
- data/lib/omniauth-line-messenger/version.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a114398832ddfb9d1840f56e13bff24815e0544bf008c7881cc7fbfffbc2a9d
|
4
|
+
data.tar.gz: 9dba621a81a9d2a1cc788c83b87d1a6459f2e3fd7f116fcd72d1571788398b7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 822c22ba49404aa65a30635672503b181f1cc184c1cc925d623f2391f7fd624774680d998840aeed5c4a6fc1fa7fb1d20ec59401d85cd307ab032aa4e84a99ba
|
7
|
+
data.tar.gz: 6a161601b9b4fda458bc18fb06975791c1e50bf098713dd4a9eae00d98c8faf1dd009b35c9e386a12d657e7ccb9520e358ae9c73a2dfe6ee4838808327ccf922
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -17,7 +17,7 @@ Next, tell OmniAuth about this provider. For a Rails app, your `config/initializ
|
|
17
17
|
```ruby
|
18
18
|
# PROFILE permission required!!
|
19
19
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
20
|
-
provider :
|
20
|
+
provider :line, "Channel_ID", "Channel_Secret"
|
21
21
|
end
|
22
22
|
```
|
23
23
|
|
@@ -3,8 +3,8 @@ require 'json'
|
|
3
3
|
|
4
4
|
module OmniAuth
|
5
5
|
module Strategies
|
6
|
-
class
|
7
|
-
option :name, '
|
6
|
+
class Line < OmniAuth::Strategies::OAuth2
|
7
|
+
option :name, 'line'
|
8
8
|
option :scope, 'profile openid email'
|
9
9
|
|
10
10
|
option :client_options, {
|
@@ -1,2 +1,2 @@
|
|
1
|
-
require "omniauth-line
|
2
|
-
require 'omniauth/strategies/
|
1
|
+
require "omniauth-line/version"
|
2
|
+
require 'omniauth/strategies/line'
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
$:.push File.expand_path("../lib", __FILE__)
|
3
|
-
require "omniauth-line
|
3
|
+
require "omniauth-line/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "omniauth-line-messenger"
|
7
|
-
s.version = OmniAuth::
|
7
|
+
s.version = OmniAuth::Line::VERSION
|
8
8
|
s.authors = ["kazasiki", "marsz"]
|
9
9
|
s.email = ["marsz330@gmail.com"]
|
10
10
|
s.homepage = "https://github.com/marsz/omniauth-line-messenger"
|
@@ -1,11 +1,11 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe OmniAuth::Strategies::
|
3
|
+
describe OmniAuth::Strategies::Line do
|
4
4
|
let(:request) { double('Request', :params => {}, :cookies => {}, :env => {}) }
|
5
5
|
|
6
6
|
subject do
|
7
7
|
args = ['channel_id', 'secret', @options || {}].compact
|
8
|
-
OmniAuth::Strategies::
|
8
|
+
OmniAuth::Strategies::Line.new(*args).tap do |strategy|
|
9
9
|
allow(strategy).to receive(:request) {
|
10
10
|
request
|
11
11
|
}
|
@@ -14,7 +14,7 @@ describe OmniAuth::Strategies::LineMessenger do
|
|
14
14
|
|
15
15
|
describe 'client options' do
|
16
16
|
it 'should have correct name' do
|
17
|
-
expect(subject.options.name).to eq('
|
17
|
+
expect(subject.options.name).to eq('line')
|
18
18
|
end
|
19
19
|
|
20
20
|
it 'should have correct site' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-line-messenger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kazasiki
|
@@ -66,10 +66,10 @@ files:
|
|
66
66
|
- README.md
|
67
67
|
- Rakefile
|
68
68
|
- lib/omniauth-line-messenger.rb
|
69
|
-
- lib/omniauth-line
|
70
|
-
- lib/omniauth/strategies/
|
69
|
+
- lib/omniauth-line/version.rb
|
70
|
+
- lib/omniauth/strategies/line.rb
|
71
71
|
- omniauth-line-messenger.gemspec
|
72
|
-
- spec/omniauth/strategies/
|
72
|
+
- spec/omniauth/strategies/line_spec.rb
|
73
73
|
- spec/spec_helper.rb
|
74
74
|
homepage: https://github.com/marsz/omniauth-line-messenger
|
75
75
|
licenses:
|
@@ -95,5 +95,5 @@ signing_key:
|
|
95
95
|
specification_version: 4
|
96
96
|
summary: OmniAuth strategy for Line
|
97
97
|
test_files:
|
98
|
-
- spec/omniauth/strategies/
|
98
|
+
- spec/omniauth/strategies/line_spec.rb
|
99
99
|
- spec/spec_helper.rb
|