hammer_cli 3.15.0 → 3.16.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/doc/creating_commands.md +7 -6
- data/doc/release_notes.md +4 -0
- data/lib/hammer_cli/version.rb +1 -1
- data/locale/ca/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/cs_CZ/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/de/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/en/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/en_GB/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/es/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/fr/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/it/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ja/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ka/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ko/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/pt_BR/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ru/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/zh_CN/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/zh_TW/LC_MESSAGES/hammer-cli.mo +0 -0
- data/man/hammer.1.gz +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b5e827c864847a55ebc684687a6b1136e7a5e9d2778ad4cf1e1bb9b1e2eab50
|
4
|
+
data.tar.gz: 0e6a55e0af3537a458c65ff6efb1358f0263dbc2a7b0eb10695f33b775ab9dab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd02b8beeae807b3f5cb0bf23a097320c303d960734dd4ed7bc463718724d40bd0ab3654dfe0ea3764ea61e61c4b244520685f0f0b89282a88b9f883fbe85fa4
|
7
|
+
data.tar.gz: c5b96c124152df84b489c0c5a9c74a5b138e73ac5e5e0c193c67b31b5a43790766c2be9266704977e4c0335384e58786a08fddea4d09d95e986b5bae2cd6860c
|
data/doc/creating_commands.md
CHANGED
@@ -755,7 +755,7 @@ def adapter
|
|
755
755
|
end
|
756
756
|
```
|
757
757
|
|
758
|
-
#### Deprecating fields
|
758
|
+
#### Deprecating and replacing fields
|
759
759
|
To deprecate a field, add `:deprecated => true` as an option for the field. This will print a warning message to stderr whenever the field is displayed. Consider removing this field from the default set so it is not displayed without a `--fields` param:
|
760
760
|
|
761
761
|
```
|
@@ -770,18 +770,19 @@ Warning: Field 'Deprecated field' is deprecated and may be removed in future ver
|
|
770
770
|
Deprecated field: bar
|
771
771
|
```
|
772
772
|
|
773
|
-
Additionally, a field may be 'replaced by' another field using `:replaced_by =>
|
773
|
+
Additionally, a field may be 'replaced by' another field using `:replaced_by => [_('Path'), _('To'), _('New'), _('Field')].join('/')`. Translating each string segment independently ensures the resulting translation is identical to the path the user will enter. This will mark the replaced field as deprecated and print a warning message to stderr whenever the field is displayed:
|
774
774
|
|
775
775
|
```
|
776
|
-
field :rep_fld, _("
|
776
|
+
field :rep_fld, _("Old field"), Fields::Field, :sets => ['ALL'], :replaced_by => [_('Bar'), _('New Field')].join('/')
|
777
777
|
```
|
778
778
|
|
779
779
|
Example output:
|
780
780
|
|
781
781
|
```
|
782
|
-
$ hammer foo info --fields "
|
783
|
-
Warning: Field '
|
784
|
-
|
782
|
+
$ hammer foo info --fields "Old field"
|
783
|
+
Warning: Field 'Foo/Old field' is deprecated. Consider using 'Bar/New field' instead.
|
784
|
+
Foo:
|
785
|
+
Old field: bar
|
785
786
|
```
|
786
787
|
|
787
788
|
#### Verbosity
|
data/doc/release_notes.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
Release notes
|
2
2
|
=============
|
3
|
+
### 3.16.0 (2025-08-13)
|
4
|
+
* Update field documentation to reflect replaced_by translation ([PR #398](https://github.com/theforeman/hammer-cli/pull/398)), [#38427](http://projects.theforeman.org/issues/38427)
|
5
|
+
* Bump to 3.16.0-develop
|
6
|
+
|
3
7
|
### 3.15.0 (2025-05-14)
|
4
8
|
* Translate warning message ([PR #396](https://github.com/theforeman/hammer-cli/pull/396)), [#38410](http://projects.theforeman.org/issues/38410)
|
5
9
|
* Add mechanism for deprecating displayed fields ([PR #395](https://github.com/theforeman/hammer-cli/pull/395)), [#38410](http://projects.theforeman.org/issues/38410)
|
data/lib/hammer_cli/version.rb
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/man/hammer.1.gz
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hammer_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Bačovský
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-
|
12
|
+
date: 2025-08-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: amazing_print
|