ui_bibz 3.0.0.beta2 → 3.0.0.beta3

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: 9e265efc2e27c62c3bdefd67242d59b0bad016d3fab791b74880b1a9030092ce
4
- data.tar.gz: 324e8e048bc431bf9426f7bb54572e95035e7079e1c87304349963592c1d13fe
3
+ metadata.gz: efe8b08b80f4ee4b0ab28e1956134dea1530d71ff1bfe0d6d1b6e3800d839bce
4
+ data.tar.gz: 7970efb91f6a676dc012753c8cc79e39ae4514db97818ac1394f55b37e729a99
5
5
  SHA512:
6
- metadata.gz: ff64e1386ea6c156c0e82ad35950c50e7e603a154fbbc7104de530efbe6e15b3b2f5b9955899ecee33e7dce5883e0b15144fbc04d4e82f007d326bc017cc76d8
7
- data.tar.gz: daf77edc8f5dbdeffa62a3822a232d80c39a2bc7f3cf5e6b8fdb1d06b261bd4c14b84de1f2a2422fa1bbc1535fa6a5e115bcd965b4fb269e4279e2c39055d590
6
+ metadata.gz: a24bc17b0a2afcfbec5a89a058920e411aaa8c7e014b9f3604880a659f813ced5431e96a975da9d32d43500508e18b19531aaf1caccefea0ecade3fa24df0e94
7
+ data.tar.gz: 512a44e10d6944881806b3ccf697715f0c9fabf240338813ccea5a54b4a9299a52304cc097e6c90658644a28e7355e3449e775b54d95ffc343e3b3eb55395ac4
@@ -0,0 +1,8 @@
1
+ version: "2"
2
+ plugins:
3
+ brakeman:
4
+ enabled: true
5
+ bundler-audit:
6
+ enabled: true
7
+ rubocop:
8
+ enabled: true
@@ -0,0 +1,28 @@
1
+ name: CI
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ build:
7
+
8
+ runs-on: ubuntu-latest
9
+
10
+ steps:
11
+ - uses: actions/checkout@v2
12
+
13
+ - name: Set up Ruby with .ruby-version file
14
+ uses: ruby/setup-ruby@v1
15
+ with:
16
+ bundler-cache: true
17
+
18
+ - name: Install gems
19
+ run: |
20
+ gem install bundler
21
+ bundle install --jobs 4 --retry 3
22
+
23
+ - name: Test with Rake
24
+ uses: paambaati/codeclimate-action@v2.7.5
25
+ env:
26
+ CC_TEST_REPORTER_ID: 95196f8dbe3406321c6e7b406585532102784f0a3d4141a25f53937eedb844b6
27
+ with:
28
+ coverageCommand: bundle exec rake
@@ -1,8 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ui_bibz (3.0.0.beta2)
5
- rails (~> 6.0.3, >= 6.0.3.2)
4
+ ui_bibz (3.0.0.beta3)
6
5
  will-paginate-i18n
7
6
  will_paginate (~> 3.1.0)
8
7
  will_paginate-bootstrap4
@@ -74,7 +73,7 @@ GEM
74
73
  simplecov
75
74
  concurrent-ruby (1.1.7)
76
75
  crass (1.0.6)
77
- docile (1.3.2)
76
+ docile (1.3.4)
78
77
  erubi (1.10.0)
79
78
  erubis (2.7.0)
80
79
  factory_bot (4.11.1)
@@ -98,7 +97,7 @@ GEM
98
97
  haml (>= 4.0, < 6)
99
98
  nokogiri (>= 1.6.0)
100
99
  ruby_parser (~> 3.5)
101
- i18n (1.8.5)
100
+ i18n (1.8.7)
102
101
  concurrent-ruby (~> 1.0)
103
102
  iniparse (1.5.0)
104
103
  jquery-rails (4.4.0)
@@ -115,17 +114,19 @@ GEM
115
114
  method_source (1.0.0)
116
115
  mimemagic (0.3.5)
117
116
  mini_mime (1.0.2)
118
- mini_portile2 (2.4.0)
119
- minitest (5.14.2)
117
+ mini_portile2 (2.5.0)
118
+ minitest (5.14.3)
120
119
  nio4r (2.5.4)
121
- nokogiri (1.10.10)
122
- mini_portile2 (~> 2.4.0)
120
+ nokogiri (1.11.1)
121
+ mini_portile2 (~> 2.5.0)
122
+ racc (~> 1.4)
123
123
  overcommit (0.57.0)
124
124
  childprocess (>= 0.6.3, < 5)
