kamiliff 0.35.0 → 0.36.0
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 +4 -4
- data/README.md +2 -10
- data/app/views/layouts/liff.html.erb +5 -0
- data/lib/kamiliff/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '08439d7e6a285b6c66ce2062b66380a3a02f394d64d5f77481366aabec0a6fba'
|
|
4
|
+
data.tar.gz: c49f2289b9000afef8b5a3fee6c59939b213decb75b2f39ad43cc3c6c6848f80
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 40006ab4d1dcccd8852c5d37e6839fae92862be4009d5ef0b78e9f977869bbfe99a82a0ba0149670afa96b6cbe4015eb36ba57094c22416361a009f5cbf0b282
|
|
7
|
+
data.tar.gz: b4f16684820e5ddddb9fbfb8f627ddc4701cdb38d16515cff3348936a75ab3858e5fd0e54a04a6e9b2e6191f4ea172ad7c3dc957f3f0379e3dc8128468757fc5
|
data/README.md
CHANGED
|
@@ -46,22 +46,14 @@ For the [Behaviors from accessing the LIFF URL to opening the LIFF app](https://
|
|
|
46
46
|
### Set environment variables
|
|
47
47
|
Create a file `.env` with the following content under the root directory. Kamiliff provides two setting ways, you can choose the one based on the position where LIFF apps added.
|
|
48
48
|
|
|
49
|
-
- LIFF apps added to Messaging API channel (v1)
|
|
50
|
-
```
|
|
51
|
-
LIFF_COMPACT=line://app/{FOR_COMPACT_LIFF_ID}
|
|
52
|
-
LIFF_TALL=line://app/{FOR_TALL_LIFF_ID}
|
|
53
|
-
LIFF_FULL=line://app/{FOR_FULL_LIFF_ID}
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
- LIFF apps added to LINE Login channel (v2)
|
|
57
49
|
```
|
|
50
|
+
LINE_LOGIN_CHANNEL_ID={LINE_LOGIN_CHANNEL_ID}
|
|
51
|
+
LINE_LOGIN_CHANNEL_SECRET={LINE_LOGIN_CHANNEL_SECRET}
|
|
58
52
|
LIFF_COMPACT=https://liff.line.me/{FOR_COMPACT_LIFF_ID}
|
|
59
53
|
LIFF_TALL=https://liff.line.me/{FOR_TALL_LIFF_ID}
|
|
60
54
|
LIFF_FULL=https://liff.line.me/{FOR_FULL_LIFF_ID}
|
|
61
55
|
```
|
|
62
56
|
|
|
63
|
-
You could choose another setting method.
|
|
64
|
-
|
|
65
57
|
### Generate simple todo resource
|
|
66
58
|
Create todo resource:
|
|
67
59
|
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
|
18
18
|
<% end %>
|
|
19
19
|
|
|
20
|
+
<% importmap_config_path = Dir.glob("#{Rails.root}/config/importmap.*").first %>
|
|
21
|
+
<% if importmap_config_path.present? %>
|
|
22
|
+
<%= javascript_importmap_tags %>
|
|
23
|
+
<% end %>
|
|
24
|
+
|
|
20
25
|
<% has_jquery = [asset_application_js_path, webpacker_application_js_path].compact.map do |path|
|
|
21
26
|
(File.read(path) =~ /jquery/i).present?
|
|
22
27
|
end.any? %>
|
data/lib/kamiliff/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kamiliff
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.36.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- etrex kuo
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-06-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -72,7 +72,7 @@ licenses:
|
|
|
72
72
|
- MIT
|
|
73
73
|
metadata:
|
|
74
74
|
allowed_push_host: https://rubygems.org
|
|
75
|
-
post_install_message:
|
|
75
|
+
post_install_message:
|
|
76
76
|
rdoc_options: []
|
|
77
77
|
require_paths:
|
|
78
78
|
- lib
|
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
88
88
|
version: '0'
|
|
89
89
|
requirements: []
|
|
90
90
|
rubygems_version: 3.1.4
|
|
91
|
-
signing_key:
|
|
91
|
+
signing_key:
|
|
92
92
|
specification_version: 4
|
|
93
93
|
summary: An easy way to use LINE Front-end Framework(LIFF) on rails.
|
|
94
94
|
test_files: []
|