kamiflex 0.11.1 → 0.11.2

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: 11abdd8c2f63fe46baabb6ff7d24042224ee1f7abe19cb182b798649508c3aa0
4
- data.tar.gz: 336419a07257fe95f7ef0afa8266c6bc5712775adfb6be79ddd64d8b1c94a355
3
+ metadata.gz: ee7f6e2e523c7ac235c92045c83d1a7f4a61fb9144813156fb4b4c954d78ca77
4
+ data.tar.gz: f4c773bb6344b3eb3ef8a211aee3a74382e9add51e7a4733b784c96108c0d4ae
5
5
  SHA512:
6
- metadata.gz: 2360bf3c9625eaf9d669b96010a33afe58e685fea436b5663829c0ea1fc7508df622edccc4840fc08e9814b88e2916ff3e96bea0e1581224d2c479677c3d918b
7
- data.tar.gz: 774caacdfe7c0165370fcec909025f8c44d4ec5469024461bf9cf9e2036f50daadaf3f54d62299458ff1947eca34e25c44a286aae1d65a8e67026624cb2ce930
6
+ metadata.gz: 1bfaf59125370ba614fa5122b04f86e883755234027c4a08c3381786ddf926164984f5ea7b4fce5f79d1bf9a2df937bdac8afae7e42b3466e152653e72810197
7
+ data.tar.gz: 7eb5793ffbc81fa740fa1f717c0dd7650d3bdb706a3785e4a29d56c84edbc8341b53da8f2eccacb5469df750d965213d75188d52537b0a155bc1a24b944574b6
data/lib/kamiflex/core.rb CHANGED
@@ -17,8 +17,8 @@ module Kamiflex
17
17
  end
18
18
 
19
19
  def bubbles(resources)
20
- resources.each do |resource|
21
- attributes, _contents = flex_scope{ yield resource }
20
+ resources.each_with_index do |resource|
21
+ attributes, _contents = flex_scope{ yield(resource, index) }
22
22
  @flex_contents << {
23
23
  type: "bubble",
24
24
  }.merge(attributes.slice(:size, :direction, :header, :hero, :body, :footer, :style, :action))
@@ -70,8 +70,8 @@ module Kamiflex
70
70
 
71
71
  # container
72
72
  def horizontal_box(resources = [nil], **params)
73
- resources.each do |resource|
74
- _attributes, contents = flex_scope{ yield resource }
73
+ resources.each_with_index do |resource, index|
74
+ _attributes, contents = flex_scope{ yield(resource, index) }
75
75
  @flex_contents << {
76
76
  type: "box",
77
77
  layout: "horizontal",
@@ -1,3 +1,3 @@
1
1
  module Kamiflex
2
- VERSION = '0.11.1'
2
+ VERSION = '0.11.2'
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.1
4
+ version: 0.11.2
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-06 00:00:00.000000000 Z
11
+ date: 2019-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json