TagoLine 0.1.4.11 → 0.1.4.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b44b1562e4fdab2342d5484cadbd85d74ff301ec0b7a4c46b563a095cd0343b
4
- data.tar.gz: 89f744db564ee2dfec4e03da8770dda1fcbced8932f78c6096179993024c36ca
3
+ metadata.gz: d01f8a4790e72e5295b6d7273cb91102be71e87d8b9858af943fcfd8850ea6b2
4
+ data.tar.gz: 8065d9129599ffa91d1fc8b752e4b5fc217e126b83f87cb27531b961abf048bf
5
5
  SHA512:
6
- metadata.gz: a5c399fd753951ba96cd805fe55a0e5a708e24a3c98fa738f5888d197bceb0e050ba624e3a152f132bc290e71838467b5de91a993449ccc5c5cfd3022d478a43
7
- data.tar.gz: 55f717d9a261577c44b9708a5a1b69afc7e133850d840e3a8a4168adb5377d8f8b60aee77dfe356fea81c7fb22fea21cc12f9db74825b0b2ae1e5b6065c5619c
6
+ metadata.gz: 9dec2ebb83b6d5bef94d77ad48ae4ec90c58cedc1babd0803c9541960b3095029df4b9930356caeedf61bfff7789c76594de6f59f12a6f7a107c54d93d5bc4a5
7
+ data.tar.gz: bc0feb261383e6848954133c46dbbe1a5a5e1eedb6440446a1d300b2ef1416f21e2476242010a45d69a0417e29f8d6765e7687731cb35ce0b945de9c9fd7cb61
data/README.md CHANGED
@@ -10,5 +10,6 @@ LINE_CHANNEL_SECRET
10
10
  ## ログインボタン
11
11
  ビューの中でこう書きます。
12
12
  ```
13
- <%= TagoLine::LoginButton.show %>
14
- ```
13
+ <%= TagoLine::LoginButton.show(controller) %>
14
+ ```
15
+ セッションを使うため、引数にcontrollerが必要です
@@ -0,0 +1,10 @@
1
+ require 'rails/all'
2
+
3
+ module TagoLine
4
+ class LoginAction
5
+ def self.stateIsRight(controller)
6
+ controller.session[:line_state] == controller.params[:state]
7
+ end
8
+
9
+ end
10
+ end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TagoLine
4
- VERSION = "0.1.4.11"
4
+ VERSION = "0.1.4.12"
5
5
  CALLBACK_URL = ENV["LINE_CALLBACK_URL"]
6
6
  CHANNEL_ID = ENV["LINE_CHANNEL_ID"]
7
7
  CHANNEL_SECRET = ENV["LINE_CHANNEL_SECRET"]
data/lib/TagoLine.rb CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require_relative "TagoLine/version"
4
4
  require_relative "TagoLine/LoginButton"
5
+ require_relative "TagoLine/LoginAction"
5
6
 
6
7
  module TagoLine
7
8
  class Error < StandardError; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: TagoLine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4.11
4
+ version: 0.1.4.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - manatago
@@ -25,6 +25,7 @@ files:
25
25
  - README.md
26
26
  - Rakefile
27
27
  - lib/TagoLine.rb
28
+ - lib/TagoLine/LoginAction.rb
28
29
  - lib/TagoLine/LoginButton.rb
29
30
  - lib/TagoLine/version.rb
30
31
  - memo.txt