ui_bibz 3.0.0.beta19 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +65 -65
- data/lib/ui_bibz/concerns/models/searchable.rb +1 -1
- data/lib/ui_bibz/infos.rb +2 -2
- data/lib/ui_bibz/ui/ux/tables/components/store.rb +1 -1
- data/test/ui/ux/tables/table_test.rb +7 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08901c79a02f3cdf155c8ebaaabbbeb51ca9f1c288683c9ed7a011f9fd0db79b'
|
4
|
+
data.tar.gz: a6775b311c69081ceaa310231e8a75c1734ee2e5137995dc14a667a88f77555f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0ea16797c341c948a1d249a72e9707368fce3b8547ece6cbde40a5c29932e0871a78247d2e28ef22b74b392eb89913b5e30c73bb0535dd1b6bc79b537cc7a88
|
7
|
+
data.tar.gz: d79f28d50fd11585ec2f798a49a151c9422e240d9573f4ae52502eb13f22a7f4d2a15054e50174e6b41ba629ca663f05336a7c64692c9821c68bff82f73ba020
|
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.0)
|
5
5
|
will-paginate-i18n
|
6
6
|
will_paginate (~> 3.3.0)
|
7
7
|
will_paginate-bootstrap4
|
@@ -9,60 +9,60 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
actioncable (6.1.
|
13
|
-
actionpack (= 6.1.
|
14
|
-
activesupport (= 6.1.
|
12
|
+
actioncable (6.1.4)
|
13
|
+
actionpack (= 6.1.4)
|
14
|
+
activesupport (= 6.1.4)
|
15
15
|
nio4r (~> 2.0)
|
16
16
|
websocket-driver (>= 0.6.1)
|
17
|
-
actionmailbox (6.1.
|
18
|
-
actionpack (= 6.1.
|
19
|
-
activejob (= 6.1.
|
20
|
-
activerecord (= 6.1.
|
21
|
-
activestorage (= 6.1.
|
22
|
-
activesupport (= 6.1.
|
17
|
+
actionmailbox (6.1.4)
|
18
|
+
actionpack (= 6.1.4)
|
19
|
+
activejob (= 6.1.4)
|
20
|
+
activerecord (= 6.1.4)
|
21
|
+
activestorage (= 6.1.4)
|
22
|
+
activesupport (= 6.1.4)
|
23
23
|
mail (>= 2.7.1)
|
24
|
-
actionmailer (6.1.
|
25
|
-
actionpack (= 6.1.
|
26
|
-
actionview (= 6.1.
|
27
|
-
activejob (= 6.1.
|
28
|
-
activesupport (= 6.1.
|
24
|
+
actionmailer (6.1.4)
|
25
|
+
actionpack (= 6.1.4)
|
26
|
+
actionview (= 6.1.4)
|
27
|
+
activejob (= 6.1.4)
|
28
|
+
activesupport (= 6.1.4)
|
29
29
|
mail (~> 2.5, >= 2.5.4)
|
30
30
|
rails-dom-testing (~> 2.0)
|
31
|
-
actionpack (6.1.
|
32
|
-
actionview (= 6.1.
|
33
|
-
activesupport (= 6.1.
|
31
|
+
actionpack (6.1.4)
|
32
|
+
actionview (= 6.1.4)
|
33
|
+
activesupport (= 6.1.4)
|
34
34
|
rack (~> 2.0, >= 2.0.9)
|
35
35
|
rack-test (>= 0.6.3)
|
36
36
|
rails-dom-testing (~> 2.0)
|
37
37
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
38
|
-
actiontext (6.1.
|
39
|
-
actionpack (= 6.1.
|
40
|
-
activerecord (= 6.1.
|
41
|
-
activestorage (= 6.1.
|
42
|
-
activesupport (= 6.1.
|
38
|
+
actiontext (6.1.4)
|
39
|
+
actionpack (= 6.1.4)
|
40
|
+
activerecord (= 6.1.4)
|
41
|
+
activestorage (= 6.1.4)
|
42
|
+
activesupport (= 6.1.4)
|
43
43
|
nokogiri (>= 1.8.5)
|
44
|
-
actionview (6.1.
|
45
|
-
activesupport (= 6.1.
|
44
|
+
actionview (6.1.4)
|
45
|
+
activesupport (= 6.1.4)
|
46
46
|
builder (~> 3.1)
|
47
47
|
erubi (~> 1.4)
|
48
48
|
rails-dom-testing (~> 2.0)
|
49
49
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
50
|
-
activejob (6.1.
|
51
|
-
activesupport (= 6.1.
|
50
|
+
activejob (6.1.4)
|
51
|
+
activesupport (= 6.1.4)
|
52
52
|
globalid (>= 0.3.6)
|
53
|
-
activemodel (6.1.
|
54
|
-
activesupport (= 6.1.
|
55
|
-
activerecord (6.1.
|
56
|
-
activemodel (= 6.1.
|
57
|
-
activesupport (= 6.1.
|
58
|
-
activestorage (6.1.
|
59
|
-
actionpack (= 6.1.
|
60
|
-
activejob (= 6.1.
|
61
|
-
activerecord (= 6.1.
|
62
|
-
activesupport (= 6.1.
|
53
|
+
activemodel (6.1.4)
|
54
|
+
activesupport (= 6.1.4)
|
55
|
+
activerecord (6.1.4)
|
56
|
+
activemodel (= 6.1.4)
|
57
|
+
activesupport (= 6.1.4)
|
58
|
+
activestorage (6.1.4)
|
59
|
+
actionpack (= 6.1.4)
|
60
|
+
activejob (= 6.1.4)
|
61
|
+
activerecord (= 6.1.4)
|
62
|
+
activesupport (= 6.1.4)
|
63
63
|
marcel (~> 1.0.0)
|
64
|
-
mini_mime (
|
65
|
-
activesupport (6.1.
|
64
|
+
mini_mime (>= 1.1.0)
|
65
|
+
activesupport (6.1.4)
|
66
66
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
67
67
|
i18n (>= 1.6, < 2)
|
68
68
|
minitest (>= 5.1)
|
@@ -113,7 +113,7 @@ GEM
|
|
113
113
|
mini_mime (>= 0.1.1)
|
114
114
|
marcel (1.0.1)
|
115
115
|
method_source (1.0.0)
|
116
|
-
mini_mime (1.0
|
116
|
+
mini_mime (1.1.0)
|
117
117
|
mini_portile2 (2.5.3)
|
118
118
|
minitest (5.14.4)
|
119
119
|
nio4r (2.5.7)
|
@@ -125,43 +125,43 @@ GEM
|
|
125
125
|
iniparse (~> 1.4)
|
126
126
|
rexml (~> 3.2)
|
127
127
|
parallel (1.20.1)
|
128
|
-
parser (3.0.
|
128
|
+
parser (3.0.2.0)
|
129
129
|
ast (~> 2.4.1)
|
130
130
|
racc (1.5.2)
|
131
131
|
rack (2.2.3)
|
132
132
|
rack-test (1.1.0)
|
133
133
|
rack (>= 1.0, < 3)
|
134
|
-
rails (6.1.
|
135
|
-
actioncable (= 6.1.
|
136
|
-
actionmailbox (= 6.1.
|
137
|
-
actionmailer (= 6.1.
|
138
|
-
actionpack (= 6.1.
|
139
|
-
actiontext (= 6.1.
|
140
|
-
actionview (= 6.1.
|
141
|
-
activejob (= 6.1.
|
142
|
-
activemodel (= 6.1.
|
143
|
-
activerecord (= 6.1.
|
144
|
-
activestorage (= 6.1.
|
145
|
-
activesupport (= 6.1.
|
134
|
+
rails (6.1.4)
|
135
|
+
actioncable (= 6.1.4)
|
136
|
+
actionmailbox (= 6.1.4)
|
137
|
+
actionmailer (= 6.1.4)
|
138
|
+
actionpack (= 6.1.4)
|
139
|
+
actiontext (= 6.1.4)
|
140
|
+
actionview (= 6.1.4)
|
141
|
+
activejob (= 6.1.4)
|
142
|
+
activemodel (= 6.1.4)
|
143
|
+
activerecord (= 6.1.4)
|
144
|
+
activestorage (= 6.1.4)
|
145
|
+
activesupport (= 6.1.4)
|
146
146
|
bundler (>= 1.15.0)
|
147
|
-
railties (= 6.1.
|
147
|
+
railties (= 6.1.4)
|
148
148
|
sprockets-rails (>= 2.0.0)
|
149
149
|
rails-dom-testing (2.0.3)
|
150
150
|
activesupport (>= 4.2.0)
|
151
151
|
nokogiri (>= 1.6)
|
152
152
|
rails-html-sanitizer (1.3.0)
|
153
153
|
loofah (~> 2.3)
|
154
|
-
railties (6.1.
|
155
|
-
actionpack (= 6.1.
|
156
|
-
activesupport (= 6.1.
|
154
|
+
railties (6.1.4)
|
155
|
+
actionpack (= 6.1.4)
|
156
|
+
activesupport (= 6.1.4)
|
157
157
|
method_source
|
158
|
-
rake (>= 0.
|
158
|
+
rake (>= 0.13)
|
159
159
|
thor (~> 1.0)
|
160
160
|
rainbow (3.0.0)
|
161
|
-
rake (13.0.
|
161
|
+
rake (13.0.6)
|
162
162
|
regexp_parser (2.1.1)
|
163
163
|
rexml (3.2.5)
|
164
|
-
rubocop (1.
|
164
|
+
rubocop (1.18.3)
|
165
165
|
parallel (~> 1.10)
|
166
166
|
parser (>= 3.0.0.0)
|
167
167
|
rainbow (>= 2.2.2, < 4.0)
|
@@ -170,14 +170,14 @@ GEM
|
|
170
170
|
rubocop-ast (>= 1.7.0, < 2.0)
|
171
171
|
ruby-progressbar (~> 1.7)
|
172
172
|
unicode-display_width (>= 1.4.0, < 3.0)
|
173
|
-
rubocop-ast (1.
|
173
|
+
rubocop-ast (1.8.0)
|
174
174
|
parser (>= 3.0.1.1)
|
175
|
-
rubocop-minitest (0.
|
175
|
+
rubocop-minitest (0.14.0)
|
176
176
|
rubocop (>= 0.90, < 2.0)
|
177
|
-
rubocop-performance (1.11.
|
177
|
+
rubocop-performance (1.11.4)
|
178
178
|
rubocop (>= 1.7.0, < 2.0)
|
179
179
|
rubocop-ast (>= 0.4.0)
|
180
|
-
rubocop-rails (2.11.
|
180
|
+
rubocop-rails (2.11.3)
|
181
181
|
activesupport (>= 4.2.0)
|
182
182
|
rack (>= 1.1)
|
183
183
|
rubocop (>= 1.7.0, < 2.0)
|
@@ -242,4 +242,4 @@ DEPENDENCIES
|
|
242
242
|
yard
|
243
243
|
|
244
244
|
BUNDLED WITH
|
245
|
-
2.2.
|
245
|
+
2.2.21
|
@@ -16,7 +16,7 @@ module UiBibz::Concerns::Models::Searchable
|
|
16
16
|
|
17
17
|
def self.generate_parameters
|
18
18
|
{
|
19
|
-
controller: @params[:controller],
|
19
|
+
controller: @arguments[:controller] || @params[:controller],
|
20
20
|
param_id: @params[:id],
|
21
21
|
params: @params,
|
22
22
|
direction: @params[:direction],
|
data/lib/ui_bibz/infos.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
module UiBibz
|
4
4
|
NAME = 'Ui Bibz'
|
5
5
|
SLUG = 'ui_bibz'
|
6
|
-
BOOTSTRAP_VERSION = '5.0.
|
6
|
+
BOOTSTRAP_VERSION = '5.0.2'
|
7
7
|
DESCRIPTION = "A Rails Interface Framework using Bootstrap #{BOOTSTRAP_VERSION}."
|
8
8
|
SUMMARY = "Ui Bibz is an Ui Framework that allows you to build an interface very quickly and simply using Bootstrap #{BOOTSTRAP_VERSION}."
|
9
9
|
LICENSE = 'MIT'
|
@@ -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.0'
|
16
16
|
AUTHORS = ['Thooams'].freeze
|
17
17
|
end
|
@@ -57,7 +57,7 @@ module UiBibz::Ui::Ux::Tables
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def columns
|
60
|
-
@columns ||= Columns.new(model.
|
60
|
+
@columns ||= Columns.new(model.attribute_names.map { |attribute_name| Column.new(attribute_name, { name: attribute_name.humanize }) })
|
61
61
|
end
|
62
62
|
|
63
63
|
attr_reader :model
|
@@ -129,6 +129,13 @@ class TableTest < ActionView::TestCase
|
|
129
129
|
assert_equal expected, actual
|
130
130
|
end
|
131
131
|
|
132
|
+
test 'table actionable with antoher controller' do
|
133
|
+
@users = User.table_search_pagination(params, session, { controller: "areas" })
|
134
|
+
@store = UiBibz::Ui::Ux::Tables::Store.new @users
|
135
|
+
|
136
|
+
assert_equal("areas", @store.controller)
|
137
|
+
end
|
138
|
+
|
132
139
|
test 'table non actionable header' do
|
133
140
|
options = { actionable: false }
|
134
141
|
action = UiBibz::Ui::Ux::Tables::Actionable.new(@store, options)
|
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.0
|
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-
|
11
|
+
date: 2021-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -254,7 +254,7 @@ dependencies:
|
|
254
254
|
- - ">="
|
255
255
|
- !ruby/object:Gem::Version
|
256
256
|
version: '0'
|
257
|
-
description: A Rails Interface Framework using Bootstrap 5.0.
|
257
|
+
description: A Rails Interface Framework using Bootstrap 5.0.2.
|
258
258
|
email: thomas@hummel.link
|
259
259
|
executables:
|
260
260
|
- test
|
@@ -674,15 +674,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
674
674
|
version: 3.0.0
|
675
675
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
676
676
|
requirements:
|
677
|
-
- - "
|
677
|
+
- - ">="
|
678
678
|
- !ruby/object:Gem::Version
|
679
|
-
version:
|
679
|
+
version: '0'
|
680
680
|
requirements: []
|
681
|
-
rubygems_version: 3.2.
|
681
|
+
rubygems_version: 3.2.21
|
682
682
|
signing_key:
|
683
683
|
specification_version: 4
|
684
684
|
summary: Ui Bibz is an Ui Framework that allows you to build an interface very quickly
|
685
|
-
and simply using Bootstrap 5.0.
|
685
|
+
and simply using Bootstrap 5.0.2.
|
686
686
|
test_files:
|
687
687
|
- test/dummy/README.rdoc
|
688
688
|
- test/dummy/Rakefile
|