simplecov-tailwindcss 2.3.0 → 2.4.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: b0ce8ae083e8c09ea9ae9a621dfc45802e7ef91ee5f492e7e5038dbe85e48518
4
- data.tar.gz: 912e16d6fd351c594f06cd1663472dde60213f2c4402a5debb9ae97f880845db
3
+ metadata.gz: 4178123045ed8b4f6709b39ccd6ca4ffbfec07cdc480883a471791e25746deed
4
+ data.tar.gz: e767a059a20129f1ecce421a4dca0baa6a218daba058d7295be8f449f7f5b063
5
5
  SHA512:
6
- metadata.gz: 683613565ddbbf5fa5ba7a515a270efe44abac9ae1c066e36f299fa0b2116ae1ea7f1b3359488846f251d389ca7b413085c5c29f267a45cb96cbab7fcef201b8
7
- data.tar.gz: 23e3688ddf17134c89adbe2d64f9d8e811d7d06d82d3098705e75b3b6e9bb424c2a60cd5637e478b43e1830ee753ad4a9bf6c31814e77b4b486169929de77975
6
+ metadata.gz: fe25bda73d682aa4078b832674ba2ff55ebc6f32aa297b7e2fea46aa7d2edbecaaa8099d8d41b51dc98daeded2997cc7bb5ecefacebf9e22011712bae1d0366b
7
+ data.tar.gz: acad83feda77777e94e6c10c37fe739ac6b392a295e7cb3a3342e5073ad202c29f961be7dc419dca8e98b63172bb128df75300fff30f256acba86c3160c302f3
data/.all-contributorsrc CHANGED
@@ -17,6 +17,51 @@
17
17
  "test",
18
18
  "maintenance"
19
19
  ]
20
+ },
21
+ {
22
+ "login": "andrewmcodes",
23
+ "name": "Andrew Mason",
24
+ "avatar_url": "https://avatars.githubusercontent.com/u/18423853?v=4",
25
+ "profile": "https://andrewm.codes/",
26
+ "contributions": [
27
+ "doc"
28
+ ]
29
+ },
30
+ {
31
+ "login": "igas",
32
+ "name": "Marcus Wood",
33
+ "avatar_url": "https://avatars.githubusercontent.com/u/175652?v=4",
34
+ "profile": "https://igas.me/",
35
+ "contributions": [
36
+ "bug"
37
+ ]
38
+ },
39
+ {
40
+ "login": "fidalgo",
41
+ "name": "Paulo Fidalgo",
42
+ "avatar_url": "https://avatars.githubusercontent.com/u/22743?v=4",
43
+ "profile": "http://fidalgo.pt/",
44
+ "contributions": [
45
+ "code"
46
+ ]
47
+ },
48
+ {
49
+ "login": "romanoff",
50
+ "name": "Andriy Romanov",
51
+ "avatar_url": "https://avatars.githubusercontent.com/u/222327?v=4",
52
+ "profile": "https://github.com/romanoff",
53
+ "contributions": [
54
+ "bug"
55
+ ]
56
+ },
57
+ {
58
+ "login": "G-Rath",
59
+ "name": "Gareth Jones",
60
+ "avatar_url": "https://avatars.githubusercontent.com/u/3151613?v=4",
61
+ "profile": "https://github.com/G-Rath",
62
+ "contributions": [
63
+ "doc"
64
+ ]
20
65
  }
21
66
  ],
22
67
  "contributorsPerLine": 7,
@@ -24,5 +69,6 @@
24
69
  "projectOwner": "chiefpansancolt",
25
70
  "repoType": "github",
26
71
  "repoHost": "https://github.com",
27
- "skipCi": true
28
- }
72
+ "skipCi": true,
73
+ "commitConvention": "angular"
74
+ }
@@ -11,6 +11,24 @@ updates:
11
11
  directory: '/'
12
12
  schedule:
13
13
  interval: 'weekly'
14
+ groups:
15
+ babel:
16
+ patterns:
17
+ - '@babel/*'
18
+ tailwindcss:
19
+ patterns:
20
+ - 'tailwindcss'
21
+ - '@tailwindcss/*'
22
+ prettier:
23
+ patterns:
24
+ - 'prettier'
25
+ - 'prettier-plugin-*'
26
+ - '@prettier/*'
27
+ - '@trivago/prettier-plugin-*'
28
+ eslint:
29
+ patterns:
30
+ - 'eslint'
31
+ - 'eslint-*'
14
32
 
