ui_bibz 2.5.0 → 2.5.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.github/FUNDING.yml +4 -0
  3. data/.github/workflows/ruby.yml +2 -2
  4. data/.rubocop.yml +48 -3
  5. data/Gemfile.lock +89 -70
  6. data/README.md +1 -0
  7. data/app/assets/stylesheets/fix_addon.sass +0 -1
  8. data/lib/ui_bibz/infos.rb +2 -2
  9. data/lib/ui_bibz/inputs/ui_bibz_inputs/string_input.rb +1 -1
  10. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_number_field_input.rb +3 -2
  11. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_select_field_input.rb +3 -2
  12. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb +8 -2
  13. data/lib/ui_bibz/ui/ux/tables/extensions/actionable.rb +1 -1
  14. data/test/dummy/app/models/user.rb +1 -0
  15. data/test/simple_form_test.rb +7 -7
  16. data/ui_bibz.gemspec +1 -1
  17. data/vendor/assets/fonts/fa-brands-400.eot +0 -0
  18. data/vendor/assets/fonts/fa-brands-400.svg +2 -2
  19. data/vendor/assets/fonts/fa-brands-400.ttf +0 -0
  20. data/vendor/assets/fonts/fa-brands-400.woff +0 -0
  21. data/vendor/assets/fonts/fa-brands-400.woff2 +0 -0
  22. data/vendor/assets/fonts/fa-regular-400.eot +0 -0
  23. data/vendor/assets/fonts/fa-regular-400.svg +2 -2
  24. data/vendor/assets/fonts/fa-regular-400.ttf +0 -0
  25. data/vendor/assets/fonts/fa-regular-400.woff +0 -0
  26. data/vendor/assets/fonts/fa-regular-400.woff2 +0 -0
  27. data/vendor/assets/fonts/fa-solid-900.eot +0 -0
  28. data/vendor/assets/fonts/fa-solid-900.svg +241 -3
  29. data/vendor/assets/fonts/fa-solid-900.ttf +0 -0
  30. data/vendor/assets/fonts/fa-solid-900.woff +0 -0
  31. data/vendor/assets/fonts/fa-solid-900.woff2 +0 -0
  32. data/vendor/assets/javascripts/all.js +57 -7
  33. data/vendor/assets/javascripts/all.min.js +2 -2
  34. data/vendor/assets/stylesheets/all.min.css +2 -2
  35. data/vendor/assets/stylesheets/fontawesome/_icons.scss +31 -0
  36. data/vendor/assets/stylesheets/fontawesome/_variables.scss +34 -3
  37. data/vendor/assets/stylesheets/fontawesome/brands.scss +1 -1
  38. data/vendor/assets/stylesheets/fontawesome/fontawesome.scss +1 -1
  39. data/vendor/assets/stylesheets/fontawesome/regular.scss +1 -1
  40. data/vendor/assets/stylesheets/fontawesome/solid.scss +1 -1
  41. data/vendor/assets/stylesheets/fontawesome/v4-shims.scss +1 -1
  42. metadata +4 -4
  43. data/.rubocop_todo.yml +0 -25
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edbe455034d510cb0ad8f33ff1425c2dc08be051bfdabcdcb423f1cb6bc13dbb
4
- data.tar.gz: d3e801f993128c0b285a62e0b291c9243c1d003a279a5ecf18c68a1cb1fee857
3
+ metadata.gz: f5467144e42c79fca52d17dfb10d46e4d2888e05e7fb784a74221dc322d63700
4
+ data.tar.gz: 47b288b85b7efaf917446b2605c0cf42068f4b94e57cb31c8885e74885f921c4
5
5
  SHA512:
