simplecov-tailwindcss 2.1.2 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/CODEOWNERS +1 -0
- data/.github/CONTRIBUTING.md +1 -1
- data/.github/workflows/builds.yml +48 -14
- data/.github/workflows/github_publish.yml +1 -1
- data/.github/workflows/lints.yml +19 -5
- data/.github/workflows/rubygem_publish.yml +1 -1
- data/.github/workflows/tests.yml +13 -8
- data/.gitmodules +4 -0
- data/.prettierignore +3 -1
- data/CHANGELOG.md +17 -0
- data/LICENSE +1 -1
- data/README.md +4 -4
- data/bin/lint +38 -0
- data/bin/setup +21 -4
- data/bin/upgrade +19 -0
- data/lib/simplecov-tailwindcss/version.rb +1 -1
- data/lib/simplecov-tailwindcss.rb +4 -5
- data/package.json +16 -15
- data/pnpm-lock.yaml +2636 -0
- data/prettier.config.js +3 -3
- data/public/application.css +1 -1
- data/public/application.js +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 +9 -3
- data/yarn.lock +0 -2317
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/CONTRIBUTING.md
CHANGED
@@ -7,7 +7,7 @@ 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
12
|
unacceptable behavior to github@chiefpansancolt.dev.
|
13
13
|
|
@@ -16,18 +16,32 @@ jobs:
|
|
16
16
|
|
17
17
|
steps:
|
18
18
|
- name: Check out Git repository
|
19
|
-
uses: actions/checkout@
|
19
|
+
uses: actions/checkout@v4
|
20
20
|
|
21
21
|
- name: Set up Node.js
|
22
|
-
uses: actions/setup-node@
|
22
|
+
uses: actions/setup-node@v4
|
23
23
|
with:
|
24
|
-
node-version:
|
24
|
+
node-version: 18
|
25
|
+
|
26
|
+
- uses: pnpm/action-setup@v2
|
27
|
+
name: Install pnpm
|
28
|
+
with:
|
29
|
+
version: 8
|
30
|
+
run_install: false
|
25
31
|
|
26
32
|
- name: Install Node.js dependencies
|
27
|
-
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-
|
28
42
|
|
29
43
|
- name: Compile JS
|
30
|
-
run:
|
44
|
+
run: pnpm build:js
|
31
45
|
|
32
46
|
- name: Upload Compiled JS
|
33
47
|
uses: actions/upload-artifact@v3
|
@@ -41,18 +55,32 @@ jobs:
|
|
41
55
|
|
42
56
|
steps:
|
43
57
|
- name: Check out Git repository
|
44
|
-
uses: actions/checkout@
|
58
|
+
uses: actions/checkout@v4
|
45
59
|
|
46
60
|
- name: Set up Node.js
|
47
|
-
uses: actions/setup-node@
|
61
|
+
uses: actions/setup-node@v4
|
62
|
+
with:
|
63
|
+
node-version: 18
|
64
|
+
|
65
|
+
- uses: pnpm/action-setup@v2
|
66
|
+
name: Install pnpm
|
48
67
|
with:
|
49
|
-
|
68
|
+
version: 8
|
69
|
+
run_install: false
|
50
70
|
|
51
71
|
- name: Install Node.js dependencies
|
52
|
-
run:
|
72
|
+
run: pnpm install
|
53
73
|
|
54
|
-
-
|
55
|
-
|
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
|
56
84
|
|
57
85
|
- name: Upload Compiled CSS
|
58
86
|
uses: actions/upload-artifact@v3
|
@@ -67,20 +95,26 @@ jobs:
|
|
67
95
|
|
68
96
|
steps:
|
69
97
|
- name: Check out Git repository
|
70
|
-
uses: actions/checkout@
|
98
|
+
uses: actions/checkout@v4
|
71
99
|
|
72
100
|
- name: Set up Ruby
|
73
101
|
uses: ruby/setup-ruby@v1
|
74
102
|
with:
|
75
103
|
ruby-version: .ruby-version
|
76
104
|
|
105
|
+
- uses: pnpm/action-setup@v2
|
106
|
+
name: Install pnpm
|
107
|
+
with:
|
108
|
+
version: 8
|
109
|
+
run_install: false
|
110
|
+
|
77
111
|
- name: Install Ruby Gem dependencies
|
78
112
|
run: |
|
79
|
-
gem install bundler -v 2.4.
|
113
|
+
gem install bundler -v 2.4.22
|
80
114
|
bundle install --jobs 4 --retry 3
|
81
115
|
|
82
116
|
- name: Build Gem
|
83
|
-
run:
|
117
|
+
run: pnpm gem:build
|
84
118
|
|
85
119
|
- name: Upload Compiled Gem
|
86
120
|
uses: actions/upload-artifact@v3
|
data/.github/workflows/lints.yml
CHANGED
@@ -16,15 +16,29 @@ jobs:
|
|
16
16
|
|
17
17
|
steps:
|
18
18
|
- name: Check out Git repository
|
19
|
-
uses: actions/checkout@
|
19
|
+
uses: actions/checkout@v4
|
20
20
|
|
21
21
|
- name: Set up Node.js
|
22
|
-
uses: actions/setup-node@
|
22
|
+
uses: actions/setup-node@v4
|
23
23
|
with:
|
24
|
-
node-version:
|
24
|
+
node-version: 18
|
25
|
+
|
26
|
+
- uses: pnpm/action-setup@v2
|
27
|
+
name: Install pnpm
|
28
|
+
with:
|
29
|
+
version: 8
|
30
|
+
run_install: false
|
25
31
|
|
26
32
|
- name: Install Node.js dependencies
|
27
|
-
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-
|
28
42
|
|
29
43
|
- name: Set up Ruby
|
30
44
|
uses: ruby/setup-ruby@v1
|
@@ -33,7 +47,7 @@ jobs:
|
|
33
47
|
|
34
48
|
- name: Install Ruby Gem dependencies
|
35
49
|
run: |
|
36
|
-
gem install bundler -v 2.4.
|
50
|
+
gem install bundler -v 2.4.22
|
37
51
|
bundle install --jobs 4 --retry 3
|
38
52
|
|
39
53
|
- name: Run linters
|
data/.github/workflows/tests.yml
CHANGED
@@ -16,6 +16,7 @@ jobs:
|
|
16
16
|
steps:
|
17
17
|
- name: Checkout Code
|
18
18
|
uses: actions/checkout@v3
|
19
|
+
|
19
20
|
- name: Set up Ruby
|
20
21
|
uses: ruby/setup-ruby@v1
|
21
22
|
with:
|
@@ -32,11 +33,12 @@ jobs:
|
|
32
33
|
|
33
34
|
strategy:
|
34
35
|
matrix:
|
35
|
-
ruby: [3.1.
|
36
|
+
ruby: [3.1.4, 3.0.6, 2.7.8, 2.6.10]
|
36
37
|
|
37
38
|
steps:
|
38
39
|
- name: Checkout Code
|
39
|
-
uses: actions/checkout@
|
40
|
+
uses: actions/checkout@v4
|
41
|
+
|
40
42
|
- name: Set up Ruby
|
41
43
|
uses: ruby/setup-ruby@v1
|
42
44
|
with:
|
@@ -44,7 +46,7 @@ jobs:
|
|
44
46
|
|
45
47
|
- name: Build and Test
|
46
48
|
run: |
|
47
|
-
gem install bundler -v 2.4.
|
49
|
+
gem install bundler -v 2.4.22
|
48
50
|
bundle install --jobs 4 --retry 3
|
49
51
|
bundle exec rake test
|
50
52
|
|
@@ -58,7 +60,8 @@ jobs:
|
|
58
60
|
|
59
61
|
steps:
|
60
62
|
- name: Checkout Code
|
61
|
-
uses: actions/checkout@
|
63
|
+
uses: actions/checkout@v4
|
64
|
+
|
62
65
|
- name: Set up Ruby
|
63
66
|
uses: ruby/setup-ruby@v1
|
64
67
|
with:
|
@@ -66,7 +69,7 @@ jobs:
|
|
66
69
|
|
67
70
|
- name: Build and Test
|
68
71
|
run: |
|
69
|
-
gem install bundler -v 2.4.
|
72
|
+
gem install bundler -v 2.4.22
|
70
73
|
bundle install --jobs 4 --retry 3
|
71
74
|
bundle exec rake test
|
72
75
|
|
@@ -76,11 +79,12 @@ jobs:
|
|
76
79
|
|
77
80
|
strategy:
|
78
81
|
matrix:
|
79
|
-
ruby: [3.2.
|
82
|
+
ruby: [3.2.2]
|
80
83
|
|
81
84
|
steps:
|
82
85
|
- name: Checkout Code
|
83
|
-
uses: actions/checkout@
|
86
|
+
uses: actions/checkout@v4
|
87
|
+
|
84
88
|
- name: Set up Ruby
|
85
89
|
uses: ruby/setup-ruby@v1
|
86
90
|
with:
|
@@ -88,9 +92,10 @@ jobs:
|
|
88
92
|
|
89
93
|
- name: Build and Test
|
90
94
|
run: |
|
91
|
-
gem install bundler -v 2.4.
|
95
|
+
gem install bundler -v 2.4.22
|
92
96
|
bundle install --jobs 4 --retry 3
|
93
97
|
bundle exec rake test
|
98
|
+
|
94
99
|
- name: Upload coverage results
|
95
100
|
uses: actions/upload-artifact@v3
|
96
101
|
with:
|
data/.gitmodules
ADDED
data/.prettierignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
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
|
+
|
3
20
|
## Version [2.1.2](https://github.com/chiefpansancolt/simplecov-tailwindcss/releases/tag/2.1.2)
|
4
21
|
|
5
22
|
### Updates
|
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
@@ -34,15 +34,15 @@ To see more about Contributing check out this [document](https://github.com/chie
|
|
34
34
|
|
35
35
|
## Development
|
36
36
|
|
37
|
-
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.
|
38
38
|
|
39
|
-
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.
|
40
40
|
|
41
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.**_
|
42
42
|
|
43
|
-
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.
|
44
44
|
|
45
|
-
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.
|
46
46
|
|
47
47
|
## License
|
48
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 =="
|
@@ -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 =
|
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "simplecov-tailwind",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.2.0",
|
4
4
|
"description": "HTML tailwind Design View for Simplecov formatter",
|
5
5
|
"scripts": {
|
6
6
|
"build": "npm-run-all build:*",
|
@@ -9,7 +9,8 @@
|
|
9
9
|
"test:start": "bundle exec rake test",
|
10
10
|
"test:open": "open coverage/index.html",
|
11
11
|
"test": "npm-run-all test:*",
|
12
|
-
"lint
|
12
|
+
"lint": "./bin/lint",
|
13
|
+
"lint:markdown": "markdownlint CHANGELOG.md README.md .github/**/*.md -c .markdownlint.yml",
|
13
14
|
"lint:ruby": "rubocop",
|
14
15
|
"lint:erb": "bundle exec erblint --lint-all",
|
15
16
|
"lint:javascript": "eslint dist",
|
@@ -46,21 +47,21 @@
|
|
46
47
|
"homepage": "https://simplecov-tailwind.chiefpansancolt.dev/",
|
47
48
|
"babel": {},
|
48
49
|
"devDependencies": {
|
49
|
-
"@babel/core": "^7.
|
50
|
-
"@babel/eslint-parser": "^7.
|
51
|
-
"@hotwired/stimulus": "^3.2.
|
52
|
-
"@prettier/plugin-ruby": "^
|
53
|
-
"@tailwindcss/forms": "^0.5.
|
54
|
-
"@tailwindcss/typography": "^0.5.
|
55
|
-
"@trivago/prettier-plugin-sort-imports": "^4.
|
56
|
-
"esbuild": "^0.
|
57
|
-
"eslint": "^8.
|
58
|
-
"markdownlint": "^0.
|
50
|
+
"@babel/core": "^7.23.3",
|
51
|
+
"@babel/eslint-parser": "^7.23.3",
|
52
|
+
"@hotwired/stimulus": "^3.2.2",
|
53
|
+
"@prettier/plugin-ruby": "^4.0.2",
|
54
|
+
"@tailwindcss/forms": "^0.5.7",
|
55
|
+
"@tailwindcss/typography": "^0.5.10",
|
56
|
+
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
57
|
+
"esbuild": "^0.19.7",
|
58
|
+
"eslint": "^8.54.0",
|
59
|
+
"markdownlint": "^0.32.1",
|
59
60
|
"npm-run-all": "^4.1.5",
|
60
|
-
"prettier": "^
|
61
|
+
"prettier": "^3.1.0",
|
61
62
|
"prettier-plugin-erb": "^0.4.0",
|
62
|
-
"prettier-plugin-tailwindcss": "^0.
|
63
|
-
"tailwindcss": "^3.
|
63
|
+
"prettier-plugin-tailwindcss": "^0.5.7",
|
64
|
+
"tailwindcss": "^3.3.5",
|
64
65
|
"timeago.js": "^4.0.2"
|
65
66
|
}
|
66
67
|
}
|