15
33
  # Maintain dependencies for Ruby
16
34
  - package-ecosystem: 'bundler'
@@ -0,0 +1,313 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - main
10
+
11
+ permissions:
12
+ checks: write
13
+ contents: write
14
+
15
+ jobs:
16
+ build-js:
17
+ name: Build JS
18
+ runs-on: ubuntu-latest
19
+
20
+ steps:
21
+ - name: Check out Git repository
22
+ uses: actions/checkout@v7
23
+
24
+ - name: Set up Node.js
25
+ uses: actions/setup-node@v7
26
+ with:
27
+ node-version: 24
28
+
29
+ - name: Install pnpm
30
+ uses: pnpm/action-setup@v6
31
+ with:
32
+ version: 10
33
+ run_install: false
34
+
35
+ - name: Get pnpm store directory
36
+ shell: bash
37
+ run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
38
+
39
+ - name: Setup pnpm cache
40
+ uses: actions/cache@v6
41
+ with:
42
+ path: ${{ env.STORE_PATH }}
43
+ key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
44
+ restore-keys: |
45
+ ${{ runner.os }}-pnpm-store-
46
+
47
+ - name: Install Node.js dependencies
48
+ run: pnpm install
49
+
50
+ - name: Compile JS
51
+ run: pnpm build:js
52
+
53
+ - name: Upload compiled JS
54
+ uses: actions/upload-artifact@v7
55
+ with:
56
+ name: application.js
57
+ path: public/application.js
58
+
59
+ build-css:
60
+ name: Build CSS
61
+ runs-on: ubuntu-latest
62
+
63
+ steps:
64
+ - name: Check out Git repository
65
+ uses: actions/checkout@v7
66
+
67
+ - name: Set up Node.js
68
+ uses: actions/setup-node@v7
69
+ with:
70
+ node-version: 24
71
+
72
+ - name: Install pnpm
73
+ uses: pnpm/action-setup@v6
74
+ with:
75
+ version: 10
76
+ run_install: false
77
+
78
+ - name: Get pnpm store directory
79
+ shell: bash
80
+ run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
81
+
82
+ - name: Setup pnpm cache
83
+ uses: actions/cache@v6
84
+ with:
85
+ path: ${{ env.STORE_PATH }}
86
+ key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
87
+ restore-keys: |
88
+ ${{ runner.os }}-pnpm-store-
89
+
90
+ - name: Install Node.js dependencies
91
+ run: pnpm install
92
+
93
+ - name: Compile CSS
94
+ run: pnpm build:css
95
+
96
+ - name: Upload compiled CSS
97
+ uses: actions/upload-artifact@v7
98
+ with:
99
+ name: application.css
100
+ path: public/application.css
101
+
102
+ build-gem:
103
+ name: Build Gem
104
+ runs-on: ubuntu-latest
105
+ needs: [build-css, build-js]
106
+
107
+ steps:
108
+ - name: Check out Git repository
109
+ uses: actions/checkout@v7
110
+
111
+ - name: Set up Ruby
112
+ uses: ruby/setup-ruby@v1
113
+ with:
114
+ ruby-version: .ruby-version
115
+
116
+ - name: Install pnpm
117
+ uses: pnpm/action-setup@v6
118
+ with:
119
+ version: 10
120
+ run_install: false
121
+
122
+ - name: Install Ruby Gem dependencies
123
+ run: |
124
+ gem install bundler -v 2.4.22
125
+ bundle install --jobs 4 --retry 3
126
+
127
+ - name: Build Gem
128
+ run: pnpm gem:build
129
+
130
+ - name: Upload compiled Gem
131
+ uses: actions/upload-artifact@v7
132
+ with:
133
+ name: simplecov-tailwindcss.gem
134
+ path: ./*.gem
135
+
136
+ test-ruby-old:
137
+ name: Test Ruby (2.5.9)
138
+ runs-on: ubuntu-latest
139
+
140
+ strategy:
141
+ matrix:
142
+ ruby: [2.5.9]
143
+
144
+ steps:
145
+ - name: Checkout Code
146
+ uses: actions/checkout@v7
147
+
148
+ - name: Set up Ruby
149
+ uses: ruby/setup-ruby@v1
150
+ with:
151
+ ruby-version: ${{ matrix.ruby }}
152
+
153
+ - name: Build and Test
154
+ run: |
155
+ gem install bundler -v 2.3.26
156
+ bundle install --jobs 4 --retry 3
157
+ bundle exec rake test
158
+
159
+ test-ruby-legacy:
160
+ name: Test Ruby (${{ matrix.ruby }})
161
+ runs-on: ubuntu-latest
162
+
163
+ strategy:
164
+ matrix:
165
+ ruby: [2.6.10, 2.7.8, 3.0.7, 3.1.7]
166
+
167
+ steps:
168
+ - name: Checkout Code
169
+ uses: actions/checkout@v7
170
+
171
+ - name: Set up Ruby
172
+ uses: ruby/setup-ruby@v1
173
+ with:
174
+ ruby-version: ${{ matrix.ruby }}
175
+
176
+ - name: Build and Test
177
+ run: |
178
+ gem install bundler -v 2.4.22
179
+ bundle install --jobs 4 --retry 3
180
+ bundle exec rake test
181
+
182
+ test-ruby-other:
183
+ name: Test Ruby (${{ matrix.ruby }})
184
+ runs-on: ubuntu-latest
185
+
186
+ strategy:
187
+ matrix:
188
+ ruby: [3.2.11, 3.3.12, 3.4.10]
189
+
190
+ steps:
191
+ - name: Checkout Code
192
+ uses: actions/checkout@v7
193
+
194
+ - name: Set up Ruby
195
+ uses: ruby/setup-ruby@v1
196
+ with:
197
+ ruby-version: ${{ matrix.ruby }}
198
+
199
+ - name: Build and Test
200
+ run: |
201
+ gem install bundler -v 2.7.2
202
+ bundle install --jobs 4 --retry 3
203
+ bundle exec rake test
204
+
205
+ test-ruby-latest:
206
+ name: Test Ruby (4.0.7)
207
+ runs-on: ubuntu-latest
208
+ needs: [test-ruby-old, test-ruby-legacy, test-ruby-other]
209
+
210
+ strategy:
211
+ matrix:
212
+ ruby: [4.0.7]
213
+
214
+ steps:
215
+ - name: Checkout Code
216
+ uses: actions/checkout@v7
217
+
218
+ - name: Set up Ruby
219
+ uses: ruby/setup-ruby@v1
220
+ with:
221
+ ruby-version: ${{ matrix.ruby }}
222
+
223
+ - name: Build and Test
224
+ run: |
225
+ gem install bundler -v 2.7.2
226
+ bundle install --jobs 4 --retry 3
227
+ bundle exec rake test
228
+
229
+ - name: Upload coverage results
230
+ uses: actions/upload-artifact@v7
231
+ with:
232
+ name: coverage-report
233
+ path: coverage
234
+
235
+ test-ruby-head:
236
+ name: Test Ruby (head)
237
+ runs-on: ubuntu-latest
238
+ needs: [test-ruby-old, test-ruby-legacy, test-ruby-other, test-ruby-latest]
239
+
240
+ strategy:
241
+ matrix:
242
+ ruby: [head]
243
+
244
+ steps:
245
+ - name: Checkout Code
246
+ uses: actions/checkout@v7
247
+
248
+ - name: Set up Ruby
249
+ uses: ruby/setup-ruby@v1
250
+ with:
251
+ ruby-version: ${{ matrix.ruby }}
252
+
253
+ - name: Build and Test
254
+ run: |
255
+ gem install bundler -v 2.4.22
256
+ bundle install --jobs 4 --retry 3
257
+ bundle exec rake test
258
+
259
+ lint:
260
+ name: Lint
261
+ runs-on: ubuntu-latest
262
+
263
+ steps:
264
+ - name: Check out Git repository
265
+ uses: actions/checkout@v7
266
+
267
+ - name: Set up Node.js
268
+ uses: actions/setup-node@v7
269
+ with:
270
+ node-version: 24
271
+
272
+ - name: Install pnpm
273
+ uses: pnpm/action-setup@v6
274
+ with:
275
+ version: 10
276
+ run_install: false
277
+
278
+ - name: Get pnpm store directory
279
+ shell: bash
280
+ run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
281
+
282
+ - name: Setup pnpm cache
283
+ uses: actions/cache@v6
284
+ with:
285
+ path: ${{ env.STORE_PATH }}
286
+ key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
287
+ restore-keys: |
288
+ ${{ runner.os }}-pnpm-store-
289
+
290
+ - name: Install Node.js dependencies
291
+ run: pnpm install
292
+
293
+ - name: Set up Ruby
294
+ uses: ruby/setup-ruby@v1
295
+ with:
296
+ ruby-version: .ruby-version
297
+
298
+ - name: Install Ruby Gem dependencies
299
+ run: |
300
+ gem install bundler -v 2.6.9
301
+ bundle install --jobs 4 --retry 3
302
+
303
+ - name: Lint JavaScript
304
+ run: pnpm lint:javascript
305
+
306
+ - name: Lint Ruby
307
+ run: pnpm lint:ruby
308
+
309
+ - name: Lint ERB
310
+ run: pnpm lint:erb
311
+
312
+ - name: Check formatting
313
+ run: pnpm format:check
@@ -0,0 +1,47 @@
1
+ name: Publish
2
+
3
+ on: workflow_dispatch
4
+
5
+ permissions:
6
+ contents: write
7
+ packages: write
8
+
9
+ jobs:
10
+ publish-github:
11
+ name: Publish to GitHub Packages
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - name: Check out Git repository
16
+ uses: actions/checkout@v7
17
+ with:
18
+ fetch-depth: 0
19
+
20
+ - name: Build and publish gem to GitHub
21
+ uses: jstastny/publish-gem-to-github@v2.4
22
+ with:
23
+ token: ${{ secrets.GITHUB_TOKEN }}
24
+ owner: chiefpansancolt
25
+
26
+ publish-rubygems:
27
+ name: Publish to RubyGems
28
+ runs-on: ubuntu-latest
29
+ env:
30
+ GEM_HOST_API_KEY: ${{ secrets.RUBYGEMAPIKEY }}
31
+
32
+ steps:
33
+ - name: Check out Git repository
34
+ uses: actions/checkout@v7
35
+ with:
36
+ fetch-depth: 0
37
+
38
+ - name: Set up Ruby
39
+ uses: ruby/setup-ruby@v1
40
+ with:
41
+ ruby-version: .ruby-version
42
+ bundler-cache: true
43
+
44
+ - name: Push to RubyGems.org
45
+ run: |
46
+ gem build *.gemspec
47
+ gem push *.gem
data/.gitignore CHANGED
@@ -10,4 +10,7 @@
10
10
  Gemfile.lock
11
11
  yarn-error.log
12
12
  test/reports/
13
- *.gem
13
+ *.gem
14
+ .claude/
15
+ CLAUDE.md
16
+ memory/
data/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ 24.21.0
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- require:
2
+ plugins:
3
3
  - rubocop-minitest
4
4
  - rubocop-performance
5
5
  - rubocop-rake
@@ -111,7 +111,7 @@ Bundler/GemComment:
111
111
  - '**/*.gemfile'
