tigefa 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.markdown +0 -144
- data/LICENSE +1 -1
- data/README.markdown +6 -10
- data/Rakefile +6 -13
- data/bin/tigefa +22 -26
- data/features/create_sites.feature +0 -11
- data/features/include_tag.feature +0 -22
- data/features/markdown.feature +4 -41
- data/features/site_configuration.feature +4 -33
- data/features/site_data.feature +4 -4
- data/features/step_definitions/{tigefa_steps.rb → jekyll_steps.rb} +17 -32
- data/features/support/env.rb +2 -38
- data/lib/site_template/_config.yml +2 -2
- data/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb +1 -0
- data/lib/site_template/css/main.css +15 -15
- data/lib/tigefa.rb +2 -5
- data/lib/tigefa/cleaner.rb +8 -8
- data/lib/tigefa/commands/build.rb +8 -14
- data/lib/tigefa/commands/new.rb +1 -1
- data/lib/tigefa/commands/serve.rb +0 -2
- data/lib/tigefa/configuration.rb +5 -21
- data/lib/tigefa/converters/markdown/kramdown_parser.rb +1 -1
- data/lib/tigefa/converters/markdown/maruku_parser.rb +1 -6
- data/lib/tigefa/convertible.rb +6 -17
- data/lib/tigefa/core_ext.rb +0 -19
- data/lib/tigefa/deprecator.rb +1 -1
- data/lib/tigefa/filters.rb +2 -12
- data/lib/tigefa/generators/pagination.rb +6 -9
- data/lib/tigefa/page.rb +1 -1
- data/lib/tigefa/post.rb +4 -4
- data/lib/tigefa/related_posts.rb +1 -1
- data/lib/tigefa/site.rb +50 -90
- data/lib/tigefa/stevenson.rb +4 -4
- data/lib/tigefa/tags/gist.rb +1 -9
- data/lib/tigefa/tags/highlight.rb +1 -1
- data/lib/tigefa/tags/include.rb +32 -75
- data/lib/tigefa/tags/post_url.rb +4 -6
- data/lib/tigefa/url.rb +0 -2
- data/site/_includes/docs_contents.html +1 -1
- data/site/_includes/docs_contents_mobile.html +1 -1
- data/site/_includes/top.html +1 -1
- data/site/docs/configuration.md +0 -19
- data/site/docs/deployment-methods.md +3 -3
- data/site/docs/drafts.md +3 -4
- data/site/docs/history.md +3 -147
- data/site/docs/installation.md +0 -10
- data/site/docs/migrations.md +240 -3
- data/site/docs/pages.md +7 -7
- data/site/docs/pagination.md +37 -16
- data/site/docs/plugins.md +7 -72
- data/site/docs/posts.md +1 -1
- data/site/docs/structure.md +0 -17
- data/site/docs/templates.md +7 -40
- data/site/docs/upgrading.md +3 -3
- data/site/docs/usage.md +1 -1
- data/site/docs/variables.md +2 -2
- data/test/helper.rb +1 -4
- data/test/test_configuration.rb +7 -16
- data/test/test_convertible.rb +1 -1
- data/test/test_excerpt.rb +3 -3
- data/test/test_filters.rb +0 -11
- data/test/test_generated_site.rb +1 -1
- data/test/test_kramdown.rb +5 -32
- data/test/test_new_command.rb +1 -1
- data/test/test_page.rb +0 -10
- data/test/test_post.rb +1 -12
- data/test/test_redcloth.rb +3 -3
- data/test/test_site.rb +64 -58
- data/test/test_tags.rb +35 -68
- data/tigefa.gemspec +15 -39
- metadata +101 -126
- checksums.yaml +0 -7
- data/features/data.feature +0 -65
- data/lib/tigefa/entry_filter.rb +0 -35
- data/site/_posts/2013-10-28-jekyll-1-3-0-rc1-released.markdown +0 -19
- data/site/_posts/2013-11-04-jekyll-1-3-0-released.markdown +0 -43
- data/site/_posts/2013-11-26-jekyll-1-3-1-released.markdown +0 -21
- data/site/_posts/2013-12-07-jekyll-1-4-0-released.markdown +0 -30
- data/site/_posts/2013-12-16-jekyll-1-4-2-released.markdown +0 -18
- data/site/_posts/2014-01-13-jekyll-1-4-3-released.markdown +0 -27
- data/site/docs/datafiles.md +0 -63
- data/test/source/_config.dev.toml +0 -2
- data/test/source/_data/languages.yml +0 -2
- data/test/source/_data/members.yaml +0 -7
- data/test/source/_data/products.yml +0 -1
- data/test/source/_includes/tmp +0 -1
- data/test/source/_layouts/post/simple.html +0 -1
- data/test/source/_posts/2014-01-06-permalink-traversal.md +0 -5
- data/test/source/exploit.md +0 -5
- data/test/source/products.yml +0 -4
- data/test/source/symlink-test/_data +0 -1
- data/test/test_entry_filter.rb +0 -74
data/test/test_redcloth.rb
CHANGED
@@ -7,7 +7,7 @@ class TestRedCloth < Test::Unit::TestCase
|
|
7
7
|
@textile = Converters::Textile.new
|
8
8
|
end
|
9
9
|
|
10
|
-
should "preserve single line breaks in HTML output" do
|
10
|
+
should "preserve single line breaks in HTML output" do
|
11
11
|
assert_equal "<p>line1<br />\nline2</p>", @textile.convert("p. line1\nline2").strip
|
12
12
|
end
|
13
13
|
end
|
@@ -20,7 +20,7 @@ class TestRedCloth < Test::Unit::TestCase
|
|
20
20
|
@textile = Converters::Textile.new config
|
21
21
|
end
|
22
22
|
|
23
|
-
should "preserve single line breaks in HTML output" do
|
23
|
+
should "preserve single line breaks in HTML output" do
|
24
24
|
assert_equal "<p>line1<br />\nline2</p>", @textile.convert("p. line1\nline2").strip
|
25
25
|
end
|
26
26
|
end
|
@@ -35,7 +35,7 @@ class TestRedCloth < Test::Unit::TestCase
|
|
35
35
|
@textile = Converters::Textile.new config
|
36
36
|
end
|
37
37
|
|
38
|
-
should "preserve single line breaks in HTML output" do
|
38
|
+
should "preserve single line breaks in HTML output" do
|
39
39
|
assert_equal "<p>line1<br />\nline2</p>", @textile.convert("p. line1\nline2").strip
|
40
40
|
end
|
41
41
|
end
|
data/test/test_site.rb
CHANGED
@@ -156,7 +156,7 @@ class TestSite < Test::Unit::TestCase
|
|
156
156
|
|
157
157
|
should "read layouts" do
|
158
158
|
@site.read_layouts
|
159
|
-
assert_equal ["default", "simple"
|
159
|
+
assert_equal ["default", "simple"].sort, @site.layouts.keys.sort
|
160
160
|
end
|
161
161
|
|
162
162
|
should "read posts" do
|
@@ -179,6 +179,69 @@ class TestSite < Test::Unit::TestCase
|
|
179
179
|
assert_equal 4, @site.categories['foo'].size
|
180
180
|
end
|
181
181
|
|
182
|
+
should "filter entries" do
|
183
|
+
ent1 = %w[foo.markdown bar.markdown baz.markdown #baz.markdown#
|
184
|
+
.baz.markdow foo.markdown~]
|
185
|
+
ent2 = %w[.htaccess _posts _pages bla.bla]
|
186
|
+
|
187
|
+
assert_equal %w[foo.markdown bar.markdown baz.markdown], @site.filter_entries(ent1)
|
188
|
+
assert_equal %w[.htaccess bla.bla], @site.filter_entries(ent2)
|
189
|
+
end
|
190
|
+
|
191
|
+
should "filter entries with exclude" do
|
192
|
+
excludes = %w[README TODO]
|
193
|
+
files = %w[index.html site.css .htaccess]
|
194
|
+
|
195
|
+
@site.exclude = excludes + ["exclude*"]
|
196
|
+
assert_equal files, @site.filter_entries(excludes + files + ["excludeA"])
|
197
|
+
end
|
198
|
+
|
199
|
+
should "not filter entries within include" do
|
200
|
+
includes = %w[_index.html .htaccess include*]
|
201
|
+
files = %w[index.html _index.html .htaccess includeA]
|
202
|
+
|
203
|
+
@site.include = includes
|
204
|
+
assert_equal files, @site.filter_entries(files)
|
205
|
+
end
|
206
|
+
|
207
|
+
should "filter symlink entries when safe mode enabled" do
|
208
|
+
stub(Tigefa).configuration do
|
209
|
+
Tigefa::Configuration::DEFAULTS.merge({'source' => source_dir, 'destination' => dest_dir, 'safe' => true})
|
210
|
+
end
|
211
|
+
site = Site.new(Tigefa.configuration)
|
212
|
+
stub(File).symlink?('symlink.js') {true}
|
213
|
+
files = %w[symlink.js]
|
214
|
+
assert_equal [], site.filter_entries(files)
|
215
|
+
end
|
216
|
+
|
217
|
+
should "not filter symlink entries when safe mode disabled" do
|
218
|
+
stub(File).symlink?('symlink.js') {true}
|
219
|
+
files = %w[symlink.js]
|
220
|
+
assert_equal files, @site.filter_entries(files)
|
221
|
+
end
|
222
|
+
|
223
|
+
should "not include symlinks in safe mode" do
|
224
|
+
stub(Tigefa).configuration do
|
225
|
+
Tigefa::Configuration::DEFAULTS.merge({'source' => source_dir, 'destination' => dest_dir, 'safe' => true})
|
226
|
+
end
|
227
|
+
site = Site.new(Tigefa.configuration)
|
228
|
+
|
229
|
+
site.read_directories("symlink-test")
|
230
|
+
assert_equal [], site.pages
|
231
|
+
assert_equal [], site.static_files
|
232
|
+
end
|
233
|
+
|
234
|
+
should "include symlinks in unsafe mode" do
|
235
|
+
stub(Tigefa).configuration do
|
236
|
+
Tigefa::Configuration::DEFAULTS.merge({'source' => source_dir, 'destination' => dest_dir, 'safe' => false})
|
237
|
+
end
|
238
|
+
site = Site.new(Tigefa.configuration)
|
239
|
+
|
240
|
+
site.read_directories("symlink-test")
|
241
|
+
assert_not_equal [], site.pages
|
242
|
+
assert_not_equal [], site.static_files
|
243
|
+
end
|
244
|
+
|
182
245
|
context 'error handling' do
|
183
246
|
should "raise if destination is included in source" do
|
184
247
|
stub(Tigefa).configuration do
|
@@ -272,62 +335,5 @@ class TestSite < Test::Unit::TestCase
|
|
272
335
|
end
|
273
336
|
end
|
274
337
|
|
275
|
-
context 'data directory' do
|
276
|
-
should 'auto load yaml files' do
|
277
|
-
site = Site.new(Tigefa.configuration)
|
278
|
-
site.process
|
279
|
-
|
280
|
-
file_content = YAML.safe_load_file(File.join(source_dir, '_data', 'members.yaml'))
|
281
|
-
|
282
|
-
assert_equal site.data['members'], file_content
|
283
|
-
assert_equal site.site_payload['site']['data']['members'], file_content
|
284
|
-
end
|
285
|
-
|
286
|
-
should 'auto load yml files' do
|
287
|
-
site = Site.new(Tigefa.configuration)
|
288
|
-
site.process
|
289
|
-
|
290
|
-
file_content = YAML.safe_load_file(File.join(source_dir, '_data', 'languages.yml'))
|
291
|
-
|
292
|
-
assert_equal site.data['languages'], file_content
|
293
|
-
assert_equal site.site_payload['site']['data']['languages'], file_content
|
294
|
-
end
|
295
|
-
|
296
|
-
should "load symlink files in unsafe mode" do
|
297
|
-
site = Site.new(Tigefa.configuration.merge({'safe' => false}))
|
298
|
-
site.process
|
299
|
-
|
300
|
-
file_content = YAML.safe_load_file(File.join(source_dir, '_data', 'products.yml'))
|
301
|
-
|
302
|
-
assert_equal site.data['products'], file_content
|
303
|
-
assert_equal site.site_payload['site']['data']['products'], file_content
|
304
|
-
end
|
305
|
-
|
306
|
-
should "not load symlink files in safe mode" do
|
307
|
-
site = Site.new(Tigefa.configuration.merge({'safe' => true}))
|
308
|
-
site.process
|
309
|
-
|
310
|
-
assert_nil site.data['products']
|
311
|
-
assert_nil site.site_payload['site']['data']['products']
|
312
|
-
end
|
313
|
-
|
314
|
-
should "load symlink directory in unsafe mode" do
|
315
|
-
site = Site.new(Tigefa.configuration.merge({'safe' => false, 'data_source' => File.join('symlink-test', '_data')}))
|
316
|
-
site.process
|
317
|
-
|
318
|
-
assert_not_nil site.data['products']
|
319
|
-
assert_not_nil site.data['languages']
|
320
|
-
assert_not_nil site.data['members']
|
321
|
-
end
|
322
|
-
|
323
|
-
should "not load symlink directory in safe mode" do
|
324
|
-
site = Site.new(Tigefa.configuration.merge({'safe' => true, 'data_source' => File.join('symlink-test', '_data')}))
|
325
|
-
site.process
|
326
|
-
|
327
|
-
assert_nil site.data['products']
|
328
|
-
assert_nil site.data['languages']
|
329
|
-
assert_nil site.data['members']
|
330
|
-
end
|
331
|
-
end
|
332
338
|
end
|
333
339
|
end
|
data/test/test_tags.rb
CHANGED
@@ -19,7 +19,7 @@ class TestTags < Test::Unit::TestCase
|
|
19
19
|
payload = { "pygments_prefix" => @converter.pygments_prefix,
|
20
20
|
"pygments_suffix" => @converter.pygments_suffix }
|
21
21
|
|
22
|
-
@result = Liquid::Template.parse(content).render
|
22
|
+
@result = Liquid::Template.parse(content).render(payload, info)
|
23
23
|
@result = @converter.convert(@result)
|
24
24
|
end
|
25
25
|
|
@@ -55,23 +55,20 @@ CONTENT
|
|
55
55
|
|
56
56
|
context "initialized tag" do
|
57
57
|
should "work" do
|
58
|
-
tag =
|
58
|
+
tag = Tigefa::Tags::HighlightBlock.new('highlight', 'ruby ', ["test", "{% endhighlight %}", "\n"])
|
59
59
|
assert_equal({}, tag.instance_variable_get(:@options))
|
60
60
|
|
61
|
-
tag =
|
61
|
+
tag = Tigefa::Tags::HighlightBlock.new('highlight', 'ruby linenos ', ["test", "{% endhighlight %}", "\n"])
|
62
62
|
assert_equal({ 'linenos' => 'inline' }, tag.instance_variable_get(:@options))
|
63
63
|
|
64
|
-
tag =
|
64
|
+
tag = Tigefa::Tags::HighlightBlock.new('highlight', 'ruby linenos=table ', ["test", "{% endhighlight %}", "\n"])
|
65
65
|
assert_equal({ 'linenos' => 'table' }, tag.instance_variable_get(:@options))
|
66
66
|
|
67
|
-
tag =
|
67
|
+
tag = Tigefa::Tags::HighlightBlock.new('highlight', 'ruby linenos=table nowrap', ["test", "{% endhighlight %}", "\n"])
|
68
68
|
assert_equal({ 'linenos' => 'table', 'nowrap' => true }, tag.instance_variable_get(:@options))
|
69
69
|
|
70
|
-
tag =
|
70
|
+
tag = Tigefa::Tags::HighlightBlock.new('highlight', 'ruby linenos=table cssclass=hl', ["test", "{% endhighlight %}", "\n"])
|
71
71
|
assert_equal({ 'cssclass' => 'hl', 'linenos' => 'table' }, tag.instance_variable_get(:@options))
|
72
|
-
|
73
|
-
tag = Jekyll::Tags::HighlightBlock.new('highlight', 'Ruby ', ["test", "{% endhighlight %}", "\n"])
|
74
|
-
assert_equal "ruby", tag.instance_variable_get(:@lang), "lexers should be case insensitive"
|
75
72
|
end
|
76
73
|
end
|
77
74
|
|
@@ -95,11 +92,11 @@ CONTENT
|
|
95
92
|
|
96
93
|
context "post content has highlight with file reference" do
|
97
94
|
setup do
|
98
|
-
fill_post("./
|
95
|
+
fill_post("./tigefa.gtigefaemspec")
|
99
96
|
end
|
100
97
|
|
101
98
|
should "not embed the file" do
|
102
|
-
assert_match %{<pre><code class='text'>./
|
99
|
+
assert_match %{<pre><code class='text'>./tigefa.gemspec\n</code></pre>}, @result
|
103
100
|
end
|
104
101
|
end
|
105
102
|
|
@@ -132,7 +129,7 @@ CONTENT
|
|
132
129
|
|
133
130
|
context "using Textile" do
|
134
131
|
setup do
|
135
|
-
create_post(@content, {},
|
132
|
+
create_post(@content, {}, Tigefa::Converters::Textile)
|
136
133
|
end
|
137
134
|
|
138
135
|
# Broken in RedCloth 4.1.9
|
@@ -226,7 +223,7 @@ CONTENT
|
|
226
223
|
assert_no_match /markdown\-html\-error/, @result
|
227
224
|
end
|
228
225
|
|
229
|
-
should "have the url to the \"
|
226
|
+
should "have the url to the \"nested\" post from 2008-11-21" do
|
230
227
|
assert_match %r{1\s/2008/11/21/complex/}, @result
|
231
228
|
assert_match %r{2\s/2008/11/21/complex/}, @result
|
232
229
|
end
|
@@ -252,7 +249,7 @@ CONTENT
|
|
252
249
|
end
|
253
250
|
|
254
251
|
should "write script tag" do
|
255
|
-
assert_match "<script src='https://gist.github.com/#{@gist}.js'
|
252
|
+
assert_match "<script src='https://gist.github.com/#{@gist}.js'>\s</script>", @result
|
256
253
|
end
|
257
254
|
end
|
258
255
|
|
@@ -272,24 +269,27 @@ CONTENT
|
|
272
269
|
end
|
273
270
|
|
274
271
|
should "write script tag with specific file in gist" do
|
275
|
-
assert_match "<script src='https://gist.github.com/#{@gist}.js?file=#{@filename}'
|
272
|
+
assert_match "<script src='https://gist.github.com/#{@gist}.js?file=#{@filename}'>\s</script>", @result
|
276
273
|
end
|
277
274
|
end
|
278
275
|
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
276
|
+
context "when invalid" do
|
277
|
+
setup do
|
278
|
+
@gist = "mattr-24081a1d93d2898ecf0f"
|
279
|
+
@filename = "myfile.ext"
|
280
|
+
content = <<CONTENT
|
283
281
|
---
|
284
282
|
title: My Cool Gist
|
285
283
|
---
|
286
284
|
|
287
285
|
{% gist #{@gist} #{@filename} %}
|
288
286
|
CONTENT
|
289
|
-
|
290
|
-
assert_raise ArgumentError do
|
291
287
|
create_post(content, {'permalink' => 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true})
|
292
288
|
end
|
289
|
+
|
290
|
+
should "write script tag with specific file in gist" do
|
291
|
+
assert_match "Error parsing gist id", @result
|
292
|
+
end
|
293
293
|
end
|
294
294
|
end
|
295
295
|
|
@@ -308,12 +308,12 @@ CONTENT
|
|
308
308
|
end
|
309
309
|
|
310
310
|
should "write script tag with specific file in gist" do
|
311
|
-
assert_match "<script src='https://gist.github.com/#{@gist}.js?file=#{@filename}'
|
311
|
+
assert_match "<script src='https://gist.github.com/#{@gist}.js?file=#{@filename}'>\s</script>", @result
|
312
312
|
end
|
313
313
|
end
|
314
314
|
|
315
315
|
context "with blank gist id" do
|
316
|
-
|
316
|
+
setup do
|
317
317
|
content = <<CONTENT
|
318
318
|
---
|
319
319
|
title: My Cool Gist
|
@@ -321,15 +321,16 @@ title: My Cool Gist
|
|
321
321
|
|
322
322
|
{% gist %}
|
323
323
|
CONTENT
|
324
|
+
create_post(content, {'permalink' => 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true})
|
325
|
+
end
|
324
326
|
|
325
|
-
|
326
|
-
|
327
|
-
end
|
327
|
+
should "output error message" do
|
328
|
+
assert_match "Error parsing gist id", @result
|
328
329
|
end
|
329
330
|
end
|
330
331
|
|
331
332
|
context "with invalid gist id" do
|
332
|
-
|
333
|
+
setup do
|
333
334
|
invalid_gist = 'invalid'
|
334
335
|
content = <<CONTENT
|
335
336
|
---
|
@@ -338,50 +339,16 @@ title: My Cool Gist
|
|
338
339
|
|
339
340
|
{% gist #{invalid_gist} %}
|
340
341
|
CONTENT
|
342
|
+
create_post(content, {'permalink' => 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true})
|
343
|
+
end
|
341
344
|
|
342
|
-
|
343
|
-
|
344
|
-
end
|
345
|
+
should "output error message" do
|
346
|
+
assert_match "Error parsing gist id", @result
|
345
347
|
end
|
346
348
|
end
|
347
349
|
end
|
348
350
|
|
349
351
|
context "include tag with parameters" do
|
350
|
-
|
351
|
-
context "with symlink'd include" do
|
352
|
-
|
353
|
-
should "not allow symlink includes" do
|
354
|
-
File.open("/tmp/pages-test", 'w') { |file| file.write("SYMLINK TEST") }
|
355
|
-
assert_raise IOError do
|
356
|
-
content = <<CONTENT
|
357
|
-
---
|
358
|
-
title: Include symlink
|
359
|
-
---
|
360
|
-
|
361
|
-
{% include tmp/pages-test %}
|
362
|
-
|
363
|
-
CONTENT
|
364
|
-
create_post(content, {'permalink' => 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true, 'safe' => true })
|
365
|
-
end
|
366
|
-
assert_no_match /SYMLINK TEST/, @result
|
367
|
-
end
|
368
|
-
|
369
|
-
should "not expose the existence of symlinked files" do
|
370
|
-
ex = assert_raise IOError do
|
371
|
-
content = <<CONTENT
|
372
|
-
---
|
373
|
-
title: Include symlink
|
374
|
-
---
|
375
|
-
|
376
|
-
{% include tmp/pages-test-does-not-exist %}
|
377
|
-
|
378
|
-
CONTENT
|
379
|
-
create_post(content, {'permalink' => 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true, 'safe' => true })
|
380
|
-
end
|
381
|
-
assert_match /should exist and should not be a symlink/, ex.message
|
382
|
-
end
|
383
|
-
end
|
384
|
-
|
385
352
|
context "with one parameter" do
|
386
353
|
setup do
|
387
354
|
content = <<CONTENT
|
@@ -406,7 +373,7 @@ CONTENT
|
|
406
373
|
end
|
407
374
|
|
408
375
|
context "with invalid parameter syntax" do
|
409
|
-
should "throw a
|
376
|
+
should "throw a SyntaxError" do
|
410
377
|
content = <<CONTENT
|
411
378
|
---
|
412
379
|
title: Invalid parameter syntax
|
@@ -414,7 +381,7 @@ title: Invalid parameter syntax
|
|
414
381
|
|
415
382
|
{% include params.html param s="value" %}
|
416
383
|
CONTENT
|
417
|
-
assert_raise
|
384
|
+
assert_raise SyntaxError, 'Did not raise exception on invalid "include" syntax' do
|
418
385
|
create_post(content, {'permalink' => 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true})
|
419
386
|
end
|
420
387
|
|
@@ -425,7 +392,7 @@ title: Invalid parameter syntax
|
|
425
392
|
|
426
393
|
{% include params.html params="value %}
|
427
394
|
CONTENT
|
428
|
-
assert_raise
|
395
|
+
assert_raise SyntaxError, 'Did not raise exception on invalid "include" syntax' do
|
429
396
|
create_post(content, {'permalink' => 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true})
|
430
397
|
end
|
431
398
|
end
|
data/tigefa.gemspec
CHANGED
@@ -4,13 +4,13 @@ Gem::Specification.new do |s|
|
|
4
4
|
s.rubygems_version = '1.3.5'
|
5
5
|
|
6
6
|
s.name = 'tigefa'
|
7
|
-
s.version = '1.1.
|
7
|
+
s.version = '1.1.3'
|
8
8
|
s.license = 'MIT'
|
9
|
-
s.date = '2014-
|
9
|
+
s.date = '2014-03-03'
|
10
10
|
s.rubyforge_project = 'tigefa'
|
11
11
|
|
12
12
|
s.summary = "A simple, blog aware, static site generator."
|
13
|
-
s.description = "
|
13
|
+
s.description = "tigefa is a simple, blog aware, static site generator."
|
14
14
|
|
15
15
|
s.authors = ["sugeng tigefa"]
|
16
16
|
s.email = 'sugeng@tigefa.org'
|
@@ -23,33 +23,29 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.rdoc_options = ["--charset=UTF-8"]
|
24
24
|
s.extra_rdoc_files = %w[README.markdown LICENSE]
|
25
25
|
|
26
|
-
s.add_runtime_dependency('liquid', "~> 2.5.
|
26
|
+
s.add_runtime_dependency('liquid', "~> 2.5.2")
|
27
27
|
s.add_runtime_dependency('classifier', "~> 1.3")
|
28
|
-
s.add_runtime_dependency('
|
29
|
-
s.add_runtime_dependency('maruku', "~> 0.
|
28
|
+
s.add_runtime_dependency('directory_watcher', "~> 1.4.1")
|
29
|
+
s.add_runtime_dependency('maruku', "~> 0.5")
|
30
30
|
s.add_runtime_dependency('pygments.rb', "~> 0.5.0")
|
31
31
|
s.add_runtime_dependency('commander', "~> 4.1.3")
|
32
|
-
s.add_runtime_dependency('safe_yaml', "~> 0.
|
32
|
+
s.add_runtime_dependency('safe_yaml', "~> 0.7.0")
|
33
33
|
s.add_runtime_dependency('colorator', "~> 0.1")
|
34
34
|
s.add_runtime_dependency('redcarpet', "~> 2.3.0")
|
35
|
-
s.add_runtime_dependency('kramdown', "~> 1.2")
|
36
|
-
s.add_runtime_dependency('RedCloth', "~> 4.2")
|
37
|
-
s.add_runtime_dependency('rdiscount', "~> 1.6")
|
38
|
-
s.add_runtime_dependency('toml', '~> 0.1.0')
|
35
|
+
s.add_runtime_dependency('kramdown', "~> 1.0.2")
|
39
36
|
|
40
|
-
s.add_development_dependency('rake', "~> 10.
|
37
|
+
s.add_development_dependency('rake', "~> 10.0.3")
|
41
38
|
s.add_development_dependency('rdoc', "~> 3.11")
|
42
39
|
s.add_development_dependency('redgreen', "~> 1.2")
|
43
40
|
s.add_development_dependency('shoulda', "~> 3.3.2")
|
44
|
-
s.add_development_dependency('rr', "~> 1.
|
45
|
-
s.add_development_dependency('cucumber', "~> 1.
|
46
|
-
s.add_development_dependency('
|
41
|
+
s.add_development_dependency('rr', "~> 1.0.0")
|
42
|
+
s.add_development_dependency('cucumber', "~> 1.2.1", '!= 1.2.4')
|
43
|
+
s.add_development_dependency('RedCloth', "~> 4.2")
|
44
|
+
s.add_development_dependency('rdiscount', "~> 1.6")
|
45
|
+
s.add_development_dependency('launchy', "~> 2.1.2")
|
47
46
|
s.add_development_dependency('simplecov', "~> 0.7")
|
48
47
|
s.add_development_dependency('simplecov-gem-adapter', "~> 1.0.1")
|
49
|
-
s.add_development_dependency('coveralls', "~> 0.7.0")
|
50
|
-
s.add_development_dependency('mime-types', "~> 1.5")
|
51
48
|
s.add_development_dependency('activesupport', '~> 3.2.13')
|
52
|
-
s.add_development_dependency('jekyll_test_plugin')
|
53
49
|
|
54
50
|
# = MANIFEST =
|
55
51
|
s.files = %w[
|
@@ -62,7 +58,6 @@ Gem::Specification.new do |s|
|
|
62
58
|
bin/tigefa
|
63
59
|
cucumber.yml
|
64
60
|
features/create_sites.feature
|
65
|
-
features/data.feature
|
66
61
|
features/drafts.feature
|
67
62
|
features/embed_filters.feature
|
68
63
|
features/include_tag.feature
|
@@ -73,7 +68,7 @@ Gem::Specification.new do |s|
|
|
73
68
|
features/post_excerpts.feature
|
74
69
|
features/site_configuration.feature
|
75
70
|
features/site_data.feature
|
76
|
-
features/step_definitions/
|
71
|
+
features/step_definitions/jekyll_steps.rb
|
77
72
|
features/support/env.rb
|
78
73
|
tigefa.gemspec
|
79
74
|
lib/tigefa.rb
|
@@ -96,7 +91,6 @@ Gem::Specification.new do |s|
|
|
96
91
|
lib/tigefa/core_ext.rb
|
97
92
|
lib/tigefa/deprecator.rb
|
98
93
|
lib/tigefa/draft.rb
|
99
|
-
lib/tigefa/entry_filter.rb
|
100
94
|
lib/tigefa/errors.rb
|
101
95
|
lib/tigefa/excerpt.rb
|
102
96
|
lib/tigefa/filters.rb
|
@@ -156,19 +150,12 @@ Gem::Specification.new do |s|
|
|
156
150
|
site/_posts/2013-07-25-jekyll-1-1-2-released.markdown
|
157
151
|
site/_posts/2013-09-06-jekyll-1-2-0-released.markdown
|
158
152
|
site/_posts/2013-09-14-jekyll-1-2-1-released.markdown
|
159
|
-
site/_posts/2013-10-28-jekyll-1-3-0-rc1-released.markdown
|
160
|
-
site/_posts/2013-11-04-jekyll-1-3-0-released.markdown
|
161
|
-
site/_posts/2013-11-26-jekyll-1-3-1-released.markdown
|
162
|
-
site/_posts/2013-12-07-jekyll-1-4-0-released.markdown
|
163
|
-
site/_posts/2013-12-16-jekyll-1-4-2-released.markdown
|
164
|
-
site/_posts/2014-01-13-jekyll-1-4-3-released.markdown
|
165
153
|
site/css/gridism.css
|
166
154
|
site/css/normalize.css
|
167
155
|
site/css/pygments.css
|
168
156
|
site/css/style.css
|
169
157
|
site/docs/configuration.md
|
170
158
|
site/docs/contributing.md
|
171
|
-
site/docs/datafiles.md
|
172
159
|
site/docs/deployment-methods.md
|
173
160
|
site/docs/drafts.md
|
174
161
|
site/docs/extras.md
|
@@ -215,15 +202,9 @@ Gem::Specification.new do |s|
|
|
215
202
|
test/helper.rb
|
216
203
|
test/source/+/foo.md
|
217
204
|
test/source/.htaccess
|
218
|
-
test/source/_config.dev.toml
|
219
|
-
test/source/_data/languages.yml
|
220
|
-
test/source/_data/members.yaml
|
221
|
-
test/source/_data/products.yml
|
222
205
|
test/source/_includes/params.html
|
223
206
|
test/source/_includes/sig.markdown
|
224
|
-
test/source/_includes/tmp
|
225
207
|
test/source/_layouts/default.html
|
226
|
-
test/source/_layouts/post/simple.html
|
227
208
|
test/source/_layouts/simple.html
|
228
209
|
test/source/_plugins/dummy.rb
|
229
210
|
test/source/_posts/2008-02-02-not-published.textile
|
@@ -259,7 +240,6 @@ Gem::Specification.new do |s|
|
|
259
240
|
test/source/_posts/2013-05-10-number-category.textile
|
260
241
|
test/source/_posts/2013-07-22-post-excerpt-with-layout.markdown
|
261
242
|
test/source/_posts/2013-08-01-mkdn-extension.mkdn
|
262
|
-
test/source/_posts/2014-01-06-permalink-traversal.md
|
263
243
|
test/source/_posts/es/2008-11-21-nested.textile
|
264
244
|
test/source/about.html
|
265
245
|
test/source/category/_posts/2008-9-23-categories.textile
|
@@ -268,12 +248,9 @@ Gem::Specification.new do |s|
|
|
268
248
|
test/source/contacts/index.html
|
269
249
|
test/source/css/screen.css
|
270
250
|
test/source/deal.with.dots.html
|
271
|
-
test/source/exploit.md
|
272
251
|
test/source/foo/_posts/bar/2008-12-12-topical-post.textile
|
273
252
|
test/source/index.html
|
274
|
-
test/source/products.yml
|
275
253
|
test/source/sitemap.xml
|
276
|
-
test/source/symlink-test/_data
|
277
254
|
test/source/symlink-test/symlinked-dir
|
278
255
|
test/source/symlink-test/symlinked-file
|
279
256
|
test/source/win/_posts/2009-05-24-yaml-linebreak.markdown
|
@@ -283,7 +260,6 @@ Gem::Specification.new do |s|
|
|
283
260
|
test/test_configuration.rb
|
284
261
|
test/test_convertible.rb
|
285
262
|
test/test_core_ext.rb
|
286
|
-
test/test_entry_filter.rb
|
287
263
|
test/test_excerpt.rb
|
288
264
|
test/test_filters.rb
|
289
265
|
test/test_generated_site.rb
|