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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4bf0f5b64a04ff19b143dec8d636ec1739a93995
4
- data.tar.gz: 45b58b67cc55f5694d76ca7287df6a1e6751f68f
3
+ metadata.gz: 8841027aa65ce123a4a692d6d6be895552159ae3
4
+ data.tar.gz: fe12bdc303426c6a1cd0ca6398ea69dc93bfed46
5
5
  SHA512:
6
- metadata.gz: 1099135bb55d66c3e947bac4628ac08f4b94507b4043231fa6ba5da4f65812a9b6130a64855b4977fd457c3b78480cede64fa7d9842c302dacdab74f3beba3d8
7
- data.tar.gz: bc38df6d8cd3ba04685ac6a15aabf39e73d7f04ebf89f1819ea77a8491120dba84b206d00a20faeebf374ad71ad6b5a73ba5e8b118a4f6f035c487f49524930e
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
- new_string = match[:documentation_line].rstrip
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
@@ -1,4 +1,4 @@
1
1
  ## ## DoubleDoc 2.0
2
2
  module DoubleDoc
3
- VERSION = "2.1.1"
3
+ VERSION = "2.1.2"
4
4
  end
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.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: 2016-11-30 00:00:00.000000000 Z
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.4.5.1
165
+ rubygems_version: 2.6.8
166
166
  signing_key:
167
167
  specification_version: 4
168
168
  summary: Documentation right where you want it