112
112
  - '**/Gemfile'
113
113
  - '**/gems.rb'
114
- IgnoredGems: []
114
+ AllowedGems: []
115
115
  OnlyFor: []
116
116
 
117
117
  Bundler/GemFilename:
@@ -745,7 +745,7 @@ Layout/LineLength:
745
745
  URISchemes:
746
746
  - http
747
747
  - https
748
- IgnoreCopDirectives: true
748
+ AllowCopDirectives: true
749
749
  AllowedPatterns: []
750
750
 
751
751
  Layout/MultilineArrayBraceLayout:
@@ -1555,7 +1555,7 @@ Lint/MissingCopEnableDirective:
1555
1555
  Description: 'Checks for a `# rubocop:enable` after `# rubocop:disable`.'
1556
1556
  Enabled: true
1557
1557
  VersionAdded: '0.52'
1558
- MaximumRangeSize: .inf
1558
+ MaxRangeSize: .inf
1559
1559
 
1560
1560
  Lint/MissingSuper:
1561
1561
  Description: >-
@@ -1616,7 +1616,7 @@ Lint/NumberConversion:
1616
1616
  VersionAdded: '0.53'
1617
1617
  VersionChanged: '1.1'
1618
1618
  SafeAutoCorrect: false
1619
- IgnoredClasses:
1619
+ AllowedClasses:
1620
1620
  - Time
