ui_bibz 3.0.0 → 3.0.1

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: '08901c79a02f3cdf155c8ebaaabbbeb51ca9f1c288683c9ed7a011f9fd0db79b'
4
- data.tar.gz: a6775b311c69081ceaa310231e8a75c1734ee2e5137995dc14a667a88f77555f
3
+ metadata.gz: 3ea698e25d31853e0cf7b8fe660f0b5ec71495e8fb76e5669aaa101a037c43ec
4
+ data.tar.gz: d9c1a0975f1799f749b767743fea8ab0e9cac10a22694417bb9aae162aefad15
5
5
  SHA512:
6
- metadata.gz: b0ea16797c341c948a1d249a72e9707368fce3b8547ece6cbde40a5c29932e0871a78247d2e28ef22b74b392eb89913b5e30c73bb0535dd1b6bc79b537cc7a88
7
- data.tar.gz: d79f28d50fd11585ec2f798a49a151c9422e240d9573f4ae52502eb13f22a7f4d2a15054e50174e6b41ba629ca663f05336a7c64692c9821c68bff82f73ba020
6
+ metadata.gz: d2f33e5118202bddb6a7dd05e4db66dc92bbe9e9aa8598ee055aa0756352566b1052c2d6bae950647880d39cc2daf4c1bc3d69169c144fd54115dd40940bc035
7
+ data.tar.gz: 9fc847dbd4165c92043f7376276db0720f102ed98a4af29161fd4fd48225fcfc930db39a90895b975a97196678618efec022998f8c15f5c94be94003b813efce
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ui_bibz (3.0.0)
4
+ ui_bibz (3.0.1)
5
5
  will-paginate-i18n
6
6
  will_paginate (~> 3.3.0)
7
7
  will_paginate-bootstrap4
@@ -83,9 +83,9 @@ GEM
83
83
  factory_bot_rails (4.11.1)
84
84
  factory_bot (~> 4.11.1)
85
85
  railties (>= 3.0.0)
86
- globalid (0.4.2)
87
- activesupport (>= 4.2.0)
88
- haml (5.2.1)
86
+ globalid (0.5.2)
87
+ activesupport (>= 5.0)
88
+ haml (5.2.2)
89
89
  temple (>= 0.8.0)
90
90
  tilt
91
91
  haml-rails (2.0.1)
@@ -106,7 +106,7 @@ GEM
106
106
  rails-dom-testing (>= 1, < 3)
107
107
  railties (>= 4.2.0)
108
108
  thor (>= 0.14, < 2.0)
109
- loofah (2.10.0)
109
+ loofah (2.12.0)
110
110
  crass (~> 1.0.2)
111
111
  nokogiri (>= 1.5.9)
112
112
  mail (2.7.1)
@@ -114,11 +114,11 @@ GEM
114
114
  marcel (1.0.1)
115
115
  method_source (1.0.0)
116
116
  mini_mime (1.1.0)
117
- mini_portile2 (2.5.3)
117
+ mini_portile2 (2.6.1)
118
118
  minitest (5.14.4)
119
- nio4r (2.5.7)
120
- nokogiri (1.11.7)
121
- mini_portile2 (~> 2.5.0)
119
+ nio4r (2.5.8)
120
+ nokogiri (1.12.3)
121
+ mini_portile2 (~> 2.6.1)
122
122
  racc (~> 1.4)
123
123
  overcommit (0.58.0)
124
124
  childprocess (>= 0.6.3, < 5)
@@ -161,20 +161,20 @@ GEM
161
161
  rake (13.0.6)
162
162
  regexp_parser (2.1.1)
163
163
  rexml (3.2.5)
164
- rubocop (1.18.3)
164
+ rubocop (1.19.0)
165
165
  parallel (~> 1.10)
166
166
  parser (>= 3.0.0.0)
167
167
  rainbow (>= 2.2.2, < 4.0)
168
168
  regexp_parser (>= 1.8, < 3.0)
169
169
  rexml
170
- rubocop-ast (>= 1.7.0, < 2.0)
170
+ rubocop-ast (>= 1.9.1, < 2.0)
171
171
  ruby-progressbar (~> 1.7)
172
172
  unicode-display_width (>= 1.4.0, < 3.0)
173
- rubocop-ast (1.8.0)
173
+ rubocop-ast (1.10.0)
174
174
  parser (>= 3.0.1.1)
175
- rubocop-minitest (0.14.0)
175
+ rubocop-minitest (0.15.0)
176
176
  rubocop (>= 0.90, < 2.0)
177
- rubocop-performance (1.11.4)
177
+ rubocop-performance (1.11.5)
178
178
  rubocop (>= 1.7.0, < 2.0)
179
179
  rubocop-ast (>= 0.4.0)
180
180
  rubocop-rails (2.11.3)
@@ -182,7 +182,7 @@ GEM
182
182
  rack (>= 1.1)
183
183
  rubocop (>= 1.7.0, < 2.0)
184
184
  ruby-progressbar (1.11.0)
185
- ruby_parser (3.16.0)
185
+ ruby_parser (3.17.0)
186
186
  sexp_processor (~> 4.15, >= 4.15.1)
187
187
  sexp_processor (4.15.3)
188
188
  simple_form (5.1.0)
@@ -212,7 +212,7 @@ GEM
212
212
  websocket-extensions (>= 0.1.0)
