simplecov-tailwindcss 2.2.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 +4 -4
- data/.all-contributorsrc +48 -2
- data/.github/dependabot.yml +18 -0
- data/.github/workflows/ci.yml +313 -0
- data/.github/workflows/publish.yml +47 -0
- data/.gitignore +4 -1
- data/.nvmrc +1 -0
- data/.rubocop.yml +8 -8
- data/.ruby-version +1 -1
- data/CHANGELOG.md +30 -0
- data/README.md +12 -8
- data/bin/lint +0 -4
- data/dist/app.css +24 -3
- data/eslint.config.mjs +17 -0
- data/lib/simplecov-tailwindcss/version.rb +1 -1
- data/lib/simplecov-tailwindcss.rb +7 -1
- data/package.json +15 -16
- data/pnpm-lock.yaml +2648 -2066
- data/public/application.css +2 -1
- data/simplecov-tailwindcss.gemspec +1 -1
- data/test/test_helper.rb +12 -3
- data/views/dialog.erb +2 -2
- data/views/file_detail.erb +3 -3
- data/views/group_page.erb +5 -5
- data/views/main.erb +12 -12
- data/views/stat_card.erb +1 -1
- metadata +19 -19
- data/.eslintignore +0 -2
- data/.eslintrc.json +0 -10
- data/.github/workflows/builds.yml +0 -123
- data/.github/workflows/github_publish.yml +0 -16
- data/.github/workflows/lints.yml +0 -60
- data/.github/workflows/rubygem_publish.yml +0 -21
- data/.github/workflows/tests.yml +0 -103
- data/.markdownlint.yml +0 -21
- data/.vscode/settings.json +0 -6
- data/tailwind.config.js +0 -8
- /data/{.erb-lint.yml → .erb_lint.yml} +0 -0
|
@@ -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\-_]/, "")
|
data/package.json
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "simplecov-tailwind",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.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
12
|
"lint": "./bin/lint",
|
|
13
|
-
"lint:markdown": "markdownlint CHANGELOG.md README.md .github/**/*.md -c .markdownlint.yml",
|
|
14
13
|
"lint:ruby": "rubocop",
|
|
15
|
-
"lint:erb": "bundle exec
|
|
14
|
+
"lint:erb": "bundle exec erb_lint --lint-all",
|
|
16
15
|
"lint:javascript": "eslint dist",
|
|
17
16
|
"gem:build": "gem build simplecov-tailwindcss.gemspec",
|
|
18
17
|
"format": "prettier './**/*.{css,js,json,yml,md,erb}' -l",
|
|
@@ -47,21 +46,21 @@
|
|
|
47
46
|
"homepage": "https://simplecov-tailwind.chiefpansancolt.dev/",
|
|
48
47
|
"babel": {},
|
|
49
48
|
"devDependencies": {
|
|
50
|
-
"@babel/core": "^
|
|
51
|
-
"@babel/eslint-parser": "^
|
|
49
|
+
"@babel/core": "^8.0.6",
|
|
50
|
+
"@babel/eslint-parser": "^8.0.6",
|
|
52
51
|
"@hotwired/stimulus": "^3.2.2",
|
|
53
|
-
"@prettier/plugin-ruby": "^4.0.
|
|
54
|
-
"@tailwindcss/forms": "^0.5.
|
|
55
|
-
"@tailwindcss/typography": "^0.5.
|
|
56
|
-
"@trivago/prettier-plugin-sort-imports": "^
|
|
57
|
-
"esbuild": "^0.
|
|
58
|
-
"eslint": "^
|
|
59
|
-
"markdownlint": "^0.
|
|
52
|
+
"@prettier/plugin-ruby": "^4.0.4",
|
|
53
|
+
"@tailwindcss/forms": "^0.5.11",
|
|
54
|
+
"@tailwindcss/typography": "^0.5.20",
|
|
55
|
+
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
|
|
56
|
+
"esbuild": "^0.28.2",
|
|
57
|
+
"eslint": "^10.11.0",
|
|
58
|
+
"markdownlint": "^0.40.0",
|
|
60
59
|
"npm-run-all": "^4.1.5",
|
|
61
|
-
"prettier": "^3.
|
|
60
|
+
"prettier": "^3.9.8",
|
|
62
61
|
"prettier-plugin-erb": "^0.4.0",
|
|
63
|
-
"prettier-plugin-tailwindcss": "^0.
|
|
64
|
-
"tailwindcss": "^3.3
|
|
62
|
+
"prettier-plugin-tailwindcss": "^0.8.1",
|
|
63
|
+
"tailwindcss": "^4.3.3",
|
|
65
64
|
"timeago.js": "^4.0.2"
|
|
66
65
|
}
|
|
67
66
|
}
|