simplecov-tailwindcss 2.1.2 → 2.3.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: 2a34f0fa86c77ab1ed362288b9ed46149750507b3f7a4d9667dcbdffdac82237
4
- data.tar.gz: 129ece0962a3bc82d3839016068b23757046e771a14164318f49089d0ae66106
3
+ metadata.gz: b0ce8ae083e8c09ea9ae9a621dfc45802e7ef91ee5f492e7e5038dbe85e48518
4
+ data.tar.gz: 912e16d6fd351c594f06cd1663472dde60213f2c4402a5debb9ae97f880845db
5
5
  SHA512:
6
- metadata.gz: c632e16e806771e162c66b605cc6b40be67723b11550dc104297c32873c0ef3731f915a5556d0ad41fbfa17f3c6f9cf79192a4b664fb775ec0e670d473c817af
7
- data.tar.gz: 32de41b1f912db2fa5d86518973e64b7afee993c9292bb3e77c5c8933f348f979b630b401f23d05991a1a3d79fb79571c35a95d69931669f76801c86940e67de
6
+ metadata.gz: 683613565ddbbf5fa5ba7a515a270efe44abac9ae1c066e36f299fa0b2116ae1ea7f1b3359488846f251d389ca7b413085c5c29f267a45cb96cbab7fcef201b8
7
+ data.tar.gz: 23e3688ddf17134c89adbe2d64f9d8e811d7d06d82d3098705e75b3b6e9bb424c2a60cd5637e478b43e1830ee753ad4a9bf6c31814e77b4b486169929de77975
@@ -0,0 +1 @@
1
+ * @chiefpansancolt
@@ -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
- Material Code of Conduct](https://github.com/chiefpansancolt/simplecov-tailwindcss/blob/main/.github/CODE_OF_CONDUCT.md).
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@v3
19
+ uses: actions/checkout@v5
20
20
 
21
21
  - name: Set up Node.js
22
- uses: actions/setup-node@v3
22
+ uses: actions/setup-node@v6
23
23
  with:
24
- node-version: 16
24
+ node-version: 23
25
+
26
+ - uses: pnpm/action-setup@v4
27
+ name: Install pnpm
28
+ with:
29
+ version: 10
30
+ run_install: false
25
31
 
26
32
  - name: Install Node.js dependencies
27
- run: yarn install
33
+ run: pnpm install
34
+
35
+ - uses: actions/cache@v4
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: yarn build:js
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@v3
58
+ uses: actions/checkout@v5
45
59
 
46
60
  - name: Set up Node.js
47
- uses: actions/setup-node@v3
61
+ uses: actions/setup-node@v6
62
+ with:
63
+ node-version: 23
64
+
65
+ - uses: pnpm/action-setup@v4
66
+ name: Install pnpm
48
67
  with:
49
- node-version: 16
68
+ version: 10
69
+ run_install: false
50
70
 
51
71
  - name: Install Node.js dependencies
52
- run: yarn install
72
+ run: pnpm install
53
73
 
54
- - name: Compile JS
55
- run: yarn build:css
74
+ - uses: actions/cache@v4
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,23 +95,29 @@ jobs:
67
95
 
68
96
  steps:
69
97
  - name: Check out Git repository
70
- uses: actions/checkout@v3
98
+ uses: actions/checkout@v5
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@v4
106
+ name: Install pnpm
107
+ with:
108
+ version: 10
109
+ run_install: false
110
+
77
111
  - name: Install Ruby Gem dependencies
78
112
  run: |
79
- gem install bundler -v 2.4.10
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: yarn gem:build
117
+ run: pnpm gem:build
84
118
 
85
119
  - name: Upload Compiled Gem
86
- uses: actions/upload-artifact@v3
120
+ uses: actions/upload-artifact@v5
87
121
  with:
88
122
  name: simplecov-tailwindcss.gem
89
123
  path: ./*.gem
@@ -6,7 +6,7 @@ jobs:
6
6
  release:
7
7
  runs-on: ubuntu-latest
8
8
  steps:
9
- - uses: actions/checkout@v3
9
+ - uses: actions/checkout@v5
10
10
  with:
11
11
  fetch-depth: 0
12
12
  - name: Build and publish gem
@@ -16,15 +16,29 @@ jobs:
16
16
 
17
17
  steps:
18
18
  - name: Check out Git repository
19
- uses: actions/checkout@v3
19
+ uses: actions/checkout@v5
20
20
 
21
21
  - name: Set up Node.js
22
- uses: actions/setup-node@v3
22
+ uses: actions/setup-node@v6
23
23
  with:
24
- node-version: 16
24
+ node-version: 23
25
+
26
+ - uses: pnpm/action-setup@v4
27
+ name: Install pnpm
28
+ with:
29
+ version: 10
30
+ run_install: false
25
31
 
26
32
  - name: Install Node.js dependencies
27
- run: yarn install
33
+ run: pnpm install
34
+
35
+ - uses: actions/cache@v4
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.10
50
+ gem install bundler -v 2.6.9
37
51
  bundle install --jobs 4 --retry 3
38
52
 
39
53
  - name: Run linters
@@ -8,7 +8,7 @@ jobs:
8
8
  env:
9
9
  GEM_HOST_API_KEY: ${{ secrets.RUBYGEMAPIKEY }}
10
10
  steps:
11
- - uses: actions/checkout@v3
11
+ - uses: actions/checkout@v5
12
12
  with:
13
13
  fetch-depth: 0
14
14
  - uses: ruby/setup-ruby@v1
@@ -15,7 +15,8 @@ jobs:
15
15
 
16
16
  steps:
17
17
  - name: Checkout Code
18
- uses: actions/checkout@v3
18
+ uses: actions/checkout@v5
19
+
19
20
  - name: Set up Ruby
20
21
  uses: ruby/setup-ruby@v1
21
22
  with:
@@ -26,17 +27,18 @@ jobs:
26
27
  gem install bundler -v 2.3.26
27
28
  bundle install --jobs 4 --retry 3
28
29
  bundle exec rake test
29
-
30
+
30
31
  ruby-test-other:
31
32
  runs-on: ubuntu-latest
32
33
 
33
34
  strategy:
34
35
  matrix:
35
- ruby: [3.1.2, 3.0.4, 2.7.6, 2.6.10]
36
+ ruby: [3.2.7, 3.3.10, 3.1.7, 3.0.7, 2.7.8, 2.6.10]
36
37
 
37
38
  steps:
38
39
  - name: Checkout Code
39
- uses: actions/checkout@v3
40
+ uses: actions/checkout@v5
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.10
49
+ gem install bundler -v 2.7.2
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@v3
63
+ uses: actions/checkout@v5
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.10
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.1]
82
+ ruby: [3.4.5]
80
83
 
81
84
  steps:
82
85
  - name: Checkout Code
83
- uses: actions/checkout@v3
86
+ uses: actions/checkout@v4
87
+
84
88
  - name: Set up Ruby
85
89
  uses: ruby/setup-ruby@v1
86
90
  with:
@@ -88,11 +92,12 @@ jobs:
88
92
 
89
93
  - name: Build and Test
90
94
  run: |
91
- gem install bundler -v 2.4.10
95
+ gem install bundler -v 2.7.2
92
96
  bundle install --jobs 4 --retry 3
93
97
  bundle exec rake test
98
+
94
99
  - name: Upload coverage results
95
- uses: actions/upload-artifact@v3
100
+ uses: actions/upload-artifact@v5
96
101
  with:
97
102
  name: coverage-report
98
103
  path: coverage
data/.gitmodules ADDED
@@ -0,0 +1,4 @@
1
+ [submodule "documentation"]
2
+ path = documentation
3
+ url = https://github.com/chiefpansancolt/simplecov-tailwind.chiefpansancolt.dev
4
+ branch = main
data/.prettierignore CHANGED
@@ -11,4 +11,6 @@ Gemfile.lock
11
11
  yarn.lock
12
12
  bin/
13
13
  views/
14
- .vscode/
14
+ .vscode/
15
+ documentation/
16
+ pnpm-lock.yaml
data/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## Version [2.3.0](https://github.com/chiefpansancolt/simplecov-tailwindcss/releases/tag/2.3.0)
4
+
5
+ ### Chores
6
+
7
+ - Bump Dependencies
8
+ - Update Repo files
9
+ - Migrate to Tailwind v4
10
+
11
+ ## Version [2.2.0](https://github.com/chiefpansancolt/simplecov-tailwindcss/releases/tag/2.2.0)
12
+
13
+ Thank you to our contributors this release for fixes and new features!
14
+
15
+ ### Features
16
+
17
+ - Add red badges for uncovered branches ([#59](https://github.com/chiefpansancolt/simplecov-tailwindcss/pull/59)) -> [@fidalgo](https://github.com/fidalgo)
18
+
19
+ ### Bug Fixes
20
+
21
+ - Left hand sidebar cut off and unscrollable ([#57](https://github.com/chiefpansancolt/simplecov-tailwindcss/issues/57))
22
+ - 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)
23
+
24
+ ### Updates
25
+
26
+ - Dependency version bumps to stay up to date.
27
+
3
28
  ## Version [2.1.2](https://github.com/chiefpansancolt/simplecov-tailwindcss/releases/tag/2.1.2)
4
29
 
5
30
  ### Updates
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2019 Christopher Pezza
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 `yarn test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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 `yarn build` to compile tailwind and JS to the public folder. This will ensure you have the latest CSS and JS used when testing locally.
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 `yarn test` and a webpage will open after tests are complete and you will be able to see the page.
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 `yarn gem:build`. Gems will be built/release by Owner.
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
- yarn install
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.css CHANGED
@@ -1,3 +1,24 @@
1
- @import 'tailwindcss/base';
2
- @import 'tailwindcss/components';
3
- @import 'tailwindcss/utilities';
1
+ @import 'tailwindcss';
2
+
3
+ @plugin '@tailwindcss/forms';
4
+ @plugin '@tailwindcss/typography';
5
+
6
+ @custom-variant dark (&:is(.dark *));
7
+
8
+ /*
9
+ The default border color has changed to `currentcolor` in Tailwind CSS v4,
10
+ so we've added these compatibility styles to make sure everything still
11
+ looks the same as it did with Tailwind CSS v3.
12
+
13
+ If we ever want to remove these styles, we need to add an explicit border
14
+ color utility to any element that depends on these defaults.
15
+ */
16
+ @layer base {
17
+ *,
18
+ ::after,
19
+ ::before,
20
+ ::backdrop,
21
+ ::file-selector-button {
22
+ border-color: var(--color-gray-200, currentcolor);
23
+ }
24
+ }
@@ -3,7 +3,7 @@
3
3
  module SimpleCov
4
4
  module Formatter
5
5
  class TailwindFormatter
6
- VERSION = "2.1.2"
6
+ VERSION = "2.3.0"
7
7
  end
8
8
  end
9
9
  end
@@ -100,19 +100,18 @@ module SimpleCov
100
100
  template("file_detail").result(binding)
101
101
  end
102
102
 
103
- # rubocop:disable Lint/SelfAssignment, Style/RedundantRegexpEscape
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, Style/RedundantRegexpEscape
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,15 +1,16 @@
1
1
  {
2
2
  "name": "simplecov-tailwind",
3
- "version": "2.1.2",
3
+ "version": "2.3.0",
4
4
  "description": "HTML tailwind Design View for Simplecov formatter",
5
5
  "scripts": {
6
6
  "build": "npm-run-all build:*",
7
- "build:css": "npx tailwindcss -i dist/app.css -o public/application.css --minify",
7
+ "build:css": "npx @tailwindcss/cli -i dist/app.css -o public/application.css --minify",
8
8
  "build:js": "esbuild --bundle dist/app.js --outfile=public/application.js --minify",
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:markdown": "markdownlint CHANGELOG.md .github/CODE_OF_CONDUCT.md .github/CONTRIBUTING.md README.md .github/PULL_REQUEST_TEMPLATE.md -c .markdownlint.yml",
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.21.3",
50
- "@babel/eslint-parser": "^7.21.3",
51
- "@hotwired/stimulus": "^3.2.1",
52
- "@prettier/plugin-ruby": "^3.2.2",
53
- "@tailwindcss/forms": "^0.5.3",
54
- "@tailwindcss/typography": "^0.5.9",
55
- "@trivago/prettier-plugin-sort-imports": "^4.1.1",
56
- "esbuild": "^0.17.14",
57
- "eslint": "^8.36.0",
58
- "markdownlint": "^0.28.0",
50
+ "@babel/core": "^7.28.5",
51
+ "@babel/eslint-parser": "^7.28.5",
52
+ "@hotwired/stimulus": "^3.2.2",
53
+ "@prettier/plugin-ruby": "^4.0.4",
54
+ "@tailwindcss/forms": "^0.5.10",
55
+ "@tailwindcss/typography": "^0.5.19",
56
+ "@trivago/prettier-plugin-sort-imports": "^5.2.2",
57
+ "esbuild": "^0.25.11",
58
+ "eslint": "^9.38.0",
59
+ "markdownlint": "^0.39.0",
59
60
  "npm-run-all": "^4.1.5",
60
- "prettier": "^2.8.7",
61
+ "prettier": "^3.6.2",
61
62
  "prettier-plugin-erb": "^0.4.0",
62
- "prettier-plugin-tailwindcss": "^0.2.5",
63
- "tailwindcss": "^3.2.7",
63
+ "prettier-plugin-tailwindcss": "^0.7.1",
64
+ "tailwindcss": "^4.1.16",
64
65
  "timeago.js": "^4.0.2"
65
66
  }
66
67
  }