hammer_cli 3.2.0 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17f58fd9560500629473f107167076c735526a1a503fa5c7676d7c0da2dd160e
4
- data.tar.gz: cf66853b504d0081194fa88192cb6fd7fb007270c26b81276be7ab64ba89aa5f
3
+ metadata.gz: 8a4ae8103129f5454bb936dbb55071ee6710e70f7ea90404d8f32f024d006b18
4
+ data.tar.gz: 928d97708685626852128ba704d638a7c02e5119d122cd658ae8421780f73854
5
5
  SHA512:
6
- metadata.gz: 7e8838aca5dc25c9374a0747f8528f9594a79f0554e1ddff7728378a688458c835e7cab898abf85c06a37802aa019f8d1eda4883fcef8e1639d23e655eca3217
7
- data.tar.gz: 3f25216e7fc377aad69858ecfa602206da549ae2d214df29990da055d91459088f2a1c95379560af254c755bc5838e11934e6a28bd1109c503390513b9cf4ebf
6
+ metadata.gz: 5b9e62f788e6f7e70a72a4f588d955cc9fd9b690e7ec074098f52805a61a721294a51c35fb92202c4dda4c18752e1694409ebaa67285be5bc350ae20cf47ff51
7
+ data.tar.gz: ea53be858296c5a99db9c2cc11ce9e1916b807863972dec3da6412633d51019cbdfc5758dfb37a20aca55e81d755f7cd43a018c5b881e399811c80c7f7f92396
data/doc/release_notes.md CHANGED
@@ -1,5 +1,9 @@
1
1
  Release notes
2
2
  =============
3
+ ### 3.3.0 (2022-05-10)
4
+ * Fix hammer shell with pipe as stdin ([PR #360](https://github.com/theforeman/hammer-cli/pull/360)), [#34724](http://projects.theforeman.org/issues/34724)
5
+ * Bump to 3.3.0-develop
6
+
3
7
  ### 3.2.0 (2022-02-10)
4
8
  * Fix fr translation ([PR #358](https://github.com/theforeman/hammer-cli/pull/358)), [#34204](http://projects.theforeman.org/issues/34204)
5
9
  * Add missing_args_error_result test helper ([PR #357](https://github.com/theforeman/hammer-cli/pull/357))
@@ -86,7 +86,7 @@ module HammerCLI
86
86
  Readline.completer_word_break_characters = ' ='
87
87
  Readline.completion_proc = complete_proc
88
88
 
89
- stty_save = `stty -g`.chomp
89
+ stty_save = `stty -g`.chomp if $stdin.tty?
90
90
 
91
91
  history = ShellHistory.new(Settings.get(:ui, :history_file) || DEFAULT_HISTORY_FILE)
92
92
 
@@ -102,7 +102,8 @@ module HammerCLI
102
102
  rescue Interrupt; end
103
103
 
104
104
  puts
105
- system('stty', stty_save) # Restore
105
+ # Restore
106
+ system('stty', stty_save) if $stdin.tty?
106
107
  HammerCLI::EX_OK
107
108
  end
108
109
 
@@ -1,5 +1,5 @@
1
1
  module HammerCLI
2
2
  def self.version
3
- @version ||= Gem::Version.new "3.2.0"
3
+ @version ||= Gem::Version.new "3.3.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
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Bačovský
8
8
  - Tomáš Strachota
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-02-10 00:00:00.000000000 Z
12
+ date: 2022-05-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: clamp
@@ -135,17 +135,17 @@ dependencies:
135
135
  requirements:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: 0.2.0
138
+ version: 0.5.0
139
139
  type: :runtime
140
140
  prerelease: false
141
141
  version_requirements: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 0.2.0
145
+ version: 0.5.0
146
146
  description: 'Hammer cli provides universal extendable CLI interface for ruby apps
147
147
 
148
- '
148
+ '
149
149
  email: mbacovsk@redhat.com
150
150
  executables:
151
151
  - hammer
@@ -174,8 +174,8 @@ extra_rdoc_files:
174
174
  - doc/output.md
175
175
  - doc/review_checklist.md
176
176
  - config/cli.modules.d/module_config_template.yml
177
- - config/cli_config.template.yml
178
177
  - config/hammer.completion
178
+ - config/cli_config.template.yml
179
179
  - README.md
180
180
  files:
181
181
  - LICENSE
@@ -379,7 +379,7 @@ homepage: https://github.com/theforeman/hammer-cli
379
379
  licenses:
380
380
  - GPL-3.0
381
381
  metadata: {}
382
- post_install_message:
382
+ post_install_message:
383
383
  rdoc_options: []
384
384
  require_paths:
385
385
  - lib
@@ -395,7 +395,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
395
395
  version: '0'
396
396
  requirements: []
397
397
  rubygems_version: 3.1.2
398
- signing_key:
398
+ signing_key:
399
399
  specification_version: 4
400
400
  summary: Universal command-line interface
401
401
  test_files:
@@ -414,8 +414,8 @@ test_files:
414
414
  - test/unit/connection_test.rb
415
415
  - test/unit/csv_parser_test.rb
416
416
  - test/unit/defaults_test.rb
417
- - test/unit/fixtures/apipie/architectures.json
418
417
  - test/unit/fixtures/apipie/documented.json
418
+ - test/unit/fixtures/apipie/architectures.json
419
419
  - test/unit/fixtures/certs/ca_cert.pem
420
420
  - test/unit/fixtures/certs/non_ca_cert.pem
421
421
  - test/unit/fixtures/defaults/defaults.yml