1621
1621
  - DateTime
1622
1622
 
@@ -2351,7 +2351,7 @@ Naming/MethodParameterName:
2351
2351
  - to
2352
2352
  ForbiddenNames: []
2353
2353
 
2354
- Naming/PredicateName:
2354
+ Naming/PredicatePrefix:
2355
2355
  Description: 'Check the names of predicate methods.'
2356
2356
  StyleGuide: '#bool-methods-qmark'
2357
2357
  Enabled: true
@@ -2863,7 +2863,7 @@ Style/DocumentationMethod:
2863
2863
  - 'test/**/*'
2864
2864
  RequireForNonPublicMethods: false
2865
2865
 
2866
- Style/DoubleCopDisableDirective:
2866
+ Lint/CopDirectiveSyntax:
2867
2867
  Description: 'Checks for double rubocop:disable comments on a single line.'
2868
2868
  Enabled: true
2869
2869
  VersionAdded: '0.73'
@@ -3011,7 +3011,7 @@ Style/FetchEnvVar:
3011
3011
  - https://rubystyle.guide/#hash-fetch-defaults
3012
3012
  Enabled: pending
3013
3013
  VersionAdded: '1.28'
3014
- AllowedVars: []
3014
+ AllowedVariables: []
3015
3015
 
3016
3016
  Style/FileRead:
