jekyll 0.3.0 → 0.4.1
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/History.txt +25 -0
- data/README.textile +93 -23
- data/VERSION.yml +4 -0
- data/bin/jekyll +9 -0
- data/lib/jekyll.rb +7 -3
- data/lib/jekyll/converters/mephisto.rb +56 -1
- data/lib/jekyll/converters/mt.rb +1 -1
- data/lib/jekyll/converters/textpattern.rb +50 -0
- data/lib/jekyll/converters/typo.rb +49 -0
- data/lib/jekyll/converters/wordpress.rb +9 -8
- data/lib/jekyll/convertible.rb +14 -3
- data/lib/jekyll/filters.rb +18 -3
- data/lib/jekyll/post.rb +9 -5
- data/lib/jekyll/site.rb +45 -28
- data/lib/jekyll/tags/highlight.rb +20 -4
- data/lib/jekyll/tags/include.rb +6 -2
- data/test/dest/2008/10/18/foo-bar.html +28 -0
- data/test/dest/2008/11/21/complex.html +29 -0
- data/test/dest/2008/12/13/include.html +30 -0
- data/test/dest/_posts/2008-10-18-foo-bar.html +28 -0
- data/test/dest/_posts/2008-11-21-complex.html +29 -0
- data/test/dest/_posts/2008-12-03-permalinked-post.html +2 -0
- data/test/dest/_posts/2008-12-13-include.html +30 -0
- data/test/dest/category/2008/09/23/categories.html +27 -0
- data/test/dest/category/_posts/2008-9-23-categories.html +27 -0
- data/test/dest/css/screen.css +76 -0
- data/test/dest/foo/2008/12/12/topical-post.html +28 -0
- data/test/dest/foo/_posts/bar/2008-12-12-topical-post.html +28 -0
- data/test/dest/index.html +60 -0
- data/test/dest/my_category/permalinked-post +2 -0
- data/test/dest/z_category/2008/09/23/categories.html +27 -0
- data/test/dest/z_category/_posts/2008-9-23-categories.html +27 -0
- data/test/source/category/_posts/2008-9-23-categories.textile +6 -0
- data/test/source/foo/_posts/bar/2008-12-12-topical-post.textile +8 -0
- data/test/source/z_category/_posts/2008-9-23-categories.textile +6 -0
- data/test/test_filters.rb +37 -0
- data/test/test_generated_site.rb +1 -0
- data/test/test_post.rb +15 -1
- data/test/test_site.rb +5 -2
- data/test/test_tags.rb +31 -0
- metadata +85 -37
- data/Manifest.txt +0 -36
- data/Rakefile +0 -24
- data/jekyll.gemspec +0 -51
data/test/test_site.rb
CHANGED
@@ -22,9 +22,12 @@ class TestSite < Test::Unit::TestCase
|
|
22
22
|
assert_equal 4, @s.posts.size
|
23
23
|
end
|
24
24
|
|
25
|
-
def
|
25
|
+
def test_site_payload
|
26
26
|
clear_dest
|
27
|
-
|
28
27
|
@s.process
|
28
|
+
|
29
|
+
assert_equal 7, @s.posts.length
|
30
|
+
assert_equal ["category", "foo", "z_category"].sort, @s.categories.keys.sort
|
31
|
+
assert_equal 1, @s.categories['foo'].length
|
29
32
|
end
|
30
33
|
end
|
data/test/test_tags.rb
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/helper'
|
2
|
+
|
3
|
+
class TestTags < Test::Unit::TestCase
|
4
|
+
|
5
|
+
def setup
|
6
|
+
@content = <<CONTENT
|
7
|
+
---
|
8
|
+
layout: post
|
9
|
+
title: This is a test
|
10
|
+
|
11
|
+
---
|
12
|
+
This document results in a markdown error with maruku
|
13
|
+
{% highlight ruby %}
|
14
|
+
puts "hi"
|
15
|
+
|
16
|
+
puts "bye"
|
17
|
+
{% endhighlight %}
|
18
|
+
|
19
|
+
CONTENT
|
20
|
+
end
|
21
|
+
|
22
|
+
def test_markdown_with_pygments_line_handling
|
23
|
+
Jekyll.pygments = true
|
24
|
+
Jekyll.content_type = :markdown
|
25
|
+
|
26
|
+
result = Liquid::Template.parse(@content).render({}, [Jekyll::Filters])
|
27
|
+
result = Jekyll.markdown_proc.call(result)
|
28
|
+
assert_no_match(/markdown\-html\-error/,result)
|
29
|
+
end
|
30
|
+
|
31
|
+
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: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Preston-Werner
|
@@ -9,8 +9,8 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
13
|
-
default_executable:
|
12
|
+
date: 2009-02-10 00:00:00 -08:00
|
13
|
+
default_executable: jekyll
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: RedCloth
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
23
|
+
version: 4.0.4
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: liquid
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.9.0
|
34
34
|
version:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: classifier
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
43
|
+
version: 1.3.1
|
44
44
|
version:
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
46
|
name: maruku
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
53
|
+
version: 0.5.9
|
54
54
|
version:
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: directory_watcher
|
@@ -60,7 +60,7 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version:
|
63
|
+
version: 1.1.1
|
64
64
|
version:
|
65
65
|
- !ruby/object:Gem::Dependency
|
66
66
|
name: open4
|
@@ -70,40 +70,29 @@ dependencies:
|
|
70
70
|
requirements:
|
71
71
|
- - ">="
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version:
|
73
|
+
version: 0.9.6
|
74
74
|
version:
|
75
|
-
|
76
|
-
|
77
|
-
type: :development
|
78
|
-
version_requirement:
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
80
|
-
requirements:
|
81
|
-
- - ">="
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: 1.8.0
|
84
|
-
version:
|
85
|
-
description:
|
86
|
-
email:
|
87
|
-
- tom@mojombo.com
|
75
|
+
description: Jekyll is a simple, blog aware, static site generator.
|
76
|
+
email: tom@mojombo.com
|
88
77
|
executables:
|
89
78
|
- jekyll
|
90
79
|
extensions: []
|
91
80
|
|
92
|
-
extra_rdoc_files:
|
93
|
-
|
94
|
-
- Manifest.txt
|
81
|
+
extra_rdoc_files: []
|
82
|
+
|
95
83
|
files:
|
96
84
|
- History.txt
|
97
|
-
- Manifest.txt
|
98
85
|
- README.textile
|
99
|
-
-
|
86
|
+
- VERSION.yml
|
100
87
|
- bin/jekyll
|
101
|
-
- jekyll
|
102
|
-
- lib/jekyll.rb
|
88
|
+
- lib/jekyll
|
103
89
|
- lib/jekyll/albino.rb
|
90
|
+
- lib/jekyll/converters
|
104
91
|
- lib/jekyll/converters/csv.rb
|
105
92
|
- lib/jekyll/converters/mephisto.rb
|
106
93
|
- lib/jekyll/converters/mt.rb
|
94
|
+
- lib/jekyll/converters/textpattern.rb
|
95
|
+
- lib/jekyll/converters/typo.rb
|
107
96
|
- lib/jekyll/converters/wordpress.rb
|
108
97
|
- lib/jekyll/convertible.rb
|
109
98
|
- lib/jekyll/core_ext.rb
|
@@ -112,29 +101,91 @@ files:
|
|
112
101
|
- lib/jekyll/page.rb
|
113
102
|
- lib/jekyll/post.rb
|
114
103
|
- lib/jekyll/site.rb
|
104
|
+
- lib/jekyll/tags
|
115
105
|
- lib/jekyll/tags/highlight.rb
|
116
106
|
- lib/jekyll/tags/include.rb
|
107
|
+
- lib/jekyll.rb
|
108
|
+
- test/dest
|
109
|
+
- test/dest/2008
|
110
|
+
- test/dest/2008/10
|
111
|
+
- test/dest/2008/10/18
|
112
|
+
- test/dest/2008/10/18/foo-bar.html
|
113
|
+
- test/dest/2008/11
|
114
|
+
- test/dest/2008/11/21
|
115
|
+
- test/dest/2008/11/21/complex.html
|
116
|
+
- test/dest/2008/12
|
117
|
+
- test/dest/2008/12/13
|
118
|
+
- test/dest/2008/12/13/include.html
|
119
|
+
- test/dest/_posts
|
120
|
+
- test/dest/_posts/2008-10-18-foo-bar.html
|
121
|
+
- test/dest/_posts/2008-11-21-complex.html
|
122
|
+
- test/dest/_posts/2008-12-03-permalinked-post.html
|
123
|
+
- test/dest/_posts/2008-12-13-include.html
|
124
|
+
- test/dest/category
|
125
|
+
- test/dest/category/2008
|
126
|
+
- test/dest/category/2008/09
|
127
|
+
- test/dest/category/2008/09/23
|
128
|
+
- test/dest/category/2008/09/23/categories.html
|
129
|
+
- test/dest/category/_posts
|
130
|
+
- test/dest/category/_posts/2008-9-23-categories.html
|
131
|
+
- test/dest/css
|
132
|
+
- test/dest/css/screen.css
|
133
|
+
- test/dest/foo
|
134
|
+
- test/dest/foo/2008
|
135
|
+
- test/dest/foo/2008/12
|
136
|
+
- test/dest/foo/2008/12/12
|
137
|
+
- test/dest/foo/2008/12/12/topical-post.html
|
138
|
+
- test/dest/foo/_posts
|
139
|
+
- test/dest/foo/_posts/bar
|
140
|
+
- test/dest/foo/_posts/bar/2008-12-12-topical-post.html
|
141
|
+
- test/dest/index.html
|
142
|
+
- test/dest/my_category
|
143
|
+
- test/dest/my_category/permalinked-post
|
144
|
+
- test/dest/z_category
|
145
|
+
- test/dest/z_category/2008
|
146
|
+
- test/dest/z_category/2008/09
|
147
|
+
- test/dest/z_category/2008/09/23
|
148
|
+
- test/dest/z_category/2008/09/23/categories.html
|
149
|
+
- test/dest/z_category/_posts
|
150
|
+
- test/dest/z_category/_posts/2008-9-23-categories.html
|
117
151
|
- test/helper.rb
|
152
|
+
- test/source
|
153
|
+
- test/source/_includes
|
118
154
|
- test/source/_includes/sig.markdown
|
155
|
+
- test/source/_layouts
|
119
156
|
- test/source/_layouts/default.html
|
120
157
|
- test/source/_layouts/simple.html
|
158
|
+
- test/source/_posts
|
121
159
|
- test/source/_posts/2008-10-18-foo-bar.textile
|
122
160
|
- test/source/_posts/2008-11-21-complex.textile
|
123
161
|
- test/source/_posts/2008-12-03-permalinked-post.textile
|
124
162
|
- test/source/_posts/2008-12-13-include.markdown
|
163
|
+
- test/source/category
|
164
|
+
- test/source/category/_posts
|
165
|
+
- test/source/category/_posts/2008-9-23-categories.textile
|
166
|
+
- test/source/css
|
125
167
|
- test/source/css/screen.css
|
168
|
+
- test/source/foo
|
169
|
+
- test/source/foo/_posts
|
170
|
+
- test/source/foo/_posts/bar
|
171
|
+
- test/source/foo/_posts/bar/2008-12-12-topical-post.textile
|
126
172
|
- test/source/index.html
|
173
|
+
- test/source/z_category
|
174
|
+
- test/source/z_category/_posts
|
175
|
+
- test/source/z_category/_posts/2008-9-23-categories.textile
|
127
176
|
- test/suite.rb
|
177
|
+
- test/test_filters.rb
|
128
178
|
- test/test_generated_site.rb
|
129
179
|
- test/test_jekyll.rb
|
130
180
|
- test/test_post.rb
|
131
181
|
- test/test_site.rb
|
182
|
+
- test/test_tags.rb
|
132
183
|
has_rdoc: true
|
133
|
-
homepage:
|
184
|
+
homepage: http://github.com/mojombo/jekyll
|
134
185
|
post_install_message:
|
135
186
|
rdoc_options:
|
136
|
-
- --
|
137
|
-
-
|
187
|
+
- --inline-source
|
188
|
+
- --charset=UTF-8
|
138
189
|
require_paths:
|
139
190
|
- lib
|
140
191
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -156,8 +207,5 @@ rubygems_version: 1.3.0
|
|
156
207
|
signing_key:
|
157
208
|
specification_version: 2
|
158
209
|
summary: Jekyll is a simple, blog aware, static site generator.
|
159
|
-
test_files:
|
160
|
-
|
161
|
-
- test/test_jekyll.rb
|
162
|
-
- test/test_post.rb
|
163
|
-
- test/test_site.rb
|
210
|
+
test_files: []
|
211
|
+
|
data/Manifest.txt
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
History.txt
|
2
|
-
Manifest.txt
|
3
|
-
README.textile
|
4
|
-
Rakefile
|
5
|
-
bin/jekyll
|
6
|
-
jekyll.gemspec
|
7
|
-
lib/jekyll.rb
|
8
|
-
lib/jekyll/albino.rb
|
9
|
-
lib/jekyll/converters/csv.rb
|
10
|
-
lib/jekyll/converters/mephisto.rb
|
11
|
-
lib/jekyll/converters/mt.rb
|
12
|
-
lib/jekyll/converters/wordpress.rb
|
13
|
-
lib/jekyll/convertible.rb
|
14
|
-
lib/jekyll/core_ext.rb
|
15
|
-
lib/jekyll/filters.rb
|
16
|
-
lib/jekyll/layout.rb
|
17
|
-
lib/jekyll/page.rb
|
18
|
-
lib/jekyll/post.rb
|
19
|
-
lib/jekyll/site.rb
|
20
|
-
lib/jekyll/tags/highlight.rb
|
21
|
-
lib/jekyll/tags/include.rb
|
22
|
-
test/helper.rb
|
23
|
-
test/source/_includes/sig.markdown
|
24
|
-
test/source/_layouts/default.html
|
25
|
-
test/source/_layouts/simple.html
|
26
|
-
test/source/_posts/2008-10-18-foo-bar.textile
|
27
|
-
test/source/_posts/2008-11-21-complex.textile
|
28
|
-
test/source/_posts/2008-12-03-permalinked-post.textile
|
29
|
-
test/source/_posts/2008-12-13-include.markdown
|
30
|
-
test/source/css/screen.css
|
31
|
-
test/source/index.html
|
32
|
-
test/suite.rb
|
33
|
-
test/test_generated_site.rb
|
34
|
-
test/test_jekyll.rb
|
35
|
-
test/test_post.rb
|
36
|
-
test/test_site.rb
|
data/Rakefile
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'hoe'
|
3
|
-
require 'lib/jekyll'
|
4
|
-
|
5
|
-
Hoe.new('jekyll', Jekyll::VERSION) do |p|
|
6
|
-
p.developer('Tom Preston-Werner', 'tom@mojombo.com')
|
7
|
-
p.summary = "Jekyll is a simple, blog aware, static site generator."
|
8
|
-
p.extra_deps = ['RedCloth', 'liquid', 'classifier', 'maruku', 'directory_watcher', 'open4']
|
9
|
-
end
|
10
|
-
|
11
|
-
desc "Open an irb session preloaded with this library"
|
12
|
-
task :console do
|
13
|
-
sh "irb -rubygems -r ./lib/jekyll.rb"
|
14
|
-
end
|
15
|
-
|
16
|
-
namespace :convert do
|
17
|
-
desc "Migrate from mephisto in the current directory"
|
18
|
-
task :mephisto do
|
19
|
-
sh %q(ruby -r './lib/jekyll/converters/mephisto' -e 'Jekyll::Mephisto.postgres(:database => "#{ENV["DB"]}")')
|
20
|
-
end
|
21
|
-
task :mt do
|
22
|
-
sh %q(ruby -r './lib/jekyll/converters/mt' -e 'Jekyll::MT.process("#{ENV["DB"]}", "#{ENV["USER"]}", "#{ENV["PASS"]}")')
|
23
|
-
end
|
24
|
-
end
|
data/jekyll.gemspec
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
Gem::Specification.new do |s|
|
2
|
-
s.name = %q{jekyll}
|
3
|
-
s.version = "0.3.0"
|
4
|
-
|
5
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
6
|
-
s.authors = ["Tom Preston-Werner"]
|
7
|
-
s.date = %q{2008-12-24}
|
8
|
-
s.default_executable = %q{jekyll}
|
9
|
-
s.email = ["tom@mojombo.com"]
|
10
|
-
s.executables = ["jekyll"]
|
11
|
-
s.extra_rdoc_files = ["History.txt", "Manifest.txt"]
|
12
|
-
s.files = ["History.txt", "Manifest.txt", "README.textile", "Rakefile", "bin/jekyll", "jekyll.gemspec", "lib/jekyll.rb", "lib/jekyll/albino.rb", "lib/jekyll/converters/csv.rb", "lib/jekyll/converters/mephisto.rb", "lib/jekyll/converters/mt.rb", "lib/jekyll/converters/wordpress.rb", "lib/jekyll/convertible.rb", "lib/jekyll/core_ext.rb", "lib/jekyll/filters.rb", "lib/jekyll/layout.rb", "lib/jekyll/page.rb", "lib/jekyll/post.rb", "lib/jekyll/site.rb", "lib/jekyll/tags/highlight.rb", "lib/jekyll/tags/include.rb", "test/helper.rb", "test/source/_includes/sig.markdown", "test/source/_layouts/default.html", "test/source/_layouts/simple.html", "test/source/_posts/2008-10-18-foo-bar.textile", "test/source/_posts/2008-11-21-complex.textile", "test/source/_posts/2008-12-03-permalinked-post.textile", "test/source/_posts/2008-12-13-include.markdown", "test/source/css/screen.css", "test/source/index.html", "test/suite.rb", "test/test_generated_site.rb", "test/test_jekyll.rb", "test/test_post.rb", "test/test_site.rb"]
|
13
|
-
s.has_rdoc = true
|
14
|
-
s.rdoc_options = ["--main", "README.txt"]
|
15
|
-
s.require_paths = ["lib"]
|
16
|
-
s.rubyforge_project = %q{jekyll}
|
17
|
-
s.rubygems_version = %q{1.3.0}
|
18
|
-
s.summary = %q{Jekyll is a simple, blog aware, static site generator.}
|
19
|
-
s.test_files = ["test/test_generated_site.rb", "test/test_jekyll.rb", "test/test_post.rb", "test/test_site.rb"]
|
20
|
-
|
21
|
-
if s.respond_to? :specification_version then
|
22
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
23
|
-
s.specification_version = 2
|
24
|
-
|
25
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
26
|
-
s.add_runtime_dependency(%q<RedCloth>, [">= 0"])
|
27
|
-
s.add_runtime_dependency(%q<liquid>, [">= 0"])
|
28
|
-
s.add_runtime_dependency(%q<classifier>, [">= 0"])
|
29
|
-
s.add_runtime_dependency(%q<maruku>, [">= 0"])
|
30
|
-
s.add_runtime_dependency(%q<directory_watcher>, [">= 0"])
|
31
|
-
s.add_runtime_dependency(%q<open4>, [">= 0"])
|
32
|
-
s.add_development_dependency(%q<hoe>, [">= 1.8.0"])
|
33
|
-
else
|
34
|
-
s.add_dependency(%q<RedCloth>, [">= 0"])
|
35
|
-
s.add_dependency(%q<liquid>, [">= 0"])
|
36
|
-
s.add_dependency(%q<classifier>, [">= 0"])
|
37
|
-
s.add_dependency(%q<maruku>, [">= 0"])
|
38
|
-
s.add_dependency(%q<directory_watcher>, [">= 0"])
|
39
|
-
s.add_dependency(%q<open4>, [">= 0"])
|
40
|
-
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
41
|
-
end
|
42
|
-
else
|
43
|
-
s.add_dependency(%q<RedCloth>, [">= 0"])
|
44
|
-
s.add_dependency(%q<liquid>, [">= 0"])
|
45
|
-
s.add_dependency(%q<classifier>, [">= 0"])
|
46
|
-
s.add_dependency(%q<maruku>, [">= 0"])
|
47
|
-
s.add_dependency(%q<directory_watcher>, [">= 0"])
|
48
|
-
s.add_dependency(%q<open4>, [">= 0"])
|
49
|
-
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
50
|
-
end
|
51
|
-
end
|