kamiflex 0.11.7 → 0.12.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: fe841ee1b9e6c5637e5ee7b6a6a66cef70ce7c1899cc7876a8dbf86fd4ac5194
4
- data.tar.gz: 69f86b0ec3744c9e06dc3dc216ca717e9d6341350ac379cac2de81bc49c1bf9d
3
+ metadata.gz: b9c0e63d45a74a91db303733a98b67ca7d86f9864a320a8dddeb80362e4e812f
4
+ data.tar.gz: 0e4a0b7ff1ed8ca8203253dcee0963574afc2670331c80de6a6fa51bb335a66a
5
5
  SHA512:
6
- metadata.gz: 2126b8e315dada2ede98b69fb2f15c44a57ccb66bd73066952f257f70b88dd914877415611a95decb34afd772edf0c8a7401605518743468088dd91880b8ca94
7
- data.tar.gz: 424d2d48c700b8f27699144821ca689afb2a2be8ebc3334f904b80ecb748db8ceb3855d1360bf001886138d3606c883b5d80196bbd52af8b5759cd8eea0854a4
6
+ metadata.gz: 20d529c449aaf92c79dc54ef9a9ab36b1e015a702bf5cd4991209a6e4d2b463327f5d3c3c0a4d5d49af2c789b20b8ef9cc82afbe59c364fcfc2ef0ae50f6ecd7
7
+ data.tar.gz: a10f3ed766e09479f92f1f5ba3983230e5c1d467db944e60d898d1493cceb526052482a0f04df758555ae57ec7189f7cc94529a2c0cda0460622ed07c6c04406
@@ -70,6 +70,15 @@ module Kamiflex
70
70
  }.merge(params)
71
71
  end
72
72
 
73
+ # style
74
+ def styles(params)
75
+ @flex_attributes[:styles] = params
76
+ end
77
+
78
+ def alt_text(text)
79
+ @flex_attributes[:altText] = text
80
+ end
81
+
73
82
  # container
74
83
  def horizontal_box(resources = [nil], **params)
75
84
  resources.each_with_index do |resource, index|
@@ -82,11 +91,6 @@ module Kamiflex
82
91
  end
83
92
  end
84
93
 
85
- # style
86
- def styles(params)
87
- @flex_attributes[:styles] = params
88
- end
89
-
90
94
  def vertical_box(resources = [nil], **params, &block)
91
95
  horizontal_box(resources, layout: "vertical", **params, &block)
92
96
  end
@@ -1,3 +1,3 @@
1
1
  module Kamiflex
2
- VERSION = '0.11.7'
2
+ VERSION = '0.12.0'
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.7
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - etrex kuo
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-01 00:00:00.000000000 Z
11
+ date: 2020-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -49,7 +49,7 @@ licenses:
49
49
  - MIT
50
50
  metadata:
51
51
  allowed_push_host: https://rubygems.org
52
- post_install_message:
52
+ post_install_message:
53
53
  rdoc_options: []
54
54
  require_paths:
55
55
  - lib
@@ -64,8 +64,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  - !ruby/object:Gem::Version
65
65
  version: '0'
66
66
  requirements: []
67
- rubygems_version: 3.0.3
68
- signing_key:
67
+ rubygems_version: 3.1.2
68
+ signing_key:
69
69
  specification_version: 4
70
70
  summary: 'Kamiflex: generate JSON objects for Line flex message with a Builder-style
71
71
  DSL'