dragnet 5.3.1 → 5.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: 19b50e11d8b26487968d95585c7efa8eb4b1db0ce0f7d2d23ce410d0c1bbe53f
4
- data.tar.gz: 6fb964ca6fc17b3b4c5793c3de4a4a23f7e13883167b802bb200adbdea85a987
3
+ metadata.gz: 4df0fbccf76726a3b65c405229d6541c84f573a3fec8dd594a5f5d2172f66780
4
+ data.tar.gz: b899ff88a213d131b96272bd2efdfaa5d8bb2f771e09da4a61f6ea8843e52f39
5
5
  SHA512:
6
- metadata.gz: 81c5227aeb18c6382e4e42b0adc3417808755d0d984ae7b4c2be9fc5ae3a24960c7fa45497817e781380112f6d7a57b4de7b9ec8025c59e114c72424a6935e92
7
- data.tar.gz: 7a86e7800e1aa950963e14ea50dd4ee07e52cecaa390519021ac2de872fc794fbdaea887dcb5945c21c3c9e49e20a811f26ea4f4919dc7436fe9ba941f0cfc89
6
+ metadata.gz: 3496fe180d01f95f673663a1b7f27ccf2388092599d8cd30ce86b59020d0304b90263d4dac540462703a6836703971dcce7c240e2f1c303cdb7f1026f18bfbc7
7
+ data.tar.gz: ff355f0109ceb2f33c0b0d13ae9257fceaaad398ad65281ae02572aee2404688aaea98e062a6dfe9afc69ba34f146c76fe07d187c011db392c6f1b64818a6d21
@@ -18,7 +18,7 @@ jobs:
18
18
  steps:
19
19
  - uses: actions/checkout@v4
20
20
  - name: Set up Ruby 2.7
21
- uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
21
+ uses: ruby/setup-ruby@v1
22
22
  with:
23
23
  ruby-version: 2.7.7
24
24
  - name: Build
@@ -30,7 +30,7 @@ jobs:
30
30
  # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
31
31
  # change this to (see https://github.com/ruby/setup-ruby#versioning):
32
32
  # uses: ruby/setup-ruby@v1
33
- uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
33
+ uses: ruby/setup-ruby@v1
34
34
  with:
35
35
  ruby-version: ${{ matrix.ruby-version }}
36
36
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
@@ -23,7 +23,7 @@ jobs:
23
23
  # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
24
24
  # change this to (see https://github.com/ruby/setup-ruby#versioning):
25
25
  # uses: ruby/setup-ruby@v1
26
- uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
26
+ uses: ruby/setup-ruby@v1
27
27
  with:
28
28
  ruby-version: 2.7.7
29
29
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
@@ -39,6 +39,9 @@ jobs:
39
39
  - name: Generate YARD documentation
40
40
  run: |
41
41
  bundler exec yard doc . --exclude vendor/ -o documentation/build/html/yard
42
+ - name: Export Requirements
43
+ run: |
44
+ bundler exec dim_to_rst req/config.yml documentation/source/requirements
42
45
  - name: Install pandoc
43
46
  run: |
44
47
  sudo apt-get update
data/CHANGELOG.md CHANGED
@@ -8,6 +8,12 @@ Please mark backwards incompatible changes with an exclamation mark at the start
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [5.4.0] - 2025-04-07
12
+
13
+ ### Added
14
+ - A `--number-only` / `-n` switch to the `--version` CLI command that only
15
+ prints the version number.
16
+
11
17
  ## [5.3.1] - 2024-12-13
12
18
 
13
19
  ### Fixed
data/Gemfile CHANGED
@@ -19,4 +19,5 @@ end
19
19
 
20
20
  group :requirements do
21
21
  gem 'dim-toolkit', '2.1.1' # Fixed to a minor because the Gem doesn't follow semantic versioning.
22
+ gem 'dim_to_rst', '~> 2'
22
23
  end
@@ -30,9 +30,16 @@ module Dragnet
30
30
  map %w[--version -v] => :version
31
31
 
32
32
  desc '--version', 'Prints the current version of the Gem'
33
+ method_option :'number-only',
34
+ aliases: 'n', type: :boolean,
35
+ desc: 'If given, only the version number will be printed'
33
36
  def version
34
- say "Dragnet #{Dragnet::VERSION}"
35
- say "Copyright (c) #{Time.now.year} ESR Labs GmbH esrlabs.com"
37
+ if options[:'number-only']
38
+ say Dragnet::VERSION
39
+ else
40
+ say "Dragnet #{Dragnet::VERSION}"
41
+ say "Copyright (c) #{Time.now.year} ESR Labs GmbH esrlabs.com"
42
+ end
36
43
  end
37
44
 
38
45
  desc 'check [PATH]', 'Executes the verification procedure. '\
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dragnet
4
- VERSION = '5.3.1'
4
+ VERSION = '5.4.0'
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.3.1
4
+ version: 5.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ESR Labs GmbH
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-13 00:00:00.000000000 Z
11
+ date: 2025-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -169,7 +169,7 @@ metadata:
169
169
  homepage_uri: https://github.com/esrlabs/dragnet
170
170
  source_code_uri: https://github.com/esrlabs/dragnet
171
171
  changelog_uri: https://github.com/esrlabs/dragnet/blob/master/CHANGELOG.md
172
- post_install_message:
172
+ post_install_message:
173
173
  rdoc_options: []
174
174
  require_paths:
175
175
  - lib
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  version: '0'
186
186
  requirements: []
187
187
  rubygems_version: 3.1.6
188
- signing_key:
188
+ signing_key:
189
189
  specification_version: 4
190
190
  summary: A gem to verify, validate and analyse MTR (Manual Test Record) files.
191
191
  test_files: []