nirvdrum-jekyll 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +45 -0
- data/README.textile +15 -8
- data/Rakefile +1 -0
- data/VERSION.yml +3 -2
- data/bin/jekyll +5 -1
- data/features/create_sites.feature +50 -2
- data/features/embed_filters.feature +3 -3
- data/features/markdown.feature +30 -0
- data/features/pagination.feature +12 -25
- data/features/post_data.feature +18 -18
- data/features/step_definitions/jekyll_steps.rb +8 -8
- data/jekyll.gemspec +4 -9
- data/lib/jekyll.rb +4 -3
- data/lib/jekyll/convertible.rb +6 -2
- data/lib/jekyll/core_ext.rb +22 -0
- data/lib/jekyll/page.rb +5 -1
- data/lib/jekyll/pager.rb +1 -1
- data/lib/jekyll/post.rb +13 -25
- data/lib/jekyll/site.rb +94 -81
- data/lib/jekyll/static_file.rb +28 -0
- data/lib/jekyll/tags/highlight.rb +14 -8
- data/test/helper.rb +1 -1
- data/test/source/_posts/2009-01-27-empty-categories.textile +7 -0
- data/test/source/_posts/2009-01-27-empty-category.textile +7 -0
- data/test/source/_posts/2009-05-18-empty-tag.textile +6 -0
- data/test/source/_posts/2009-05-18-empty-tags.textile +6 -0
- data/test/source/_posts/2010-01-08-triple-dash.markdown +5 -0
- data/test/source/_posts/2010-01-09-date-override.textile +5 -0
- data/test/source/_posts/2010-01-09-time-override.textile +5 -0
- data/test/test_configuration.rb +5 -5
- data/test/test_core_ext.rb +66 -0
- data/test/test_generated_site.rb +4 -0
- data/test/test_pager.rb +92 -26
- data/test/test_post.rb +46 -3
- data/test/test_site.rb +10 -2
- data/test/test_tags.rb +2 -2
- metadata +13 -2
data/test/test_site.rb
CHANGED
@@ -18,12 +18,20 @@ class TestSite < Test::Unit::TestCase
|
|
18
18
|
@site.process
|
19
19
|
before_posts = @site.posts.length
|
20
20
|
before_layouts = @site.layouts.length
|
21
|
+
before_stylesheets = @site.stylesheets.length
|
21
22
|
before_categories = @site.categories.length
|
23
|
+
before_tags = @site.tags.length
|
24
|
+
before_pages = @site.pages.length
|
25
|
+
before_static_files = @site.static_files.length
|
22
26
|
|
23
27
|
@site.process
|
24
28
|
assert_equal before_posts, @site.posts.length
|
25
29
|
assert_equal before_layouts, @site.layouts.length
|
30
|
+
assert_equal before_stylesheets, @site.stylesheets.length
|
26
31
|
assert_equal before_categories, @site.categories.length
|
32
|
+
assert_equal before_tags, @site.tags.length
|
33
|
+
assert_equal before_pages, @site.pages.length
|
34
|
+
assert_equal before_static_files, @site.static_files.length
|
27
35
|
end
|
28
36
|
|
29
37
|
should "read layouts" do
|
@@ -52,10 +60,10 @@ class TestSite < Test::Unit::TestCase
|
|
52
60
|
should "filter entries" do
|
53
61
|
ent1 = %w[foo.markdown bar.markdown baz.markdown #baz.markdown#
|
54
62
|
.baz.markdow foo.markdown~]
|
55
|
-
ent2 = %w[.htaccess _posts bla.bla]
|
63
|
+
ent2 = %w[.htaccess _posts _pages bla.bla]
|
56
64
|
|
57
65
|
assert_equal %w[foo.markdown bar.markdown baz.markdown], @site.filter_entries(ent1)
|
58
|
-
assert_equal
|
66
|
+
assert_equal %w[.htaccess bla.bla], @site.filter_entries(ent2)
|
59
67
|
end
|
60
68
|
|
61
69
|
should "filter entries with exclude" do
|
data/test/test_tags.rb
CHANGED
@@ -49,7 +49,7 @@ CONTENT
|
|
49
49
|
end
|
50
50
|
|
51
51
|
should "render markdown with pygments line handling" do
|
52
|
-
assert_match %{<pre>test\n</pre>}, @result
|
52
|
+
assert_match %{<pre><code class='text'>test\n</code></pre>}, @result
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
@@ -59,7 +59,7 @@ CONTENT
|
|
59
59
|
end
|
60
60
|
|
61
61
|
should "render markdown with pygments line handling" do
|
62
|
-
assert_match %{<pre>Æ\n</pre>}, @result
|
62
|
+
assert_match %{<pre><code class='text'>Æ\n</code></pre>}, @result
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nirvdrum-jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
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: 2010-02-
|
12
|
+
date: 2010-02-16 00:00:00 -05:00
|
13
13
|
default_executable: jekyll
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -89,6 +89,7 @@ files:
|
|
89
89
|
- bin/jekyll
|
90
90
|
- features/create_sites.feature
|
91
91
|
- features/embed_filters.feature
|
92
|
+
- features/markdown.feature
|
92
93
|
- features/pagination.feature
|
93
94
|
- features/permalinks.feature
|
94
95
|
- features/post_data.feature
|
@@ -113,6 +114,7 @@ files:
|
|
113
114
|
- lib/jekyll/pager.rb
|
114
115
|
- lib/jekyll/post.rb
|
115
116
|
- lib/jekyll/site.rb
|
117
|
+
- lib/jekyll/static_file.rb
|
116
118
|
- lib/jekyll/stylesheet.rb
|
117
119
|
- lib/jekyll/tags/highlight.rb
|
118
120
|
- lib/jekyll/tags/include.rb
|
@@ -129,11 +131,18 @@ files:
|
|
129
131
|
- test/source/_posts/2009-01-27-array-categories.textile
|
130
132
|
- test/source/_posts/2009-01-27-categories.textile
|
131
133
|
- test/source/_posts/2009-01-27-category.textile
|
134
|
+
- test/source/_posts/2009-01-27-empty-categories.textile
|
135
|
+
- test/source/_posts/2009-01-27-empty-category.textile
|
132
136
|
- test/source/_posts/2009-03-12-hash-#1.markdown
|
137
|
+
- test/source/_posts/2009-05-18-empty-tag.textile
|
138
|
+
- test/source/_posts/2009-05-18-empty-tags.textile
|
133
139
|
- test/source/_posts/2009-05-18-tag.textile
|
134
140
|
- test/source/_posts/2009-05-18-tags.textile
|
135
141
|
- test/source/_posts/2009-06-22-empty-yaml.textile
|
136
142
|
- test/source/_posts/2009-06-22-no-yaml.textile
|
143
|
+
- test/source/_posts/2010-01-08-triple-dash.markdown
|
144
|
+
- test/source/_posts/2010-01-09-date-override.textile
|
145
|
+
- test/source/_posts/2010-01-09-time-override.textile
|
137
146
|
- test/source/_stylesheets/nested/override.less
|
138
147
|
- test/source/_stylesheets/simple.less
|
139
148
|
- test/source/about.html
|
@@ -147,6 +156,7 @@ files:
|
|
147
156
|
- test/source/z_category/_posts/2008-9-23-categories.textile
|
148
157
|
- test/suite.rb
|
149
158
|
- test/test_configuration.rb
|
159
|
+
- test/test_core_ext.rb
|
150
160
|
- test/test_filters.rb
|
151
161
|
- test/test_generated_site.rb
|
152
162
|
- test/test_page.rb
|
@@ -187,6 +197,7 @@ test_files:
|
|
187
197
|
- test/helper.rb
|
188
198
|
- test/suite.rb
|
189
199
|
- test/test_configuration.rb
|
200
|
+
- test/test_core_ext.rb
|
190
201
|
- test/test_filters.rb
|
191
202
|
- test/test_generated_site.rb
|
192
203
|
- test/test_page.rb
|