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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79d7bd3508b184b52903565973ca685d5c8e11032e105247e81635f2210b4db9
4
- data.tar.gz: 44294f14f2b6912eb5fc14cd616e838d48e54c504ceb822e301e97a2345aa7e0
3
+ metadata.gz: 67e7634547fd11ce85cb180a5ca851f7738bcf9f3c13a2d8fc90f54c62c31e87
4
+ data.tar.gz: 789cd493d0f2ee077988fae2aff5d7746982b8578e56b99b8ae479ff4635a140
5
5
  SHA512:
6
- metadata.gz: 899208393b618eb0e875ae8ff93e7b1154c4f26f5fe23809af4c1d8a18522c120c852deed6a7039774df7ab50d14e270f3da2b02613dc54a3e79f4aa93c94f28
7
- data.tar.gz: 69ded20235375e4e340c9e7cbf3fe56a1853cff3b7ea2c13869759ccbb884f95182d63857e3c956c708b9f2ab88ed2843876b91664bb87f5214f56ce102a510c
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
- size: size
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[:size] || :compact
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}"]
@@ -1,3 +1,3 @@
1
1
  module Kamiliff
2
- VERSION = '0.25.0'
2
+ VERSION = '0.26.0'
3
3
  end
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.25.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-02-24 00:00:00.000000000 Z
11
+ date: 2021-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails