hammer_cli 2.1.1 → 2.1.2

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: 8e7d0cc6fea99d3276fb653e462448bddc6b8977e0e5ed9df2a1f257365bee84
4
- data.tar.gz: 72123cef1ffaafb8979ff5e6bac55ca0fa9776e88800327ad41b48404a3a6284
3
+ metadata.gz: bc020640c6f4416caa469fe39b9c029bd7feec0730a626636753046b400ac3be
4
+ data.tar.gz: aa7fc51d9a7ec86bb2ba0b512c9272696a399272bf90ed8e40604bfe849247dc
5
5
  SHA512:
6
- metadata.gz: 1514dfe8e1059a70da7af58887e9763d604eaec59ec438af136b2a430338ba0c4c9222e4e86f275fb12135165dabb1f51281daaba5ba48924e32d206307bd94e
7
- data.tar.gz: a17a67150e2bf0fb293f167d72cc5425e0fe0ebc9eb57c30144e5be952dbb45d8e370257408893727cfadcf3ce6d2607e098f90a1eb40955ff0dc98dc1ac39f1
6
+ metadata.gz: b271be2146f0d730bb71e66b6ab785481b2a81ac762e101337936dcee5ae540468b060b11753ca732d5a26ded757365f2d6f52db9bee7031c767ec1db6f3f654
7
+ data.tar.gz: 23bfbb0ff4bbe1f556860fce41a14a39a7e17890807d85f96d09e9ff101cc254275ecce8b42f8502518da7f452f6a5101b318569f51b61a880eff4c914980d40
@@ -1,5 +1,8 @@
1
1
  Release notes
2
2
  =============
3
+ ### 2.1.2 (2020-09-04)
4
+ * Make fuzzy search work in hammer shell ([PR #335](https://github.com/theforeman/hammer-cli/pull/335)), [#30747](http://projects.theforeman.org/issues/30747)
5
+
3
6
  ### 2.1.1 (2020-05-29)
4
7
  * Clean gem_release.ipynb up
5
8
  * Replace awesome_print with amazing_print ([PR #330](https://github.com/theforeman/hammer-cli/pull/330)), [#29846](http://projects.theforeman.org/issues/29846)
@@ -61,25 +61,6 @@ module HammerCLI
61
61
  label = HighLine.color(label, :bold) if @richtext
62
62
  puts label
63
63
  end
64
-
65
- private
66
-
67
- def expand_invocation_path(path)
68
- bits = path.split(' ')
69
- parent_command = HammerCLI::MainCommand
70
- new_path = (bits[1..-1] || []).each_with_object([]) do |bit, names|
71
- subcommand = parent_command.find_subcommand(bit)
72
- next if subcommand.nil?
73
-
74
- names << if subcommand.names.size > 1
75
- "<#{subcommand.names.join('|')}>"
76
- else
77
- subcommand.names.first
78
- end
79
- parent_command = subcommand.subcommand_class
80
- end
81
- new_path.unshift(bits.first).join(' ')
82
- end
83
64
  end
84
65
  end
85
66
  end
@@ -121,7 +121,7 @@ module HammerCLI
121
121
  bits = path.split(' ')
122
122
  parent_command = HammerCLI::MainCommand
123
123
  new_path = (bits[1..-1] || []).each_with_object([]) do |bit, names|
124
- subcommand = parent_command.find_subcommand(bit)
124
+ subcommand = parent_command.find_subcommand(bit, fuzzy: false)
125
125
  next if subcommand.nil?
126
126
 
127
127
  names << if subcommand.names.size > 1
@@ -1,5 +1,5 @@
1
1
  module HammerCLI
2
2
  def self.version
3
- @version ||= Gem::Version.new "2.1.1"
3
+ @version ||= Gem::Version.new "2.1.2"
4
4
  end
5
5
  end
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: 2.1.1
4
+ version: 2.1.2
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: 2020-05-29 00:00:00.000000000 Z
12
+ date: 2020-09-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: clamp
@@ -165,13 +165,13 @@ extra_rdoc_files:
165
165
  - doc/installation.md
166
166
  - doc/installation_deb.md
167
167
  - doc/installation_gem.md
168
- - doc/installation_rpm.md
169
- - doc/installation_source.md
170
168
  - doc/option_builders.md
171
169
  - doc/option_normalizers.md
172
170
  - doc/output.md
173
171
  - doc/review_checklist.md
174
172
  - doc/writing_a_plugin.md
173
+ - doc/installation_rpm.md
174
+ - doc/installation_source.md
175
175
  - doc/release_notes.md
176
176
  - config/cli.modules.d/module_config_template.yml
177
177
  - config/cli_config.template.yml