simplecov-tailwindcss 2.1.1 → 2.2.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 +4 -4
- data/.github/CODEOWNERS +1 -0
- data/.github/CODE_OF_CONDUCT.md +1 -1
- data/.github/CONTRIBUTING.md +2 -2
- data/.github/FUNDING.yml +2 -0
- data/.github/ISSUE_TEMPLATE/bug_report.yml +4 -0
- data/.github/dependabot.yml +19 -0
- data/.github/workflows/builds.yml +49 -17
- data/.github/workflows/github_publish.yml +1 -1
- data/.github/workflows/lints.yml +19 -8
- data/.github/workflows/rubygem_publish.yml +1 -1
- data/.github/workflows/tests.yml +77 -4
- data/.gitmodules +4 -0
- data/.prettierignore +4 -1
- data/.vscode/settings.json +2 -1
- data/CHANGELOG.md +30 -0
- data/LICENSE +1 -1
- data/README.md +7 -60
- data/bin/lint +38 -0
- data/bin/setup +21 -4
- data/bin/upgrade +19 -0
- data/dist/app.js +3 -3
- data/lib/simplecov-tailwindcss/version.rb +1 -1
- data/lib/simplecov-tailwindcss.rb +4 -5
- data/package.json +23 -19
- data/pnpm-lock.yaml +2636 -0
- data/prettier.config.js +20 -0
- data/public/application.css +1 -1
- data/public/application.js +2 -2
- data/simplecov-tailwindcss.gemspec +2 -2
- data/test/test_helper.rb +1 -0
- data/views/dialog.erb +2 -1
- data/views/file_detail.erb +1 -1
- data/views/main.erb +1 -1
- metadata +14 -7
- data/.prettierrc.json +0 -12
- data/yarn.lock +0 -2246
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f3111ac271183686b07303ea9cfee45678027d9f6a50b44f08f8f13157d60f65
|
|
4
|
+
data.tar.gz: e707071abdfed823f0f85ff1d7b347ce1f1e45f859f696d7cb3c9b8a21c48bd2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e9c7abb5b547e41cbdf4af863813856bee49e0375cb06f62ebf3f03f914e093a75ef6df66f7e696127e1bd7f302f712072f534d80724eaca2eb7bb0a22880102
|
|
7
|
+
data.tar.gz: 7b35b5a38f5cfce15c298c630feea3f74ff49edbe95d4c40c63cc77f5f3ce1c7a4a82a15cb056573bf93c4dee4be7eb4ff9266aa67b7e1dd7d68e1d9528ee491
|
data/.github/CODEOWNERS
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @chiefpansancolt
|
data/.github/CODE_OF_CONDUCT.md
CHANGED
|
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
|
|
|
55
55
|
## Enforcement
|
|
56
56
|
|
|
57
57
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
58
|
-
reported by contacting the project team at github@chiefpansancolt.
|
|
58
|
+
reported by contacting the project team at github@chiefpansancolt.dev. All
|
|
59
59
|
complaints will be reviewed and investigated and will result in a response that
|
|
60
60
|
is deemed necessary and appropriate to the circumstances. The project team is
|
|
61
61
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
data/.github/CONTRIBUTING.md
CHANGED
|
@@ -7,9 +7,9 @@ and stronger!
|
|
|
7
7
|
## Code of Conduct
|
|
8
8
|
|
|
9
9
|
This project and everyone participating in it is governed by the [Simplecov
|
|
10
|
-
|
|
10
|
+
Tailwind Code of Conduct](https://github.com/chiefpansancolt/simplecov-tailwindcss/blob/main/.github/CODE_OF_CONDUCT.md).
|
|
11
11
|
By participating, you are expected to uphold this code. Please report
|
|
12
|
-
unacceptable behavior to github@chiefpansancolt.
|
|
12
|
+
unacceptable behavior to github@chiefpansancolt.dev.
|
|
13
13
|
|
|
14
14
|
## How can I Contribute
|
|
15
15
|
|
data/.github/FUNDING.yml
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
# Maintain dependencies for GitHub Actions
|
|
4
|
+
- package-ecosystem: 'github-actions'
|
|
5
|
+
directory: '/'
|
|
6
|
+
schedule:
|
|
7
|
+
interval: 'weekly'
|
|
8
|
+
|
|
9
|
+
# Maintain dependencies for npm
|
|
10
|
+
- package-ecosystem: 'npm'
|
|
11
|
+
directory: '/'
|
|
12
|
+
schedule:
|
|
13
|
+
interval: 'weekly'
|
|
14
|
+
|
|
15
|
+
# Maintain dependencies for Ruby
|
|
16
|
+
- package-ecosystem: 'bundler'
|
|
17
|
+
directory: '/'
|
|
18
|
+
schedule:
|
|
19
|
+
interval: 'weekly'
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
name: Build
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
4
|
pull_request:
|
|
8
5
|
branches:
|
|
9
6
|
- main
|
|
@@ -19,18 +16,32 @@ jobs:
|
|
|
19
16
|
|
|
20
17
|
steps:
|
|
21
18
|
- name: Check out Git repository
|
|
22
|
-
uses: actions/checkout@
|
|
19
|
+
uses: actions/checkout@v4
|
|
23
20
|
|
|
24
21
|
- name: Set up Node.js
|
|
25
|
-
uses: actions/setup-node@
|
|
22
|
+
uses: actions/setup-node@v4
|
|
23
|
+
with:
|
|
24
|
+
node-version: 18
|
|
25
|
+
|
|
26
|
+
- uses: pnpm/action-setup@v2
|
|
27
|
+
name: Install pnpm
|
|
26
28
|
with:
|
|
27
|
-
|
|
29
|
+
version: 8
|
|
30
|
+
run_install: false
|
|
28
31
|
|
|
29
32
|
- name: Install Node.js dependencies
|
|
30
|
-
run:
|
|
33
|
+
run: pnpm install
|
|
34
|
+
|
|
35
|
+
- uses: actions/cache@v3
|
|
36
|
+
name: Setup pnpm cache
|
|
37
|
+
with:
|
|
38
|
+
path: ${{ env.STORE_PATH }}
|
|
39
|
+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
40
|
+
restore-keys: |
|
|
41
|
+
${{ runner.os }}-pnpm-store-
|
|
31
42
|
|
|
32
43
|
- name: Compile JS
|
|
33
|
-
run:
|
|
44
|
+
run: pnpm build:js
|
|
34
45
|
|
|
35
46
|
- name: Upload Compiled JS
|
|
36
47
|
uses: actions/upload-artifact@v3
|
|
@@ -44,18 +55,32 @@ jobs:
|
|
|
44
55
|
|
|
45
56
|
steps:
|
|
46
57
|
- name: Check out Git repository
|
|
47
|
-
uses: actions/checkout@
|
|
58
|
+
uses: actions/checkout@v4
|
|
48
59
|
|
|
49
60
|
- name: Set up Node.js
|
|
50
|
-
uses: actions/setup-node@
|
|
61
|
+
uses: actions/setup-node@v4
|
|
51
62
|
with:
|
|
52
|
-
node-version:
|
|
63
|
+
node-version: 18
|
|
64
|
+
|
|
65
|
+
- uses: pnpm/action-setup@v2
|
|
66
|
+
name: Install pnpm
|
|
67
|
+
with:
|
|
68
|
+
version: 8
|
|
69
|
+
run_install: false
|
|
53
70
|
|
|
54
71
|
- name: Install Node.js dependencies
|
|
55
|
-
run:
|
|
72
|
+
run: pnpm install
|
|
56
73
|
|
|
57
|
-
-
|
|
58
|
-
|
|
74
|
+
- uses: actions/cache@v3
|
|
75
|
+
name: Setup pnpm cache
|
|
76
|
+
with:
|
|
77
|
+
path: ${{ env.STORE_PATH }}
|
|
78
|
+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
79
|
+
restore-keys: |
|
|
80
|
+
${{ runner.os }}-pnpm-store-
|
|
81
|
+
|
|
82
|
+
- name: Compile CSS
|
|
83
|
+
run: pnpm build:css
|
|
59
84
|
|
|
60
85
|
- name: Upload Compiled CSS
|
|
61
86
|
uses: actions/upload-artifact@v3
|
|
@@ -66,23 +91,30 @@ jobs:
|
|
|
66
91
|
run-gem-build:
|
|
67
92
|
name: Run Gem Build
|
|
68
93
|
runs-on: ubuntu-latest
|
|
94
|
+
needs: [run-css-build, run-js-build]
|
|
69
95
|
|
|
70
96
|
steps:
|
|
71
97
|
- name: Check out Git repository
|
|
72
|
-
uses: actions/checkout@
|
|
98
|
+
uses: actions/checkout@v4
|
|
73
99
|
|
|
74
100
|
- name: Set up Ruby
|
|
75
101
|
uses: ruby/setup-ruby@v1
|
|
76
102
|
with:
|
|
77
103
|
ruby-version: .ruby-version
|
|
78
104
|
|
|
105
|
+
- uses: pnpm/action-setup@v2
|
|
106
|
+
name: Install pnpm
|
|
107
|
+
with:
|
|
108
|
+
version: 8
|
|
109
|
+
run_install: false
|
|
110
|
+
|
|
79
111
|
- name: Install Ruby Gem dependencies
|
|
80
112
|
run: |
|
|
81
|
-
gem install bundler -v 2.
|
|
113
|
+
gem install bundler -v 2.4.22
|
|
82
114
|
bundle install --jobs 4 --retry 3
|
|
83
115
|
|
|
84
116
|
- name: Build Gem
|
|
85
|
-
run:
|
|
117
|
+
run: pnpm gem:build
|
|
86
118
|
|
|
87
119
|
- name: Upload Compiled Gem
|
|
88
120
|
uses: actions/upload-artifact@v3
|
data/.github/workflows/lints.yml
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
name: Lint
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
4
|
pull_request:
|
|
8
5
|
branches:
|
|
9
6
|
- main
|
|
@@ -19,15 +16,29 @@ jobs:
|
|
|
19
16
|
|
|
20
17
|
steps:
|
|
21
18
|
- name: Check out Git repository
|
|
22
|
-
uses: actions/checkout@
|
|
19
|
+
uses: actions/checkout@v4
|
|
23
20
|
|
|
24
21
|
- name: Set up Node.js
|
|
25
|
-
uses: actions/setup-node@
|
|
22
|
+
uses: actions/setup-node@v4
|
|
23
|
+
with:
|
|
24
|
+
node-version: 18
|
|
25
|
+
|
|
26
|
+
- uses: pnpm/action-setup@v2
|
|
27
|
+
name: Install pnpm
|
|
26
28
|
with:
|
|
27
|
-
|
|
29
|
+
version: 8
|
|
30
|
+
run_install: false
|
|
28
31
|
|
|
29
32
|
- name: Install Node.js dependencies
|
|
30
|
-
run:
|
|
33
|
+
run: pnpm install
|
|
34
|
+
|
|
35
|
+
- uses: actions/cache@v3
|
|
36
|
+
name: Setup pnpm cache
|
|
37
|
+
with:
|
|
38
|
+
path: ${{ env.STORE_PATH }}
|
|
39
|
+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
40
|
+
restore-keys: |
|
|
41
|
+
${{ runner.os }}-pnpm-store-
|
|
31
42
|
|
|
32
43
|
- name: Set up Ruby
|
|
33
44
|
uses: ruby/setup-ruby@v1
|
|
@@ -36,7 +47,7 @@ jobs:
|
|
|
36
47
|
|
|
37
48
|
- name: Install Ruby Gem dependencies
|
|
38
49
|
run: |
|
|
39
|
-
gem install bundler -v 2.4.
|
|
50
|
+
gem install bundler -v 2.4.22
|
|
40
51
|
bundle install --jobs 4 --retry 3
|
|
41
52
|
|
|
42
53
|
- name: Run linters
|
data/.github/workflows/tests.yml
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
name: Tests
|
|
2
2
|
|
|
3
|
-
on:
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
4
7
|
|
|
5
8
|
jobs:
|
|
6
|
-
ruby-test:
|
|
9
|
+
ruby-test-old:
|
|
7
10
|
runs-on: ubuntu-latest
|
|
8
11
|
|
|
9
12
|
strategy:
|
|
10
13
|
matrix:
|
|
11
|
-
ruby: [
|
|
14
|
+
ruby: [2.5.9]
|
|
12
15
|
|
|
13
16
|
steps:
|
|
14
17
|
- name: Checkout Code
|
|
15
|
-
uses: actions/checkout@
|
|
18
|
+
uses: actions/checkout@v3
|
|
19
|
+
|
|
16
20
|
- name: Set up Ruby
|
|
17
21
|
uses: ruby/setup-ruby@v1
|
|
18
22
|
with:
|
|
@@ -23,6 +27,75 @@ jobs:
|
|
|
23
27
|
gem install bundler -v 2.3.26
|
|
24
28
|
bundle install --jobs 4 --retry 3
|
|
25
29
|
bundle exec rake test
|
|
30
|
+
|
|
31
|
+
ruby-test-other:
|
|
32
|
+
runs-on: ubuntu-latest
|
|
33
|
+
|
|
34
|
+
strategy:
|
|
35
|
+
matrix:
|
|
36
|
+
ruby: [3.1.4, 3.0.6, 2.7.8, 2.6.10]
|
|
37
|
+
|
|
38
|
+
steps:
|
|
39
|
+
- name: Checkout Code
|
|
40
|
+
uses: actions/checkout@v4
|
|
41
|
+
|
|
42
|
+
- name: Set up Ruby
|
|
43
|
+
uses: ruby/setup-ruby@v1
|
|
44
|
+
with:
|
|
45
|
+
ruby-version: ${{ matrix.ruby }}
|
|
46
|
+
|
|
47
|
+
- name: Build and Test
|
|
48
|
+
run: |
|
|
49
|
+
gem install bundler -v 2.4.22
|
|
50
|
+
bundle install --jobs 4 --retry 3
|
|
51
|
+
bundle exec rake test
|
|
52
|
+
|
|
53
|
+
ruby-test-head:
|
|
54
|
+
runs-on: ubuntu-latest
|
|
55
|
+
needs: [ruby-test-old, ruby-test-other, ruby-test-latest]
|
|
56
|
+
|
|
57
|
+
strategy:
|
|
58
|
+
matrix:
|
|
59
|
+
ruby: [head]
|
|
60
|
+
|
|
61
|
+
steps:
|
|
62
|
+
- name: Checkout Code
|
|
63
|
+
uses: actions/checkout@v4
|
|
64
|
+
|
|
65
|
+
- name: Set up Ruby
|
|
66
|
+
uses: ruby/setup-ruby@v1
|
|
67
|
+
with:
|
|
68
|
+
ruby-version: ${{ matrix.ruby }}
|
|
69
|
+
|
|
70
|
+
- name: Build and Test
|
|
71
|
+
run: |
|
|
72
|
+
gem install bundler -v 2.4.22
|
|
73
|
+
bundle install --jobs 4 --retry 3
|
|
74
|
+
bundle exec rake test
|
|
75
|
+
|
|
76
|
+
ruby-test-latest:
|
|
77
|
+
runs-on: ubuntu-latest
|
|
78
|
+
needs: [ruby-test-other, ruby-test-old]
|
|
79
|
+
|
|
80
|
+
strategy:
|
|
81
|
+
matrix:
|
|
82
|
+
ruby: [3.2.2]
|
|
83
|
+
|
|
84
|
+
steps:
|
|
85
|
+
- name: Checkout Code
|
|
86
|
+
uses: actions/checkout@v4
|
|
87
|
+
|
|
88
|
+
- name: Set up Ruby
|
|
89
|
+
uses: ruby/setup-ruby@v1
|
|
90
|
+
with:
|
|
91
|
+
ruby-version: ${{ matrix.ruby }}
|
|
92
|
+
|
|
93
|
+
- name: Build and Test
|
|
94
|
+
run: |
|
|
95
|
+
gem install bundler -v 2.4.22
|
|
96
|
+
bundle install --jobs 4 --retry 3
|
|
97
|
+
bundle exec rake test
|
|
98
|
+
|
|
26
99
|
- name: Upload coverage results
|
|
27
100
|
uses: actions/upload-artifact@v3
|
|
28
101
|
with:
|
data/.gitmodules
ADDED
data/.prettierignore
CHANGED
data/.vscode/settings.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"yaml.schemas": {
|
|
3
|
-
"https://json.schemastore.org/github-issue-config.json": "file:///Users/chiefpansancolt/Documents/GitHub/ruby-gems/simplecov-tailwindcss/.github/ISSUE_TEMPLATE/config.yml"
|
|
3
|
+
"https://json.schemastore.org/github-issue-config.json": "file:///Users/chiefpansancolt/Documents/GitHub/ruby-gems/simplecov-tailwindcss/.github/ISSUE_TEMPLATE/config.yml",
|
|
4
|
+
"https://json.schemastore.org/dependabot-2.0.json": "file:///Users/chiefpansancolt/Documents/GitHub/ruby-gems/simplecov-tailwindcss/.github/dependabot.yml"
|
|
4
5
|
}
|
|
5
6
|
}
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## Version [2.2.0](https://github.com/chiefpansancolt/simplecov-tailwindcss/releases/tag/2.2.0)
|
|
4
|
+
|
|
5
|
+
Thank you to our contributors this release for fixes and new features!
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- Add red badges for uncovered branches ([#59](https://github.com/chiefpansancolt/simplecov-tailwindcss/pull/59)) -> [@fidalgo](https://github.com/fidalgo)
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
- Left hand sidebar cut off and unscrollable ([#57](https://github.com/chiefpansancolt/simplecov-tailwindcss/issues/57))
|
|
14
|
+
- add padding in groups to be able to see the last item ([#58](https://github.com/chiefpansancolt/simplecov-tailwindcss/pull/58)) -> [@igas](https://github.com/igas)
|
|
15
|
+
|
|
16
|
+
### Updates
|
|
17
|
+
|
|
18
|
+
- Dependency version bumps to stay up to date.
|
|
19
|
+
|
|
20
|
+
## Version [2.1.2](https://github.com/chiefpansancolt/simplecov-tailwindcss/releases/tag/2.1.2)
|
|
21
|
+
|
|
22
|
+
### Updates
|
|
23
|
+
|
|
24
|
+
- Dependency version bumps to stay up to date.
|
|
25
|
+
- Updates to emails and websites ref in gemspec
|
|
26
|
+
|
|
27
|
+
## Version [2.1.1](https://github.com/chiefpansancolt/simplecov-tailwindcss/releases/tag/2.1.1)
|
|
28
|
+
|
|
29
|
+
### Updates
|
|
30
|
+
|
|
31
|
+
- Dependency version bumps to stay up to date.
|
|
32
|
+
|
|
3
33
|
## Version [2.1.0](https://github.com/chiefpansancolt/simplecov-tailwindcss/releases/tag/2.1.0)
|
|
4
34
|
|
|
5
35
|
### Features
|
data/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2023 Christopher Pezza (Chiefpansancolt)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
[](https://github.com/chiefpansancolt/simplecov-tailwindcss/actions/workflows/tests.yml)
|
|
5
5
|
[](https://github.com/chiefpansancolt/simplecov-tailwindcss/actions/workflows/builds.yml)
|
|
6
6
|
[](https://github.com/chiefpansancolt/simplecov-tailwindcss/actions/workflows/lints.yml)
|
|
7
|
+
[](https://github.com/chiefpansancolt/simplecov-tailwindcss/actions/workflows/github-code-scanning/codeql)
|
|
7
8
|
[](https://github.com/chiefpansancolt/simplecov-tailwindcss/releases)
|
|
8
9
|
[](https://rubygems.org/gems/simplecov-tailwindcss)
|
|
9
10
|
[](https://discord.gg/pBxGpfrmD4)
|
|
@@ -12,63 +13,9 @@
|
|
|
12
13
|
|
|
13
14
|
Generates a HTML Tailwind Design report generated from Simplecov using ruby 2.5 or greater.
|
|
14
15
|
|
|
15
|
-
##
|
|
16
|
+
## Installation and Usage
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
### Ruby Gems Host
|
|
20
|
-
|
|
21
|
-
```ruby
|
|
22
|
-
# ./Gemfile
|
|
23
|
-
|
|
24
|
-
group :test do
|
|
25
|
-
gem 'simplecov', require: false
|
|
26
|
-
gem 'simplecov-tailwindcss', require: false
|
|
27
|
-
end
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
### Github Rubygems Host
|
|
31
|
-
|
|
32
|
-
```ruby
|
|
33
|
-
# ./Gemfile
|
|
34
|
-
|
|
35
|
-
group :test do
|
|
36
|
-
gem "simplecov", require: false
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
source "https://rubygems.pkg.github.com/chiefpansancolt"
|
|
40
|
-
group :test do
|
|
41
|
-
gem "simplecov-tailwindcss", require: false
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
## Usage
|
|
47
|
-
|
|
48
|
-
To use Simplecov Tailwind you will need to ensure your Formatter is set to use Simplecov Tailwind.
|
|
49
|
-
|
|
50
|
-
In your helper ensure your line about formatter usage is one of the following.
|
|
51
|
-
|
|
52
|
-
Ensure to add the require tag at the top of your helper class where Simplecov is configured
|
|
53
|
-
|
|
54
|
-
```ruby
|
|
55
|
-
require 'simplecov-tailwindcss'
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
**Single Formatter Usage:**
|
|
59
|
-
|
|
60
|
-
```ruby
|
|
61
|
-
SimpleCov.formatter = SimpleCov::Formatter::TailwindFormatter
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
**Multi Formatter Usage:**
|
|
65
|
-
|
|
66
|
-
```ruby
|
|
67
|
-
SimpleCov.formatters =
|
|
68
|
-
SimpleCov::Formatter::MultiFormatter.new(
|
|
69
|
-
[SimpleCov::Formatter::HTMLFormatter, SimpleCov::Formatter::TailwindFormatter],
|
|
70
|
-
)
|
|
71
|
-
```
|
|
18
|
+
Checkout the [Documentation](https://simplecov-tailwind.chiefpansancolt.dev) for full details.
|
|
72
19
|
|
|
73
20
|
## Change Log
|
|
74
21
|
|
|
@@ -87,15 +34,15 @@ To see more about Contributing check out this [document](https://github.com/chie
|
|
|
87
34
|
|
|
88
35
|
## Development
|
|
89
36
|
|
|
90
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `
|
|
37
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `pnpm test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
91
38
|
|
|
92
|
-
When working with CSS or JS ensure to run `
|
|
39
|
+
When working with CSS or JS ensure to run `pnpm build` to compile tailwind and JS to the public folder. This will ensure you have the latest CSS and JS used when testing locally.
|
|
93
40
|
|
|
94
41
|
_**NOTE: Do not commit any changes made in public folder from compiling as this will be performed by the owner before building of a release.**_
|
|
95
42
|
|
|
96
|
-
To test locally run `
|
|
43
|
+
To test locally run `pnpm test` and a webpage will open after tests are complete and you will be able to see the page.
|
|
97
44
|
|
|
98
|
-
To install this gem onto your local machine, run `
|
|
45
|
+
To install this gem onto your local machine, run `pnpm gem:build`. Gems will be built/release by Owner.
|
|
99
46
|
|
|
100
47
|
## License
|
|
101
48
|
|
data/bin/lint
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
echo "== Starting Linting =="
|
|
4
|
+
|
|
5
|
+
echo ""
|
|
6
|
+
echo "== Linting Rubocop =="
|
|
7
|
+
pnpm lint:ruby
|
|
8
|
+
|
|
9
|
+
echo ""
|
|
10
|
+
echo "== Linting ERB =="
|
|
11
|
+
pnpm lint:erb
|
|
12
|
+
|
|
13
|
+
echo ""
|
|
14
|
+
echo "== Linting Markdown =="
|
|
15
|
+
pnpm lint:markdown
|
|
16
|
+
|
|
17
|
+
echo ""
|
|
18
|
+
echo "== Linting Javascript =="
|
|
19
|
+
pnpm lint:javascript
|
|
20
|
+
|
|
21
|
+
echo ""
|
|
22
|
+
echo "== Formatting with Prettier =="
|
|
23
|
+
if ! pnpm format; then
|
|
24
|
+
echo ""
|
|
25
|
+
echo "== Files found needing formatting =="
|
|
26
|
+
echo "== Initialting Fixes =="
|
|
27
|
+
pnpm format:fix
|
|
28
|
+
fi
|
|
29
|
+
|
|
30
|
+
echo ""
|
|
31
|
+
echo "== Linting Complete for Simplecov Tailwind =="
|
|
32
|
+
|
|
33
|
+
echo ""
|
|
34
|
+
echo "== Starting Lint for Documentation =="
|
|
35
|
+
|
|
36
|
+
echo ""
|
|
37
|
+
cd documentation
|
|
38
|
+
pnpm lint
|
data/bin/setup
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
set -euo pipefail
|
|
3
|
-
IFS=$'\n\t'
|
|
4
|
-
set -vx
|
|
5
2
|
|
|
3
|
+
command -v ruby >/dev/null 2>&1 || { echo >&2 "ruby is not installed. Aborting."; exit 1; }
|
|
4
|
+
command -v node >/dev/null 2>&1 || { echo >&2 "node is not installed. Aborting."; exit 1; }
|
|
5
|
+
command -v pnpm >/dev/null 2>&1 || { echo >&2 "pnpm is not installed. Aborting."; exit 1; }
|
|
6
|
+
|
|
7
|
+
echo "== Getting Setup =="
|
|
8
|
+
|
|
9
|
+
echo ""
|
|
10
|
+
echo "== Running pnpm Install =="
|
|
11
|
+
pnpm install
|
|
12
|
+
|
|
13
|
+
echo ""
|
|
14
|
+
echo "== Running Bundle Install =="
|
|
6
15
|
bundle install
|
|
7
|
-
|
|
16
|
+
|
|
17
|
+
echo ""
|
|
18
|
+
echo "== Running Documentation Install =="
|
|
19
|
+
cd documentation
|
|
20
|
+
pnpm install
|
|
21
|
+
|
|
22
|
+
echo ""
|
|
23
|
+
echo "== Setup Finished =="
|
|
24
|
+
echo "Enjoy Coding and thank you for your contribution!"
|
data/bin/upgrade
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
echo "== Upgrade Starting =="
|
|
4
|
+
|
|
5
|
+
echo ""
|
|
6
|
+
echo "== Running pnpm Upgrade =="
|
|
7
|
+
pnpm upgrade --latest
|
|
8
|
+
|
|
9
|
+
echo ""
|
|
10
|
+
echo "== Running Bundle Upgrade =="
|
|
11
|
+
bundle update
|
|
12
|
+
|
|
13
|
+
echo ""
|
|
14
|
+
echo "== Running Documentation Upgrade =="
|
|
15
|
+
cd docs
|
|
16
|
+
pnpm upgrade --latest
|
|
17
|
+
|
|
18
|
+
echo ""
|
|
19
|
+
echo "== Upgrade Finished =="
|
data/dist/app.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Application } from '@hotwired/stimulus'
|
|
2
|
-
|
|
3
|
-
import NavigationController from './scripts/controllers/navigation_controller'
|
|
2
|
+
|
|
4
3
|
import DarkthemeController from './scripts/controllers/darktheme_controller'
|
|
4
|
+
import NavigationController from './scripts/controllers/navigation_controller'
|
|
5
|
+
import SearchController from './scripts/controllers/search_controller'
|
|
5
6
|
import SlideoverController from './scripts/controllers/slideover_controller'
|
|
6
|
-
|
|
7
7
|
import './scripts/timeago.js'
|
|
8
8
|
|
|
9
9
|
window.Stimulus = Application.start()
|
|
@@ -100,19 +100,18 @@ module SimpleCov
|
|
|
100
100
|
template("file_detail").result(binding)
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
-
# rubocop:disable Lint/SelfAssignment
|
|
103
|
+
# rubocop:disable Lint/SelfAssignment
|
|
104
104
|
def generate_group_page(title, files, created_date)
|
|
105
|
-
title_id = title.gsub(/^[^a-zA-Z]+/, "").gsub(/[^a-zA-Z0-9
|
|
105
|
+
title_id = title.gsub(/^[^a-zA-Z]+/, "").gsub(/[^a-zA-Z0-9\-_]/, "")
|
|
106
106
|
title_id = title_id
|
|
107
107
|
template("group_page").result(binding)
|
|
108
108
|
end
|
|
109
109
|
|
|
110
110
|
def remove_spaces(name)
|
|
111
|
-
name.gsub(/^[^a-zA-Z]+/, "").gsub(/[^a-zA-Z0-9
|
|
111
|
+
name.gsub(/^[^a-zA-Z]+/, "").gsub(/[^a-zA-Z0-9\-_]/, "")
|
|
112
112
|
end
|
|
113
113
|
|
|
114
|
-
# rubocop:enable Lint/SelfAssignment
|
|
115
|
-
|
|
114
|
+
# rubocop:enable Lint/SelfAssignment
|
|
116
115
|
def format_number(number)
|
|
117
116
|
whole, decimal = number.to_s.split(".")
|
|
118
117
|
whole_with_commas =
|