codeslinger-jekyll 0.3.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,4 +1,12 @@
1
1
  ==
2
+ * Minor Enhancements
3
+ * Changed date format on wordpress converter (zeropadding) [github.com/dysinger]
4
+ * Bug Fixes
5
+ * Add jekyll binary as executable to gemspec [github.com/dysinger]
6
+
7
+ == 0.4.0 / 2009-02-03
8
+ * Major Enhancements
9
+ * Switch to Jeweler for packaging tasks
2
10
  * Minor Enhancements
3
11
  * Type importer [github.com/codeslinger]
4
12
  * site.topics accessor [github.com/baz]
@@ -7,10 +15,13 @@
7
15
  * Add a working Mephisto / MySQL converter [github.com/ivey]
8
16
  * Allowing .htaccess files to be copied over into the generated site [github.com/briandoll]
9
17
  * Add option to not put file date in permalink URL [github.com/mreid]
18
+ * Add line number capabilities to highlight blocks [github.com/jcon]
10
19
  * Bug Fixes
11
20
  * Fix permalink behavior [github.com/cavalle]
12
21
  * Fixed an issue with pygments, markdown, and newlines [github.com/zpinter]
13
22
  * Ampersands need to be escaped [github.com/pufuwozu, github.com/ap]
23
+ * Test and fix the site.categories hash [github.com/zzot]
24
+ * Fix site payload available to files [github.com/matrix9180]
14
25
 
15
26
  == 0.3.0 / 2008-12-24
16
27
  * Major Enhancements
data/README.textile CHANGED
@@ -342,17 +342,33 @@ The argument to <code>highlight</code> is the language identifier. To find the
342
342
  appropriate identifier to use for your favorite language, look for the "short
343
343
  name" on the "Lexers":http://pygments.org/docs/lexers/ page.
344
344
 
345
+ There is a second argument to <code>highlight</code> called
346
+ <code>linenos</code> that is optional. Including the <code>linenos</code>
347
+ argument will force the highlighted code to include line numbers. For
348
+ instance, the following code block would include line numbers next to each
349
+ line:
350
+
351
+ <pre>
352
+ {% highlight ruby linenos %}
353
+ def foo
354
+ puts 'foo'
355
+ end
356
+ {% endhighlight %}
357
+ </pre>
358
+
345
359
  In order for the highlighting to show up, you'll need to include a
346
360
  highlighting stylesheet. For an example stylesheet you can look at
347
361
  "syntax.css":http://github.com/mojombo/tpw/tree/master/css/syntax.css. These
348
362
  are the same styles as used by GitHub and you are free to use them for your
349
- own site.
363
+ own site. If you use linenos, you might want to include an additional CSS
364
+ class definition for <code>lineno</code> in syntax.css to distinguish the line
365
+ numbers from the highlighted code.
350
366
 
351
367
  h2. Categories
352
368
 
353
- Posts are placed into categories based on the directory structure they are found
354
- within (see above for an example). The categories can be accessed from within
355
- a Liquid template as follows:
369
+ Posts are placed into categories based on the directory structure they are
370
+ found within (see above for an example). The categories can be accessed from
371
+ within a Liquid template as follows:
356
372
 
357
373
  <pre>
358
374
  {% for post in site.categories.foo %}
@@ -364,25 +380,6 @@ This would list all the posts in the category 'foo' by date and title.
364
380
 
365
381
  The posts within each category are sorted in reverse chronological order.
366
382
 
367
- h2. Contribute
368
-
369
- If you'd like to hack on Jekyll, grab the source from GitHub. To get
370
- all of the dependencies, install the gem first.
371
-
372
- $ git clone git://github.com/mojombo/jekyll
373
-
374
- The best way to get your changes merged back into core is as follows:
375
-
376
- # Fork mojombo/jekyll on GitHub
377
- # Clone down your fork
378
- # Create a topic branch to contain your change
379
- # Hack away
380
- # If you are adding new functionality, document it in README.textile
381
- # Do not change the version number, I will do that on my end
382
- # If necessary, rebase your commits into logical chunks, without errors
383
- # Push the branch up to GitHub
384
- # Send me (mojombo) a pull request for your branch
385
-
386
383
  h2. Blog migrations
