jekyll 1.0.0.beta3 → 1.0.0.beta4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of jekyll might be problematic. Click here for more details.
- data/CONTRIBUTING.md +3 -2
- data/History.txt +10 -0
- data/README.textile +1 -2
- data/bin/jekyll +1 -4
- data/features/step_definitions/jekyll_steps.rb +0 -8
- data/jekyll.gemspec +5 -4
- data/lib/jekyll.rb +13 -3
- data/lib/jekyll/filters.rb +14 -0
- data/lib/jekyll/generators/pagination.rb +20 -8
- data/lib/jekyll/post.rb +4 -0
- data/lib/jekyll/site.rb +1 -0
- data/site/_posts/2012-07-01-configuration.md +84 -83
- data/site/_posts/2012-07-01-contributing.md +58 -37
- data/site/_posts/2012-07-01-extras.md +43 -31
- data/site/_posts/2012-07-01-frontmatter.md +60 -16
- data/site/_posts/2012-07-01-github-pages.md +39 -8
- data/site/_posts/2012-07-01-home.md +30 -11
- data/site/_posts/2012-07-01-installation.md +31 -8
- data/site/_posts/2012-07-01-migrations.md +34 -10
- data/site/_posts/2012-07-01-pages.md +49 -26
- data/site/_posts/2012-07-01-pagination.md +136 -43
- data/site/_posts/2012-07-01-permalinks.md +25 -15
- data/site/_posts/2012-07-01-plugins.md +94 -50
- data/site/_posts/2012-07-01-posts.md +75 -24
- data/site/_posts/2012-07-01-structure.md +68 -8
- data/site/_posts/2012-07-01-templates.md +62 -45
- data/site/_posts/2012-07-01-usage.md +36 -17
- data/site/_posts/2012-07-01-variables.md +133 -23
- data/site/css/style.css +1 -1
- data/test/source/_posts/2013-03-19-not-a-post.markdown/.gitkeep +0 -0
- data/test/test_filters.rb +17 -0
- data/test/test_post.rb +23 -0
- data/test/test_site.rb +3 -1
- metadata +11 -4
data/site/css/style.css
CHANGED
File without changes
|
data/test/test_filters.rb
CHANGED
@@ -13,6 +13,7 @@ class TestFilters < Test::Unit::TestCase
|
|
13
13
|
context "filters" do
|
14
14
|
setup do
|
15
15
|
@filter = JekyllFilter.new
|
16
|
+
@sample_time = Time.utc(2013, 03, 27, 11, 22, 33)
|
16
17
|
end
|
17
18
|
|
18
19
|
should "textilize with simple string" do
|
@@ -42,6 +43,22 @@ class TestFilters < Test::Unit::TestCase
|
|
42
43
|
assert_equal "chunky, bacon, bits, and pieces", @filter.array_to_sentence_string(["chunky", "bacon", "bits", "pieces"])
|
43
44
|
end
|
44
45
|
|
46
|
+
should "format a date with short format" do
|
47
|
+
assert_equal "27 Mar 2013", @filter.date_to_string(@sample_time)
|
48
|
+
end
|
49
|
+
|
50
|
+
should "format a date with long format" do
|
51
|
+
assert_equal "27 March 2013", @filter.date_to_long_string(@sample_time)
|
52
|
+
end
|
53
|
+
|
54
|
+
should "format a time with xmlschema" do
|
55
|
+
assert_equal "2013-03-27T11:22:33Z", @filter.date_to_xmlschema(@sample_time)
|
56
|
+
end
|
57
|
+
|
58
|
+
should "format a time according to RFC-822" do
|
59
|
+
assert_equal "Wed, 27 Mar 2013 11:22:33 -0000", @filter.date_to_rfc822(@sample_time)
|
60
|
+
end
|
61
|
+
|
45
62
|
should "escape xml with ampersands" do
|
46
63
|
assert_equal "AT&T", @filter.xml_escape("AT&T")
|
47
64
|
assert_equal "<code>command &lt;filename&gt;</code>", @filter.xml_escape("<code>command <filename></code>")
|
data/test/test_post.rb
CHANGED
@@ -214,6 +214,18 @@ class TestPost < Test::Unit::TestCase
|
|
214
214
|
end
|
215
215
|
end
|
216
216
|
|
217
|
+
context "with ordinal style" do
|
218
|
+
setup do
|
219
|
+
@post.site.permalink_style = :ordinal
|
220
|
+
@post.process(@fake_file)
|
221
|
+
end
|
222
|
+
|
223
|
+
should "process the url correctly" do
|
224
|
+
assert_equal "/:categories/:year/:y_day/:title.html", @post.template
|
225
|
+
assert_equal "/2008/253/foo-bar.html", @post.url
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
217
229
|
context "with custom date permalink" do
|
218
230
|
setup do
|
219
231
|
@post.site.permalink_style = '/:categories/:year/:i_month/:i_day/:title/'
|
@@ -225,6 +237,17 @@ class TestPost < Test::Unit::TestCase
|
|
225
237
|
end
|
226
238
|
end
|
227
239
|
|
240
|
+
context "with custom abbreviated month date permalink" do
|
241
|
+
setup do
|
242
|
+
@post.site.permalink_style = '/:categories/:year/:short_month/:day/:title/'
|
243
|
+
@post.process(@fake_file)
|
244
|
+
end
|
245
|
+
|
246
|
+
should "process the url correctly" do
|
247
|
+
assert_equal "/2008/Sep/09/foo-bar/", @post.url
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
228
251
|
context "with prefix style and no extension" do
|
229
252
|
setup do
|
230
253
|
@post.site.permalink_style = "/prefix/:title"
|
data/test/test_site.rb
CHANGED
@@ -161,6 +161,7 @@ class TestSite < Test::Unit::TestCase
|
|
161
161
|
should "read posts" do
|
162
162
|
@site.read_posts('')
|
163
163
|
posts = Dir[source_dir('_posts', '*')]
|
164
|
+
posts.delete_if { |post| File.directory?(post) }
|
164
165
|
assert_equal posts.size - 1, @site.posts.size
|
165
166
|
end
|
166
167
|
|
@@ -169,9 +170,10 @@ class TestSite < Test::Unit::TestCase
|
|
169
170
|
@site.process
|
170
171
|
|
171
172
|
posts = Dir[source_dir("**", "_posts", "*")]
|
173
|
+
posts.delete_if { |post| File.directory?(post) }
|
172
174
|
categories = %w(bar baz category foo z_category publish_test win).sort
|
173
175
|
|
174
|
-
assert_equal posts.size
|
176
|
+
assert_equal posts.size, @site.posts.size
|
175
177
|
assert_equal categories, @site.categories.keys.sort
|
176
178
|
assert_equal 4, @site.categories['foo'].size
|
177
179
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.beta4
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: liquid
|
@@ -98,7 +98,7 @@ dependencies:
|
|
98
98
|
requirements:
|
99
99
|
- - ~>
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 0.
|
101
|
+
version: 0.4.2
|
102
102
|
type: :runtime
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -106,7 +106,7 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: 0.
|
109
|
+
version: 0.4.2
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
111
|
name: commander
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
@@ -227,6 +227,9 @@ dependencies:
|
|
227
227
|
- - ~>
|
228
228
|
- !ruby/object:Gem::Version
|
229
229
|
version: 1.2.1
|
230
|
+
- - ! '!='
|
231
|
+
- !ruby/object:Gem::Version
|
232
|
+
version: 1.2.4
|
230
233
|
type: :development
|
231
234
|
prerelease: false
|
232
235
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -235,6 +238,9 @@ dependencies:
|
|
235
238
|
- - ~>
|
236
239
|
- !ruby/object:Gem::Version
|
237
240
|
version: 1.2.1
|
241
|
+
- - ! '!='
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: 1.2.4
|
238
244
|
- !ruby/object:Gem::Dependency
|
239
245
|
name: RedCloth
|
240
246
|
requirement: !ruby/object:Gem::Requirement
|
@@ -485,6 +491,7 @@ files:
|
|
485
491
|
- test/source/_posts/2013-01-02-post-excerpt.markdown
|
486
492
|
- test/source/_posts/2013-01-12-nil-layout.textile
|
487
493
|
- test/source/_posts/2013-01-12-no-layout.textile
|
494
|
+
- test/source/_posts/2013-03-19-not-a-post.markdown/.gitkeep
|
488
495
|
- test/source/about.html
|
489
496
|
- test/source/category/_posts/2008-9-23-categories.textile
|
490
497
|
- test/source/contacts.html
|