kamiflex 0.11.6 → 0.11.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kamiflex/core.rb +4 -2
- data/lib/kamiflex/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: fe841ee1b9e6c5637e5ee7b6a6a66cef70ce7c1899cc7876a8dbf86fd4ac5194
|
4
|
+
data.tar.gz: 69f86b0ec3744c9e06dc3dc216ca717e9d6341350ac379cac2de81bc49c1bf9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2126b8e315dada2ede98b69fb2f15c44a57ccb66bd73066952f257f70b88dd914877415611a95decb34afd772edf0c8a7401605518743468088dd91880b8ca94
|
7
|
+
data.tar.gz: 424d2d48c700b8f27699144821ca689afb2a2be8ebc3334f904b80ecb748db8ceb3855d1360bf001886138d3606c883b5d80196bbd52af8b5759cd8eea0854a4
|
data/lib/kamiflex/core.rb
CHANGED
@@ -9,19 +9,21 @@ module Kamiflex
|
|
9
9
|
}.merge(attributes.slice(:quickReply))
|
10
10
|
end
|
11
11
|
|
12
|
-
def bubble
|
12
|
+
def bubble(**params)
|
13
13
|
attributes, _contents = flex_scope{ yield }
|
14
14
|
@flex_contents << {
|
15
15
|
type: "bubble"
|
16
16
|
}.merge(attributes.slice(:size, :direction, :header, :hero, :body, :footer, :styles, :action))
|
17
|
+
.merge(params)
|
17
18
|
end
|
18
19
|
|
19
|
-
def bubbles(resources)
|
20
|
+
def bubbles(resources, **params)
|
20
21
|
resources.each_with_index do |resource, index|
|
21
22
|
attributes, _contents = flex_scope{ yield(resource, index) }
|
22
23
|
@flex_contents << {
|
23
24
|
type: "bubble",
|
24
25
|
}.merge(attributes.slice(:size, :direction, :header, :hero, :body, :footer, :styles, :action))
|
26
|
+
.merge(params)
|
25
27
|
end
|
26
28
|
end
|
27
29
|
|
data/lib/kamiflex/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kamiflex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- etrex kuo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|