mattmatt-jekyll 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -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
- category/categories
268
- Don't want to use the directory structure for categories, but you still
269
- want to publish with categories? No problem, just add a category or
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
- published
274
- Set this to false if you don't want the post to show up in the _site
275
- directory when jekyll runs.
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
- <li><span>{{ post.date | date_to_string }}</span> - {{ post.title }}</li>
399
+ <li><span>{{ post.date | date_to_string }}</span> - {{ post.title }}</li>
395
400
  {% endfor %}
396
401
  </pre>
397
402
 
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 4
4
- :patch: 4
4
+ :patch: 5
@@ -60,10 +60,13 @@ class Albino
60
60
  end
61
61
 
62
62
  def execute(command)
63
- pid, stdin, stdout, stderr = Open4.popen4(command)
64
- stdin.puts @target
65
- stdin.close
66
- stdout.read.strip
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 = {})
@@ -1,6 +1,10 @@
1
1
  module Jekyll
2
2
 
3
3
  module Filters
4
+ def textilize(input)
5
+ RedCloth.new(input).to_html
6
+ end
7
+
4
8
  def date_to_string(date)
5
9
  date.strftime("%d %b %Y")
6
10
  end
@@ -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
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-02-16 00:00:00 -08:00
12
+ date: 2009-03-08 00:00:00 -08:00
13
13
  default_executable: jekyll
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency