kamiflex 0.11.1 → 0.11.2
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 -4
- 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: ee7f6e2e523c7ac235c92045c83d1a7f4a61fb9144813156fb4b4c954d78ca77
|
4
|
+
data.tar.gz: f4c773bb6344b3eb3ef8a211aee3a74382e9add51e7a4733b784c96108c0d4ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
21
|
-
attributes, _contents = flex_scope{ yield
|
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.
|
74
|
-
_attributes, contents = flex_scope{ yield
|
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",
|
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.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-
|
11
|
+
date: 2019-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|