387
384
 
388
385
  h3. Movable Type
@@ -433,6 +430,25 @@ The hostname defaults to _localhost_, all other variables are needed
433
430
  You may need to adjust the code used to filter entries. Left alone,
434
431
  it will attempt to pull all entries that are live or sticky.
435
432
 
433
+ h2. Contribute
434
+
435
+ If you'd like to hack on Jekyll, start by forking my repo on GitHub:
436
+
437
+ http://github.com/mojombo/jekyll
438
+
439
+ To get all of the dependencies, install the gem first. The best way to get
440
+ your changes merged back into core is as follows:
441
+
442
+ # Clone down your fork
443
+ # Create a topic branch to contain your change
444
+ # Hack away
445
+ # Add tests and make sure everything still passes by running `rake`
446
+ # If you are adding new functionality, document it in README.textile
447
+ # Do not change the version number, I will do that on my end
448
+ # If necessary, rebase your commits into logical chunks, without errors
449
+ # Push the branch up to GitHub
450
+ # Send me (mojombo) a pull request for your branch
451
+
436
452
  h2. License
437
453
 
438
454
  (The MIT License)
data/VERSION.yml ADDED
@@ -0,0 +1,4 @@
1
+ ---
2
+ :minor: 4
3
+ :patch: 1
4
+ :major: 0
data/bin/jekyll CHANGED
@@ -51,7 +51,11 @@ opts = OptionParser.new do |opts|
51
51
  opts.on("--permalink [TYPE]", "Use 'date' (default) for YYYY/MM/DD") do |style|
52
52
  Jekyll.permalink_style = (style || 'date').to_sym
53
53
  end
54
-
54
+
55
+ opts.on("--version", "Display current version") do
56
+ puts "Jekyll " + Jekyll.version
57
+ exit 0
58
+ end
55
59
  end
56
60
 
57
61
  opts.parse!
data/lib/jekyll.rb CHANGED
@@ -43,8 +43,6 @@ require 'jekyll/tags/include'
43
43
  require 'jekyll/albino'
44
44
 
45
45
  module Jekyll
46
- VERSION = '0.3.0'
47
-
48
46
  class << self
49
47
  attr_accessor :source, :dest, :lsi, :pygments, :markdown_proc, :content_type, :permalink_style
50
48
  end
@@ -61,4 +59,9 @@ module Jekyll
61
59
  Jekyll.dest = dest
62
60
  Jekyll::Site.new(source, dest).process
63
61
  end
62
+
63
+ def self.version
64
+ yml = YAML.load(File.read(File.join(File.dirname(__FILE__), *%w[.. VERSION.yml])))
65
+ "#{yml[:major]}.#{yml[:minor]}.#{yml[:patch]}"
66
+ end
64
67
  end
@@ -10,8 +10,8 @@ require 'fileutils'
10
10
 
11
11
  module Jekyll
12
12
  module WordPress
13
-
14
- # Reads a MySQL database via Sequel and creates a post file for each
13
+
14
+ # Reads a MySQL database via Sequel and creates a post file for each
15
15
  # post in wp_posts that has post_status = 'publish'.
16
16
  # This restriction is made because 'draft' posts are not guaranteed to
17
17
  # have valid dates.
@@ -19,20 +19,21 @@ module Jekyll
19
19
 
20
20
  def self.process(dbname, user, pass, host = 'localhost')
21
21
  db = Sequel.mysql(dbname, :user => user, :password => pass, :host => host)
22
-
22
+
23
23
  FileUtils.mkdir_p "_posts"
24
-
24
+
25
25
  db[QUERY].each do |post|
