jekyll 1.3.1 → 1.4.0
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.
- checksums.yaml +4 -4
- data/History.markdown +22 -1
- data/Rakefile +1 -1
- data/features/markdown.feature +4 -4
- data/features/site_configuration.feature +4 -4
- data/jekyll.gemspec +6 -3
- data/lib/jekyll.rb +2 -1
- data/lib/jekyll/configuration.rb +14 -3
- data/lib/jekyll/converters/markdown/maruku_parser.rb +1 -1
- data/lib/jekyll/generators/pagination.rb +1 -1
- data/lib/jekyll/site.rb +14 -18
- data/lib/jekyll/tags/include.rb +1 -1
- data/site/_includes/top.html +1 -1
- data/site/_posts/2013-11-04-jekyll-1-3-0-released.markdown +1 -1
- data/site/_posts/2013-12-07-jekyll-1-4-0-released.markdown +30 -0
- data/site/docs/history.md +22 -1
- data/test/source/_config.dev.toml +2 -0
- data/test/test_configuration.rb +12 -3
- data/test/test_excerpt.rb +1 -1
- data/test/test_post.rb +1 -1
- data/test/test_tags.rb +3 -3
- metadata +20 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5466e36bab3cde8d7f3be1b61f7f8bf52b458750
|
4
|
+
data.tar.gz: 08fee26752318820f8ccaaa0158fea42a4764a70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe10f7294a52a2def29b0a618f97805d834ebf779ca51bccc129829e9bd9c98ab53b1a34883c248a92b5ed7b8e9bbaf0fda0c30dd4907ff182c9c208c9ed1d3f
|
7
|
+
data.tar.gz: 4f4e15d14f2af09e0429e707665c85a3b80567a25474a980b80c833b102d7b713fe1c124b630036591507fb70899022474fadf9a27405afd7a2b0138fd197492
|
data/History.markdown
CHANGED
@@ -10,7 +10,28 @@
|
|
10
10
|
|
11
11
|
### Site Enhancements
|
12
12
|
|
13
|
-
## 1.
|
13
|
+
## 1.4.0 / 2013-12-07
|
14
|
+
|
15
|
+
### Major Enhancements
|
16
|
+
* Add support for TOML config files (#1765)
|
17
|
+
|
18
|
+
### Minor Enhancements
|
19
|
+
* Sort plugins as a way to establish a load order (#1682)
|
20
|
+
* Update Maruku to 0.7.0 (#1775)
|
21
|
+
|
22
|
+
### Bug Fixes
|
23
|
+
* Add a space between two words in a Pagination warning message (#1769)
|
24
|
+
* Upgrade `toml` gem to `v0.1.0` to maintain compat with Ruby 1.8.7 (#1778)
|
25
|
+
|
26
|
+
### Development Fixes
|
27
|
+
* Remove some whitespace in the code (#1755)
|
28
|
+
* Remove some duplication in the reading of posts and drafts (#1779)
|
29
|
+
|
30
|
+
### Site Enhancements
|
31
|
+
* Fixed case of a word in the Jekyll v1.3.0 release post (#1762)
|
32
|
+
* Fixed the mime type for the favicon (#1772)
|
33
|
+
|
34
|
+
## 1.3.1 / 2013-11-26
|
14
35
|
|
15
36
|
### Minor Enhancements
|
16
37
|
* Add a `--prefix` option to passthrough for the importers (#1669)
|
data/Rakefile
CHANGED
data/features/markdown.feature
CHANGED
@@ -13,8 +13,8 @@ Feature: Markdown
|
|
13
13
|
When I run jekyll
|
14
14
|
Then the _site directory should exist
|
15
15
|
And I should see "Index" in "_site/index.html"
|
16
|
-
And I should see "<h1 id
|
17
|
-
And I should see "<h1 id
|
16
|
+
And I should see "<h1 id=\"my_title\">My Title</h1>" in "_site/2009/03/27/hackers.html"
|
17
|
+
And I should see "<h1 id=\"my_title\">My Title</h1>" in "_site/index.html"
|
18
18
|
|
19
19
|
Scenario: Markdown in pagination on index
|
20
20
|
Given I have a configuration file with "paginate" set to "5"
|
@@ -26,5 +26,5 @@ Feature: Markdown
|
|
26
26
|
When I run jekyll
|
27
27
|
Then the _site directory should exist
|
28
28
|
And I should see "Index" in "_site/index.html"
|
29
|
-
And I should see "<h1 id
|
30
|
-
|
29
|
+
And I should see "<h1 id=\"my_title\">My Title</h1>" in "_site/index.html"
|
30
|
+
|
@@ -67,28 +67,28 @@ Feature: Site configuration
|
|
67
67
|
And I have a configuration file with "markdown" set to "rdiscount"
|
68
68
|
When I run jekyll
|
69
69
|
Then the _site directory should exist
|
70
|
-
And I should see "<a href
|
70
|
+
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
|
71
71
|
|
72
72
|
Scenario: Use Kramdown for markup
|
73
73
|
Given I have an "index.markdown" page that contains "[Google](http://google.com)"
|
74
74
|
And I have a configuration file with "markdown" set to "kramdown"
|
75
75
|
When I run jekyll
|
76
76
|
Then the _site directory should exist
|
77
|
-
And I should see "<a href
|
77
|
+
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
|
78
78
|
|
79
79
|
Scenario: Use Redcarpet for markup
|
80
80
|
Given I have an "index.markdown" page that contains "[Google](http://google.com)"
|
81
81
|
And I have a configuration file with "markdown" set to "redcarpet"
|
82
82
|
When I run jekyll
|
83
83
|
Then the _site directory should exist
|
84
|
-
And I should see "<a href
|
84
|
+
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
|
85
85
|
|
86
86
|
Scenario: Use Maruku for markup
|
87
87
|
Given I have an "index.markdown" page that contains "[Google](http://google.com)"
|
88
88
|
And I have a configuration file with "markdown" set to "maruku"
|
89
89
|
When I run jekyll
|
90
90
|
Then the _site directory should exist
|
91
|
-
And I should see "<a href
|
91
|
+
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
|
92
92
|
|
93
93
|
Scenario: Highlight code with pygments
|
94
94
|
Given I have an "index.html" file that contains "{% highlight ruby %} puts 'Hello world!' {% endhighlight %}"
|
data/jekyll.gemspec
CHANGED
@@ -4,9 +4,9 @@ Gem::Specification.new do |s|
|
|
4
4
|
s.rubygems_version = '1.3.5'
|
5
5
|
|
6
6
|
s.name = 'jekyll'
|
7
|
-
s.version = '1.
|
7
|
+
s.version = '1.4.0'
|
8
8
|
s.license = 'MIT'
|
9
|
-
s.date = '2013-
|
9
|
+
s.date = '2013-12-07'
|
10
10
|
s.rubyforge_project = 'jekyll'
|
11
11
|
|
12
12
|
s.summary = "A simple, blog aware, static site generator."
|
@@ -26,12 +26,13 @@ Gem::Specification.new do |s|
|
|
26
26
|
s.add_runtime_dependency('liquid', "~> 2.5.2")
|
27
27
|
s.add_runtime_dependency('classifier', "~> 1.3")
|
28
28
|
s.add_runtime_dependency('listen', "~> 1.3")
|
29
|
-
s.add_runtime_dependency('maruku', "~> 0.
|
29
|
+
s.add_runtime_dependency('maruku', "~> 0.7.0")
|
30
30
|
s.add_runtime_dependency('pygments.rb', "~> 0.5.0")
|
31
31
|
s.add_runtime_dependency('commander', "~> 4.1.3")
|
32
32
|
s.add_runtime_dependency('safe_yaml', "~> 0.9.7")
|
33
33
|
s.add_runtime_dependency('colorator', "~> 0.1")
|
34
34
|
s.add_runtime_dependency('redcarpet', "~> 2.3.0")
|
35
|
+
s.add_runtime_dependency('toml', '~> 0.1.0')
|
35
36
|
|
36
37
|
s.add_development_dependency('rake', "~> 10.1")
|
37
38
|
s.add_development_dependency('rdoc', "~> 3.11")
|
@@ -158,6 +159,7 @@ Gem::Specification.new do |s|
|
|
158
159
|
site/_posts/2013-10-28-jekyll-1-3-0-rc1-released.markdown
|
159
160
|
site/_posts/2013-11-04-jekyll-1-3-0-released.markdown
|
160
161
|
site/_posts/2013-11-26-jekyll-1-3-1-released.markdown
|
162
|
+
site/_posts/2013-12-07-jekyll-1-4-0-released.markdown
|
161
163
|
site/css/gridism.css
|
162
164
|
site/css/normalize.css
|
163
165
|
site/css/pygments.css
|
@@ -211,6 +213,7 @@ Gem::Specification.new do |s|
|
|
211
213
|
test/helper.rb
|
212
214
|
test/source/+/foo.md
|
213
215
|
test/source/.htaccess
|
216
|
+
test/source/_config.dev.toml
|
214
217
|
test/source/_data/languages.yml
|
215
218
|
test/source/_data/members.yaml
|
216
219
|
test/source/_data/products.yml
|
data/lib/jekyll.rb
CHANGED
@@ -26,6 +26,7 @@ require 'pathname'
|
|
26
26
|
require 'liquid'
|
27
27
|
require 'maruku'
|
28
28
|
require 'colorator'
|
29
|
+
require 'toml'
|
29
30
|
|
30
31
|
# internal requires
|
31
32
|
require 'jekyll/core_ext'
|
@@ -62,7 +63,7 @@ require_all 'jekyll/tags'
|
|
62
63
|
SafeYAML::OPTIONS[:suppress_warnings] = true
|
63
64
|
|
64
65
|
module Jekyll
|
65
|
-
VERSION = '1.
|
66
|
+
VERSION = '1.4.0'
|
66
67
|
|
67
68
|
# Public: Generate a Jekyll configuration Hash by merging the default
|
68
69
|
# options with anything in _config.yml, and adding the given options on top.
|
data/lib/jekyll/configuration.rb
CHANGED
@@ -99,6 +99,17 @@ module Jekyll
|
|
99
99
|
override['source'] || self['source'] || DEFAULTS['source']
|
100
100
|
end
|
101
101
|
|
102
|
+
def safe_load_file(filename)
|
103
|
+
case File.extname(filename)
|
104
|
+
when '.toml'
|
105
|
+
TOML.load_file(filename)
|
106
|
+
when /\.y(a)?ml/
|
107
|
+
YAML.safe_load_file(filename)
|
108
|
+
else
|
109
|
+
raise ArgumentError, "No parser for '#{filename}' is available. Use a .toml or .y(a)ml file instead."
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
102
113
|
# Public: Generate list of configuration files from the override
|
103
114
|
#
|
104
115
|
# override - the command-line options hash
|
@@ -121,8 +132,8 @@ module Jekyll
|
|
121
132
|
#
|
122
133
|
# Returns this configuration, overridden by the values in the file
|
123
134
|
def read_config_file(file)
|
124
|
-
next_config =
|
125
|
-
raise ArgumentError.new("Configuration file: (INVALID) #{file}".yellow)
|
135
|
+
next_config = safe_load_file(file)
|
136
|
+
raise ArgumentError.new("Configuration file: (INVALID) #{file}".yellow) unless next_config.is_a?(Hash)
|
126
137
|
Jekyll.logger.info "Configuration file:", file
|
127
138
|
next_config
|
128
139
|
rescue SystemCallError
|
@@ -131,7 +142,7 @@ module Jekyll
|
|
131
142
|
{}
|
132
143
|
else
|
133
144
|
Jekyll.logger.error "Fatal:", "The configuration file '#{file}' could not be found."
|
134
|
-
raise LoadError
|
145
|
+
raise LoadError, "The Configuration file '#{file}' could not be found."
|
135
146
|
end
|
136
147
|
end
|
137
148
|
|
@@ -17,7 +17,7 @@ module Jekyll
|
|
17
17
|
if template = template_page(site)
|
18
18
|
paginate(site, template)
|
19
19
|
else
|
20
|
-
Jekyll.logger.warn "Pagination:", "Pagination is enabled, but I couldn't find" +
|
20
|
+
Jekyll.logger.warn "Pagination:", "Pagination is enabled, but I couldn't find " +
|
21
21
|
"an index.html page to use as the pagination template. Skipping pagination."
|
22
22
|
end
|
23
23
|
end
|
data/lib/jekyll/site.rb
CHANGED
@@ -73,7 +73,7 @@ module Jekyll
|
|
73
73
|
# directory.
|
74
74
|
unless self.safe
|
75
75
|
self.plugins.each do |plugins|
|
76
|
-
Dir[File.join(plugins, "**/*.rb")].each do |f|
|
76
|
+
Dir[File.join(plugins, "**/*.rb")].sort.each do |f|
|
77
77
|
require f
|
78
78
|
end
|
79
79
|
end
|
@@ -169,19 +169,14 @@ module Jekyll
|
|
169
169
|
#
|
170
170
|
# Returns nothing.
|
171
171
|
def read_posts(dir)
|
172
|
-
|
172
|
+
posts = read_things(dir, '_posts', Post)
|
173
173
|
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
post = Post.new(self, self.source, dir, f)
|
178
|
-
|
179
|
-
if post.published && (self.future || post.date <= self.time)
|
180
|
-
aggregate_post_info(post)
|
181
|
-
end
|
174
|
+
posts.each do |post|
|
175
|
+
if post.published && (self.future || post.date <= self.time)
|
176
|
+
aggregate_post_info(post)
|
182
177
|
end
|
183
178
|
end
|
184
|
-
|
179
|
+
end
|
185
180
|
|
186
181
|
# Read all the files in <source>/<dir>/_drafts and create a new Post
|
187
182
|
# object with each one.
|
@@ -190,15 +185,16 @@ module Jekyll
|
|
190
185
|
#
|
191
186
|
# Returns nothing.
|
192
187
|
def read_drafts(dir)
|
193
|
-
|
188
|
+
drafts = read_things(dir, '_drafts', Draft)
|
194
189
|
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
190
|
+
drafts.each do |draft|
|
191
|
+
aggregate_post_info(draft)
|
192
|
+
end
|
193
|
+
end
|
199
194
|
|
200
|
-
|
201
|
-
|
195
|
+
def read_things(dir, magic_dir, klass)
|
196
|
+
things = get_entries(dir, magic_dir).map do |entry|
|
197
|
+
klass.new(self, self.source, dir, entry) if klass.valid?(entry)
|
202
198
|
end
|
203
199
|
end
|
204
200
|
|
data/lib/jekyll/tags/include.rb
CHANGED
@@ -13,7 +13,7 @@ module Jekyll
|
|
13
13
|
|
14
14
|
SYNTAX_EXAMPLE = "{% include file.ext param='value' param2='value' %}"
|
15
15
|
|
16
|
-
VALID_SYNTAX = /([\w-]+)\s*=\s*(?:"([^"\\]*(?:\\.[^"\\]*)*)"|'([^'\\]*(?:\\.[^'\\]*)*)'|([\w\.-]+))/
|
16
|
+
VALID_SYNTAX = /([\w-]+)\s*=\s*(?:"([^"\\]*(?:\\.[^"\\]*)*)"|'([^'\\]*(?:\\.[^'\\]*)*)'|([\w\.-]+))/
|
17
17
|
|
18
18
|
INCLUDES_DIR = '_includes'
|
19
19
|
|
data/site/_includes/top.html
CHANGED
@@ -12,6 +12,6 @@
|
|
12
12
|
<link rel="stylesheet" href="{{ site.url }}/css/gridism.css" />
|
13
13
|
<link rel="stylesheet" href="{{ site.url }}/css/style.css" />
|
14
14
|
<link rel="stylesheet" href="{{ site.url }}/css/pygments.css" />
|
15
|
-
<link rel="icon" type="image/
|
15
|
+
<link rel="icon" type="image/png" href="{{ site.url }}/favicon.png" />
|
16
16
|
<script src="{{ site.url }}/js/modernizr-2.5.3.min.js"></script>
|
17
17
|
</head>
|
@@ -19,7 +19,7 @@ Here are a few things we think you'll want to know about this release:
|
|
19
19
|
repetition in your templates and to set site specific options without
|
20
20
|
changing `_config.yml`.
|
21
21
|
|
22
|
-
* You can now
|
22
|
+
* You can now run `jekyll serve --detach` to boot up a WEBrick server in the
|
23
23
|
background. **Note:** you'll need to run `kill [server_pid]` to shut
|
24
24
|
the server down. When ran, you'll get a process id that you can use in
|
25
25
|
place of `[server_pid]`
|
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
layout: news_item
|
3
|
+
title: 'Jekyll 1.4.0 Released'
|
4
|
+
date: 2013-12-07 13:55:28 -0600
|
5
|
+
author: mattr-
|
6
|
+
version: 1.4.0
|
7
|
+
categories: [release]
|
8
|
+
---
|
9
|
+
|
10
|
+
About a month after the release of Jekyll v1.3.0, we are releasing
|
11
|
+
Jekyll v1.4.0. This release will be the last non-patch release to support Ruby
|
12
|
+
1.8.7 and our next release will be Jekyll 2.0.0.
|
13
|
+
|
14
|
+
Here are a few things we think you'll want to know about this release:
|
15
|
+
|
16
|
+
* TOML is now a supported markup language for config files.
|
17
|
+
|
18
|
+
* Maruku has been updated to 0.7.0 which provides some new features and
|
19
|
+
a ton of bugfixes over the previous 0.6.x releases.
|
20
|
+
|
21
|
+
* Non-`gem` Plugins are now sorted alphabetically by filename before they're
|
22
|
+
processed, which can provide a rudimentary way to establish a load order for
|
23
|
+
plugins.
|
24
|
+
|
25
|
+
For a full run-down, visit our [change log](/docs/history/)!
|
26
|
+
|
27
|
+
As always, Jekyll wouldn't be possible without the contributions from
|
28
|
+
others in the Jekyll community. We'd like to thank the following people
|
29
|
+
for contributing to this release: Anatol Broder, David Sawyer, Greg
|
30
|
+
Karékinian, Jordon Bedwell, Matthew Iversen, Persa Zula, and Yi Zeng.
|
data/site/docs/history.md
CHANGED
@@ -5,7 +5,28 @@ permalink: /docs/history/
|
|
5
5
|
prev_section: contributing
|
6
6
|
---
|
7
7
|
|
8
|
-
## 1.
|
8
|
+
## 1.4.0 / 2013-12-07
|
9
|
+
|
10
|
+
### Major Enhancements
|
11
|
+
- Add support for TOML config files ([#1765]({{ site.repository }}/issues/1765))
|
12
|
+
|
13
|
+
### Minor Enhancements
|
14
|
+
- Sort plugins as a way to establish a load order ([#1682]({{ site.repository }}/issues/1682))
|
15
|
+
- Update Maruku to 0.7.0 ([#1775]({{ site.repository }}/issues/1775))
|
16
|
+
|
17
|
+
### Bug Fixes
|
18
|
+
- Add a space between two words in a Pagination warning message ([#1769]({{ site.repository }}/issues/1769))
|
19
|
+
- Upgrade `toml` gem to `v0.1.0` to maintain compat with Ruby 1.8.7 ([#1778]({{ site.repository }}/issues/1778))
|
20
|
+
|
21
|
+
### Development Fixes
|
22
|
+
- Remove some whitespace in the code ([#1755]({{ site.repository }}/issues/1755))
|
23
|
+
- Remove some duplication in the reading of posts and drafts ([#1779]({{ site.repository }}/issues/1779))
|
24
|
+
|
25
|
+
### Site Enhancements
|
26
|
+
- Fixed case of a word in the Jekyll v1.3.0 release post ([#1762]({{ site.repository }}/issues/1762))
|
27
|
+
- Fixed the mime type for the favicon ([#1772]({{ site.repository }}/issues/1772))
|
28
|
+
|
29
|
+
## 1.3.1 / 2013-11-26
|
9
30
|
|
10
31
|
### Minor Enhancements
|
11
32
|
- Add a `--prefix` option to passthrough for the importers ([#1669]({{ site.repository }}/issues/1669))
|
data/test/test_configuration.rb
CHANGED
@@ -30,7 +30,7 @@ class TestConfiguration < Test::Unit::TestCase
|
|
30
30
|
@config = Configuration[{"source" => source_dir}]
|
31
31
|
@no_override = {}
|
32
32
|
@one_config_file = {"config" => "config.yml"}
|
33
|
-
@multiple_files = {"config" => %w[config/site.yml config/deploy.
|
33
|
+
@multiple_files = {"config" => %w[config/site.yml config/deploy.toml configuration.yml]}
|
34
34
|
end
|
35
35
|
|
36
36
|
should "always return an array" do
|
@@ -45,7 +45,7 @@ class TestConfiguration < Test::Unit::TestCase
|
|
45
45
|
assert_equal %w[config.yml], @config.config_files(@one_config_file)
|
46
46
|
end
|
47
47
|
should "return an array of the config files if given many config files" do
|
48
|
-
assert_equal %w[config/site.yml config/deploy.
|
48
|
+
assert_equal %w[config/site.yml config/deploy.toml configuration.yml], @config.config_files(@multiple_files)
|
49
49
|
end
|
50
50
|
end
|
51
51
|
context "#backwards_compatibilize" do
|
@@ -131,6 +131,7 @@ class TestConfiguration < Test::Unit::TestCase
|
|
131
131
|
@paths = {
|
132
132
|
:default => File.join(Dir.pwd, '_config.yml'),
|
133
133
|
:other => File.join(Dir.pwd, '_config.live.yml'),
|
134
|
+
:toml => source_dir('_config.dev.toml'),
|
134
135
|
:empty => ""
|
135
136
|
}
|
136
137
|
end
|
@@ -153,12 +154,20 @@ class TestConfiguration < Test::Unit::TestCase
|
|
153
154
|
assert_equal Jekyll::Configuration::DEFAULTS, Jekyll.configuration({ "config" => @paths[:empty] })
|
154
155
|
end
|
155
156
|
|
157
|
+
should "successfully load a TOML file" do
|
158
|
+
Jekyll.logger.log_level = Jekyll::Stevenson::WARN
|
159
|
+
assert_equal Jekyll::Configuration::DEFAULTS.merge({ "baseurl" => "/you-beautiful-blog-you", "title" => "My magnificent site, wut" }), Jekyll.configuration({ "config" => [@paths[:toml]] })
|
160
|
+
Jekyll.logger.log_level = Jekyll::Stevenson::INFO
|
161
|
+
end
|
162
|
+
|
156
163
|
should "load multiple config files" do
|
157
164
|
mock(YAML).safe_load_file(@paths[:default]) { Hash.new }
|
158
165
|
mock(YAML).safe_load_file(@paths[:other]) { Hash.new }
|
166
|
+
mock(TOML).load_file(@paths[:toml]) { Hash.new }
|
159
167
|
mock($stdout).puts("Configuration file: #{@paths[:default]}")
|
160
168
|
mock($stdout).puts("Configuration file: #{@paths[:other]}")
|
161
|
-
|
169
|
+
mock($stdout).puts("Configuration file: #{@paths[:toml]}")
|
170
|
+
assert_equal Jekyll::Configuration::DEFAULTS, Jekyll.configuration({ "config" => [@paths[:default], @paths[:other], @paths[:toml]] })
|
162
171
|
end
|
163
172
|
|
164
173
|
should "load multiple config files and last config should win" do
|
data/test/test_excerpt.rb
CHANGED
@@ -66,7 +66,7 @@ class TestExcerpt < Test::Unit::TestCase
|
|
66
66
|
end
|
67
67
|
|
68
68
|
should "be the first paragraph of the page" do
|
69
|
-
assert_equal "<p>First paragraph with <a href
|
69
|
+
assert_equal "<p>First paragraph with <a href=\"http://www.jekyllrb.com/\">link ref</a>.</p>", @extracted_excerpt.content
|
70
70
|
end
|
71
71
|
|
72
72
|
should "link properly" do
|
data/test/test_post.rb
CHANGED
@@ -284,7 +284,7 @@ class TestPost < Test::Unit::TestCase
|
|
284
284
|
end
|
285
285
|
|
286
286
|
should "return rendered HTML" do
|
287
|
-
assert_equal "<p>First paragraph with <a href
|
287
|
+
assert_equal "<p>First paragraph with <a href=\"http://www.jekyllrb.com/\">link ref</a>.</p>",
|
288
288
|
@post.excerpt
|
289
289
|
end
|
290
290
|
|
data/test/test_tags.rb
CHANGED
@@ -252,7 +252,7 @@ CONTENT
|
|
252
252
|
end
|
253
253
|
|
254
254
|
should "write script tag" do
|
255
|
-
assert_match "<script src='https://gist.github.com/#{@gist}.js'
|
255
|
+
assert_match "<script src='https://gist.github.com/#{@gist}.js'><![CDATA[\s]]></script>", @result
|
256
256
|
end
|
257
257
|
end
|
258
258
|
|
@@ -272,7 +272,7 @@ CONTENT
|
|
272
272
|
end
|
273
273
|
|
274
274
|
should "write script tag with specific file in gist" do
|
275
|
-
assert_match "<script src='https://gist.github.com/#{@gist}.js?file=#{@filename}'
|
275
|
+
assert_match "<script src='https://gist.github.com/#{@gist}.js?file=#{@filename}'><![CDATA[\s]]></script>", @result
|
276
276
|
end
|
277
277
|
end
|
278
278
|
|
@@ -308,7 +308,7 @@ CONTENT
|
|
308
308
|
end
|
309
309
|
|
310
310
|
should "write script tag with specific file in gist" do
|
311
|
-
assert_match "<script src='https://gist.github.com/#{@gist}.js?file=#{@filename}'
|
311
|
+
assert_match "<script src='https://gist.github.com/#{@gist}.js?file=#{@filename}'><![CDATA[\s]]></script>", @result
|
312
312
|
end
|
313
313
|
end
|
314
314
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Preston-Werner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: liquid
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.7.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.7.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: pygments.rb
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - ~>
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 2.3.0
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: toml
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ~>
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.1.0
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ~>
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 0.1.0
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: rake
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -475,6 +489,7 @@ files:
|
|
475
489
|
- site/_posts/2013-10-28-jekyll-1-3-0-rc1-released.markdown
|
476
490
|
- site/_posts/2013-11-04-jekyll-1-3-0-released.markdown
|
477
491
|
- site/_posts/2013-11-26-jekyll-1-3-1-released.markdown
|
492
|
+
- site/_posts/2013-12-07-jekyll-1-4-0-released.markdown
|
478
493
|
- site/css/gridism.css
|
479
494
|
- site/css/normalize.css
|
480
495
|
- site/css/pygments.css
|
@@ -528,6 +543,7 @@ files:
|
|
528
543
|
- test/helper.rb
|
529
544
|
- test/source/+/foo.md
|
530
545
|
- test/source/.htaccess
|
546
|
+
- test/source/_config.dev.toml
|
531
547
|
- test/source/_data/languages.yml
|
532
548
|
- test/source/_data/members.yaml
|
533
549
|
- test/source/_data/products.yml
|