dragnet 5.2.1 → 5.3.1

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: 7177866129e2b2cb8c97959e4f7e5a0e941b0340ebf1393e7a20686f622dc959
4
- data.tar.gz: 44e3f7af2a4addcc979a13a9347b12570aa58d592b7f85c2abfb4a84472ad399
3
+ metadata.gz: 19b50e11d8b26487968d95585c7efa8eb4b1db0ce0f7d2d23ce410d0c1bbe53f
4
+ data.tar.gz: 6fb964ca6fc17b3b4c5793c3de4a4a23f7e13883167b802bb200adbdea85a987
5
5
  SHA512:
6
- metadata.gz: e133e064b292f6f3dca7dfd72d952ea5f711d218d7d8b9112b3013e38d76332860f63c5e88111ecc22768f0fb24ed69504f329d0e5e7c818e1286a7ab09c2368
7
- data.tar.gz: eb08afc58a6ac940f559a8fd28771644d2e28d6b3be3e373c2b1a1831c1de076a176c924a1dacf153d564591807337c74c949179ebd5b5797886c3a9dfd68312
6
+ metadata.gz: 81c5227aeb18c6382e4e42b0adc3417808755d0d984ae7b4c2be9fc5ae3a24960c7fa45497817e781380112f6d7a57b4de7b9ec8025c59e114c72424a6935e92
7
+ data.tar.gz: 7a86e7800e1aa950963e14ea50dd4ee07e52cecaa390519021ac2de872fc794fbdaea887dcb5945c21c3c9e49e20a811f26ea4f4919dc7436fe9ba941f0cfc89
@@ -22,7 +22,7 @@ jobs:
22
22
  runs-on: ubuntu-latest
23
23
  strategy:
24
24
  matrix:
25
- ruby-version: ['2.7']
25
+ ruby-version: ['2.7', '3.0']
26
26
 
27
27
  steps:
28
28
  - uses: actions/checkout@v4
@@ -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,20 @@ Please mark backwards incompatible changes with an exclamation mark at the start
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [5.3.1] - 2024-12-13
12
+
13
+ ### Fixed
14
+ - Dragnet no longer crashes when generating an HTML report for a repository
15
+ hosted on Github.
16
+
17
+ ## [5.3.0] - 2024-12-03
18
+
19
+ ### Added
20
+ - The JSON export now includes the path to the MTR files.
21
+
22
+ ### Changed
23
+ - The `description` field will now be rendered as Markdown in the HTML report.
24
+
11
25
  ## [5.2.1] - 2024-11-13
12
26
 
13
27
  ### Fixed
data/Gemfile CHANGED
@@ -16,3 +16,7 @@ group :linting do
16
16
  gem 'rubocop', '~> 1'
17
17
  gem 'rubocop-rspec', '~> 3'
18
18
  end
19
+
20
+ group :requirements do
21
+ gem 'dim-toolkit', '2.1.1' # Fixed to a minor because the Gem doesn't follow semantic versioning.
22
+ end
@@ -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>
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'forwardable'
4
+ require 'git/url'
4
5
 
5
6
  require_relative 'base_repository'
6
7
 
@@ -36,7 +37,7 @@ module Dragnet
36
37
  #
37
38
  # @return [String] The URI path of the repository
38
39
  def remote_uri_path
39
- URI.parse(git.remotes.first.url).path
40
+ Git::URL.parse(git.remotes.first.url).path
40
41
  end
41
42
 
42
43
  # @return [FalseClass] It always returns false
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dragnet
4
- VERSION = '5.2.1'
4
+ VERSION = '5.3.1'
5
5
  end
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.2.1
4
+ version: 5.3.1
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-13 00:00:00.000000000 Z
11
+ date: 2024-12-13 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"