6
- metadata.gz: 01fa0eeaa35b24458301877260941cae3c1b8ecf80cdb9793de9ebb14aedfd0087bf7139ce818e07698ff63498a47a0ef7f26df4a15684f6b46689847d61b6fc
7
- data.tar.gz: 4214aed6b940465f0c42c1289fed817a433e856c771218ca08f981eb01d25968f061684864b944eb2567076e31c452883e11e23b16199a317a09349b407e623e
6
+ metadata.gz: d89e2cbc196bcf798974dee4b30ef1eb2573cb72e2a988247e900eb3f46b1b1f56033cab8798477144a6890e6dc5a6e97c1c68e6cddc1d8659e2293c55c92ff2
7
+ data.tar.gz: eb63db9dfb748a8574bf44d789832649a32021a46f63c4ad8c49940da0aee3aa74ca99d8f25dfd0612b56366d4b944f40bfdb5c1eac23f8fb9c6b5258aa3d146
@@ -0,0 +1,4 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: thooams
4
+ patreon: user?u=8672183
@@ -12,10 +12,10 @@ jobs:
12
12
  - name: Setup System
13
13
  run: |
14
14
  sudo apt-get install libsqlite3-dev
15
- - name: Set up Ruby 2.6
15
+ - name: Set up Ruby 2.7
16
16
  uses: actions/setup-ruby@v1
17
17
  with:
18
- ruby-version: 2.6.x
18
+ ruby-version: 2.7.x
19
19
  - name: Build and test with Rake
20
20
  run: |
21
21
  gem install bundler
@@ -1,10 +1,8 @@
1
- inherit_from: .rubocop_todo.yml
2
-
3
1
  Layout/LineLength:
4
2
  Enabled: false
5
3
 
6
4
  AllCops:
7
- TargetRubyVersion: 2.3
5
+ TargetRubyVersion: 2.7
8
6
 
9
7
  Lint/UselessAssignment:
10
8
  Enabled: true
@@ -23,6 +21,11 @@ Style/FormatString:
23
21
  Exclude:
24
22
  - 'config/initializers/will_paginate.rb'
25
23
 
24
+ Style/StringLiterals:
25
+ Enabled: true
26
+ Exclude:
27
+ - 'test/**/**/**/**/*'
28
+
26
29
  Style/ClassAndModuleChildren:
27
30
  Enabled: false
28
31
 
@@ -50,3 +53,45 @@ Metrics/ModuleLength:
50
53
  # SupportedStyles: annotated, template, unannotated
51
54
  Style/FormatStringToken:
52
55
  EnforcedStyle: unannotated
56
+
57
+ Layout/SpaceAroundMethodCallOperator:
58
+ Enabled: true
59
+
60
+ Lint/RaiseException:
61
+ Enabled: true
62
+
63
+ Lint/StructNewOverride:
64
+ Enabled: true
65
+
66
+ Style/ExponentialNotation:
67
+ Enabled: true
68
+
69
+ Layout/EmptyLinesAroundAttributeAccessor:
70
+ Enabled: true
71
+
72
+ Lint/DeprecatedOpenSSLConstant:
73
+ Enabled: true
74
+
75
+ Lint/MixedRegexpCaptureTypes:
76
+ Enabled: true
77
+
78
+ Style/RedundantRegexpCharacterClass:
79
+ Enabled: true
80
+
81
+ Style/RedundantRegexpEscape:
82
+ Enabled: true
83
+
84
+ Style/SlicingWithRange:
85
+ Enabled: true
86
+
87
+ Style/RedundantFetchBlock:
88
+ Enabled: true
89
+
90
+ Metrics/CyclomaticComplexity:
91
+ Enabled: false
92
+
93
+ Metrics/AbcSize:
94
+ Max: 48
95
+
96
+ Metrics/PerceivedComplexity:
97
+ Enabled: false
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ui_bibz (2.5.0)
4
+ ui_bibz (2.5.6)
5
5
  bootstrap (= 4.4.1)
6
6
  haml
7
7
  haml-rails
@@ -16,50 +16,63 @@ PATH
16
16
  GEM
17
17
  remote: https://rubygems.org/
18
18
  specs:
19
- actioncable (5.2.4.1)
20
- actionpack (= 5.2.4.1)
19
+ actioncable (6.0.3.2)
20
+ actionpack (= 6.0.3.2)
21
21
  nio4r (~> 2.0)
