double_doc 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/double_doc/doc_extractor.rb +1 -8
- data/lib/double_doc/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8841027aa65ce123a4a692d6d6be895552159ae3
|
4
|
+
data.tar.gz: fe12bdc303426c6a1cd0ca6398ea69dc93bfed46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45715442c886ea371d1c95e61b42b8e402e14b6a807a263ee411bd2641f3277338426f1c9766e54f4dee1a381f5ec1d91c124219ae0155d996854c17e8421617
|
7
|
+
data.tar.gz: f9d7b579ed1beb18e3fd4213c13dabc3f4fa8519086387892a31acf834d3d580f215952d44195e59d47c1e13fc53a8a669ba275eb05ea8ad7c7d85e2beed35e6
|
@@ -28,20 +28,13 @@ module DoubleDoc
|
|
28
28
|
extractor = TYPES[options[:type]]
|
29
29
|
|
30
30
|
add_empty_line = false
|
31
|
-
append_to_previous = false
|
32
31
|
lines.each do |line|
|
33
32
|
if match = line.match(extractor)
|
34
33
|
if add_empty_line
|
35
34
|
doc << ''
|
36
35
|
add_empty_line = false
|
37
36
|
end
|
38
|
-
|
39
|
-
if append_to_previous
|
40
|
-
doc[-1] << new_string
|
41
|
-
else
|
42
|
-
doc << new_string
|
43
|
-
end
|
44
|
-
append_to_previous = !match[:newline_marker].empty?
|
37
|
+
doc << match[:documentation_line].rstrip
|
45
38
|
else
|
46
39
|
add_empty_line = !doc.empty?
|
47
40
|
end
|
data/lib/double_doc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: double_doc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mick Staugaard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
162
|
version: '0'
|
163
163
|
requirements: []
|
164
164
|
rubyforge_project:
|
165
|
-
rubygems_version: 2.
|
165
|
+
rubygems_version: 2.6.8
|
166
166
|
signing_key:
|
167
167
|
specification_version: 4
|
168
168
|
summary: Documentation right where you want it
|