kamiliff 0.25.0 → 0.26.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/lib/kamiliff/services/liff_base64_service.rb +2 -2
- 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: 67e7634547fd11ce85cb180a5ca851f7738bcf9f3c13a2d8fc90f54c62c31e87
|
4
|
+
data.tar.gz: 789cd493d0f2ee077988fae2aff5d7746982b8578e56b99b8ae479ff4635a140
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1022327b2f5265a6abc343576a35999d88a36a207a3f0ddb8fe0bdd85ee28a769c099809c567bd135769ac8b5f5356924e66ef917fede1cc12a56664f9fc9fb
|
7
|
+
data.tar.gz: 4a8abeb3abb678138d5174f989cb907ec72ac93b4a03b3f4b1ffed3d790e8ae883d09b610d1283bca195091a4d1d79278eb19b9a6c721e1558a9740ed5e2a111
|
@@ -26,7 +26,7 @@ class LiffBase64Service
|
|
26
26
|
def to_base64
|
27
27
|
json = {
|
28
28
|
path: path,
|
29
|
-
|
29
|
+
liff_size: size
|
30
30
|
}.to_json
|
31
31
|
base64_string = Base64.encode64(json)
|
32
32
|
base64_string.tr('+','-').tr('/','_').tr("\n", '').tr('=', '')
|
@@ -35,7 +35,7 @@ class LiffBase64Service
|
|
35
35
|
def initialize(options)
|
36
36
|
options = options.with_indifferent_access
|
37
37
|
self.path = options[:path] || "/"
|
38
|
-
self.size = options[:
|
38
|
+
self.size = options[:liff_size] || :compact
|
39
39
|
self.size = size.to_s.upcase
|
40
40
|
raise "liff_size should be compact, tall or full." unless size.in? %w[COMPACT TALL FULL]
|
41
41
|
self.url = ENV["LIFF_#{size}"]
|
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.26.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: 2021-
|
11
|
+
date: 2021-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|