dragnet 5.2.1 → 5.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 +4 -4
- data/.github/workflows/ruby-tests.yml +1 -1
- data/.github/workflows/verify-requirements.yml +31 -0
- data/CHANGELOG.md +8 -0
- data/Gemfile +4 -0
- data/lib/dragnet/exporters/serializers/test_record_serializer.rb +1 -0
- data/lib/dragnet/exporters/templates/template.html.erb +11 -2
- data/lib/dragnet/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3d0b2bd94887600b0346766323020ac0bcc68b23734a8db9fce5b089390a5a4
|
4
|
+
data.tar.gz: db31788ffe23b39366a55e6de1e2ed18e324b7b151d0589d2bcb0036576225ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 110e1c571ddd898986813cc0e85f4b7e63d336599f70c8d3c9c3997fa17a1987811cff5e4e8b7479b18bfb7acadb8701fcd4adb6c053cc71a8d57e90d6a2da91
|
7
|
+
data.tar.gz: e05b628f7502bb4ff5219ea85c54d53d2279b34077c13f7f0bfe55351214569d5cda635dbe7c7e63e017df64c6947a61d295540895f5d1843141e029cf8264b9
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# This workflow runs Rubocop on the Pull Requests to make sure no linter warnings slip by.
|
2
|
+
|
3
|
+
name: Verify Requirements
|
4
|
+
|
5
|
+
on:
|
6
|
+
pull_request:
|
7
|
+
branches: [ "master" ]
|
8
|
+
|
9
|
+
permissions:
|
10
|
+
contents: read
|
11
|
+
|
12
|
+
jobs:
|
13
|
+
verify:
|
14
|
+
|
15
|
+
runs-on: ubuntu-latest
|
16
|
+
|
17
|
+
env:
|
18
|
+
BUNDLE_ONLY: requirements
|
19
|
+
|
20
|
+
steps:
|
21
|
+
- uses: actions/checkout@v4
|
22
|
+
- name: Set up Ruby
|
23
|
+
uses: ruby/setup-ruby@v1
|
24
|
+
with:
|
25
|
+
ruby-version: '2.7'
|
26
|
+
- name: Install Gems
|
27
|
+
run: |
|
28
|
+
bundler install
|
29
|
+
- name: Check Requirements
|
30
|
+
run: |
|
31
|
+
bundler exec dim check -i req/config.yml
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,14 @@ Please mark backwards incompatible changes with an exclamation mark at the start
|
|
8
8
|
|
9
9
|
## [Unreleased]
|
10
10
|
|
11
|
+
## [5.3.0] - 2024-12-03
|
12
|
+
|
13
|
+
### Added
|
14
|
+
- The JSON export now includes the path to the MTR files.
|
15
|
+
|
16
|
+
### Changed
|
17
|
+
- The `description` field will now be rendered as Markdown in the HTML report.
|
18
|
+
|
11
19
|
## [5.2.1] - 2024-11-13
|
12
20
|
|
13
21
|
### Fixed
|
data/Gemfile
CHANGED
@@ -37,6 +37,7 @@ module Dragnet
|
|
37
37
|
refs: Array(test_record.id),
|
38
38
|
result: test_record.result,
|
39
39
|
review_status: render_review_status,
|
40
|
+
mtr_file: relative_to_repo(test_record.source_file).to_s,
|
40
41
|
verification_result: serialized_verification_result,
|
41
42
|
|
42
43
|
# TODO: Remove the started_at and finished_at attributes after solving
|
@@ -3,6 +3,7 @@
|
|
3
3
|
<meta charset="UTF-8" />
|
4
4
|
<title>Dragnet Report for <%= repository.multi? ? "Multiple Repositories" : shorten_sha1(repository.head.sha) %></title>
|
5
5
|
<script src="https://unpkg.com/@tabler/core@1.0.0-beta2/dist/js/tabler.min.js"></script>
|
6
|
+
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
6
7
|
<link rel="stylesheet" href="https://unpkg.com/@tabler/core@1.0.0-beta2/dist/css/tabler.min.css">
|
7
8
|
</head>
|
8
9
|
<body class="antialiased"> <!-- theme-dark -->
|
@@ -468,8 +469,8 @@
|
|
468
469
|
<dt class="col-3">SECL:</dt>
|
469
470
|
<dd class="col-9"> -- Not implemented -- </dd>
|
470
471
|
<dt class="col-3">Description:</dt>
|
471
|
-
<dd class="col-9">
|
472
|
-
<%= test_record.description %>
|
472
|
+
<dd class="col-9 md-description">
|
473
|
+
<%= test_record.description&.gsub("\n", '<br />') %>
|
473
474
|
</dd>
|
474
475
|
<dt class="col-3">Test Result:</dt>
|
475
476
|
<dd class="col-9"><%= verification_result_badge(test_record.verification_result) %></dd>
|
@@ -514,5 +515,13 @@
|
|
514
515
|
</footer>
|
515
516
|
</div>
|
516
517
|
</div>
|
518
|
+
<script type="text/javascript">
|
519
|
+
elements = document.getElementsByClassName('md-description')
|
520
|
+
|
521
|
+
for(let element of elements) {
|
522
|
+
const source = element.innerText
|
523
|
+
element.innerHTML = marked.parse(source)
|
524
|
+
}
|
525
|
+
</script>
|
517
526
|
</body>
|
518
527
|
</html>
|
data/lib/dragnet/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dragnet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ESR Labs GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -80,6 +80,7 @@ files:
|
|
80
80
|
- ".github/workflows/ruby-linters.yml"
|
81
81
|
- ".github/workflows/ruby-tests.yml"
|
82
82
|
- ".github/workflows/sphinx-doc.yml"
|
83
|
+
- ".github/workflows/verify-requirements.yml"
|
83
84
|
- ".gitignore"
|
84
85
|
- ".reek.yml"
|
85
86
|
- ".rspec"
|