mattmatt-jekyll 0.4.4 → 0.4.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/History.txt +8 -0
- data/README.textile +14 -9
- data/VERSION.yml +1 -1
- data/lib/jekyll/albino.rb +7 -4
- data/lib/jekyll/filters.rb +4 -0
- data/test/test_filters.rb +4 -0
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,4 +1,12 @@
|
|
1
1
|
==
|
2
|
+
* Minor Enhancements
|
3
|
+
* Ability to set post categories via YAML [github.com/qrush]
|
4
|
+
* Ability to set prevent a post from publishing via YAML [github.com/qrush]
|
5
|
+
* Add textilize filter [github.com/willcodeforfoo]
|
6
|
+
* Bug Fixes
|
7
|
+
* Use block syntax of popen4 to ensure that subprocesses are properly disposed [github.com/jqr]
|
8
|
+
|
9
|
+
== 0.4.1
|
2
10
|
* Minor Enhancements
|
3
11
|
* Changed date format on wordpress converter (zeropadding) [github.com/dysinger]
|
4
12
|
* Bug Fixes
|
data/README.textile
CHANGED
@@ -264,15 +264,14 @@ h3. Predefined Post Variables
|
|
264
264
|
/year/month/day/title.html then you can set this variable and it will
|
265
265
|
be used as the final URL.
|
266
266
|
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
categories option in and it will get processed as if it was in a folder
|
271
|
-
for a category.
|
267
|
+
published
|
268
|
+
Set to false if you don't want a post to show up when the site is
|
269
|
+
generated.
|
272
270
|
|
273
|
-
|
274
|
-
|
275
|
-
|
271
|
+
category/categories
|
272
|
+
Instead of placing posts inside of folders, you can specify one or more
|
273
|
+
categories that the post belongs to. When the site is generated the post
|
274
|
+
will act as though it had been set with these categories normally.
|
276
275
|
|
277
276
|
h3. Custom Variables
|
278
277
|
|
@@ -325,6 +324,12 @@ Convert an array into a sentence.
|
|
325
324
|
becomes
|
326
325
|
|
327
326
|
foo, bar, and baz
|
327
|
+
|
328
|
+
h3. Textilize
|
329
|
+
|
330
|
+
Convert a Textile-formatted string into HTML, formatted via RedCloth
|
331
|
+
|
332
|
+
{{ page.excerpt | textilize }}
|
328
333
|
|
329
334
|
h3. Include (Tag)
|
330
335
|
|
@@ -391,7 +396,7 @@ within a Liquid template as follows:
|
|
391
396
|
|
392
397
|
<pre>
|
393
398
|
{% for post in site.categories.foo %}
|
394
|
-
|
399
|
+
<li><span>{{ post.date | date_to_string }}</span> - {{ post.title }}</li>
|
395
400
|
{% endfor %}
|
396
401
|
</pre>
|
397
402
|
|
data/VERSION.yml
CHANGED
data/lib/jekyll/albino.rb
CHANGED
@@ -60,10 +60,13 @@ class Albino
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def execute(command)
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
63
|
+
output = ''
|
64
|
+
Open4.popen4(command) do |pid, stdin, stdout, stderr|
|
65
|
+
stdin.puts @target
|
66
|
+
stdin.close
|
67
|
+
output = stdout.read.strip
|
68
|
+
end
|
69
|
+
output
|
67
70
|
end
|
68
71
|
|
69
72
|
def colorize(options = {})
|
data/lib/jekyll/filters.rb
CHANGED
data/test/test_filters.rb
CHANGED
@@ -10,6 +10,10 @@ class TestFilters < Test::Unit::TestCase
|
|
10
10
|
@filter = JekyllFilter.new
|
11
11
|
end
|
12
12
|
|
13
|
+
def test_textilize_with_simple_string
|
14
|
+
assert_equal "<p>something <strong>really</strong> simple</p>", @filter.textilize("something *really* simple")
|
15
|
+
end
|
16
|
+
|
13
17
|
def test_array_to_sentence_string_with_no_args
|
14
18
|
assert_equal "", @filter.array_to_sentence_string([])
|
15
19
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mattmatt-jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Preston-Werner
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-03-08 00:00:00 -08:00
|
13
13
|
default_executable: jekyll
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|