22
22
  websocket-driver (>= 0.6.1)
23
- actionmailer (5.2.4.1)
24
- actionpack (= 5.2.4.1)
25
- actionview (= 5.2.4.1)
26
- activejob (= 5.2.4.1)
23
+ actionmailbox (6.0.3.2)
24
+ actionpack (= 6.0.3.2)
25
+ activejob (= 6.0.3.2)
26
+ activerecord (= 6.0.3.2)
27
+ activestorage (= 6.0.3.2)
28
+ activesupport (= 6.0.3.2)
29
+ mail (>= 2.7.1)
30
+ actionmailer (6.0.3.2)
31
+ actionpack (= 6.0.3.2)
32
+ actionview (= 6.0.3.2)
33
+ activejob (= 6.0.3.2)
27
34
  mail (~> 2.5, >= 2.5.4)
28
35
  rails-dom-testing (~> 2.0)
29
- actionpack (5.2.4.1)
30
- actionview (= 5.2.4.1)
31
- activesupport (= 5.2.4.1)
36
+ actionpack (6.0.3.2)
37
+ actionview (= 6.0.3.2)
38
+ activesupport (= 6.0.3.2)
32
39
  rack (~> 2.0, >= 2.0.8)
33
40
  rack-test (>= 0.6.3)
34
41
  rails-dom-testing (~> 2.0)
35
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
36
- actionview (5.2.4.1)
37
- activesupport (= 5.2.4.1)
42
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
43
+ actiontext (6.0.3.2)
44
+ actionpack (= 6.0.3.2)
45
+ activerecord (= 6.0.3.2)
46
+ activestorage (= 6.0.3.2)
47
+ activesupport (= 6.0.3.2)
48
+ nokogiri (>= 1.8.5)
49
+ actionview (6.0.3.2)
50
+ activesupport (= 6.0.3.2)
38
51
  builder (~> 3.1)
39
52
  erubi (~> 1.4)
40
53
  rails-dom-testing (~> 2.0)
41
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
42
- activejob (5.2.4.1)
43
- activesupport (= 5.2.4.1)
54
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
55
+ activejob (6.0.3.2)
56
+ activesupport (= 6.0.3.2)
44
57
  globalid (>= 0.3.6)
45
- activemodel (5.2.4.1)
46
- activesupport (= 5.2.4.1)
47
- activerecord (5.2.4.1)
48
- activemodel (= 5.2.4.1)
49
- activesupport (= 5.2.4.1)
50
- arel (>= 9.0)
51
- activestorage (5.2.4.1)
52
- actionpack (= 5.2.4.1)
53
- activerecord (= 5.2.4.1)
58
+ activemodel (6.0.3.2)
59
+ activesupport (= 6.0.3.2)
60
+ activerecord (6.0.3.2)
61
+ activemodel (= 6.0.3.2)
62
+ activesupport (= 6.0.3.2)
63
+ activestorage (6.0.3.2)
64
+ actionpack (= 6.0.3.2)
65
+ activejob (= 6.0.3.2)
66
+ activerecord (= 6.0.3.2)
54
67
  marcel (~> 0.3.1)
55
- activesupport (5.2.4.1)
68
+ activesupport (6.0.3.2)
56
69
  concurrent-ruby (~> 1.0, >= 1.0.2)
57
70
  i18n (>= 0.7, < 2)
58
71
  minitest (~> 5.1)
59
72
  tzinfo (~> 1.1)
60
- arel (9.0.0)
61
- ast (2.4.0)
62
- autoprefixer-rails (9.7.4)
73
+ zeitwerk (~> 2.2, >= 2.2.2)
74
+ ast (2.4.1)
75
+ autoprefixer-rails (9.8.4)
63
76
  execjs
64
77
  awesome_print (1.8.0)
65
78
  bootstrap (4.4.1)
@@ -67,8 +80,8 @@ GEM
67
80
  popper_js (>= 1.14.3, < 2)
68
81
  sassc-rails (>= 2.0.0)
