hammer_cli 3.16.0 → 3.18.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: 1b5e827c864847a55ebc684687a6b1136e7a5e9d2778ad4cf1e1bb9b1e2eab50
4
- data.tar.gz: 0e6a55e0af3537a458c65ff6efb1358f0263dbc2a7b0eb10695f33b775ab9dab
3
+ metadata.gz: 33a172242f09152e20ca9c2527a575632ef103d2e8dc783463d833034f0463b6
4
+ data.tar.gz: a0ab45b803bb793cee25150e40ed69a268e21f1952ea84a0fe0bce68927de167
5
5
  SHA512:
6
- metadata.gz: dd02b8beeae807b3f5cb0bf23a097320c303d960734dd4ed7bc463718724d40bd0ab3654dfe0ea3764ea61e61c4b244520685f0f0b89282a88b9f883fbe85fa4
7
- data.tar.gz: c5b96c124152df84b489c0c5a9c74a5b138e73ac5e5e0c193c67b31b5a43790766c2be9266704977e4c0335384e58786a08fddea4d09d95e986b5bae2cd6860c
6
+ metadata.gz: 60b971d8a4cb6d8a431f5fe811e13b06948f7aec8c775d0b999dc89d8204ae9147ededb955964235fbcfc0e06fa32cc0d16a49805902740a74c9cccd160331c1
7
+ data.tar.gz: e00f5d37461468d9dd431f5ad4d84e44bff184473ef1f62b73e2fdea5fc8cc1bd8663090a999eaf82223fa41b8c4952455ddcde149d0f103a3fa568a5abc7d1c
data/doc/release_notes.md CHANGED
@@ -1,5 +1,14 @@
1
1
  Release notes
2
2
  =============
3
+ ### 3.18.0 (2026-02-10)
4
+ * Bump to 3.18.0-develop
5
+
6
+ ### 3.17.0 (2025-11-11)
7
+ * Update logger for #inspect of ruby 3.1+, [#38894](http://projects.theforeman.org/issues/38894)
8
+ * Add packit commit trigger job
9
+ * Add github actions workflow for release process
10
+ * Bump to 3.17.0-develop
11
+
3
12
  ### 3.16.0 (2025-08-13)
4
13
  * 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
14
  * Bump to 3.16.0-develop
@@ -28,7 +28,7 @@ module Logging
28
28
  end
29
29
 
30
30
  # add password filter: *password => "***"
31
- Logging::LogEvent.add_data_filter(/(password(\e\[0;\d{2}m|\e\[0m|\s|=>|")+\")[^\"]*\"/, '\1***"')
31
+ Logging::LogEvent.add_data_filter(/(password(\e\[0;\d{2}m|\e\[0m|\s|=>|:|")+\")[^\"]*\"/, '\1***"')
32
32
 
33
33
  module HammerCLI
34
34
  module Logger
@@ -1,5 +1,5 @@
1
1
  module HammerCLI
2
2
  def self.version
3
- @version ||= Gem::Version.new "3.16.0"
3
+ @version ||= Gem::Version.new "3.18.0"
4
4
  end
5
5
  end
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
@@ -147,7 +147,11 @@ describe HammerCLI::AbstractCommand do
147
147
  it "should have logger.watch output without colors" do
148
148
  test_command = Class.new(TestLogCmd4).new("")
149
149
  test_command.run []
150
- _(@log_output.read).must_include "DEBUG TestLogCmd4 : Test\n{\n :a => \"a\"\n}"
150
+ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.1') # TODO: remove when Ruby 3.0 is not supported
151
+ _(@log_output.read).must_include "DEBUG TestLogCmd4 : Test\n{\n :a => \"a\"\n}"
152
+ else
153
+ _(@log_output.read).must_include "DEBUG TestLogCmd4 : Test\n{\n a: \"a\"\n}"
154
+ end
151
155
  end
152
156
 
153
157
  class TestLogCmd5 < HammerCLI::AbstractCommand
@@ -162,7 +166,11 @@ describe HammerCLI::AbstractCommand do
162
166
  HammerCLI::Settings.clear
163
167
  HammerCLI::Settings.load(:watch_plain => true)
164
168
  test_command.run []
165
- _(@log_output.read).must_include "DEBUG TestLogCmd5 : Test\n{\n :a => \"a\"\n}"
169
+ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.1') # TODO: remove when Ruby 3.0 is not supported
170
+ _(@log_output.read).must_include "DEBUG TestLogCmd5 : Test\n{\n :a => \"a\"\n}"
171
+ else
172
+ _(@log_output.read).must_include "DEBUG TestLogCmd5 : Test\n{\n a: \"a\"\n}"
173
+ end
166
174
  end
167
175
 
168
176
  class TestLogCmd6 < HammerCLI::AbstractCommand
@@ -177,7 +185,11 @@ describe HammerCLI::AbstractCommand do
177
185
  HammerCLI::Settings.clear
178
186
  HammerCLI::Settings.load(:watch_plain => true)
179
187
  test_command.run []
180
- _(@log_output.read).must_include "DEBUG TestLogCmd6 : Test\n{\n :password => \"***\",\n \"password\" => \"***\"\n}"
188
+ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.1') # TODO: remove when Ruby 3.0 is not supported
189
+ _(@log_output.read).must_include "DEBUG TestLogCmd6 : Test\n{\n :password => \"***\",\n \"password\" => \"***\"\n}"
190
+ else
191
+ _(@log_output.read).must_include "DEBUG TestLogCmd6 : Test\n{\n password: \"***\",\n \"password\" => \"***\"\n}"
192
+ end
181
193
  end
182
194
 
183
195
  it "password parameters should be hidden in logs" do
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.16.0
4
+ version: 3.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Bačovský
8
8
  - Tomáš Strachota
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2025-08-13 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: amazing_print
@@ -166,6 +165,10 @@ executables:
166
165
  - hammer-complete
167
166
  extensions: []
168
167
  extra_rdoc_files:
168
+ - README.md
169
+ - config/cli.modules.d/module_config_template.yml
170
+ - config/cli_config.template.yml
171
+ - config/hammer.completion
169
172
  - doc/commands_extension.md
170
173
  - doc/commands_modification.md
171
174
  - doc/creating_apipie_commands.md
@@ -187,10 +190,6 @@ extra_rdoc_files:
187
190
  - doc/release_notes.md
188
191
  - doc/review_checklist.md
189
192
  - doc/writing_a_plugin.md
190
- - config/cli.modules.d/module_config_template.yml
191
- - config/cli_config.template.yml
192
- - config/hammer.completion
193
- - README.md
194
193
  files:
195
194
  - LICENSE
196
195
  - README.md
@@ -397,7 +396,6 @@ homepage: https://github.com/theforeman/hammer-cli
397
396
  licenses:
398
397
  - GPL-3.0-only
399
398
  metadata: {}
400
- post_install_message:
401
399
  rdoc_options: []
402
400
  require_paths:
403
401
  - lib
@@ -412,8 +410,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
412
410
  - !ruby/object:Gem::Version
413
411
  version: '0'
414
412
  requirements: []
415
- rubygems_version: 3.2.33
416
- signing_key:
413
+ rubygems_version: 3.6.9
417
414
  specification_version: 4
418
415
  summary: Universal command-line interface
419
416
  test_files: