tomdoc 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tomdoc/tomdoc.rb +5 -5
- data/lib/tomdoc/version.rb +1 -1
- metadata +4 -4
data/lib/tomdoc/tomdoc.rb
CHANGED
@@ -65,11 +65,11 @@ module TomDoc
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def tomdoc
|
68
|
-
raw
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
68
|
+
#raw
|
69
|
+
clean = raw.split("\n").map do |line|
|
70
|
+
line =~ /^(\s*# ?)/ ? line.sub($1, '') : nil
|
71
|
+
end.compact.join("\n")
|
72
|
+
clean
|
73
73
|
end
|
74
74
|
|
75
75
|
def sections
|
data/lib/tomdoc/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tomdoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tom Preston-Werner
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-06-
|
19
|
+
date: 2011-06-10 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: ruby_parser
|