tp 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8df174a10cfdf6a32af9a4f4e90cbe9e3fee7e3f
4
+ data.tar.gz: 09fd388bcbadf2371a9b5b0fe4f850fcb3a626d0
5
+ SHA512:
6
+ metadata.gz: 33e8fa433a10c5e1f4ec7d40e49359c6779aaff1862d1070ae6cf0037c257a5ce831381a645ec144dc505d6a1063c07243b225dddc7cb77c978f38d7a7ae0005
7
+ data.tar.gz: 219e2325bd97577ac576e636084c4ac9b4631a667d0fcef5665d4da651090a102944fcdcffde8a8ecb994af2ad8b2bedb411d863d4e708669a75ac29dc50e5bc
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
data/Rakefile CHANGED
@@ -4,10 +4,7 @@ require 'rspec/core/rake_task'
4
4
 
5
5
  task default: :ci
6
6
 
7
- task :ci do
8
- Rake::Task[:spec].invoke
9
- Rake::Task[:cane].invoke
10
- end
7
+ task ci: [:spec, :cane]
11
8
 
12
9
  Cane::RakeTask.new
13
10
  RSpec::Core::RakeTask.new
data/lib/tp/slide.rb CHANGED
@@ -16,9 +16,7 @@ module TP
16
16
  end
17
17
 
18
18
  def content
19
- result = lines[2, lines.count - 2]
20
-
21
- result.join if result
19
+ Array(lines[2, lines.count - 2]).join
22
20
  end
23
21
 
24
22
  def frames
data/lib/tp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module TP
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
@@ -11,4 +11,10 @@ describe TP::Slide do
11
11
 
12
12
  its(:header) { should == "First Slide" }
13
13
  its(:content) { should == "This is a slide with a paragraph" }
14
+
15
+ context "when there are no lines" do
16
+ let(:markdown) { "# First Slice\n" }
17
+
18
+ its(:content) { should eq("") }
19
+ end
14
20
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
5
- prerelease:
4
+ version: 0.6.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Justin Campbell
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-11 00:00:00.000000000 Z
11
+ date: 2013-07-31 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: coderay
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: prawn
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: thor
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -62,113 +55,99 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: cane
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: guard
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - '>='
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: guard-rspec
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - '>='
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - '>='
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: guard-cane
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ! '>='
101
+ - - '>='
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ! '>='
108
+ - - '>='
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0'
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: rake
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
- - - ! '>='
115
+ - - '>='
132
116
  - !ruby/object:Gem::Version
133
117
  version: '0'
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
- - - ! '>='
122
+ - - '>='
140
123
  - !ruby/object:Gem::Version
141
124
  version: '0'
142
125
  - !ruby/object:Gem::Dependency
143
126
  name: rspec
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
- - - ! '>='
129
+ - - '>='
148
130
  - !ruby/object:Gem::Version
149
131
  version: '0'
150
132
  type: :development
151
133
  prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
- - - ! '>='
136
+ - - '>='
156
137
  - !ruby/object:Gem::Version
157
138
  version: '0'
158
139
  - !ruby/object:Gem::Dependency
159
140
  name: simplecov
160
141
  requirement: !ruby/object:Gem::Requirement
161
- none: false
162
142
  requirements:
163
- - - ! '>='
143
+ - - '>='
164
144
  - !ruby/object:Gem::Version
165
145
  version: '0'
166
146
  type: :development
167
147
  prerelease: false
168
148
  version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
149
  requirements:
171
- - - ! '>='
150
+ - - '>='
172
151
  - !ruby/object:Gem::Version
173
152
  version: '0'
174
153
  description: Presents Markdown slides in your terminal
@@ -227,27 +206,26 @@ files:
227
206
  - tp.gemspec
228
207
  homepage: http://github.com/justincampbell/tp
229
208
  licenses: []
209
+ metadata: {}
230
210
  post_install_message:
231
211
  rdoc_options: []
232
212
  require_paths:
233
213
  - lib
234
214
  required_ruby_version: !ruby/object:Gem::Requirement
235
- none: false
236
215
  requirements:
237
- - - ! '>='
216
+ - - '>='
238
217
  - !ruby/object:Gem::Version
239
218
  version: '0'
240
219
  required_rubygems_version: !ruby/object:Gem::Requirement
241
- none: false
242
220
  requirements:
243
- - - ! '>='
221
+ - - '>='
244
222
  - !ruby/object:Gem::Version
245
223
  version: '0'
246
224
  requirements: []
247
225
  rubyforge_project:
248
- rubygems_version: 1.8.23
226
+ rubygems_version: 2.0.3
249
227
  signing_key:
250
- specification_version: 3
228
+ specification_version: 4
251
229
  summary: Terminal Presenter
252
230
  test_files:
253
231
  - spec/lib/keyboard_spec.rb