tomdoc 0.2.4 → 0.2.5
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.
- data/Rakefile +4 -0
- data/lib/tomdoc/tomdoc.rb +2 -2
- data/lib/tomdoc/version.rb +1 -1
- metadata +6 -6
data/Rakefile
CHANGED
data/lib/tomdoc/tomdoc.rb
CHANGED
@@ -106,7 +106,7 @@ module TomDoc
|
|
106
106
|
end
|
107
107
|
|
108
108
|
# for some reason the first line is coming in without indention
|
109
|
-
# regardless
|
109
|
+
# regardless, so we temporary remove it
|
110
110
|
first = lines.shift
|
111
111
|
|
112
112
|
# remove indention
|
@@ -116,7 +116,7 @@ module TomDoc
|
|
116
116
|
md ? md[1].size : nil
|
117
117
|
end.compact
|
118
118
|
|
119
|
-
space = spaces.min
|
119
|
+
space = spaces.min || 0
|
120
120
|
lines = lines.map do |line|
|
121
121
|
if line.empty?
|
122
122
|
line.strip
|
data/lib/tomdoc/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tomdoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-02
|
13
|
+
date: 2012-03-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ruby_parser
|
17
|
-
requirement: &
|
17
|
+
requirement: &15954840 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 2.0.4
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *15954840
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: colored
|
28
|
-
requirement: &
|
28
|
+
requirement: &15954420 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *15954420
|
37
37
|
description: ! " TomDoc is flexible code documentation with human readers in\n mind.
|
38
38
|
The tomdoc gem is a Ruby library to discover and display\n TomDoc'd methods and
|
39
39
|
classes.\n\n Given a Ruby file with TomDoc'd methods, tomdoc can generate HTML
|