tp 0.2.0 → 0.2.1

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/lib/tp/presenter.rb CHANGED
@@ -29,7 +29,7 @@ module TP
29
29
  end
30
30
 
31
31
  def slides
32
- result = markdown.split /^# /
32
+ result = markdown.split /^#/
33
33
  result.reject! &:empty?
34
34
  result.map! { |string| string.prepend "#" }
35
35
 
data/lib/tp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module TP
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -15,6 +15,10 @@ describe TP::Presenter do
15
15
  # Paragraph
16
16
 
17
17
  This is a really long paragraph. Kinda.
18
+
19
+ #
20
+
21
+ Blank header
18
22
  MD
19
23
  }
20
24
 
@@ -26,7 +30,7 @@ describe TP::Presenter do
26
30
  describe "#present" do
27
31
  it "works" do
28
32
  Keyboard.should_receive(:wait_for_return).exactly(1).times
29
- Screen.should_receive(:clear!).exactly(4).times
33
+ Screen.should_receive(:clear!).exactly(5).times
30
34
 
31
35
  presenter.present
32
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: