cli_markdown 0.1.1 → 0.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: 712013ecc2ea35c7a18e1c45f55693d6af97ad19d9bfc6f0cb5686338a7a4ebd
4
- data.tar.gz: 54b20339e4abbcb120396e786d266c1fa2f33be1df340b4fd88bb07ae22ab290
3
+ metadata.gz: 3395ee3d4d02aeab220f8dc804d0ce22a6ffc874cfb1161147ea3b4ba7ac2f34
4
+ data.tar.gz: a929398aeb1e43fcfbcd4581de1f8027bd03461962cb0f2629a75160c262d2d9
5
5
  SHA512:
6
- metadata.gz: 0d55af80f96888c34cda3e69e7def870c8167da6a079ca039ec0618982b28ebeadeb44bb79c4b42d9cd5a31dee7ea6f0297c9aaf9c19fc507e175a6396db0b8b
7
- data.tar.gz: 35b49d783caccc6ae3fb05b348841ee5f02ae6fc66e882d8739d0c09510850634a7576dd1402addca9d5c958e053a4d86331ef653ae1daf2f96ecdb8d3a16c06
6
+ metadata.gz: 9c73f301fce9233277012b134bcabd71df05426cd1c46ff7f8001bfe3dd588f1ab96341d33e085236e17fa42e530fa65c18a265f82f14976124bc8ac02a90c5f
7
+ data.tar.gz: 77035faa1dbbc0e67454c28abd82bee1c4517b8bd07d2139e4b0d6c3c97581c6b6036aef88e941cccbabad1b4f23a6e5462fbb3e1bcbd4c149864b967b76cea8
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
  /docs
10
10
  /Gemfile
11
11
  /bin
12
+
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ ## [0.1.2] - 2021-12-29
4
+ - dont generate docs for hidden commands
5
+
3
6
  ## [0.1.1] - 2021-12-29
4
7
  - fix cli markdown initialize options
5
8
 
@@ -25,7 +25,8 @@ module CliMarkdown
25
25
  def create_all
26
26
  create_index unless @parent_command_name
27
27
 
28
- @cli_class.commands.keys.each do |command_name|
28
+ commands = @cli_class.commands.reject { |command_name, command| command.hidden? }
29
+ commands.keys.each do |command_name|
29
30
  page = Page.new(
30
31
  cli_class: @cli_class,
31
32
  cli_name: @cli_name,
@@ -10,7 +10,8 @@ module CliMarkdown
10
10
  end
11
11
 
12
12
  def command_list
13
- @cli_class.commands.keys.sort.map.each do |command_name|
13
+ commands = @cli_class.commands.reject { |command_name, command| command.hidden? }
14
+ commands.keys.sort.map.each do |command_name|
14
15
  page = Page.new(
15
16
  cli_class: @cli_class,
16
17
  cli_name: @cli_name,
@@ -1,3 +1,3 @@
1
1
  module CliMarkdown
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cli_markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
@@ -63,7 +63,6 @@ files:
63
63
  - ".rspec"
64
64
  - CHANGELOG.md
65
65
  - Gemfile
66
- - Gemfile.lock
67
66
  - README.md
68
67
  - Rakefile
69
68
  - cli_markdown.gemspec
data/Gemfile.lock DELETED
@@ -1,35 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- cli_markdown (0.1.1)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- diff-lcs (1.5.0)
10
- rake (13.0.6)
11
- rspec (3.10.0)
12
- rspec-core (~> 3.10.0)
13
- rspec-expectations (~> 3.10.0)
14
- rspec-mocks (~> 3.10.0)
15
- rspec-core (3.10.1)
16
- rspec-support (~> 3.10.0)
17
- rspec-expectations (3.10.1)
18
- diff-lcs (>= 1.2.0, < 2.0)
19
- rspec-support (~> 3.10.0)
20
- rspec-mocks (3.10.2)
21
- diff-lcs (>= 1.2.0, < 2.0)
22
- rspec-support (~> 3.10.0)
23
- rspec-support (3.10.3)
24
-
25
- PLATFORMS
26
- x86_64-linux
27
-
28
- DEPENDENCIES
29
- bundler
30
- cli_markdown!
31
- rake
32
- rspec
33
-
34
- BUNDLED WITH
35
- 2.2.32