manpages 0.5.2 → 0.6.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
  SHA1:
3
- metadata.gz: 31689936ae2bec61f3abf9512fd089097f121b31
4
- data.tar.gz: 56a69086fef65aed4cb47a90fb0c8ba30c154cb0
3
+ metadata.gz: 4ceab10dec54e6a641b61ad77976c6e5ba0f8df2
4
+ data.tar.gz: d80bead93f3a2dc6a06743a6983837fd1c36edfc
5
5
  SHA512:
6
- metadata.gz: 81f9532311fdf4b36582dfc81f15e9fd8f51ff64637b559aea1bb572f6d1f78036843182cb558a93ef2397302a35cf0200147b8e4db07bccb97300aac5492060
7
- data.tar.gz: d58a6412aaa614a014bae7f2aed8f917ecad48836790d804d9a955cee9cb317e9a7f1bd11abd2ba5ae53b90fe71fadd88b5cfac03f5023d8d56275540f80840a
6
+ metadata.gz: e1a61d528ab9b40f511a51ce278b355b538d8626641cdae9f5392f4799dcf1d82d617e31cff0a5a0087b437c32642e70d8bec73b6d4bb25adc0a797196975a5e
7
+ data.tar.gz: 8a4883d1b86205141d2389004befb7f155799b9edc5b40afcd079d71e0b3e20d48b99be4ed2557881187d22336a4880f8a00d762cecde24e9315b32026022a42
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- manpages (0.5.2)
4
+ manpages (0.6.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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
@@ -16,9 +16,9 @@ module Manpages
16
16
  def manpages
17
17
  return [] unless man_dir.directory?
18
18
 
19
- man_dir.children(false).select do |file|
20
- file.extname =~ /.\d$/
21
- end.map {|file| man_dir.join(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)
@@ -1,3 +1,3 @@
1
1
  module Manpages
2
- VERSION = "0.5.2".freeze
2
+ VERSION = "0.6.0".freeze
3
3
  end
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.5.2
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-19 00:00:00.000000000 Z
11
+ date: 2016-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler