TagoLine 0.1.4.22 → 0.1.4.23

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: 3df9e71ad211f8f08815b847d4d2e07b0ee57a378938cc49507c4ff4b43d05ee
4
- data.tar.gz: 5d6bf280916969f560697ebdcc7b6209ca600d304d3ed2318b4dfa472dfef4ac
3
+ metadata.gz: 1829940877a5c688d57b31fe88314b22e04cf51cf61c0b172d891b22931ab18a
4
+ data.tar.gz: ba6d4e8d8864aef5b8767e8fb5c8d1442980b7d06b35cf1718b287cece99b573
5
5
  SHA512:
6
- metadata.gz: 5df5f6b0a2eb50f176584a7bcd3ecdd3baaea52fba91b6eb0d1d20bd450e5663cf7cf819d44ee04d4b2eb554fc22bfe1c461c3045d5d2021c4807c10a7a53bcb
7
- data.tar.gz: d9b816dd959eabec310ad8c4b7d6afc8d4bdbc26f428bc0a3fe0ef78a01d655ab57b2ea7ca292dc1eeaf8d57edfec37f19564344230b8189c9926043a2e2a21e
6
+ metadata.gz: 5d70a9a4a4265be75b1445aab9600c24ba425ff2870670430ba4e5c667ffcd5cb7feb180d360456e6b65f623487762415c2c2b8dc2c43fa93055f28ad4230e2c
7
+ data.tar.gz: fe33e9f8887be4aa85ed31f8888b33e585150bd0be401cef49d0c6488c1e5c589ca8629525767f3b0604089f63a75d7845348bdff25144fa7b45d35e77806f27
@@ -0,0 +1,38 @@
1
+ require 'action_view'
2
+
3
+ module TagoLine
4
+ class LogoutButton
5
+
6
+ def self.show(logout_path)
7
+ text = buttonStyle()
8
+ text+="<a class='line_logout_button' href='"+logout_path+"'>Log out</a>"
9
+ text.html_safe
10
+ end
11
+
12
+ def self.buttonStyle()
13
+ "<style>
14
+ .line_logout_button {
15
+ width: 142px;
16
+ height: 40px;
17
+ display: block;
18
+ background-color: #06C755;
19
+ color:white;
20
+ text-decoration: none;
21
+ text-align: center;
22
+ line-height: 40px;
23
+ vertical-align: middle;
24
+ font-weight: bold;
25
+ font-size: 20px;
26
+ border-radius: 5px;
27
+ opacity: 0.8;
28
+ }
29
+ .line_login_button:hover{
30
+ opacity: 0.9;
31
+ }
32
+ .line_login_button:active{
33
+ opacity: 1;
34
+ }
35
+ </style>"
36
+ end
37
+ end
38
+ end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TagoLine
4
- VERSION = "0.1.4.22"
4
+ VERSION = "0.1.4.23"
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
@@ -3,6 +3,7 @@
3
3
  require_relative "TagoLine/version"
4
4
  require_relative "TagoLine/LoginButton"
5
5
  require_relative "TagoLine/LoginAction"
6
+ require_relative "TagoLine/LogoutButton"
6
7
 
7
8
  module TagoLine
8
9
  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.22
4
+ version: 0.1.4.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - manatago
@@ -27,6 +27,7 @@ files:
27
27
  - lib/TagoLine.rb
28
28
  - lib/TagoLine/LoginAction.rb
29
29
  - lib/TagoLine/LoginButton.rb
30
+ - lib/TagoLine/LogoutButton.rb
30
31
  - lib/TagoLine/version.rb
31
32
  - memo.txt
32
33
  - sig/TagoLine.rbs