binman 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,15 @@
1
+ ## Version 3.1.1 (2012-10-13)
2
+
3
+ Patch:
4
+
5
+ * load() failed when leading comment header missing
6
+
7
+ * lstrip() is too powerful; consume lines carefully
8
+
9
+ Other:
10
+
11
+ * fix broken link to redcarpet library home page
12
+
1
13
  ## Version 3.1.0 (2012-02-06)
2
14
 
3
15
  Minor:
data/bin/binman CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  =begin =======================================================================
3
3
 
4
- # BINMAN 1 2012-02-06 3.1.0
4
+ # BINMAN 1 2012-10-13 3.1.1
5
5
 
6
6
  ## NAME
7
7
 
@@ -92,7 +92,7 @@ man(1), roff(7), markdown(7)
92
92
 
93
93
  [binman]: https://github.com/sunaku/binman
94
94
  [md2man]: https://github.com/sunaku/md2man
95
- [Redcarpet]: https://github.com/tanoku/redcarpet
95
+ [Redcarpet]: https://github.com/vmg/redcarpet
96
96
 
97
97
  =end =========================================================================
98
98
 
@@ -18,14 +18,14 @@ module BinMan
18
18
  header = read(source)
19
19
 
20
20
  # strip shebang and encoding comments
21
- [/\A#!.+$/, /\A#.*coding:.+$/].each do |comment|
22
- header = $'.lstrip if header =~ comment
23
- end
21
+ header.sub! /\A#!.+\n?/, ''
22
+ header.sub! /\A#.*coding:.+\n?/, ''
24
23
 
25
- if header =~ /\A#/
24
+ # extract the leading comment header
25
+ if header =~ /\A\s*^#/
26
26
  header.split(/^\s*$/, 2).first.gsub(/^# ?/, '')
27
27
  else
28
- header[/^=begin\b.*?$(.*?)^=end\b.*?$/m, 1]
28
+ header[/^=begin\b.*?$(.*?)^=end\b.*?$/m, 1].to_s
29
29
  end.strip
30
30
  end
31
31
 
@@ -1,3 +1,3 @@
1
1
  module BinMan
2
- VERSION = "3.1.0"
2
+ VERSION = "3.1.1"
3
3
  end
@@ -1,4 +1,4 @@
1
- .TH BINMAN 1 2012\-02\-06 3.1.0
1
+ .TH BINMAN 1 2012\-10\-13 3.1.1
2
2
  .SH NAME
3
3
  .PP
4
4
  binman \- man pages for bin scripts
@@ -67,7 +67,7 @@ output.
67
67
  .SS Markdown processing extensions
68
68
  .PP
69
69
  The following Redcarpet
70
- .UR https://github.com/tanoku/redcarpet
70
+ .UR https://github.com/vmg/redcarpet
71
71
  .UE
72
72
  extensions are enabled while processing
73
73
  .BR markdown (7):
@@ -81,9 +81,9 @@ superscript
81
81
  .IP \(bu 2
82
82
  strikethrough
83
83
  .IP \(bu 2
84
- no_intra_emphasis
84
+ no\fIintra\fPemphasis
85
85
  .IP \(bu 2
86
- fenced_code_blocks
86
+ fenced\fIcode\fPblocks
87
87
  .RE
88
88
  .SH OPTIONS
89
89
  .TP
@@ -129,4 +129,4 @@ document read from the given
129
129
  .PP
130
130
  .BR man (1),
131
131
  .BR roff (7),
132
- .BR markdown (7)
132
+ .BR markdown (7)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: binman
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-06 00:00:00.000000000 Z
12
+ date: 2012-10-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: md2man
16
- requirement: &16648520 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '1'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *16648520
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: rake
27
- requirement: &16906320 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -35,7 +40,15 @@ dependencies:
35
40
  version: '1'
36
41
  type: :development
37
42
  prerelease: false
38
- version_requirements: *16906320
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: 0.9.2.2
49
+ - - <
50
+ - !ruby/object:Gem::Version
51
+ version: '1'
39
52
  description: Produces UNIX manual pages for executable scripts.
40
53
  email:
41
54
  - sunaku@gmail.com
@@ -68,21 +81,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
81
  - - ! '>='
69
82
  - !ruby/object:Gem::Version
70
83
  version: '0'
71
- segments:
72
- - 0
73
- hash: 1200769804944669574
74
84
  required_rubygems_version: !ruby/object:Gem::Requirement
75
85
  none: false
76
86
  requirements:
77
87
  - - ! '>='
78
88
  - !ruby/object:Gem::Version
79
89
  version: '0'
80
- segments:
81
- - 0
82
- hash: 1200769804944669574
83
90
  requirements: []
84
91
  rubyforge_project:
85
- rubygems_version: 1.8.11
92
+ rubygems_version: 1.8.23
86
93
  signing_key:
87
94
  specification_version: 3
88
95
  summary: man pages for bin scripts