3017
3017
  Description: 'Favor `File.(bin)read` convenience methods.'
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.2
1
+ 3.3.12
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## Version [2.4.0](https://github.com/chiefpansancolt/simplecov-tailwindcss/releases/tag/2.4.0)
4
+
5
+ Thank you to our contributors this release!
6
+
7
+ ### Bug Fixes
8
+
9
+ - Allow SimpleCov 1.x by loosening the gemspec constraint and fixing the version guard ([#118](https://github.com/chiefpansancolt/simplecov-tailwindcss/pull/118)) -> [@romanoff](https://github.com/romanoff)
10
+ - Fix file coverage slide-over background rendering as opaque instead of translucent (Tailwind v4 dropped the `bg-opacity-*` utilities used for the overlay)
11
+
12
+ ### Documentation
13
+
14
+ - Update `simplecov` main repository link ([#119](https://github.com/chiefpansancolt/simplecov-tailwindcss/pull/119)) -> [@G-Rath](https://github.com/G-Rath)
15
+
16
+ ### Updates
17
+
18
+ - Add `cursor-pointer` to the sort ascending/descending buttons, sort field select, and dark/light theme toggle
19
+ - Clear remaining SimpleCov 1.x deprecation warnings (`covered_percent(:branch)`, `skip`, `group`) on top of [#118](https://github.com/chiefpansancolt/simplecov-tailwindcss/pull/118), while keeping compatibility with SimpleCov 0.16+
20
+ - Bump Ruby CI matrix to latest patch releases and add Ruby 4.0 as the latest-tested version
21
+ - Bump `actions/setup-node` to v7 and pin `jstastny/publish-gem-to-github` to a release tag instead of `master`
22
+ - Add `.nvmrc` to pin the project's base Node.js version
23
+ - Bump Dependencies, including a major upgrade to Babel 8
24
+
3
25
  ## Version [2.3.0](https://github.com/chiefpansancolt/simplecov-tailwindcss/releases/tag/2.3.0)
4
26
 
5
27
  ### Chores
data/README.md CHANGED
@@ -1,15 +1,12 @@
1
1
  # Simplecov Tailwind
2
2
 
3
3
  [![GitHub](https://img.shields.io/github/license/chiefpansancolt/simplecov-tailwindcss?label=License&style=flat-square)](/LICENSE)
4
- [![GitHub Workflow Tests Status](https://img.shields.io/github/actions/workflow/status/chiefpansancolt/simplecov-tailwindcss/tests.yml?label=Tests&logo=github&style=flat-square)](https://github.com/chiefpansancolt/simplecov-tailwindcss/actions/workflows/tests.yml)
5
- [![GitHub Workflow Builds Status](https://img.shields.io/github/actions/workflow/status/chiefpansancolt/simplecov-tailwindcss/builds.yml?label=Build&logo=github&style=flat-square)](https://github.com/chiefpansancolt/simplecov-tailwindcss/actions/workflows/builds.yml)
6
- [![GitHub Workflow Lints Status](https://img.shields.io/github/actions/workflow/status/chiefpansancolt/simplecov-tailwindcss/lints.yml?label=Lints&logo=github&style=flat-square)](https://github.com/chiefpansancolt/simplecov-tailwindcss/actions/workflows/lints.yml)
7
4
  [![CodeQL](https://github.com/chiefpansancolt/simplecov-tailwindcss/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/chiefpansancolt/simplecov-tailwindcss/actions/workflows/github-code-scanning/codeql)
8
5
  [![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/chiefpansancolt/simplecov-tailwindcss?label=Release&logo=github&style=flat-square)](https://github.com/chiefpansancolt/simplecov-tailwindcss/releases)
9
6
  [![Gem](https://img.shields.io/gem/v/simplecov-tailwindcss?color=orange&label=Gem%20Version&logo=rubygems&style=flat-square)](https://rubygems.org/gems/simplecov-tailwindcss)
10
7
  [![Discord](https://img.shields.io/discord/450095227185659905?label=Discord&logo=discord&style=flat-square)](https://discord.gg/pBxGpfrmD4)
11
8
 
12
- > Note: To learn more about SimpleCov, check out the main repo at https://github.com/colszowka/simplecov
9
+ > Note: To learn more about SimpleCov, check out the main repo at https://github.com/simplecov-ruby/simplecov
13
10
 
14
11
  Generates a HTML Tailwind Design report generated from Simplecov using ruby 2.5 or greater.
15
12
 
@@ -56,12 +53,19 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
56
53
  <!-- prettier-ignore-start -->
57
54
  <!-- markdownlint-disable -->
58
55
  <table>
59
- <tr>
60
- <td align="center"><a href="https://chrispezza.me"><img src="https://avatars3.githubusercontent.com/u/5841177?v=4" width="100px;" alt=""/><br /><sub><b>Christopher Pezza</b></sub></a><br /><a href="https://github.com/chiefpansancolt/simplecov-tailwindcss/commits?author=chiefpansancolt" title="Code">💻</a> <a href="https://github.com/chiefpansancolt/simplecov-tailwindcss/commits?author=chiefpansancolt" title="Documentation">📖</a> <a href="#tool-chiefpansancolt" title="Tools">🔧</a> <a href="https://github.com/chiefpansancolt/simplecov-tailwindcss/commits?author=chiefpansancolt" title="Tests">⚠️</a> <a href="#maintenance-chiefpansancolt" title="Maintenance">🚧</a></td>
61
- </tr>
56
+ <tbody>
57
+ <tr>
58
+ <td align="center" valign="top" width="14.28%"><a href="https://chrispezza.me"><img src="https://avatars3.githubusercontent.com/u/5841177?v=4?s=100" width="100px;" alt="Christopher Pezza"/><br /><sub><b>Christopher Pezza</b></sub></a><br /><a href="https://github.com/chiefpansancolt/simplecov-tailwindcss/commits?author=chiefpansancolt" title="Code">💻</a> <a href="https://github.com/chiefpansancolt/simplecov-tailwindcss/commits?author=chiefpansancolt" title="Documentation">📖</a> <a href="#tool-chiefpansancolt" title="Tools">🔧</a> <a href="https://github.com/chiefpansancolt/simplecov-tailwindcss/commits?author=chiefpansancolt" title="Tests">⚠️</a> <a href="#maintenance-chiefpansancolt" title="Maintenance">🚧</a></td>
59
+ <td align="center" valign="top" width="14.28%"><a href="https://andrewm.codes/"><img src="https://avatars.githubusercontent.com/u/18423853?v=4?s=100" width="100px;" alt="Andrew Mason"/><br /><sub><b>Andrew Mason</b></sub></a><br /><a href="https://github.com/chiefpansancolt/simplecov-tailwindcss/commits?author=andrewmcodes" title="Documentation">📖</a></td>
60
+ <td align="center" valign="top" width="14.28%"><a href="https://igas.me/"><img src="https://avatars.githubusercontent.com/u/175652?v=4?s=100" width="100px;" alt="Marcus Wood"/><br /><sub><b>Marcus Wood</b></sub></a><br /><a href="https://github.com/chiefpansancolt/simplecov-tailwindcss/issues?q=author%3Aigas" title="Bug reports">🐛</a></td>
61
+ <td align="center" valign="top" width="14.28%"><a href="http://fidalgo.pt/"><img src="https://avatars.githubusercontent.com/u/22743?v=4?s=100" width="100px;" alt="Paulo Fidalgo"/><br /><sub><b>Paulo Fidalgo</b></sub></a><br /><a href="https://github.com/chiefpansancolt/simplecov-tailwindcss/commits?author=fidalgo" title="Code">💻</a></td>
62
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/romanoff"><img src="https://avatars.githubusercontent.com/u/222327?v=4?s=100" width="100px;" alt="Andriy Romanov"/><br /><sub><b>Andriy Romanov</b></sub></a><br /><a href="https://github.com/chiefpansancolt/simplecov-tailwindcss/issues?q=author%3Aromanoff" title="Bug reports">🐛</a></td>
63
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/G-Rath"><img src="https://avatars.githubusercontent.com/u/3151613?v=4?s=100" width="100px;" alt="Gareth Jones"/><br /><sub><b>Gareth Jones</b></sub></a><br /><a href="https://github.com/chiefpansancolt/simplecov-tailwindcss/commits?author=G-Rath" title="Documentation">📖</a></td>
64
+ </tr>
65
+ </tbody>
62
66
  </table>
63
67
 
64
- <!-- markdownlint-enable -->
68
+ <!-- markdownlint-restore -->
65
69
  <!-- prettier-ignore-end -->
66
70
 
67
71
  <!-- ALL-CONTRIBUTORS-LIST:END -->
data/bin/lint CHANGED
@@ -10,10 +10,6 @@ echo ""
10
10
  echo "== Linting ERB =="
11
11
  pnpm lint:erb
12
12
 
13
- echo ""
14
- echo "== Linting Markdown =="
15
- pnpm lint:markdown
16
-
17
13
  echo ""
18
14
  echo "== Linting Javascript =="
19
15
  pnpm lint:javascript
data/eslint.config.mjs ADDED
@@ -0,0 +1,17 @@
1
+ export default [
2
+ {
3
+ ignores: ["node_modules/**", "public/**"],
4
+ },
5
+ {
6
+ languageOptions: {
7
+ ecmaVersion: "latest",
8
+ sourceType: "module",
9
+ },
10
+ rules: {
11
+ indent: ["error", 2],
12
+ "linebreak-style": ["error", "unix"],
13
+ quotes: ["error", "single"],
14
+ semi: ["error", "never"],
15
+ },
16
+ },
17
+ ];
@@ -3,7 +3,7 @@
3
3
  module SimpleCov
4
4
  module Formatter
5
5
  class TailwindFormatter
6
- VERSION = "2.3.0"
6
+ VERSION = "2.4.0"
7
7
  end
8
8
  end
9
9
  end
@@ -7,11 +7,13 @@ require "digest/sha1"
7
7
 
8
8
  # Ensure we are using a compatible version of SimpleCov
9
9
  major, minor, patch = SimpleCov::VERSION.scan(/\d+/).first(3).map(&:to_i)
10
- if major.negative? || minor < 9 || patch.negative?
10
+ if major.negative? || (major.zero? && minor < 9) || patch.negative?
11
11
  raise "The version of SimpleCov you are using is too old. " \
12
12
  "Please update with `gem install simplecov` or `bundle update simplecov`"
13
13
  end
14
14
 
15
+ SIMPLECOV_MODERN_API = major >= 1
16
+
15
17
  module SimpleCov
16
18
  module Formatter
17
19
  class TailwindFormatter # rubocop:disable Metrics/ClassLength
@@ -100,6 +102,10 @@ module SimpleCov
100
102
  template("file_detail").result(binding)
101
103
  end
102
104
 
105
+ def branch_covered_percent(file)
106
+ SIMPLECOV_MODERN_API ? file.covered_percent(:branch) : file.branches_coverage_percent
107
+ end
108
+
103
109
  # rubocop:disable Lint/SelfAssignment
104
110
  def generate_group_page(title, files, created_date)
105
111
  title_id = title.gsub(/^[^a-zA-Z]+/, "").gsub(/[^a-zA-Z0-9\-_]/, "")