69
82
  builder (3.2.4)
70
- byebug (11.1.1)
71
- childprocess (3.0.0)
83
+ byebug (11.1.3)
84
+ childprocess (4.0.0)
72
85
  codeclimate-test-reporter (1.0.7)
73
86
  simplecov
74
87
  concurrent-ruby (1.1.6)
@@ -82,7 +95,7 @@ GEM
82
95
  factory_bot_rails (4.11.1)
83
96
  factory_bot (~> 4.11.1)
84
97
  railties (>= 3.0.0)
85
- ffi (1.12.2)
98
+ ffi (1.13.1)
86
99
  globalid (0.4.2)
87
100
  activesupport (>= 4.2.0)
88
101
  haml (5.1.2)
@@ -99,80 +112,85 @@ GEM
99
112
  haml (>= 4.0, < 6)
100
113
  nokogiri (>= 1.6.0)
101
114
  ruby_parser (~> 3.5)
102
- i18n (1.8.2)
115
+ i18n (1.8.3)
103
116
  concurrent-ruby (~> 1.0)
104
117
  iniparse (1.5.0)
105
- jaro_winkler (1.5.4)
106
- jquery-rails (4.3.5)
118
+ jquery-rails (4.4.0)
107
119
  rails-dom-testing (>= 1, < 3)
108
120
  railties (>= 4.2.0)
109
121
  thor (>= 0.14, < 2.0)
110
- loofah (2.4.0)
122
+ loofah (2.6.0)
111
123
  crass (~> 1.0.2)
112
124
  nokogiri (>= 1.5.9)
113
125
  mail (2.7.1)
114
126
  mini_mime (>= 0.1.1)
115
127
  marcel (0.3.3)
116
128
  mimemagic (~> 0.3.2)
117
- method_source (0.9.2)
118
- mimemagic (0.3.4)
129
+ method_source (1.0.0)
130
+ mimemagic (0.3.5)
119
131
  mini_mime (1.0.2)
120
132
  mini_portile2 (2.4.0)
121
- minitest (5.14.0)
133
+ minitest (5.14.1)
122
134
  nio4r (2.5.2)
123
135
  nokogiri (1.10.9)
124
136
  mini_portile2 (~> 2.4.0)
125
- overcommit (0.52.1)
126
- childprocess (>= 0.6.3, < 4)
137
+ overcommit (0.54.0)
138
+ childprocess (>= 0.6.3, < 5)
127
139
  iniparse (~> 1.4)
128
- parallel (1.19.1)
129
- parser (2.7.0.4)
130
- ast (~> 2.4.0)
140
+ parallel (1.19.2)
141
+ parser (2.7.1.4)
142
+ ast (~> 2.4.1)
131
143
  popper_js (1.16.0)
132
- rack (2.2.2)
144
+ rack (2.2.3)
133
145
  rack-test (1.1.0)
134
146
  rack (>= 1.0, < 3)
135
- rails (5.2.4.1)
136
- actioncable (= 5.2.4.1)
137
- actionmailer (= 5.2.4.1)
138
- actionpack (= 5.2.4.1)
139
- actionview (= 5.2.4.1)
140
- activejob (= 5.2.4.1)
141
- activemodel (= 5.2.4.1)
142
- activerecord (= 5.2.4.1)
143
- activestorage (= 5.2.4.1)
144
- activesupport (= 5.2.4.1)
147
+ rails (6.0.3.2)
148
+ actioncable (= 6.0.3.2)
149
+ actionmailbox (= 6.0.3.2)
150
+ actionmailer (= 6.0.3.2)
151
+ actionpack (= 6.0.3.2)
152
+ actiontext (= 6.0.3.2)
153
+ actionview (= 6.0.3.2)
154
+ activejob (= 6.0.3.2)
155
+ activemodel (= 6.0.3.2)
156
+ activerecord (= 6.0.3.2)
157
+ activestorage (= 6.0.3.2)
158
+ activesupport (= 6.0.3.2)
145
159
  bundler (>= 1.3.0)
