manpages 0.5.2 → 0.6.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/Gemfile.lock +1 -1
- data/README.md +2 -0
- data/lib/manpages/man_files.rb +3 -3
- data/lib/manpages/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ceab10dec54e6a641b61ad77976c6e5ba0f8df2
|
|
4
|
+
data.tar.gz: d80bead93f3a2dc6a06743a6983837fd1c36edfc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e1a61d528ab9b40f511a51ce278b355b538d8626641cdae9f5392f4799dcf1d82d617e31cff0a5a0087b437c32642e70d8bec73b6d4bb25adc0a797196975a5e
|
|
7
|
+
data.tar.gz: 8a4883d1b86205141d2389004befb7f155799b9edc5b40afcd079d71e0b3e20d48b99be4ed2557881187d22336a4880f8a00d762cecde24e9315b32026022a42
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -54,6 +54,8 @@ The most common way in the ruby world to create a man page is through a tool
|
|
|
54
54
|
called [ronn](https://github.com/rtomayko/ronn#readme). Ronn uses a modified
|
|
55
55
|
variant of markdown as source file. More details about the format can be found
|
|
56
56
|
[here](https://github.com/rtomayko/ronn/blob/master/man/ronn-format.7.ronn).
|
|
57
|
+
In the newest version [kramdown](http://kramdown.gettalong.org/converter/man.html) also
|
|
58
|
+
is able to generate man pages.
|
|
57
59
|
|
|
58
60
|
Make sure the resulting manpage is in a folder called `man` in the root of the
|
|
59
61
|
gem. Files stored in that directory will automatically be exposed to the
|
data/lib/manpages/man_files.rb
CHANGED
|
@@ -16,9 +16,9 @@ module Manpages
|
|
|
16
16
|
def manpages
|
|
17
17
|
return [] unless man_dir.directory?
|
|
18
18
|
|
|
19
|
-
man_dir.
|
|
20
|
-
file
|
|
21
|
-
end.map {|file|
|
|
19
|
+
Dir[man_dir.join("**/*")].select do |file|
|
|
20
|
+
file =~ /\.\d$/
|
|
21
|
+
end.map {|file| Pathname.new(file) }
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def man_file_path(file)
|
data/lib/manpages/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: manpages
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bodo Tasche
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-12-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|