ui_bibz 3.0.0.alpha11 → 3.0.0.alpha12

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: 14f3630b3e813fbac60b0a3e5a7651a09a507dd3dee4a0e252288a7baa3728e2
4
- data.tar.gz: b9baafb65a65cc12b9e1d57c4fec819f01a6b36cd1e6865c9d26a4a8a5fac155
3
+ metadata.gz: d07d4573a050023aaaff846d4650f8b802c00782cc7fe30ed14107198933ab11
4
+ data.tar.gz: 546e986d41e72153d86002461adbaa26d6646db7952964fc51cbd699ae9443d8
5
5
  SHA512:
6
- metadata.gz: 890d5d75f44d9e31753f5928ffac99386adbf43ed95ad0cc452edf6b492aa3e6cc5de07186c62923ac091de30b759c191872b62d76eebffbf50c5630f7317297
7
- data.tar.gz: 41bf57292c76239790786809649dd5d8bb83220b20789976b1af1c4d5332f210335448de36dce170d3610c86c93529af3816c352b57ba9f9ec73d7de95afa561
6
+ metadata.gz: be6d842f92e1393f0672190054d7f1a7181ce040921d1bc0e7b861ddc40db059a9d1b1edb2d9599630511c3c35894f9d7d0adb159e74ee9b24faf87c3f5d61c2
7
+ data.tar.gz: cea2368f567e2442f90588fd959a10db60acf2461e795d2b40d807706b7b400648b82c2630243ef642bd8f695c85da29812c70a3c1252ad1a06e11754c1abbf4
@@ -2,3 +2,4 @@
2
2
 
3
3
  github: thooams
4
4
  patreon: user?u=8672183
5
+ liberapay: thooams
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ui_bibz (3.0.0.alpha11)
4
+ ui_bibz (3.0.0.alpha12)
5
5
  rails (~> 6.0.3, >= 6.0.3.2)
6
6
  will-paginate-i18n
7
7
  will_paginate (~> 3.1.0)
@@ -84,7 +84,7 @@ GEM
84
84
  railties (>= 3.0.0)
85
85
  globalid (0.4.2)
86
86
  activesupport (>= 4.2.0)
87
- haml (5.2.0)
87
+ haml (5.2.1)
88
88
  temple (>= 0.8.0)
89
89
  tilt
90
90
  haml-rails (2.0.1)
@@ -105,7 +105,7 @@ GEM
105
105
  rails-dom-testing (>= 1, < 3)
106
106
  railties (>= 4.2.0)
107
107
  thor (>= 0.14, < 2.0)
108
- loofah (2.7.0)
108
+ loofah (2.8.0)
109
109
  crass (~> 1.0.2)
110
110
  nokogiri (>= 1.5.9)
111
111
  mail (2.7.1)
@@ -157,7 +157,7 @@ GEM
157
157
  thor (>= 0.20.3, < 2.0)
158
158
  rainbow (3.0.0)
159
159
  rake (13.0.1)
160
- regexp_parser (1.8.2)
160
+ regexp_parser (2.0.0)
161
161
  rexml (3.2.4)
162
162
  rubocop (1.4.2)
163
163
  parallel (~> 1.10)
@@ -168,11 +168,11 @@ GEM
168
168
  rubocop-ast (>= 1.1.1)
169
169
  ruby-progressbar (~> 1.7)
170
170
  unicode-display_width (>= 1.4.0, < 2.0)
171
- rubocop-ast (1.2.0)
171
+ rubocop-ast (1.3.0)
172
172
  parser (>= 2.7.1.5)
173
173
  rubocop-minitest (0.10.1)
174
174
  rubocop (>= 0.87)
175
- rubocop-performance (1.9.0)
175
+ rubocop-performance (1.9.1)
176
176
  rubocop (>= 0.90.0, < 2.0)
177
177
  rubocop-ast (>= 0.4.0)
178
178
  rubocop-rails (2.8.1)
@@ -186,10 +186,12 @@ GEM
186
186
  simple_form (5.0.3)
187
187
  actionpack (>= 5.0)
188
188
  activemodel (>= 5.0)
189
- simplecov (0.19.1)
189
+ simplecov (0.20.0)
190
190
  docile (~> 1.1)
191
191
  simplecov-html (~> 0.11)
192
+ simplecov_json_formatter (~> 0.1)
192
193
  simplecov-html (0.12.3)
194
+ simplecov_json_formatter (0.1.2)
193
195
  sprockets (4.0.2)
194
196
  concurrent-ruby (~> 1.0)
195
197
  rack (> 1, < 3)
@@ -212,7 +214,7 @@ GEM
212
214
  will_paginate (3.1.8)
213
215
  will_paginate-bootstrap4 (0.2.2)
214
216
  will_paginate (~> 3.0, >= 3.0.0)
215
- zeitwerk (2.4.1)
217
+ zeitwerk (2.4.2)
216
218
 
217
219
  PLATFORMS
218
220
  ruby
@@ -227,6 +229,7 @@ DEPENDENCIES
227
229
  minitest
228
230
  overcommit
229
231
  rubocop
232
+ rubocop-ast
230
233
  rubocop-minitest
231
234
  rubocop-performance
232
235
  rubocop-rails