146
- railties (= 5.2.4.1)
160
+ railties (= 6.0.3.2)
147
161
  sprockets-rails (>= 2.0.0)
148
162
  rails-dom-testing (2.0.3)
149
163
  activesupport (>= 4.2.0)
150
164
  nokogiri (>= 1.6)
151
165
  rails-html-sanitizer (1.3.0)
152
166
  loofah (~> 2.3)
153
- railties (5.2.4.1)
154
- actionpack (= 5.2.4.1)
155
- activesupport (= 5.2.4.1)
167
+ railties (6.0.3.2)
168
+ actionpack (= 6.0.3.2)
169
+ activesupport (= 6.0.3.2)
156
170
  method_source
157
171
  rake (>= 0.8.7)
158
- thor (>= 0.19.0, < 2.0)
172
+ thor (>= 0.20.3, < 2.0)
159
173
  rainbow (3.0.0)
160
174
  rake (13.0.1)
175
+ regexp_parser (1.7.1)
161
176
  rexml (3.2.4)
162
- rubocop (0.80.1)
163
- jaro_winkler (~> 1.5.1)
177
+ rubocop (0.86.0)
164
178
  parallel (~> 1.10)
165
179
  parser (>= 2.7.0.1)
166
180
  rainbow (>= 2.2.2, < 4.0)
181
+ regexp_parser (>= 1.7)
167
182
  rexml
183
+ rubocop-ast (>= 0.0.3, < 1.0)
168
184
  ruby-progressbar (~> 1.7)
169
- unicode-display_width (>= 1.4.0, < 1.7)
185
+ unicode-display_width (>= 1.4.0, < 2.0)
186
+ rubocop-ast (0.0.3)
187
+ parser (>= 2.7.0.1)
170
188
  ruby-progressbar (1.10.1)
171
189
  ruby_parser (3.14.2)
172
190
  sexp_processor (~> 4.9)
173
191
  sass-rails (6.0.0)
174
192
  sassc-rails (~> 2.1, >= 2.1.1)
175
- sassc (2.2.1)
193
+ sassc (2.4.0)
176
194
  ffi (~> 1.9)
177
195
  sassc-rails (2.1.2)
178
196
  railties (>= 4.0.0)
@@ -180,7 +198,7 @@ GEM
180
198
  sprockets (> 3.0)
181
199
  sprockets-rails
182
200
  tilt
183
- sexp_processor (4.14.1)
201
+ sexp_processor (4.15.0)
184
202
  simple_form (5.0.2)
185
203
  actionpack (>= 5.0)
186
204
  activemodel (>= 5.0)
@@ -188,7 +206,7 @@ GEM
188
206
  docile (~> 1.1)
189
207
  simplecov-html (~> 0.11)
190
208
  simplecov-html (0.12.2)
191
- sprockets (3.7.2)
209
+ sprockets (4.0.2)
192
210
  concurrent-ruby (~> 1.0)
193
211
  rack (> 1, < 3)
194
212
  sprockets-rails (3.2.1)
@@ -200,16 +218,17 @@ GEM
200
218
  thor (1.0.1)
201
219
  thread_safe (0.3.6)
202
220
  tilt (2.0.10)
203
- tzinfo (1.2.6)
221
+ tzinfo (1.2.7)
204
222
  thread_safe (~> 0.1)
205
- unicode-display_width (1.6.1)
206
- websocket-driver (0.7.1)
223
+ unicode-display_width (1.7.0)
224
+ websocket-driver (0.7.2)
207
225
  websocket-extensions (>= 0.1.0)
208
- websocket-extensions (0.1.4)
226
+ websocket-extensions (0.1.5)
209
227
  will-paginate-i18n (0.1.15)
210
228
  will_paginate (3.1.8)
211
229
  will_paginate-bootstrap4 (0.2.2)
212
230
  will_paginate (~> 3.0, >= 3.0.0)
231
+ zeitwerk (2.3.0)
213
232
 
214
233
  PLATFORMS
215
234
  ruby
