kamiflex 0.11.6 → 0.11.7

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: b93057c00b4e2f4a10384f1477293d1712adf5bf152a89f596eb0d3ce98f2531
4
- data.tar.gz: da305a4a5127a4f0db58dffa8515c9c6db26edf3ee79b1cf17bf38d495db1f0d
3
+ metadata.gz: fe841ee1b9e6c5637e5ee7b6a6a66cef70ce7c1899cc7876a8dbf86fd4ac5194
4
+ data.tar.gz: 69f86b0ec3744c9e06dc3dc216ca717e9d6341350ac379cac2de81bc49c1bf9d
5
5
  SHA512:
6
- metadata.gz: c0e492101a182aca203cb3dc70468a931ab0b559e7e58b7fb709716997c6283fd6c7480727fa1f56d10a1b153633a70158a2bd1ba38097cb1d083d240ad00c7c
7
- data.tar.gz: 05104dbf1e2225a7b3639c25b55403a099d0c14ab75a35c2ef54cb9320fef560e290baf05e6df827f6645d4728b6318c29c3c8836745693e1ca8afaf5f2f23f2
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
 
@@ -1,3 +1,3 @@
1
1
  module Kamiflex
2
- VERSION = '0.11.6'
2
+ VERSION = '0.11.7'
3
3
  end
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.6
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-10-23 00:00:00.000000000 Z
11
+ date: 2019-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json