boot_wheel 0.0.2 → 0.0.4

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: aaa8efe1573e9573c9b712808db9797d6e554844ef60927172493cc2262674bc
4
- data.tar.gz: 46c33af21bd55892eac2d0212407a763bd4424497e6e5d13b865f741d30be218
3
+ metadata.gz: d620bdce85387755cc8ac0eda821b6009c370ed453444f662fbf8ea5b6cd91f7
4
+ data.tar.gz: 2cfbb979d448d6528ed1cdcc80cd03bc00eef9296c3a43ea36a020b29182cf82
5
5
  SHA512:
6
- metadata.gz: cf4c5157d8022f23e34a30871ace2e361ba3bb40abd7fce4e477f9d0398f263c893a5672d7cde325bebbf9d32fe2ed9734507be1174b6c29ed415d0fc33748a1
7
- data.tar.gz: c7609522dc4ff12e012c9f6ae8e4bcb9626efc8451a0eac4108ef1208492f305a56512119f7d913375d769262a6ca39d6f1f0c69906360b612e8bba15412c1cb
6
+ metadata.gz: 41e8193dc53face019cad48e6caef2c0200fa251e7f9d55773b305c2aa660ad4a3da3610e14a7da7ca18875f4ec97ec1b5e60c530afcb13e20a82788c994f93b
7
+ data.tar.gz: e3e3dafccba2586e65285a65c62cc16a976ca81294f7dd7c5a979e022174690a40db55b64b0f1f3f4e84bfd76f05ea9beb4613afff040ddcdd3db0dd57d352fa
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Bootstrap demo</title>
7
+ <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
8
+ </head>
9
+ <body>
10
+ <div class="container"><%= c.slot %></div>
11
+ <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
12
+ </body>
13
+ </html>
@@ -0,0 +1,26 @@
1
+ <table class="<%= c.applied_classes %>">
2
+ <thead>
3
+ <tr>
4
+ <% c.fields.each do |field| -%>
5
+ <% if field[:variant] -%>
6
+ <th scope="col" class="table-<%= field[:variant] %>"><%= field[:label] %></th>
7
+ <% else -%>
8
+ <th scope="col"><%= field[:label] %></th>
9
+ <% end -%>
10
+ <% end -%>
11
+ </tr>
12
+ </thead>
13
+ <tbody>
14
+ <% c.items.each do |item| -%>
15
+ <tr>
16
+ <% item.each do |key, value| -%>
17
+ <% if c.field_with_key(key) && c.field_with_key(key)[:variant] -%>
18
+ <td class="table-<%= c.field_with_key(key)[:variant] %>"><%= value %></td>
19
+ <% else -%>
20
+ <td><%= value %></td>
21
+ <% end -%>
22
+ <% end -%>
23
+ </tr>
24
+ <% end -%>
25
+ </tbody>
26
+ </table>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boot_wheel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory Brown
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.0.9
19
+ version: 0.0.10
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.0.9
26
+ version: 0.0.10
27
27
  description: Experimental component library built on top of Little Wheels, inspired
28
28
  by BootstrapVue
29
29
  email: gregory@practicingdeveloper.com
@@ -42,6 +42,8 @@ files:
42
42
  - lib/boot_wheel/page.rb
43
43
  - lib/boot_wheel/rugged.rb
44
44
  - lib/boot_wheel/table.rb
45
+ - templates/page.erb
46
+ - templates/table.erb
45
47
  homepage:
46
48
  licenses:
47
49
  - AGPLv3