tp 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/string.rb +11 -0
- data/lib/tp/presenter.rb +4 -1
- data/lib/tp/version.rb +1 -1
- data/lib/tp.rb +1 -0
- data/spec/lib/string_spec.rb +10 -0
- metadata +5 -2
data/lib/string.rb
ADDED
data/lib/tp/presenter.rb
CHANGED
@@ -49,7 +49,10 @@ module TP
|
|
49
49
|
buffer << "\n\n"
|
50
50
|
|
51
51
|
if slide.paragraph
|
52
|
-
|
52
|
+
paragraph = slide.paragraph.wrap Screen.width
|
53
|
+
paragraph = paragraph.center Screen.width if paragraph.lines.one?
|
54
|
+
|
55
|
+
buffer << paragraph
|
53
56
|
else
|
54
57
|
slide.bullets.each { |string| buffer << "#{bullet}#{string}\n" }
|
55
58
|
end
|
data/lib/tp/version.rb
CHANGED
data/lib/tp.rb
CHANGED
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.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard-rspec
|
@@ -94,6 +94,7 @@ files:
|
|
94
94
|
- bin/tp
|
95
95
|
- lib/keyboard.rb
|
96
96
|
- lib/screen.rb
|
97
|
+
- lib/string.rb
|
97
98
|
- lib/tp.rb
|
98
99
|
- lib/tp/presenter.rb
|
99
100
|
- lib/tp/slide.rb
|
@@ -101,6 +102,7 @@ files:
|
|
101
102
|
- lib/tp/version.rb
|
102
103
|
- spec/lib/keyboard_spec.rb
|
103
104
|
- spec/lib/screen_spec.rb
|
105
|
+
- spec/lib/string_spec.rb
|
104
106
|
- spec/lib/tp/presenter_spec.rb
|
105
107
|
- spec/lib/tp/slide_spec.rb
|
106
108
|
- spec/lib/tp_spec.rb
|
@@ -134,6 +136,7 @@ summary: tp
|
|
134
136
|
test_files:
|
135
137
|
- spec/lib/keyboard_spec.rb
|
136
138
|
- spec/lib/screen_spec.rb
|
139
|
+
- spec/lib/string_spec.rb
|
137
140
|
- spec/lib/tp/presenter_spec.rb
|
138
141
|
- spec/lib/tp/slide_spec.rb
|
139
142
|
- spec/lib/tp_spec.rb
|