26
26
  # Get required fields and construct Jekyll compatible name
27
27
  title = post[:post_title]
28
28
  slug = post[:post_name]
29
29
  date = post[:post_date]
30
30
  content = post[:post_content]
31
-
32
- name = [date.year, date.month, date.day, slug].join('-') + ".markdown"
31
+
32
+ name = "%02d-%02d-%02d-%s.markdown" % [date.year, date.month, date.day,
33
+ slug]
33
34
 
34
35
  # Get the relevant fields as a hash, delete empty fields and convert
35
- # to YAML for the header
36
+ # to YAML for the header
36
37
  data = {
37
38
  'layout' => 'post',
38
39
  'title' => title.to_s,
@@ -51,4 +52,4 @@ module Jekyll
51
52
 
52
53
  end
53
54
  end
54
- end
55
+ end
data/lib/jekyll/site.rb CHANGED
@@ -2,7 +2,7 @@ module Jekyll
2
2
 
3
3
  class Site
4
4
  attr_accessor :source, :dest
5
- attr_accessor :layouts, :posts
5
+ attr_accessor :layouts, :posts, :categories
6
6
 
7
7
  # Initialize the site
8
8
  # +source+ is String path to the source directory containing
@@ -16,6 +16,7 @@ module Jekyll
16
16
  self.dest = dest
17
17
  self.layouts = {}
18
18
  self.posts = []
19
+ self.categories = Hash.new { |hash, key| hash[key] = Array.new }
19
20
  end
20
21
 
21
22
  # Do the actual work of processing the site and generating the
@@ -63,6 +64,7 @@ module Jekyll
63
64
  if Post.valid?(f)
64
65
  post = Post.new(self.source, dir, f)
65
66
  self.posts << post
67
+ post.categories.each { |c| self.categories[c] << post }
66
68
  end
67
69
  end
68
70
 
@@ -72,6 +74,7 @@ module Jekyll
72
74
  end
73
75
 
74
76
  self.posts.sort!
77
+ self.categories.values.map { |cats| cats.sort! { |a, b| b <=> a} }
75
78
  rescue Errno::ENOENT => e
76
79
  # ignore missing layout dir
77
80
  end
@@ -101,6 +104,8 @@ module Jekyll
101
104
  entries = entries.reject do |e|
102
105
  (e != '_posts') and ['.', '_'].include?(e[0..0]) unless ['.htaccess'].include?(e)
103
106
  end
107
+ directories = entries.select { |e| File.directory?(File.join(base, e)) }
108
+ files = entries.reject { |e| File.directory?(File.join(base, e)) }
104
109
 
105
110
  # we need to make sure to process _posts *first* otherwise they
106
111
  # might not be available yet to other templates as {{ site.posts }}
@@ -108,23 +113,24 @@ module Jekyll
108
113
  entries.delete('_posts')
109
114
  read_posts(dir)
110
115
  end
111
-
112
- entries.each do |f|
113
- if File.directory?(File.join(base, f))
114
- next if self.dest.sub(/\/$/, '') == File.join(base, f)
115
- transform_pages(File.join(dir, f))
116
- else
117
- first3 = File.open(File.join(self.source, dir, f)) { |fd| fd.read(3) }
118
-
119
- if first3 == "---"
120
- # file appears to have a YAML header so process it as a page
121
- page = Page.new(self.source, dir, f)
122
- page.render(self.layouts, site_payload)
123
- page.write(self.dest)
116
+ [directories, files].each do |entries|
117
+ entries.each do |f|
118
+ if File.directory?(File.join(base, f))
119
+ next if self.dest.sub(/\/$/, '') == File.join(base, f)
120
+ transform_pages(File.join(dir, f))
124
121
  else
125
- # otherwise copy the file without transforming it
126
- FileUtils.mkdir_p(File.join(self.dest, dir))
127
- FileUtils.cp(File.join(self.source, dir, f), File.join(self.dest, dir, f))
122
+ first3 = File.open(File.join(self.source, dir, f)) { |fd| fd.read(3) }
123
+
124
+ if first3 == "---"
125
+ # file appears to have a YAML header so process it as a page
126
+ page = Page.new(self.source, dir, f)
127
+ page.render(self.layouts, site_payload)
128
+ page.write(self.dest)
129
+ else
130
+ # otherwise copy the file without transforming it
131
+ FileUtils.mkdir_p(File.join(self.dest, dir))
132
+ FileUtils.cp(File.join(self.source, dir, f), File.join(self.dest, dir, f))
133
+ end
128
134
  end
129
135
  end
130
136
  end
@@ -2,10 +2,22 @@ module Jekyll
2
2
 
3
3
  class HighlightBlock < Liquid::Block
4
4
  include Liquid::StandardFilters
5
+ # we need a language, but the linenos argument is optional.
6
+ SYNTAX = /(\w+)\s?(:?linenos)?\s?/
5
7
 
6
- def initialize(tag_name, lang, tokens)
8
+ def initialize(tag_name, markup, tokens)
7
9
  super
8
- @lang = lang.strip
10
+ if markup =~ SYNTAX
11
+ @lang = $1
12
+ if defined? $2
13
+ # additional options to pass to Albino.
14
+ @options = { 'O' => 'linenos=inline' }
15
+ else
16
+ @options = {}
17
+ end
18
+ else
19
+ raise SyntaxError.new("Syntax Error in 'highlight' - Valid syntax: highlight <lang> [linenos]")
20
+ end
9
21
  end
10
22
 
11
23
  def render(context)
@@ -18,9 +30,9 @@ module Jekyll
18
30
 
19
31
  def render_pygments(context, code)
20
32
  if Jekyll.content_type == :markdown
21
- return "\n" + Albino.new(code, @lang).to_s + "\n"
33
+ return "\n" + Albino.new(code, @lang).to_s(@options) + "\n"
22
34
  else
23
- "<notextile>" + Albino.new(code, @lang).to_s + "</notextile>"
35
+ "<notextile>" + Albino.new(code, @lang).to_s(@options) + "</notextile>"
24
36
  end
25
37
  end
26
38
 
@@ -0,0 +1,6 @@
1
+ ---
2
+ layout: default
3
+ title: Categories
4
+ ---
5
+
6
+ Categories _should_ work
@@ -0,0 +1,8 @@
1
+ ---
2
+ layout: default
3
+ title: Topical Post
4
+ ---
5
+
6
+ h1. {{ page.title }}
7
+
8
+ This post has a topic.
@@ -0,0 +1,6 @@
1
+ ---
2
+ layout: default
3
+ title: Categories
4
+ ---
5
+
6
+ Categories _should_ work. Even if ordered after index.
@@ -11,6 +11,7 @@ class TestGeneratedSite < Test::Unit::TestCase
11
11
 
12
12
  def test_site_posts_in_index
13
13
  # confirm that {{ site.posts }} is working
14
+ puts @s.posts.size
14
15
  assert @index.include?("#{@s.posts.size} Posts")
15
16
  end
16
17
 
data/test/test_post.rb CHANGED
@@ -96,6 +96,12 @@ class TestPost < Test::Unit::TestCase
96
96
  assert_equal "<<< <p>url: /2008/11/21/complex.html<br />\ndate: #{Time.parse("2008-11-21")}<br />\nid: /2008/11/21/complex</p> >>>", p.output
97
97
  end
98
98
 
99
+ def test_categories_and_topics
100
+ p = Post.new(File.join(File.dirname(__FILE__), *%w[source]), 'foo', 'bar/2008-12-12-topical-post.textile')
101
+ assert_equal ['foo'], p.categories
102
+ assert_equal ['bar'], p.topics
103
+ end
104
+
99
105
  def test_include
100
106
  Jekyll.source = File.join(File.dirname(__FILE__), *%w[source])
101
107
  p = Post.new(File.join(File.dirname(__FILE__), *%w[source]), '', "2008-12-13-include.markdown")
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 test_write_posts
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeslinger-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Preston-Werner
@@ -9,91 +9,85 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-21 00:00:00 -08:00
12
+ date: 2009-02-10 00:00:00 -08:00
13
13
  default_executable: jekyll
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: RedCloth
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
20
21
  - - ">="
21
22
  - !ruby/object:Gem::Version
22
- version: "0"
23
+ version: 4.0.4
23
24
  version:
24
25
  - !ruby/object:Gem::Dependency
25
26
  name: liquid
27
+ type: :runtime
26
28
  version_requirement:
27
29
  version_requirements: !ruby/object:Gem::Requirement
28
30
  requirements:
29
31
  - - ">="
30
32
  - !ruby/object:Gem::Version
31
- version: "0"
33
+ version: 1.9.0
32
34
  version:
33
35
  - !ruby/object:Gem::Dependency
34
36
  name: classifier
37
+ type: :runtime
35
38
  version_requirement:
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
41
  - - ">="
39
42
  - !ruby/object:Gem::Version
40
- version: "0"
43
+ version: 1.3.1
41
44
  version:
42
45
  - !ruby/object:Gem::Dependency
43
46
  name: maruku
47
+ type: :runtime
44
48
  version_requirement:
45
49
  version_requirements: !ruby/object:Gem::Requirement
46
50
  requirements:
47
51
  - - ">="
48
52
  - !ruby/object:Gem::Version
49
- version: "0"
53
+ version: 0.5.9
50
54
  version:
51
55
  - !ruby/object:Gem::Dependency
52
56
  name: directory_watcher
57
+ type: :runtime
53
58
  version_requirement:
54
59
  version_requirements: !ruby/object:Gem::Requirement
55
60
  requirements:
56
61
  - - ">="
57
62
  - !ruby/object:Gem::Version
58
- version: "0"
63
+ version: 1.1.1
59
64
  version:
60
65
  - !ruby/object:Gem::Dependency
61
66
  name: open4
67
+ type: :runtime
62
68
  version_requirement:
63
69
  version_requirements: !ruby/object:Gem::Requirement
64
70
  requirements:
65
71
  - - ">="
66
72
  - !ruby/object:Gem::Version
67
- version: "0"
73
+ version: 0.9.6
68
74
  version:
69
- - !ruby/object:Gem::Dependency
70
- name: hoe
71
- version_requirement:
72
- version_requirements: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- version: 1.8.0
77
- version:
78
- description:
79
- email:
80
- - tom@mojombo.com
75
+ description: Jekyll is a simple, blog aware, static site generator.
76
+ email: tom@mojombo.com
81
77
  executables:
82
78
  - jekyll
83
79
  extensions: []
84
80
 
85
- extra_rdoc_files:
86
- - History.txt
87
- - Manifest.txt
81
+ extra_rdoc_files: []
82
+
88
83
  files:
89
84
  - History.txt
90
- - Manifest.txt
91
85
  - README.textile
92
- - Rakefile
86
+ - VERSION.yml
93
87
  - bin/jekyll
94
- - jekyll.gemspec
95
- - lib/jekyll.rb
88
+ - lib/jekyll
96
89
  - lib/jekyll/albino.rb
90
+ - lib/jekyll/converters
97
91
  - lib/jekyll/converters/csv.rb
98
92
  - lib/jekyll/converters/mephisto.rb
99
93
  - lib/jekyll/converters/mt.rb
@@ -107,18 +101,78 @@ files:
107
101
  - lib/jekyll/page.rb
108
102
  - lib/jekyll/post.rb
109
103
  - lib/jekyll/site.rb
104
+ - lib/jekyll/tags
110
105
  - lib/jekyll/tags/highlight.rb
111
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
112
151
  - test/helper.rb
152
+ - test/source
153
+ - test/source/_includes
113
154
  - test/source/_includes/sig.markdown
155
+ - test/source/_layouts
114
156
  - test/source/_layouts/default.html
115
157
  - test/source/_layouts/simple.html
158
+ - test/source/_posts
116
159
  - test/source/_posts/2008-10-18-foo-bar.textile
117
160
  - test/source/_posts/2008-11-21-complex.textile
118
161
  - test/source/_posts/2008-12-03-permalinked-post.textile
119
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
120
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
121
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
122
176
  - test/suite.rb
123
177
  - test/test_filters.rb
124
178
  - test/test_generated_site.rb
@@ -127,11 +181,11 @@ files:
127
181
  - test/test_site.rb
128
182
  - test/test_tags.rb
129
183
  has_rdoc: true
130
- homepage:
184
+ homepage: http://github.com/mojombo/jekyll
131
185
  post_install_message:
132
186
  rdoc_options:
133
- - --main
134
- - README.txt
187
+ - --inline-source
188
+ - --charset=UTF-8
135
189
  require_paths:
136
190
  - lib
137
191
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -153,10 +207,5 @@ rubygems_version: 1.2.0
153
207
  signing_key:
154
208
  specification_version: 2
155
209
  summary: Jekyll is a simple, blog aware, static site generator.
156
- test_files:
157
- - test/test_filters.rb
158
- - test/test_generated_site.rb
159
- - test/test_jekyll.rb
160
- - test/test_post.rb
161
- - test/test_site.rb
162
- - test/test_tags.rb
210
+ test_files: []
211
+
data/Manifest.txt DELETED
@@ -1,40 +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/textpattern.rb
13
- lib/jekyll/converters/typo.rb
14
- lib/jekyll/converters/wordpress.rb
15
- lib/jekyll/convertible.rb
16
- lib/jekyll/core_ext.rb
17
- lib/jekyll/filters.rb
18
- lib/jekyll/layout.rb
19
- lib/jekyll/page.rb
20
- lib/jekyll/post.rb
21
- lib/jekyll/site.rb
22
- lib/jekyll/tags/highlight.rb
23
- lib/jekyll/tags/include.rb
24
- test/helper.rb
25
- test/source/_includes/sig.markdown
26
- test/source/_layouts/default.html
27
- test/source/_layouts/simple.html
28
- test/source/_posts/2008-10-18-foo-bar.textile
29
- test/source/_posts/2008-11-21-complex.textile
30
- test/source/_posts/2008-12-03-permalinked-post.textile
31
- test/source/_posts/2008-12-13-include.markdown
32
- test/source/css/screen.css
33
- test/source/index.html
34
- test/suite.rb
35
- test/test_filters.rb
36
- test/test_generated_site.rb
37
- test/test_jekyll.rb
38
- test/test_post.rb
39
- test/test_site.rb
40
- test/test_tags.rb
data/Rakefile DELETED
@@ -1,29 +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
- desc "Migrate from Movable Type in the current directory"
22
- task :mt do
23
- sh %q(ruby -r './lib/jekyll/converters/mt' -e 'Jekyll::MT.process("#{ENV["DB"]}", "#{ENV["USER"]}", "#{ENV["PASS"]}")')
24
- end
25
- desc "Migrate from Typo in the current directory"
26
- task :typo do
27
- sh %q(ruby -r './lib/jekyll/converters/typo' -e 'Jekyll::Typo.process("#{ENV["DB"]}", "#{ENV["USER"]}", "#{ENV["PASS"]}")')
28
- end
29
- 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{2009-01-21}
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/textpattern.rb", "lib/jekyll/converters/typo.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_filters.rb", "test/test_generated_site.rb", "test/test_jekyll.rb", "test/test_post.rb", "test/test_site.rb", "test/test_tags.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_filters.rb", "test/test_generated_site.rb", "test/test_jekyll.rb", "test/test_post.rb", "test/test_site.rb", "test/test_tags.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