125
125
  iniparse (~> 1.4)
126
126
  parallel (1.20.1)
127
- parser (2.7.2.0)
127
+ parser (3.0.0.0)
128
128
  ast (~> 2.4.1)
129
+ racc (1.5.2)
129
130
  rack (2.2.3)
130
131
  rack-test (1.1.0)
131
132
  rack (>= 1.0, < 3)
@@ -156,37 +157,37 @@ GEM
156
157
  rake (>= 0.8.7)
157
158
  thor (>= 0.20.3, < 2.0)
158
159
  rainbow (3.0.0)
159
- rake (13.0.1)
160
- regexp_parser (2.0.0)
160
+ rake (13.0.3)
161
+ regexp_parser (2.0.3)
161
162
  rexml (3.2.4)
162
- rubocop (1.6.1)
163
+ rubocop (1.8.0)
163
164
  parallel (~> 1.10)
164
- parser (>= 2.7.1.5)
165
+ parser (>= 3.0.0.0)
165
166
  rainbow (>= 2.2.2, < 4.0)
166
167
  regexp_parser (>= 1.8, < 3.0)
167
168
  rexml
168
169
  rubocop-ast (>= 1.2.0, < 2.0)
169
170
  ruby-progressbar (~> 1.7)
170
- unicode-display_width (>= 1.4.0, < 2.0)
171
- rubocop-ast (1.3.0)
171
+ unicode-display_width (>= 1.4.0, < 3.0)
172
+ rubocop-ast (1.4.0)
172
173
  parser (>= 2.7.1.5)
173
- rubocop-minitest (0.10.1)
174
- rubocop (>= 0.87)
175
- rubocop-performance (1.9.1)
174
+ rubocop-minitest (0.10.2)
175
+ rubocop (>= 0.87, < 2.0)
176
+ rubocop-performance (1.9.2)
176
177
  rubocop (>= 0.90.0, < 2.0)
177
178
  rubocop-ast (>= 0.4.0)
178
- rubocop-rails (2.9.0)
179
+ rubocop-rails (2.9.1)
179
180
  activesupport (>= 4.2.0)
180
181
  rack (>= 1.1)
181
182
  rubocop (>= 0.90.0, < 2.0)
182
- ruby-progressbar (1.10.1)
183
+ ruby-progressbar (1.11.0)
183
184
  ruby_parser (3.15.0)
184
185
  sexp_processor (~> 4.9)
185
186
  sexp_processor (4.15.1)
186
187
  simple_form (5.0.3)
187
188
  actionpack (>= 5.0)
188
189
  activemodel (>= 5.0)
189
- simplecov (0.20.0)
190
+ simplecov (0.21.1)
190
191
  docile (~> 1.1)
191
192
  simplecov-html (~> 0.11)
192
193
  simplecov_json_formatter (~> 0.1)
@@ -204,9 +205,9 @@ GEM
204
205
  thor (1.0.1)
205
206
  thread_safe (0.3.6)
206
207
  tilt (2.0.10)
207
- tzinfo (1.2.8)
208
+ tzinfo (1.2.9)
208
209
  thread_safe (~> 0.1)
209
- unicode-display_width (1.7.0)
210
+ unicode-display_width (2.0.0)
210
211
  websocket-driver (0.7.3)
211
212
  websocket-extensions (>= 0.1.0)
212
213
  websocket-extensions (0.1.5)
@@ -228,6 +229,7 @@ DEPENDENCIES
228
229
  jquery-rails (>= 3.1.0)
229
230
  minitest
230
231
  overcommit
232
+ rails (~> 6.0.3, >= 6.0.3.2)
231
233
  rubocop
232
234
  rubocop-ast
233
235
  rubocop-minitest
