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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79f8458cb7c4306e51a7cbfdc32ec4c30eb266fea5d622b2a32eb9eef3900e43
4
- data.tar.gz: 99e30e6dff57b2ecc094a920270ce98ea6dc6ffc8b96255efd0bed7f077cdd7e
3
+ metadata.gz: 7a114398832ddfb9d1840f56e13bff24815e0544bf008c7881cc7fbfffbc2a9d
4
+ data.tar.gz: 9dba621a81a9d2a1cc788c83b87d1a6459f2e3fd7f116fcd72d1571788398b7f
5
5
  SHA512:
6
- metadata.gz: 8339b116425c105f62bc2bd1c93a33ec6487885480972542fbe2de3634002cfaa144c253e8fd3d7e76693fdc8b23482353188485521b60e630120a814c629d1c
7
- data.tar.gz: 92da81f4da46e4ed6d0d268af1af6a7135674f6fef1c71f72432dca71a6be0f6ae047a3a400aecaf58f7022b018513fb62e99ccffe84cb26d98315cb431beaeb
6
+ metadata.gz: 822c22ba49404aa65a30635672503b181f1cc184c1cc925d623f2391f7fd624774680d998840aeed5c4a6fc1fa7fb1d20ec59401d85cd307ab032aa4e84a99ba
7
+ data.tar.gz: 6a161601b9b4fda458bc18fb06975791c1e50bf098713dd4a9eae00d98c8faf1dd009b35c9e386a12d657e7ccb9520e358ae9c73a2dfe6ee4838808327ccf922
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  /coverage
2
2
  /coverage/*
3
3
  *.DS_Store
4
+ *.gem
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-line-messenger (0.2.0)
4
+ omniauth-line-messenger (0.3.1)
5
5
  json (>= 2.3.0)
6
6
  omniauth-oauth2 (~> 1.3)
7
7
 
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 :line_messenger, "Channel_ID", "Channel_Secret"
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 LineMessenger < OmniAuth::Strategies::OAuth2
7
- option :name, 'line_messenger'
6
+ class Line < OmniAuth::Strategies::OAuth2
7
+ option :name, 'line'
8
8
  option :scope, 'profile openid email'
9
9
 
10
10
  option :client_options, {
@@ -0,0 +1,5 @@
1
+ module OmniAuth
2
+ module Line
3
+ VERSION = "0.3.1"
4
+ end
5
+ end
@@ -1,2 +1,2 @@
1
- require "omniauth-line-messenger/version"
2
- require 'omniauth/strategies/line_messenger'
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-messenger/version"
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::LineMessenger::VERSION
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::LineMessenger do
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::LineMessenger.new(*args).tap do |strategy|
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('line_messenger')
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.2.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-messenger/version.rb
70
- - lib/omniauth/strategies/line_messenger.rb
69
+ - lib/omniauth-line/version.rb
70
+ - lib/omniauth/strategies/line.rb
71
71
  - omniauth-line-messenger.gemspec
72
- - spec/omniauth/strategies/line_messenger_spec.rb
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/line_messenger_spec.rb
98
+ - spec/omniauth/strategies/line_spec.rb
99
99
  - spec/spec_helper.rb
@@ -1,5 +0,0 @@
1
- module OmniAuth
2
- module LineMessenger
3
- VERSION = "0.2.0"
4
- end
5
- end