Skip to content

Commit 6b74454

Browse files
committed
resetting to upstream
1 parent 2a7b1cb commit 6b74454

File tree

13 files changed

+30
-82
lines changed

13 files changed

+30
-82
lines changed

History.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
== Edge
2-
* Enhancements
3-
* added support for extensions [issue #100]
4-
51
== 0.5.6 / 2010-01-08
62
* Bug Fixes
73
* Require redcloth >= 4.2.1 in tests (#92)

Rakefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ begin
66
gem 'jeweler', '>= 0.11.0'
77
require 'jeweler'
88
Jeweler::Tasks.new do |s|
9-
s.name = "krisb-jekyll"
9+
s.name = "jekyll"
1010
s.summary = %Q{Jekyll is a simple, blog aware, static site generator.}
11-
s.email = "[email protected]"
11+
s.email = "[email protected]"
1212
s.homepage = "http://github.com/mojombo/jekyll"
1313
s.description = "Jekyll is a simple, blog aware, static site generator."
14-
s.authors = ["Tom Preston-Werner", "Kris Brown"]
15-
s.rubyforge_project = "krisb-jekyll"
14+
s.authors = ["Tom Preston-Werner"]
15+
s.rubyforge_project = "jekyll"
1616
s.files.exclude 'test/dest'
1717
s.test_files.exclude 'test/dest'
1818
s.add_dependency('RedCloth', '>= 4.2.1')

bin/jekyll

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,6 @@ opts = OptionParser.new do |opts|
6262
end
6363
end
6464

65-
opts.on("--extensions", "Load Jekyll extensions from _lib directory") do
66-
options['extensions'] = true
67-
end
68-
69-
opts.on("--no-extensions", "Do not load Jekyll extensions") do
70-
options['extensions'] = false
71-
end
72-
7365
opts.on("--version", "Display current version") do
7466
puts "Jekyll " + Jekyll.version
7567
exit 0

features/embed_filters.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Feature: Embed filters
2020
And I have the following post:
2121
| title | date | layout | content |
2222
| Star & Wars | 3/27/2009 | default | These aren't the droids you're looking for. |
23-
And I have a default layout that contains "{{ page.title | xml_escape }}"
23+
And I have a default layout that contains "{{ site.posts.first.title | xml_escape }}"
2424
When I run jekyll
2525
Then the _site directory should exist
2626
And I should see "Star & Wars" in "_site/2009/03/27/star-wars.html"
@@ -31,7 +31,7 @@ Feature: Embed filters
3131
And I have the following post:
3232
| title | date | layout | content |
3333
| Star Wars | 3/27/2009 | default | These aren't the droids you're looking for. |
34-
And I have a default layout that contains "{{ content | xml_escape }}"
34+
And I have a default layout that contains "{{ site.posts.first.content | xml_escape }}"
3535
When I run jekyll
3636
Then the _site directory should exist
3737
And I should see "7" in "_site/2009/03/27/star-wars.html"
@@ -42,7 +42,7 @@ Feature: Embed filters
4242
And I have the following post:
4343
| title | date | layout | tags | content |
4444
| Star Wars | 3/27/2009 | default | [scifi, movies, force] | These aren't the droids you're looking for. |
45-
And I have a default layout that contains "{{ page.tags | array_to_sentence_string }}"
45+
And I have a default layout that contains "{{ site.posts.first.tags | array_to_sentence_string }}"
4646
When I run jekyll
4747
Then the _site directory should exist
4848
And I should see "scifi, movies, and force" in "_site/2009/03/27/star-wars.html"

features/post_data.feature

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Feature: Post data
99
And I have the following post:
1010
| title | date | layout | content |
1111
| Star Wars | 3/27/2009 | simple | Luke, I am your father. |
12-
And I have a simple layout that contains "Post title: {{ page.title }}"
12+
And I have a simple layout that contains "Post title: {{ site.posts.first.title }}"
1313
When I run jekyll
1414
Then the _site directory should exist
1515
And I should see "Post title: Star Wars" in "_site/2009/03/27/star-wars.html"
@@ -20,7 +20,7 @@ Feature: Post data
2020
And I have the following post:
2121
| title | date | layout | content |
2222
| Star Wars | 3/27/2009 | simple | Luke, I am your father. |
23-
And I have a simple layout that contains "Post url: {{ page.url }}"
23+
And I have a simple layout that contains "Post url: {{ site.posts.first.url }}"
2424
When I run jekyll
2525
Then the _site directory should exist
2626
And I should see "Post url: /2009/03/27/star-wars.html" in "_site/2009/03/27/star-wars.html"
@@ -31,7 +31,7 @@ Feature: Post data
3131
And I have the following post:
3232
| title | date | layout | content |
3333
| Star Wars | 3/27/2009 | simple | Luke, I am your father. |
34-
And I have a simple layout that contains "Post date: {{ page.date }}"
34+
And I have a simple layout that contains "Post date: {{ site.posts.first.date }}"
3535
When I run jekyll
3636
Then the _site directory should exist
3737
And I should see "Post date: Fri Mar 27" in "_site/2009/03/27/star-wars.html"
@@ -42,7 +42,7 @@ Feature: Post data
4242
And I have the following post:
4343
| title | date | layout | content |
4444
| Star Wars | 3/27/2009 | simple | Luke, I am your father. |
45-
And I have a simple layout that contains "Post id: {{ page.id }}"
45+
And I have a simple layout that contains "Post id: {{ site.posts.first.id }}"
4646
When I run jekyll
4747
Then the _site directory should exist
4848
And I should see "Post id: /2009/03/27/star-wars" in "_site/2009/03/27/star-wars.html"
@@ -53,7 +53,7 @@ Feature: Post data
5353
And I have the following post:
5454
| title | date | layout | content |
5555
| Star Wars | 3/27/2009 | simple | Luke, I am your father. |
56-
And I have a simple layout that contains "Post content: {{ content }}"
56+
And I have a simple layout that contains "Post content: {{ site.posts.first.content }}"
5757
When I run jekyll
5858
Then the _site directory should exist
5959
And I should see "Post content: <p>Luke, I am your father.</p>" in "_site/2009/03/27/star-wars.html"
@@ -65,7 +65,7 @@ Feature: Post data
6565
And I have the following post in "movies":
6666
| title | date | layout | content |
6767
| Star Wars | 3/27/2009 | simple | Luke, I am your father. |
68-
And I have a simple layout that contains "Post category: {{ page.categories }}"
68+
And I have a simple layout that contains "Post category: {{ site.posts.first.categories }}"
6969
When I run jekyll
7070
Then the _site directory should exist
7171
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
@@ -76,7 +76,7 @@ Feature: Post data
7676
And I have the following post:
7777
| title | date | layout | tag | content |
7878
| Star Wars | 5/18/2009 | simple | twist | Luke, I am your father. |
79-
And I have a simple layout that contains "Post tags: {{ page.tags }}"
79+
And I have a simple layout that contains "Post tags: {{ site.posts.first.tags }}"
8080
When I run jekyll
8181
Then the _site directory should exist
8282
And I should see "Post tags: twist" in "_site/2009/05/18/star-wars.html"
@@ -89,7 +89,7 @@ Feature: Post data
8989
And I have the following post in "movies/scifi":
9090
| title | date | layout | content |
9191
| Star Wars | 3/27/2009 | simple | Luke, I am your father. |
92-
And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
92+
And I have a simple layout that contains "Post categories: {{ site.posts.first.categories | array_to_sentence_string }}"
9393
When I run jekyll
9494
Then the _site directory should exist
9595
And I should see "Post categories: movies and scifi" in "_site/movies/scifi/2009/03/27/star-wars.html"
@@ -100,7 +100,7 @@ Feature: Post data
100100
And I have the following post:
101101
| title | date | layout | category | content |
102102
| Star Wars | 3/27/2009 | simple | movies | Luke, I am your father. |
103-
And I have a simple layout that contains "Post category: {{ page.categories }}"
103+
And I have a simple layout that contains "Post category: {{ site.posts.first.categories }}"
104104
When I run jekyll
105105
Then the _site directory should exist
106106
And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html"
@@ -111,7 +111,7 @@ Feature: Post data
111111
And I have the following post:
112112
| title | date | layout | categories | content |
113113
| Star Wars | 3/27/2009 | simple | ['movies', 'scifi'] | Luke, I am your father. |
114-
And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
114+
And I have a simple layout that contains "Post categories: {{ site.posts.first.categories | array_to_sentence_string }}"
115115
When I run jekyll
116116
Then the _site directory should exist
117117
And I should see "Post categories: movies and scifi" in "_site/movies/scifi/2009/03/27/star-wars.html"
@@ -133,7 +133,7 @@ Feature: Post data
133133
And I have the following post:
134134
| title | date | layout | author | content |
135135
| Star Wars | 3/27/2009 | simple | Darth Vader | Luke, I am your father. |
136-
And I have a simple layout that contains "Post author: {{ page.author }}"
136+
And I have a simple layout that contains "Post author: {{ site.posts.first.author }}"
137137
When I run jekyll
138138
Then the _site directory should exist
139139
And I should see "Post author: Darth Vader" in "_site/2009/03/27/star-wars.html"

features/site_configuration.feature

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,3 @@ Feature: Site configuration
6161
When I run jekyll
6262
Then the _site directory should exist
6363
And I should see "puts 'Hello world!'" in "_site/index.html"
64-
65-
Scenario: Load an extension from _lib
66-
Given I have an "index.html" page that contains "{{ 'extension' | hello }}"
67-
And I have a _lib directory
68-
And I have a "_lib/hello.rb" file that contains "module Jekyll::Filters ; def hello(input) ; "hello #{input}" ; end ; end"
69-
And I have a configuration file with "extensions" set to "true"
70-
When I run jekyll
71-
Then the _site directory should exist
72-
And I should see "hello extension" in "_site/index.html"
73-
74-
Scenario: Skip loading extensions from _lib
75-
Given I have an "index.html" page that contains "{{ 'extension' | hello }}"
76-
And I have a _lib directory
77-
And I have a "_lib/hello.rb" file that contains "module Jekyll::Filters ; def hello(input) ; "hello #{input}" ; end ; end"
78-
And I have a configuration file with "extensions" set to "false"
79-
When I run jekyll
80-
Then the _site directory should exist
81-
And I should not see "hello extension" in "_site/index.html"

features/step_definitions/jekyll_steps.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,6 @@
119119
assert_match Regexp.new(text), File.open(file).readlines.join
120120
end
121121

122-
Then /^I should not see "(.*)" in "(.*)"$/ do |text, file|
123-
assert_no_match Regexp.new(text), File.open(file).readlines.join
124-
end
125-
126122
Then /^the "(.*)" file should exist$/ do |file|
127123
assert File.file?(file)
128124
end

jekyll.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
1212
s.date = %q{2010-01-08}
1313
s.default_executable = %q{jekyll}
1414
s.description = %q{Jekyll is a simple, blog aware, static site generator.}
15-
s.email = %q{[email protected]}
15+
s.email = %q{[email protected]}
1616
s.executables = ["jekyll"]
1717
s.extra_rdoc_files = [
1818
"README.textile"
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
3333
"features/site_data.feature",
3434
"features/step_definitions/jekyll_steps.rb",
3535
"features/support/env.rb",
36-
"krisb-jekyll.gemspec",
36+
"jekyll.gemspec",
3737
"lib/jekyll.rb",
3838
"lib/jekyll/albino.rb",
3939
"lib/jekyll/converters/csv.rb",
@@ -94,7 +94,7 @@ Gem::Specification.new do |s|
9494
s.homepage = %q{http://github.com/mojombo/jekyll}
9595
s.rdoc_options = ["--charset=UTF-8"]
9696
s.require_paths = ["lib"]
97-
s.rubyforge_project = %q{krisb-jekyll}
97+
s.rubyforge_project = %q{jekyll}
9898
s.rubygems_version = %q{1.3.5}
9999
s.summary = %q{Jekyll is a simple, blog aware, static site generator.}
100100
s.test_files = [

lib/jekyll.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ module Jekyll
4343
'pygments' => false,
4444
'markdown' => 'maruku',
4545
'permalink' => 'date',
46-
'extensions' => false,
4746

4847
'maruku' => {
4948
'use_tex' => false,

lib/jekyll/convertible.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
#
44
# Requires
55
# self.site -> Jekyll::Site
6-
# self.content=
7-
# self.data=
8-
# self.ext=
9-
# self.output=
106
module Jekyll
117
module Convertible
128
# Return the contents as a string

0 commit comments

Comments
 (0)