data/README.md CHANGED
@@ -1,12 +1,11 @@
1
1
  ![Ui Bibz logo](https://repository-images.githubusercontent.com/29547689/e29b2180-0d59-11eb-89f3-4541571d7c67)
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/ui_bibz.svg)](http://badge.fury.io/rb/ui_bibz)
4
- [![Build Status](https://travis-ci.org/thooams/Ui-Bibz.svg)](https://travis-ci.org/thooams/Ui-Bibz)
3
+ [![Gem Version](https://badge.fury.io/rb/ui_bibz.svg)](https://badge.fury.io/rb/ui_bibz)
5
4
  [![Code Climate](https://codeclimate.com/github/thooams/Ui-Bibz/badges/gpa.svg)](https://codeclimate.com/github/thooams/Ui-Bibz)
6
5
  [![Test Coverage](https://codeclimate.com/github/thooams/Ui-Bibz/badges/coverage.svg)](https://codeclimate.com/github/thooams/Ui-Bibz)
7
6
  [![Inline docs](http://inch-ci.org/github/thooams/Ui-Bibz.svg?branch=master)](http://inch-ci.org/github/thooams/Ui-Bibz)
8
7
  [![security](https://hakiri.io/github/thooams/Ui-Bibz/master.svg)](https://hakiri.io/github/thooams/Ui-Bibz/master)
9
- ![Ruby](https://github.com/thooams/Ui-Bibz/workflows/Ruby/badge.svg)
8
+ ![Ci](https://github.com/thooams/Ui-Bibz/workflows/CI/badge.svg)
10
9
 
11
10
  This project rocks and uses MIT-LICENSE.
12
11
 
@@ -9,9 +9,9 @@ module UiBibz
9
9
  LICENSE = 'MIT'
10
10
  FONTAWESOME_VERSION = '5.15.1'
11
11
  HOMEPAGE = 'https://hummel.link/ui-bibz/'
12
- REPO = 'git+https://github.com/thooams/Ui-Bibz.git'
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.beta2'
15
+ VERSION = '3.0.0.beta3'
16
16
  AUTHORS = ['Thooams'].freeze
17
17
  end
@@ -47,7 +47,7 @@ class ButtonGroupTest < ActionView::TestCase
47
47
  d.link 'Link 1', url: '#link1', glyph: 'eye'
48
48
  end
49
49
  end
50
- expected = "<div class=\"btn-group\" role=\"group\"><div id=\"dropdown-test\" class=\"dropup btn-group\"><button class=\"btn btn-success dropdown-toggle\" type=\"button\" data-bs-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\" id=\"dropdown-test\">Dropdown</button><div class=\"dropdown-menu\" arial-labelledby=\"dropdown-test\"><a class=\"dropdown-item\" href=\"#link1\"><i class=\"glyph fas fa-eye\"></i> Link 1</a></div></div></div>"
50
+ expected = "<div class=\"btn-group\" role=\"group\"><div id=\"dropdown-test\" class=\"dropup btn-group\"><button class=\"btn btn-success dropdown-toggle\" type=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\" id=\"dropdown-test\">Dropdown</button><div class=\"dropdown-menu\" arial-labelledby=\"dropdown-test\"><a class=\"dropdown-item\" href=\"#link1\"><i class=\"glyph fas fa-eye\"></i> Link 1</a></div></div></div>"
51
51
 
52
52
  assert_equal expected, actual
53
53
  end
@@ -8,7 +8,7 @@ class DropdownTest < ActionView::TestCase
8
8
  actual = UiBibz::Ui::Core::Forms::Dropdowns::Dropdown.new('Dropdown').tap do |d|
9
9
  d.link 'link'
10
10
  end
11
- expected = "<div class=\"dropdown\"><button class=\"btn btn-secondary dropdown-toggle\" type=\"button\" data-bs-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\" id=\"#{actual.id}\">Dropdown</button><div class=\"dropdown-menu\" arial-labelledby=\"#{actual.id}\"><a class=\"dropdown-item\" href=\"#\">link</a></div></div>"
11
+ expected = "<div class=\"dropdown\"><button class=\"btn btn-secondary dropdown-toggle\" type=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\" id=\"#{actual.id}\">Dropdown</button><div class=\"dropdown-menu\" arial-labelledby=\"#{actual.id}\"><a class=\"dropdown-item\" href=\"#\">link</a></div></div>"
12
12
 
13
13
  assert_equal expected, actual.render
14
14
  end
@@ -17,7 +17,7 @@ class DropdownTest < ActionView::TestCase
17
17
  actual = UiBibz::Ui::Core::Forms::Dropdowns::Dropdown.new('Dropdown', status: :primary).tap do |d|
18
18
  d.link 'link'
19
19
  end
20
- expected = "<div class=\"dropdown\"><button class=\"btn btn-primary dropdown-toggle\" type=\"button\" data-bs-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\" id=\"#{actual.id}\">Dropdown</button><div class=\"dropdown-menu\" arial-labelledby=\"#{actual.id}\"><a class=\"dropdown-item\" href=\"#\">link</a></div></div>"
20
+ expected = "<div class=\"dropdown\"><button class=\"btn btn-primary dropdown-toggle\" type=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\" id=\"#{actual.id}\">Dropdown</button><div class=\"dropdown-menu\" arial-labelledby=\"#{actual.id}\"><a class=\"dropdown-item\" href=\"#\">link</a></div></div>"
21
21
 
22
22
  assert_equal expected, actual.render
23
23
  end
@@ -26,7 +26,7 @@ class DropdownTest < ActionView::TestCase
26
26
  actual = UiBibz::Ui::Core::Forms::Dropdowns::Dropdown.new('Dropdown', status: :primary, outline: true).tap do |d|
27
27
  d.link 'link'
28
28
  end
29
- expected = "<div class=\"dropdown\"><button class=\"btn btn-outline-primary dropdown-toggle\" type=\"button\" data-bs-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\" id=\"#{actual.id}\">Dropdown</button><div class=\"dropdown-menu\" arial-labelledby=\"#{actual.id}\"><a class=\"dropdown-item\" href=\"#\">link</a></div></div>"
29
+ expected = "<div class=\"dropdown\"><button class=\"btn btn-outline-primary dropdown-toggle\" type=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\" id=\"#{actual.id}\">Dropdown</button><div class=\"dropdown-menu\" arial-labelledby=\"#{actual.id}\"><a class=\"dropdown-item\" href=\"#\">link</a></div></div>"
30
30
 
31
31
  assert_equal expected, actual.render
32
32
  end
@@ -39,7 +39,7 @@ class DropdownTest < ActionView::TestCase
39
39
  d.divider
40
40
  d.link 'Link3', url: '#link3'
41
41
  end
42
- expected = "<div class=\"dropup btn-group\"><button class=\"btn btn-success dropdown-toggle\" type=\"button\" data-bs-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\" id=\"#{actual.id}\"><i class=\"glyph fas fa-diamond\"></i> Dropdown</button><div class=\"dropdown-menu dropdown-menu-right\" arial-labelledby=\"#{actual.id}\"><a class=\"dropdown-item\" href=\"#link1\"><i class=\"glyph fas fa-eye\"></i> Link 1</a><h6 class=\"dropdown-header\" role=\"presentation\">header</h6><a class=\"dropdown-item\" href=\"#link2\">Link 2</a><div class=\"dropdown-divider\"></div><a class=\"dropdown-item\" href=\"#link3\">Link3</a></div></div>"
42
+ expected = "<div class=\"dropup btn-group\"><button class=\"btn btn-success dropdown-toggle\" type=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\" id=\"#{actual.id}\"><i class=\"glyph fas fa-diamond\"></i> Dropdown</button><div class=\"dropdown-menu dropdown-menu-end\" arial-labelledby=\"#{actual.id}\"><a class=\"dropdown-item\" href=\"#link1\"><i class=\"glyph fas fa-eye\"></i> Link 1</a><h6 class=\"dropdown-header\" role=\"presentation\">header</h6><a class=\"dropdown-item\" href=\"#link2\">Link 2</a><div class=\"dropdown-divider\"></div><a class=\"dropdown-item\" href=\"#link3\">Link3</a></div></div>"
43
43
 
44
44
  assert_equal expected, actual.render
45
45
  end
@@ -48,7 +48,7 @@ class DropdownTest < ActionView::TestCase
48
48
  actual = UiBibz::Ui::Core::Forms::Dropdowns::Dropdown.new('Split Dropdown').tap do |d|
49
49
  d.link 'state'
50
50
  end
51
- expected = "<div class=\"dropdown\"><button class=\"btn btn-secondary dropdown-toggle\" type=\"button\" data-bs-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\" id=\"#{actual.id}\">Split Dropdown</button><div class=\"dropdown-menu\" arial-labelledby=\"#{actual.id}\"><a class=\"dropdown-item\" href=\"#\">state</a></div></div>"
51
+ expected = "<div class=\"dropdown\"><button class=\"btn btn-secondary dropdown-toggle\" type=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\" id=\"#{actual.id}\">Split Dropdown</button><div class=\"dropdown-menu\" arial-labelledby=\"#{actual.id}\"><a class=\"dropdown-item\" href=\"#\">state</a></div></div>"
52
52
 
53
53
  assert_equal expected, actual.render
54
54
  end
@@ -31,7 +31,7 @@ class SurroundFieldTest < ActionView::TestCase
31
31
  d.link 'Link3', url: '#link3'
32
32
  end
33
33
  end.render
34
- expected = "<div class=\"input-group ui_surround_field\"><button class=\"btn btn-secondary dropdown-toggle\" type=\"button\" data-bs-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\" id=\"dropdown-test\">Dropdown</button><div class=\"dropdown-menu\" arial-labelledby=\"dropdown-test\"><a class=\"dropdown-item\" href=\"#link1\"><i class=\"glyph fas fa-eye\"></i> Link 1</a><h6 class=\"dropdown-header\" role=\"presentation\">header</h6><a class=\"dropdown-item\" href=\"#link2\">Link 2</a><div class=\"dropdown-divider\"></div><a class=\"dropdown-item\" href=\"#link3\">Link3</a></div></div>"
34
+ expected = "<div class=\"input-group ui_surround_field\"><button class=\"btn btn-secondary dropdown-toggle\" type=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\" id=\"dropdown-test\">Dropdown</button><div class=\"dropdown-menu\" arial-labelledby=\"dropdown-test\"><a class=\"dropdown-item\" href=\"#link1\"><i class=\"glyph fas fa-eye\"></i> Link 1</a><h6 class=\"dropdown-header\" role=\"presentation\">header</h6><a class=\"dropdown-item\" href=\"#link2\">Link 2</a><div class=\"dropdown-divider\"></div><a class=\"dropdown-item\" href=\"#link3\">Link3</a></div></div>"
35
35
 
36
36
  assert_equal expected, actual
37
37
  end
@@ -28,7 +28,7 @@ class UiHelperTest < ActionView::TestCase
28
28
  concat ui_button_link 'Save', url: '#', status: :primary
29
29
  end
30
30
  end
31
- expected = "<div data-backdrop=\"static\" data-keyboard=\"false\" class=\"modal\" tabindex=\"-1\" aria-labelledby=\"My title\" aria-hidden=\"true\"><div class=\"modal-dialog modal-fullscreen modal-dialog-scrollable\"><div class=\"modal-content\"><div class=\"modal-header\"><h5 class=\"modal-title\">My title</h5><button class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button></div><div class=\"modal-body\">My body</div><div class=\"modal-footer\"><a class=\"btn-link btn\" role=\"button\" href=\"#\">Close</a><a class=\"btn-primary btn\" role=\"button\" href=\"#\">Save</a></div></div></div></div>"
31
+ expected = "<div data-bs-backdrop=\"static\" data-bs-keyboard=\"false\" class=\"modal\" tabindex=\"-1\" aria-labelledby=\"My title\" aria-hidden=\"true\"><div class=\"modal-dialog modal-fullscreen modal-dialog-scrollable\"><div class=\"modal-content\"><div class=\"modal-header\"><h5 class=\"modal-title\">My title</h5><button class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button></div><div class=\"modal-body\">My body</div><div class=\"modal-footer\"><a class=\"btn-link btn\" role=\"button\" href=\"#\">Close</a><a class=\"btn-primary btn\" role=\"button\" href=\"#\">Save</a></div></div></div></div>"
32
32
 
33
33
  assert_equal expected, actual
34
34
  end
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.require_paths = %w[lib vendor]
28
28
 
29
29
  # Rails gems
30
- s.add_dependency 'rails', '~> 6.0.3', '>= 6.0.3.2'
30
+ s.add_development_dependency 'rails', '~> 6.0.3', '>= 6.0.3.2'
31
31
 
32
32
  # Remove these dependencies after
33
33
  s.add_dependency 'will_paginate', '~> 3.1.0'
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.beta2
4
+ version: 3.0.0.beta3
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: 2020-12-14 00:00:00.000000000 Z
11
+ date: 2021-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -20,7 +20,7 @@ dependencies:
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
22
  version: 6.0.3.2
23
- type: :runtime
23
+ type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
@@ -261,8 +261,9 @@ executables:
261
261
  extensions: []
262
262
  extra_rdoc_files: []
263
263
  files:
264
+ - ".codeclimate.yml"
264
265
  - ".github/FUNDING.yml"
265
- - ".github/workflows/ruby.yml"
266
+ - ".github/workflows/ci.yml"
266
267
  - ".gitignore"
267
268
  - ".gitlab-ci.yml"
268
269
  - ".overcommit.yml"
@@ -1,23 +0,0 @@
1
- name: Ruby
2
-
3
- on: [push]
4
-
5
- jobs:
6
- build:
7
-
8
- runs-on: ubuntu-latest
9
-
10
- steps:
11
- - uses: actions/checkout@v1
12
- - name: Setup System
13
- run: |
14
- sudo apt-get install libsqlite3-dev
15
- - name: Set up Ruby 2.7
16
- uses: actions/setup-ruby@v1
17
- with:
18
- ruby-version: 2.7.x
19
- - name: Build and test with Rake
20
- run: |
21
- gem install bundler
22
- bundle install --jobs 4 --retry 3
23
- bundle exec rake