213
213
  websocket-extensions (0.1.5)
214
214
  will-paginate-i18n (0.1.15)
215
- will_paginate (3.3.0)
215
+ will_paginate (3.3.1)
216
216
  will_paginate-bootstrap4 (0.2.2)
217
217
  will_paginate (~> 3.0, >= 3.0.0)
218
218
  yard (0.9.26)
data/lib/ui_bibz.rb CHANGED
@@ -43,7 +43,7 @@ module UiBibz
43
43
  attr_accessor :configuration
44
44
  end
45
45
 
46
- def self.configured? #:nodoc:
46
+ def self.configured? # :nodoc:
47
47
  @@configured
48
48
  end
49
49
 
data/lib/ui_bibz/infos.rb CHANGED
@@ -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'
15
+ VERSION = '3.0.1'
16
16
  AUTHORS = ['Thooams'].freeze
17
17
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module UiBibz::Ui::Concerns::CardItemableConcern #:nodoc:
3
+ module UiBibz::Ui::Concerns::CardItemableConcern # :nodoc:
4
4
  extend ActiveSupport::Concern
5
5
  include UiBibz::Ui::Concerns::HtmlConcern
6
6
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module UiBibz::Ui::Concerns::HtmlConcern #:nodoc:
3
+ module UiBibz::Ui::Concerns::HtmlConcern # :nodoc:
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  included do
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module UiBibz::Ui::Concerns::NavigationConcern #:nodoc:
3
+ module UiBibz::Ui::Concerns::NavigationConcern # :nodoc:
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  included do
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module UiBibz::Ui::Concerns::NotificationConcern #:nodoc:
3
+ module UiBibz::Ui::Concerns::NotificationConcern # :nodoc:
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  included do
@@ -47,7 +47,7 @@ module UiBibz::Ui::Core::Boxes::Components
47
47
 
48
48
  # See UiBibz::Ui::Core::Component.initialize
49
49
  def initialize(content = nil, options = nil, html_options = nil, &block)
50
- content = content.is_a?(Integer) ? { num: content } : content
50
+ content = { num: content } if content.is_a?(Integer)
51
51
  super
52
52
  @items = [@content]
53
53
  end
@@ -148,7 +148,7 @@ module UiBibz::Ui::Core
148
148
  # Add html data arguments
149
149
  def add_html_data(name, value: true)
150
150
  html_options[:data] = {} if html_options[:data].nil?
151
- value = value.is_a?(String) ? value.strip : value
151
+ value = value.strip if value.is_a?(String)
152
152
  html_options[:data].update({ name => value })
153
153
  end
154
154
 
@@ -52,9 +52,7 @@ module UiBibz::Ui::Core::Layouts
52
52
  class Col < UiBibz::Ui::Core::Component
53
53
  # See UiBibz::Ui::Core::Component.initialize
54
54
  def initialize(content = nil, options = nil, html_options = nil, &block)
55
- unless block.nil?
56
- content = content.is_a?(Integer) ? { num: content } : content
57
- end
55
+ content = { num: content } if !block.nil? && content.is_a?(Integer)
58
56
  super
59
57
  end
60
58
 
@@ -50,9 +50,7 @@ module UiBibz::Ui::Core::Layouts
50
50
 
51
51
  # See UiBibz::Ui::Core::Component.initialize
52
52
  def initialize(content = nil, options = nil, html_options = nil, &block)
53
- unless block.nil?
54
- content = content.is_a?(Integer) ? { num: content } : content
55
- end
53
+ content = { num: content } if !block.nil? && content.is_a?(Integer)
56
54
  super
57
55
  @items = [@content]
58
56
  end
@@ -44,7 +44,7 @@ module UiBibz::Ui::Core::Navigations
44
44
  include Haml::Helpers
45
45
  include SimpleForm::ActionViewExtensions::FormHelper if defined?(SimpleForm)
46
46
  include UiBibz::Helpers::UtilsHelper
47
- include ActionView::Helpers #::FormHelper
47
+ include ActionView::Helpers # ::FormHelper
48
48
 
49
49
  attr_accessor :html_options
50
50
 
@@ -15,7 +15,6 @@ module UiBibz::Ui::Ux::Tables
15
15
  content_tag :div, @html_options do
16
16
  concat UiBibz::Ui::Ux::Tables::TablePagination.new(store: @store, wrap_form: @options[:wrap_form]).render
17
17
  concat UiBibz::Ui::Ux::Tables::TablePaginationPerPage.new(store: @store, wrap_form: @options[:wrap_form]).render
18
- concat tag(:br, class: 'ui-bibz-clear')
19
18
  end
20
19
  end
21
20
 
@@ -73,7 +73,7 @@ class TableTest < ActionView::TestCase
73
73
  <option value=\"50\">50</option>
74
74
  <option value=\"100\">100</option>
75
75
  <option value=\"200\">200</option>
76
- <option value=\"500\">500</option></select></div></form><br class=\"ui-bibz-clear\" /></div>"
76
+ <option value=\"500\">500</option></select></div></form></div>"
77
77
 
78
78
  assert_equal expected, actual
79
79
  end
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
4
+ version: 3.0.1
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: 2021-07-15 00:00:00.000000000 Z
11
+ date: 2021-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails