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.
@@ -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 ent2, @site.filter_entries(ent2)
66
+ assert_equal %w[.htaccess bla.bla], @site.filter_entries(ent2)
59
67
  end
60
68
 
61
69
  should "filter entries with exclude" do
@@ -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.6.1
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-11 00:00:00 -05:00
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