ui_bibz 2.5.2 → 2.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +18 -1
- data/Gemfile.lock +68 -52
- data/app/assets/stylesheets/fix_addon.sass +0 -1
- data/lib/ui_bibz/infos.rb +2 -2
- data/lib/ui_bibz/inputs/ui_bibz_inputs/string_input.rb +1 -1
- data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_number_field_input.rb +3 -2
- data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_select_field_input.rb +3 -2
- data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb +8 -2
- data/test/simple_form_test.rb +7 -7
- data/ui_bibz.gemspec +1 -1
- data/vendor/assets/fonts/fa-brands-400.eot +0 -0
- data/vendor/assets/fonts/fa-brands-400.svg +2 -2
- data/vendor/assets/fonts/fa-brands-400.ttf +0 -0
- data/vendor/assets/fonts/fa-brands-400.woff +0 -0
- data/vendor/assets/fonts/fa-brands-400.woff2 +0 -0
- data/vendor/assets/fonts/fa-regular-400.eot +0 -0
- data/vendor/assets/fonts/fa-regular-400.svg +2 -2
- data/vendor/assets/fonts/fa-regular-400.ttf +0 -0
- data/vendor/assets/fonts/fa-regular-400.woff +0 -0
- data/vendor/assets/fonts/fa-regular-400.woff2 +0 -0
- data/vendor/assets/fonts/fa-solid-900.eot +0 -0
- data/vendor/assets/fonts/fa-solid-900.svg +241 -3
- data/vendor/assets/fonts/fa-solid-900.ttf +0 -0
- data/vendor/assets/fonts/fa-solid-900.woff +0 -0
- data/vendor/assets/fonts/fa-solid-900.woff2 +0 -0
- data/vendor/assets/javascripts/all.js +57 -7
- data/vendor/assets/javascripts/all.min.js +2 -2
- data/vendor/assets/stylesheets/all.min.css +2 -2
- data/vendor/assets/stylesheets/fontawesome/_icons.scss +31 -0
- data/vendor/assets/stylesheets/fontawesome/_variables.scss +34 -3
- data/vendor/assets/stylesheets/fontawesome/brands.scss +1 -1
- data/vendor/assets/stylesheets/fontawesome/fontawesome.scss +1 -1
- data/vendor/assets/stylesheets/fontawesome/regular.scss +1 -1
- data/vendor/assets/stylesheets/fontawesome/solid.scss +1 -1
- data/vendor/assets/stylesheets/fontawesome/v4-shims.scss +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e895154fbd604fc6f25154790157133a9c316afb8fd76ee1c09b074d7f0ed57
|
4
|
+
data.tar.gz: c0592cd4fc2a0db7a46bd6e9580143a9fac868ea4c476b00a06df7c77c7468b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7aa54fc27527c78546268c85c2684c3abe59d7cc3a5d6ddc76aeeac61de00f9f5ad64ac77b7265734d230c826c9fbc4dff4cccb3bf192485a4bc57a08d67f4e
|
7
|
+
data.tar.gz: 833b5e6abd6bf3866b578526aa14438662668955372596e436d4ab4b4960d8cd91357e6a7f1afa0b970b473e5052a17d4c8adb53d85f71d3616e884b317b9f76
|
data/.rubocop.yml
CHANGED
@@ -4,7 +4,7 @@ Layout/LineLength:
|
|
4
4
|
Enabled: false
|
5
5
|
|
6
6
|
AllCops:
|
7
|
-
TargetRubyVersion: 2.
|
7
|
+
TargetRubyVersion: 2.7
|
8
8
|
|
9
9
|
Lint/UselessAssignment:
|
10
10
|
Enabled: true
|
@@ -23,6 +23,11 @@ Style/FormatString:
|
|
23
23
|
Exclude:
|
24
24
|
- 'config/initializers/will_paginate.rb'
|
25
25
|
|
26
|
+
Style/StringLiterals:
|
27
|
+
Enabled: true
|
28
|
+
Exclude:
|
29
|
+
- 'test/**/**/**/**/*'
|
30
|
+
|
26
31
|
Style/ClassAndModuleChildren:
|
27
32
|
Enabled: false
|
28
33
|
|
@@ -50,3 +55,15 @@ Metrics/ModuleLength:
|
|
50
55
|
# SupportedStyles: annotated, template, unannotated
|
51
56
|
Style/FormatStringToken:
|
52
57
|
EnforcedStyle: unannotated
|
58
|
+
|
59
|
+
Layout/SpaceAroundMethodCallOperator:
|
60
|
+
Enabled: true
|
61
|
+
|
62
|
+
Lint/RaiseException:
|
63
|
+
Enabled: true
|
64
|
+
|
65
|
+
Lint/StructNewOverride:
|
66
|
+
Enabled: true
|
67
|
+
|
68
|
+
Style/ExponentialNotation:
|
69
|
+
Enabled: true
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ui_bibz (2.5.
|
4
|
+
ui_bibz (2.5.3)
|
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 (
|
20
|
-
actionpack (=
|
19
|
+
actioncable (6.0.2.2)
|
20
|
+
actionpack (= 6.0.2.2)
|
21
21
|
nio4r (~> 2.0)
|
22
22
|
websocket-driver (>= 0.6.1)
|
23
|
-
|
24
|
-
actionpack (=
|
25
|
-
|
26
|
-
|
23
|
+
actionmailbox (6.0.2.2)
|
24
|
+
actionpack (= 6.0.2.2)
|
25
|
+
activejob (= 6.0.2.2)
|
26
|
+
activerecord (= 6.0.2.2)
|
27
|
+
activestorage (= 6.0.2.2)
|
28
|
+
activesupport (= 6.0.2.2)
|
29
|
+
mail (>= 2.7.1)
|
30
|
+
actionmailer (6.0.2.2)
|
31
|
+
actionpack (= 6.0.2.2)
|
32
|
+
actionview (= 6.0.2.2)
|
33
|
+
activejob (= 6.0.2.2)
|
27
34
|
mail (~> 2.5, >= 2.5.4)
|
28
35
|
rails-dom-testing (~> 2.0)
|
29
|
-
actionpack (
|
30
|
-
actionview (=
|
31
|
-
activesupport (=
|
36
|
+
actionpack (6.0.2.2)
|
37
|
+
actionview (= 6.0.2.2)
|
38
|
+
activesupport (= 6.0.2.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
|
36
|
-
|
37
|
-
|
42
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
43
|
+
actiontext (6.0.2.2)
|
44
|
+
actionpack (= 6.0.2.2)
|
45
|
+
activerecord (= 6.0.2.2)
|
46
|
+
activestorage (= 6.0.2.2)
|
47
|
+
activesupport (= 6.0.2.2)
|
48
|
+
nokogiri (>= 1.8.5)
|
49
|
+
actionview (6.0.2.2)
|
50
|
+
activesupport (= 6.0.2.2)
|
38
51
|
builder (~> 3.1)
|
39
52
|
erubi (~> 1.4)
|
40
53
|
rails-dom-testing (~> 2.0)
|
41
|
-
rails-html-sanitizer (~> 1.
|
42
|
-
activejob (
|
43
|
-
activesupport (=
|
54
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
55
|
+
activejob (6.0.2.2)
|
56
|
+
activesupport (= 6.0.2.2)
|
44
57
|
globalid (>= 0.3.6)
|
45
|
-
activemodel (
|
46
|
-
activesupport (=
|
47
|
-
activerecord (
|
48
|
-
activemodel (=
|
49
|
-
activesupport (=
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
activerecord (=
|
58
|
+
activemodel (6.0.2.2)
|
59
|
+
activesupport (= 6.0.2.2)
|
60
|
+
activerecord (6.0.2.2)
|
61
|
+
activemodel (= 6.0.2.2)
|
62
|
+
activesupport (= 6.0.2.2)
|
63
|
+
activestorage (6.0.2.2)
|
64
|
+
actionpack (= 6.0.2.2)
|
65
|
+
activejob (= 6.0.2.2)
|
66
|
+
activerecord (= 6.0.2.2)
|
54
67
|
marcel (~> 0.3.1)
|
55
|
-
activesupport (
|
68
|
+
activesupport (6.0.2.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
|
-
|
73
|
+
zeitwerk (~> 2.2)
|
61
74
|
ast (2.4.0)
|
62
|
-
autoprefixer-rails (9.7.
|
75
|
+
autoprefixer-rails (9.7.6)
|
63
76
|
execjs
|
64
77
|
awesome_print (1.8.0)
|
65
78
|
bootstrap (4.4.1)
|
@@ -67,7 +80,7 @@ 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.
|
83
|
+
byebug (11.1.2)
|
71
84
|
childprocess (3.0.0)
|
72
85
|
codeclimate-test-reporter (1.0.7)
|
73
86
|
simplecov
|
@@ -107,7 +120,7 @@ GEM
|
|
107
120
|
rails-dom-testing (>= 1, < 3)
|
108
121
|
railties (>= 4.2.0)
|
109
122
|
thor (>= 0.14, < 2.0)
|
110
|
-
loofah (2.
|
123
|
+
loofah (2.5.0)
|
111
124
|
crass (~> 1.0.2)
|
112
125
|
nokogiri (>= 1.5.9)
|
113
126
|
mail (2.7.1)
|
@@ -126,53 +139,55 @@ GEM
|
|
126
139
|
childprocess (>= 0.6.3, < 4)
|
127
140
|
iniparse (~> 1.4)
|
128
141
|
parallel (1.19.1)
|
129
|
-
parser (2.7.
|
142
|
+
parser (2.7.1.1)
|
130
143
|
ast (~> 2.4.0)
|
131
144
|
popper_js (1.16.0)
|
132
145
|
rack (2.2.2)
|
133
146
|
rack-test (1.1.0)
|
134
147
|
rack (>= 1.0, < 3)
|
135
|
-
rails (
|
136
|
-
actioncable (=
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
148
|
+
rails (6.0.2.2)
|
149
|
+
actioncable (= 6.0.2.2)
|
150
|
+
actionmailbox (= 6.0.2.2)
|
151
|
+
actionmailer (= 6.0.2.2)
|
152
|
+
actionpack (= 6.0.2.2)
|
153
|
+
actiontext (= 6.0.2.2)
|
154
|
+
actionview (= 6.0.2.2)
|
155
|
+
activejob (= 6.0.2.2)
|
156
|
+
activemodel (= 6.0.2.2)
|
157
|
+
activerecord (= 6.0.2.2)
|
158
|
+
activestorage (= 6.0.2.2)
|
159
|
+
activesupport (= 6.0.2.2)
|
145
160
|
bundler (>= 1.3.0)
|
146
|
-
railties (=
|
161
|
+
railties (= 6.0.2.2)
|
147
162
|
sprockets-rails (>= 2.0.0)
|
148
163
|
rails-dom-testing (2.0.3)
|
149
164
|
activesupport (>= 4.2.0)
|
150
165
|
nokogiri (>= 1.6)
|
151
166
|
rails-html-sanitizer (1.3.0)
|
152
167
|
loofah (~> 2.3)
|
153
|
-
railties (
|
154
|
-
actionpack (=
|
155
|
-
activesupport (=
|
168
|
+
railties (6.0.2.2)
|
169
|
+
actionpack (= 6.0.2.2)
|
170
|
+
activesupport (= 6.0.2.2)
|
156
171
|
method_source
|
157
172
|
rake (>= 0.8.7)
|
158
|
-
thor (>= 0.
|
173
|
+
thor (>= 0.20.3, < 2.0)
|
159
174
|
rainbow (3.0.0)
|
160
175
|
rake (13.0.1)
|
161
176
|
rexml (3.2.4)
|
162
|
-
rubocop (0.
|
177
|
+
rubocop (0.82.0)
|
163
178
|
jaro_winkler (~> 1.5.1)
|
164
179
|
parallel (~> 1.10)
|
165
180
|
parser (>= 2.7.0.1)
|
166
181
|
rainbow (>= 2.2.2, < 4.0)
|
167
182
|
rexml
|
168
183
|
ruby-progressbar (~> 1.7)
|
169
|
-
unicode-display_width (>= 1.4.0, <
|
184
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
170
185
|
ruby-progressbar (1.10.1)
|
171
186
|
ruby_parser (3.14.2)
|
172
187
|
sexp_processor (~> 4.9)
|
173
188
|
sass-rails (6.0.0)
|
174
189
|
sassc-rails (~> 2.1, >= 2.1.1)
|
175
|
-
sassc (2.
|
190
|
+
sassc (2.3.0)
|
176
191
|
ffi (~> 1.9)
|
177
192
|
sassc-rails (2.1.2)
|
178
193
|
railties (>= 4.0.0)
|
@@ -188,7 +203,7 @@ GEM
|
|
188
203
|
docile (~> 1.1)
|
189
204
|
simplecov-html (~> 0.11)
|
190
205
|
simplecov-html (0.12.2)
|
191
|
-
sprockets (
|
206
|
+
sprockets (4.0.0)
|
192
207
|
concurrent-ruby (~> 1.0)
|
193
208
|
rack (> 1, < 3)
|
194
209
|
sprockets-rails (3.2.1)
|
@@ -200,9 +215,9 @@ GEM
|
|
200
215
|
thor (1.0.1)
|
201
216
|
thread_safe (0.3.6)
|
202
217
|
tilt (2.0.10)
|
203
|
-
tzinfo (1.2.
|
218
|
+
tzinfo (1.2.7)
|
204
219
|
thread_safe (~> 0.1)
|
205
|
-
unicode-display_width (1.
|
220
|
+
unicode-display_width (1.7.0)
|
206
221
|
websocket-driver (0.7.1)
|
207
222
|
websocket-extensions (>= 0.1.0)
|
208
223
|
websocket-extensions (0.1.4)
|
@@ -210,6 +225,7 @@ GEM
|
|
210
225
|
will_paginate (3.1.8)
|
211
226
|
will_paginate-bootstrap4 (0.2.2)
|
212
227
|
will_paginate (~> 3.0, >= 3.0.0)
|
228
|
+
zeitwerk (2.3.0)
|
213
229
|
|
214
230
|
PLATFORMS
|
215
231
|
ruby
|
data/lib/ui_bibz/infos.rb
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
module UiBibz
|
4
4
|
NAME = 'Ui Bibz'
|
5
|
-
VERSION = '2.5.
|
5
|
+
VERSION = '2.5.3'
|
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.
|
9
|
+
FONTAWESOME_VERSION = '5.13.0'
|
10
10
|
BOOTSTRAP_VERSION = '4.4.1'
|
11
11
|
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(
|
8
|
-
|
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(
|
6
|
-
|
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(
|
8
|
-
|
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
|
data/test/simple_form_test.rb
CHANGED
@@ -126,7 +126,7 @@ test1</textarea></div></form>"
|
|
126
126
|
f.input :name_fr, as: :ui_text_field
|
127
127
|
end
|
128
128
|
|
129
|
-
expected =
|
129
|
+
expected = "<form class=\"simple_form edit_user\" id=\"edit_user_1\" action=\"/users/1\" accept-charset=\"UTF-8\" method=\"post\"><input name=\"utf8\" type=\"hidden\" value=\"✓\" /><input type=\"hidden\" name=\"_method\" value=\"patch\" /><div class=\"form-group ui_text_field optional user_name_fr\"><label class=\"control-label ui_text_field optional\" for=\"user_name_fr\">Name fr</label><input type=\"ui_text_field\" name=\"user[name_fr]\" id=\"user_name_fr\" value=\"test1\" class=\"form-control string ui_text_field optional\" /></div></form>"
|
130
130
|
|
131
131
|
assert_equal expected, actual
|
132
132
|
end
|
@@ -157,7 +157,7 @@ test1</textarea></div></form>"
|
|
157
157
|
f.input :name_fr, as: :ui_select_field, collection: @users, label_method: :name_fr
|
158
158
|
end
|
159
159
|
|
160
|
-
expected = "<form class=\"simple_form edit_user\" id=\"edit_user_1\" action=\"/users/1\" accept-charset=\"UTF-8\" method=\"post\"><input name=\"utf8\" type=\"hidden\" value=\"✓\" /><input type=\"hidden\" name=\"_method\" value=\"patch\" /><div class=\"form-group ui_select_field optional user_name_fr\"><label class=\"control-label ui_select_field optional\" for=\"user_name_fr\">Name fr</label><select name=\"user[name_fr]\" id=\"user_name_fr\" class=\"select-field
|
160
|
+
expected = "<form class=\"simple_form edit_user\" id=\"edit_user_1\" action=\"/users/1\" accept-charset=\"UTF-8\" method=\"post\"><input name=\"utf8\" type=\"hidden\" value=\"✓\" /><input type=\"hidden\" name=\"_method\" value=\"patch\" /><div class=\"form-group ui_select_field optional user_name_fr\"><label class=\"control-label ui_select_field optional\" for=\"user_name_fr\">Name fr</label><select name=\"user[name_fr]\" id=\"user_name_fr\" class=\"form-control select-field custom-select\"><option value=\"1\">test1</option>
|
161
161
|
<option value=\"2\">test2</option></select></div></form>"
|
162
162
|
|
163
163
|
assert_equal expected, actual
|
@@ -168,7 +168,7 @@ test1</textarea></div></form>"
|
|
168
168
|
f.input :name_fr, as: :ui_select_field, refresh: { target: { data: [] } }, collection: @users, label_method: :name_fr
|
169
169
|
end
|
170
170
|
|
171
|
-
expected = "<form class=\"simple_form edit_user\" id=\"edit_user_1\" action=\"/users/1\" accept-charset=\"UTF-8\" method=\"post\"><input name=\"utf8\" type=\"hidden\" value=\"✓\" /><input type=\"hidden\" name=\"_method\" value=\"patch\" /><div class=\"form-group ui_select_field optional user_name_fr\"><label class=\"control-label ui_select_field optional\" for=\"user_name_fr\">Name fr</label><div class=\"field-refresh input-group ui_surround_field\"><select name=\"user[name_fr]\" id=\"user_name_fr\" class=\"select-field
|
171
|
+
expected = "<form class=\"simple_form edit_user\" id=\"edit_user_1\" action=\"/users/1\" accept-charset=\"UTF-8\" method=\"post\"><input name=\"utf8\" type=\"hidden\" value=\"✓\" /><input type=\"hidden\" name=\"_method\" value=\"patch\" /><div class=\"form-group ui_select_field optional user_name_fr\"><label class=\"control-label ui_select_field optional\" for=\"user_name_fr\">Name fr</label><div class=\"field-refresh input-group ui_surround_field\"><select name=\"user[name_fr]\" id=\"user_name_fr\" class=\"form-control select-field custom-select\"><option value=\"1\">test1</option>
|
172
172
|
<option value=\"2\">test2</option></select><div class=\"input-group-btn\"><span data-connect=\"{"events":"click","mode":"remote","target":{"selector":"#user_name_fr","url":"","data":[]}}\" class=\"btn-secondary ui-bibz-connect btn input-refresh-button\"><i class=\"glyph fas fa-sync-alt\"></i> </span></div></div></div></form>"
|
173
173
|
|
174
174
|
assert_equal expected, actual
|
@@ -179,7 +179,7 @@ test1</textarea></div></form>"
|
|
179
179
|
f.input :name_fr, as: :ui_select_field, collection: @continents, toto: 'lala', grouped: true, group_method: :countries
|
180
180
|
end
|
181
181
|
|
182
|
-
expected = "<form class=\"simple_form edit_user\" id=\"edit_user_1\" action=\"/users/1\" accept-charset=\"UTF-8\" method=\"post\"><input name=\"utf8\" type=\"hidden\" value=\"✓\" /><input type=\"hidden\" name=\"_method\" value=\"patch\" /><div class=\"form-group ui_select_field optional user_name_fr\"><label class=\"control-label ui_select_field optional\" for=\"user_name_fr\">Name fr</label><select name=\"user[name_fr]\" id=\"user_name_fr\" class=\"select-field
|
182
|
+
expected = "<form class=\"simple_form edit_user\" id=\"edit_user_1\" action=\"/users/1\" accept-charset=\"UTF-8\" method=\"post\"><input name=\"utf8\" type=\"hidden\" value=\"✓\" /><input type=\"hidden\" name=\"_method\" value=\"patch\" /><div class=\"form-group ui_select_field optional user_name_fr\"><label class=\"control-label ui_select_field optional\" for=\"user_name_fr\">Name fr</label><select name=\"user[name_fr]\" id=\"user_name_fr\" class=\"form-control select-field custom-select\"><optgroup label=\"Europe\"><option value=\"1\">France</option>
|
183
183
|
<option value=\"2\">Deutchland</option></optgroup></select></div></form>"
|
184
184
|
|
185
185
|
assert_equal expected, actual
|
@@ -191,7 +191,7 @@ test1</textarea></div></form>"
|
|
191
191
|
f.input :name_fr, as: :ui_select_field, collection: @countries
|
192
192
|
end
|
193
193
|
|
194
|
-
expected = "<form class=\"simple_form edit_user\" id=\"edit_user_1\" action=\"/users/1\" accept-charset=\"UTF-8\" method=\"post\"><input name=\"utf8\" type=\"hidden\" value=\"✓\" /><input type=\"hidden\" name=\"_method\" value=\"patch\" /><div class=\"form-group ui_select_field optional user_name_fr\"><label class=\"control-label ui_select_field optional\" for=\"user_name_fr\">Name fr</label><select name=\"user[name_fr]\" id=\"user_name_fr\" class=\"select-field
|
194
|
+
expected = "<form class=\"simple_form edit_user\" id=\"edit_user_1\" action=\"/users/1\" accept-charset=\"UTF-8\" method=\"post\"><input name=\"utf8\" type=\"hidden\" value=\"✓\" /><input type=\"hidden\" name=\"_method\" value=\"patch\" /><div class=\"form-group ui_select_field optional user_name_fr\"><label class=\"control-label ui_select_field optional\" for=\"user_name_fr\">Name fr</label><select name=\"user[name_fr]\" id=\"user_name_fr\" class=\"form-control select-field custom-select\"><option selected=\"selected\" value=\"1\">France</option>
|
195
195
|
<option value=\"2\">Deutchland</option></select></div></form>"
|
196
196
|
|
197
197
|
assert_equal expected, actual
|
@@ -203,7 +203,7 @@ test1</textarea></div></form>"
|
|
203
203
|
f.input :name_fr, as: :ui_select_field, collection: @continents, toto: 'lala', grouped: true, group_method: :countries
|
204
204
|
end
|
205
205
|
|
206
|
-
expected = "<form class=\"simple_form edit_user\" id=\"edit_user_1\" action=\"/users/1\" accept-charset=\"UTF-8\" method=\"post\"><input name=\"utf8\" type=\"hidden\" value=\"✓\" /><input type=\"hidden\" name=\"_method\" value=\"patch\" /><div class=\"form-group ui_select_field optional user_name_fr\"><label class=\"control-label ui_select_field optional\" for=\"user_name_fr\">Name fr</label><select name=\"user[name_fr]\" id=\"user_name_fr\" class=\"select-field
|
206
|
+
expected = "<form class=\"simple_form edit_user\" id=\"edit_user_1\" action=\"/users/1\" accept-charset=\"UTF-8\" method=\"post\"><input name=\"utf8\" type=\"hidden\" value=\"✓\" /><input type=\"hidden\" name=\"_method\" value=\"patch\" /><div class=\"form-group ui_select_field optional user_name_fr\"><label class=\"control-label ui_select_field optional\" for=\"user_name_fr\">Name fr</label><select name=\"user[name_fr]\" id=\"user_name_fr\" class=\"form-control select-field custom-select\"><optgroup label=\"Europe\"><option selected=\"selected\" value=\"1\">France</option>
|
207
207
|
<option value=\"2\">Deutchland</option></optgroup></select></div></form>"
|
208
208
|
|
209
209
|
assert_equal expected, actual
|
@@ -214,7 +214,7 @@ test1</textarea></div></form>"
|
|
214
214
|
f.input :name_fr, as: :ui_number_field
|
215
215
|
end
|
216
216
|
|
217
|
-
expected = '<form class="simple_form edit_user" id="edit_user_1" action="/users/1" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="✓" /><input type="hidden" name="_method" value="patch" /><div class="form-group ui_number_field optional user_name_fr"><label class="control-label ui_number_field optional" for="user_name_fr">Name fr</label><input type="number" name="user[name_fr]" id="user_name_fr" value="test1" class="ui_number_field optional
|
217
|
+
expected = '<form class="simple_form edit_user" id="edit_user_1" action="/users/1" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="✓" /><input type="hidden" name="_method" value="patch" /><div class="form-group ui_number_field optional user_name_fr"><label class="control-label ui_number_field optional" for="user_name_fr">Name fr</label><input type="number" name="user[name_fr]" id="user_name_fr" value="test1" class="form-control ui_number_field optional" /></div></form>'
|
218
218
|
|
219
219
|
assert_equal expected, actual
|
220
220
|
end
|
data/ui_bibz.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.description = 'A Rails Interface Framework using Bootstrap.'
|
20
20
|
s.license = 'MIT'
|
21
21
|
|
22
|
-
s.required_ruby_version = '>= 2.
|
22
|
+
s.required_ruby_version = '>= 2.7'
|
23
23
|
|
24
24
|
s.files = `git ls-files`.split
|
25
25
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split
|
Binary file
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<?xml version="1.0" standalone="no"?>
|
2
2
|
<!--
|
3
|
-
Font Awesome Free 5.
|
3
|
+
Font Awesome Free 5.13.0 by @fontawesome - https://fontawesome.com
|
4
4
|
License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
5
5
|
-->
|
6
6
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
7
7
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
|
8
8
|
<metadata>
|
9
|
-
Created by FontForge 20190801 at
|
9
|
+
Created by FontForge 20190801 at Mon Mar 23 10:45:51 2020
|
10
10
|
By Robert Madole
|
11
11
|
Copyright (c) Font Awesome
|
12
12
|
</metadata>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<?xml version="1.0" standalone="no"?>
|
2
2
|
<!--
|
3
|
-
Font Awesome Free 5.
|
3
|
+
Font Awesome Free 5.13.0 by @fontawesome - https://fontawesome.com
|
4
4
|
License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
5
5
|
-->
|
6
6
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
7
7
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
|
8
8
|
<metadata>
|
9
|
-
Created by FontForge 20190801 at
|
9
|
+
Created by FontForge 20190801 at Mon Mar 23 10:45:51 2020
|
10
10
|
By Robert Madole
|
11
11
|
Copyright (c) Font Awesome
|
12
12
|
</metadata>
|