notes-structured-text-strip-bodies 0.1.2 → 0.1.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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.5
@@ -53,7 +53,10 @@ module NotesStructuredTextStripBodies
53
53
 
54
54
  def strip(output, input)
55
55
  while block=read_block(input)
56
- block.each{|l| output << l << "\n"} if is_header_block?(block)
56
+ if is_header_block?(block)
57
+ block.each{|l| output << l << "\n"}
58
+ output << "\n"
59
+ end
57
60
  end
58
61
  end
59
62
  end
@@ -133,7 +133,7 @@ EOF
133
133
  mock(NotesStructuredTextStripBodies).is_header_block?(block3){true}
134
134
 
135
135
  mock(output).<<(block1[0]){output}
136
- mock(output).<<("\n").times(5){output}
136
+ mock(output).<<("\n").times(7){output}
137
137
  mock(output).<<(block1[1]){output}
138
138
  mock(output).<<(block1[2]){output}
139
139
  mock(output).<<(block3[0]){output}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notes-structured-text-strip-bodies
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - mccraigmccraig