kamiflex 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c263b635edb1b2ec1f8ce031a6cb03a02322ea41d0729c3ce33562c8ddc545d
4
- data.tar.gz: 7e3ff12df6581d21b24fea462187cd8ecae8c0127b91b90788f37b4c19cb7e54
3
+ metadata.gz: 4a54e9e5a93a8b848e690c7786b21554d25cdef6f672285e2a932365d8bb93f7
4
+ data.tar.gz: 11d6fc2407c6fbde0dbaa14d50ce57da60d1717d11598ed8458356d47da547aa
5
5
  SHA512:
6
- metadata.gz: 0d317727a0f21b3410cf0e3668cf4d42ba5678172b408e03ef71c21e38c8b80529f142dabc85bd732d8b237d4c6107d554b64cc75d2e35babcd124e2d573a653
7
- data.tar.gz: ac3bbee99bfb10890f40fb92d07531acd25d35692f0a8da07f20ed4f9e6999e08b14c662f196e4a84774fdac2db297ab9b12c5708f50cc4010e5a3a59d6c8c89
6
+ metadata.gz: '07456808dc44e31e39e1d60fc8cb9d01915fa865720914ac46d82aceb408142aaf5a1e275f9df3264ad12c7952935ee61b04e4860ddfa0e184a4df4e32e6bcd8'
7
+ data.tar.gz: f8cdb623cbb272ecdd9e80062f53c5756b647c3eced3a46ea93cf9c8d8c34a54582d81c13fb5daf24dd4ceb01af5bf7f43553f740fc4f84dde66800c1016a812
data/lib/kamiflex/core.rb CHANGED
@@ -44,8 +44,10 @@ module Kamiflex
44
44
  end
45
45
 
46
46
  def hero(image_url, **params)
47
- _attributes, _contents = flex_scope{ yield }
48
- @flex_attributes[:hero] = {}
47
+ @flex_attributes[:hero] = {
48
+ "type": "image",
49
+ "url": image_url
50
+ }.merge(params)
49
51
  end
50
52
 
51
53
  def body(**params)
@@ -1,3 +1,3 @@
1
1
  module Kamiflex
2
- VERSION = '0.9.0'
2
+ VERSION = '0.10.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kamiflex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - etrex kuo