data/README.md CHANGED
@@ -7,6 +7,7 @@
7
7
  [![Inline docs](http://inch-ci.org/github/thooams/Ui-Bibz.svg?branch=master)](http://inch-ci.org/github/thooams/Ui-Bibz)
8
8
  [![security](https://hakiri.io/github/thooams/Ui-Bibz/master.svg)](https://hakiri.io/github/thooams/Ui-Bibz/master)
9
9
  [![Dependency Status](https://gemnasium.com/thooams/Ui-Bibz.svg)](https://gemnasium.com/thooams/Ui-Bibz)
10
+ ![Ruby](https://github.com/thooams/Ui-Bibz/workflows/Ruby/badge.svg)
10
11
 
11
12
  This project rocks and uses MIT-LICENSE.
12
13
 
@@ -127,7 +127,6 @@ $input-group-btn-border-color: $input-border-color
127
127
  margin-top: 0.1rem
128
128
 
129
129
  i.glyph
130
- margin-top: 0.4rem
131
130
  font-size: 1.3rem
132
131
 
133
132
 
@@ -2,10 +2,10 @@
2
2
 
3
3
  module UiBibz
4
4
  NAME = 'Ui Bibz'
5
- VERSION = '2.5.0'
5
+ VERSION = '2.5.6'
6
6
  DESCRIPTION = 'A Rails Interface Framework using Bootstrap.'
7
7
  SUMMARY = 'Create your project with Ui Bibz. Over a thirty reusable components built to provide iconography, dropdowns, input groups, navigation, alerts, and much more.'
8
8
  LICENSE = 'MIT'
9
- FONTAWESOME_VERSION = '5.12.1'
9
+ FONTAWESOME_VERSION = '5.13.0'
10
10
  BOOTSTRAP_VERSION = '4.4.1'
11
11
  end
@@ -22,7 +22,7 @@ module UiBibzInputs
22
22
  private
23
23
 
24
24
  def string?
25
- input_type == :string
25
+ input_type == :string || input_type == :citext
26
26
  end
27
27
  end
28
28
  end
@@ -4,8 +4,9 @@ module UiBibzInputs
4
4
  class UiNumberFieldInput < UiTextFieldInput
5
5
  include UiBibz::Ui::Core::Forms::Numbers
6
6
 
7
- def input(_wrapper_options)
8
- UiBibz::Ui::Core::Forms::Numbers::NumberField.new(input_attribute_name, options, input_html_options).render
7
+ def input(wrapper_options)
8
+ merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)
9
+ UiBibz::Ui::Core::Forms::Numbers::NumberField.new(input_attribute_name, options, merged_input_options).render
9
10
  end
10
11
  end
11
12
  end
@@ -2,8 +2,9 @@
2
2
 
3
3
  module UiBibzInputs
4
4
  class UiSelectFieldInput < CollectionInput
5
- def input(_wrapper_options)
6
- UiBibz::Ui::Core::Forms::Selects::SelectField.new(input_attribute_name, new_options, input_html_options).render
5
+ def input(wrapper_options)
6
+ merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)
7
+ UiBibz::Ui::Core::Forms::Selects::SelectField.new(input_attribute_name, new_options, merged_input_options).render
7
8
  end
8
9
  end
9
10
  end
@@ -4,8 +4,14 @@ module UiBibzInputs
4
4
  class UiTextFieldInput < StringInput
5
5
  include UiBibz::Ui::Core::Forms::Texts
6
6
 
7
- def input(_wrapper_options)
8
- UiBibz::Ui::Core::Forms::Texts::TextField.new(input_attribute_name, options, input_html_options).render
7
+ def input(wrapper_options)
8
+ unless string?
9
+ input_html_classes.unshift('string')
10
+ input_html_options[:type] ||= input_type if html5?
11
+ end
12
+
13
+ merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)
14
+ UiBibz::Ui::Core::Forms::Texts::TextField.new(input_attribute_name, options, merged_input_options).render
9
15
  end
10
16
  end
11
17
  end