data/README.md CHANGED
@@ -19,7 +19,7 @@ Ui Bibz load [Bootstrap](http://getbootstrap.com/) and [Font Awesome](http://fon
19
19
 
20
20
  ## Documentation
21
21
  Full documentation is here with bootstrap 5:
22
- [Ui Bibz v3](http://hummel.link/Ui-Bibz/)
22
+ [Ui Bibz v3](http://hummel.link/ui-bibz/)
23
23
 
24
24
  Older documentation is here with bootstrap 4:
25
25
  [Ui Bibz v2.5](http://hummel.link/Ui-Bibz/docs/v2.5/)
@@ -12,6 +12,6 @@ module UiBibz
12
12
  REPO = 'git+https://github.com/thooams/Ui-Bibz.git'
13
13
  EMAIL = 'thomas@hummel.link'
14
14
  AUTHOR = 'Thooams [Thomas HUMMEL]'
15
- VERSION = '3.0.0.alpha11'
15
+ VERSION = '3.0.0.alpha12'
16
16
  AUTHORS = ['Thooams'].freeze
17
17
  end
@@ -6,11 +6,17 @@ module UiBibz::Ui::Concerns::HtmlConcern #:nodoc:
6
6
  included do
7
7
  def html(content = nil, &block)
8
8
  if block.nil?
9
- @items << content
9
+ @items << RenderString.new(content)
10
10
  else
11
11
  context = eval('self', block.binding) # rubocop:disable Style/EvalWithLocation
12
- @items << context.capture(&block)
12
+ @items << RenderString.new(context.capture(&block))
13
13
  end
14
14
  end
15
15
  end
16
16
  end
17
+
18
+ class RenderString < SimpleDelegator
19
+ def render
20
+ self
21
+ end
22
+ end
@@ -21,12 +21,14 @@ module UiBibz::Ui::Core::Forms::Dropdowns
21
21
  # * +status+ - status of element with symbol value:
22
22
  # (+:primary+, +:secondary+, +:info+, +:warning+, +:danger+)
23
23
  # * +size+
24
+ # * +open+ - Boolean
24
25
  # (+:xs+, +:sm+, +:lg+)
25
26
  # * +glyph+ - Add glyph with name or hash options
26
27
  # * +name+ - String
27
28
  # * +size+ - Integer
28
29
  # * +type+ - Symbol
29
30
  # * +html_button+ - Hash
31
+ # * +theme+ - Symbol, defaut: +:dark+
30
32
  # * +position+ - Symbol
31
33
  # (+:up+, +:right+, +:down+, +:left+)
32
34
  # * +alignment+ - Symbol
@@ -25,7 +25,13 @@ module UiBibz::Ui::Core::Forms::Selects
25
25
  # * +searchable+ - Boolean
26
26
  # * +select_all_option+ - Boolean
27
27
  # * +append+ - String, Html
28
+ # * +open+ - Boolean
29
+ # * +theme+ - Symbol, defaut: +:dark+
28
30
  # * +prepend+ - String, Html
31
+ # * +position+ - Symbol
32
+ # (+:up+, +:right+, +:down+, +:left+)
33
+ # * +alignment+ - Symbol
34
+ # (+:right)
29
35
  # * +connect+ - Hash
30
36
  # * +event+ - String
31
37
  # * +mode+ - String
@@ -90,7 +90,7 @@ module UiBibz::Ui::Core::Lists
90
90
  options = options.merge({ tag_type: @options[:tag_type] }) unless @options[:tag_type].nil?
91
91
 
92
92
  @lists << if tapped?(block)
93
- content = (content || {}).merge(tap: true)
93
+ content = (content || {}).merge(options)
94
94
  UiBibz::Ui::Core::Lists::Components::List.new(content, options, html_options).tap(&block).render
95
95
  else
96
96
  UiBibz::Ui::Core::Lists::Components::List.new(content, options, html_options, &block).render
@@ -13,7 +13,7 @@ class ListGroupTest < ActionView::TestCase
13
13
  l.body 'My body'
14
14
  end
15
15
  end
16
- expected = '<div class="list-group"><a href="#momo" class="list-group-item-success list-group-item list-group-item-action">Momo</a><li href="#state" class="list-group-item flex-column align-items-start"><div class="d-flex w-100 justify-content-between"><h5 class="mb-1">My title</h5><small></small></div><p class="mb-1">My body</p><small></small></li></div>'
16
+ expected = "<div class=\"list-group\"><a href=\"#momo\" class=\"list-group-item-success list-group-item list-group-item-action\">Momo</a><a href=\"#state\" class=\"list-group-item list-group-item-action\"><div class=\"d-flex w-100 justify-content-between\"><h5 class=\"mb-1\">My title</h5><small></small></div><p class=\"mb-1\">My body</p><small></small></a></div>"
17
17
 
18
18
  assert_equal expected, actual
19
19
  end
@@ -41,6 +41,7 @@ Gem::Specification.new do |s|
41
41
  s.add_development_dependency 'minitest'
42
42
  s.add_development_dependency 'overcommit'
43
43
  s.add_development_dependency 'rubocop'
44
+ s.add_development_dependency 'rubocop-ast'
44
45
  s.add_development_dependency 'rubocop-minitest'
45
46
  s.add_development_dependency 'rubocop-performance'
46
47
  s.add_development_dependency 'rubocop-rails'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ui_bibz
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.alpha11
4
+ version: 3.0.0.alpha12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thooams [Thomas HUMMEL]
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-25 00:00:00.000000000 Z
11
+ date: 2020-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -156,6 +156,20 @@ dependencies:
156
156
  - - ">="
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
+ - !ruby/object:Gem::Dependency
160
+ name: rubocop-ast
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: '0'
159
173
  - !ruby/object:Gem::Dependency
160
174
  name: rubocop-minitest
161
175
  requirement: !ruby/object:Gem::Requirement