kamiliff 0.18.0 → 0.19.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/app/views/layouts/liff.html.erb +20 -3
- data/lib/kamiliff/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 498ccd4075fc6cdf241d6ec11ecc943a1d5a18799677baf5a4b665585eca0658
|
4
|
+
data.tar.gz: ce48f53be68d877bb2efacc71eb264e8d6d74a499287bd9b1ba478bc10e12ea9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecd86a4de7d7e18be3a9ba5049ab36bdee3ebfa246ce07225a632d6739d86758dd71dc4e6aaa072110d750653029adc341e1c1bec06450e4c12eef0c14f7975e
|
7
|
+
data.tar.gz: 1538d204048373fa00fc63e9f8046039b2e8312ad48525d6505d3155fa381871339ad76d61c43dfe1088e06201c121e4cd15e38ec33491aaea0f56a814b98566
|
@@ -5,12 +5,29 @@
|
|
5
5
|
<%= csrf_meta_tags %>
|
6
6
|
<%= csp_meta_tag %>
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1" >
|
8
|
-
<script src="https://static.line-scdn.net/liff/edge/2.
|
9
|
-
|
8
|
+
<script src="https://static.line-scdn.net/liff/edge/versions/2.5.0/sdk.js"></script>
|
9
|
+
|
10
|
+
<% asset_application_js_path = Dir.glob("#{Rails.root}/app/assets/javascripts/application.*").first %>
|
11
|
+
<% if asset_application_js_path.present? %>
|
12
|
+
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
|
13
|
+
<% end %>
|
14
|
+
|
15
|
+
<% webpacker_application_js_path = Dir.glob("#{Rails.root}/app/javascript/packs/application.*").first %>
|
16
|
+
<% if webpacker_application_js_path.present? %>
|
17
|
+
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
18
|
+
<% end %>
|
19
|
+
|
20
|
+
<% has_jquery = [asset_application_js_path, webpacker_application_js_path].compact.map do |path|
|
21
|
+
(File.read(path) =~ /jquery/i).present?
|
22
|
+
end.any? %>
|
23
|
+
|
24
|
+
<% unless has_jquery %>
|
25
|
+
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
|
26
|
+
<script> alert("has no jquery") </script>
|
27
|
+
<% end %>
|
10
28
|
|
11
29
|
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
12
30
|
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
13
|
-
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
14
31
|
<script>
|
15
32
|
function liff_send_text_message(text){
|
16
33
|
liff.sendMessages(
|
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.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- etrex kuo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|