ui_bibz 3.0.0.beta19 → 3.0.0

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: f0011ba3d278a12f3d16b0e37c39e4f04c7ea6130b794ade6747c7b52c9ea9e3
4
- data.tar.gz: 175d9532394f41bf208d8f664c8cb58ddc8db53758823b997a4fde94d138a262
3
+ metadata.gz: '08901c79a02f3cdf155c8ebaaabbbeb51ca9f1c288683c9ed7a011f9fd0db79b'
4
+ data.tar.gz: a6775b311c69081ceaa310231e8a75c1734ee2e5137995dc14a667a88f77555f
5
5
  SHA512:
6
- metadata.gz: f40ded34bd486a366dd1722f8349e32955c02898dd560158eb522eb05ab177eea0fad23ac203620fd1b0b9b45ce08523a90b381f7840e6a81ba655e682cec06c
7
- data.tar.gz: 8cd7cd92a76547d63e8189bbcb086c986efa410984bb5613f1a53e8687711f0050c88c98588164efb07baf6bf1fc32a7e3ad96bc4734a81e61071e3ae4d7a23b
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.beta19)
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.3.2)
13
- actionpack (= 6.1.3.2)
14
- activesupport (= 6.1.3.2)
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.3.2)
18
- actionpack (= 6.1.3.2)
19
- activejob (= 6.1.3.2)
20
- activerecord (= 6.1.3.2)
21
- activestorage (= 6.1.3.2)
22
- activesupport (= 6.1.3.2)
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.3.2)
25
- actionpack (= 6.1.3.2)
26
- actionview (= 6.1.3.2)
27
- activejob (= 6.1.3.2)
28
- activesupport (= 6.1.3.2)
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.3.2)
32
- actionview (= 6.1.3.2)
33
- activesupport (= 6.1.3.2)
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.3.2)
39
- actionpack (= 6.1.3.2)
40
- activerecord (= 6.1.3.2)
41
- activestorage (= 6.1.3.2)
42
- activesupport (= 6.1.3.2)
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.3.2)
45
- activesupport (= 6.1.3.2)
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.3.2)
51
- activesupport (= 6.1.3.2)
50
+ activejob (6.1.4)
51
+ activesupport (= 6.1.4)
52
52
  globalid (>= 0.3.6)
53
- activemodel (6.1.3.2)
54
- activesupport (= 6.1.3.2)
55
- activerecord (6.1.3.2)
56
- activemodel (= 6.1.3.2)
57
- activesupport (= 6.1.3.2)
58
- activestorage (6.1.3.2)
59
- actionpack (= 6.1.3.2)
60
- activejob (= 6.1.3.2)
61
- activerecord (= 6.1.3.2)
62
- activesupport (= 6.1.3.2)
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 (~> 1.0.2)
65
- activesupport (6.1.3.2)
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.3)
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.1.1)
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.3.2)
135
- actioncable (= 6.1.3.2)
136
- actionmailbox (= 6.1.3.2)
137
- actionmailer (= 6.1.3.2)
138
- actionpack (= 6.1.3.2)
139
- actiontext (= 6.1.3.2)
140
- actionview (= 6.1.3.2)
141
- activejob (= 6.1.3.2)
142
- activemodel (= 6.1.3.2)
143
- activerecord (= 6.1.3.2)
144
- activestorage (= 6.1.3.2)
145
- activesupport (= 6.1.3.2)
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.3.2)
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.3.2)
155
- actionpack (= 6.1.3.2)
156
- activesupport (= 6.1.3.2)
154
+ railties (6.1.4)
155
+ actionpack (= 6.1.4)
156
+ activesupport (= 6.1.4)
157
157
  method_source
158
- rake (>= 0.8.7)
158
+ rake (>= 0.13)
159
159
  thor (~> 1.0)
160
160
  rainbow (3.0.0)
161
- rake (13.0.3)
161
+ rake (13.0.6)
162
162
  regexp_parser (2.1.1)
163
163
  rexml (3.2.5)
164
- rubocop (1.17.0)
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.7.0)
173
+ rubocop-ast (1.8.0)
174
174
  parser (>= 3.0.1.1)
175
- rubocop-minitest (0.13.0)
175
+ rubocop-minitest (0.14.0)
176
176
  rubocop (>= 0.90, < 2.0)
177
- rubocop-performance (1.11.3)
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.0)
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.15
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.0.beta3'
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.beta19'
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.new.attributes.keys.map { |record| Column.new(record, { name: record.humanize }) })
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.beta19
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-06-23 00:00:00.000000000 Z
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.0.beta3.
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: 1.3.1
679
+ version: '0'
680
680
  requirements: []
681
- rubygems_version: 3.2.15
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.0.beta3.
685
+ and simply using Bootstrap 5.0.2.
686
686
  test_files:
687
687
  - test/dummy/README.rdoc
688
688
  - test/dummy/Rakefile