jekyll 3.0.0.pre.beta9 → 3.0.0.pre.beta10
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/lib/jekyll/deprecator.rb +5 -3
- data/lib/jekyll/excerpt.rb +5 -1
- data/lib/jekyll/post.rb +3 -0
- data/lib/jekyll/tags/highlight.rb +7 -7
- data/lib/jekyll/version.rb +1 -1
- data/lib/site_template/_config.yml +7 -0
- data/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 632b5286e2a7093e76fe77a51c398287edaad2a7
|
4
|
+
data.tar.gz: 1e21bd762b78a2fc59537a89c6b0776abb656352
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f35c3c3690736f43f5afe00e9e4915597e1af52680781bdce7a1590ac22672c6a75634c0e547d7b390b0976c6d6e045613cafcff5a931ce3b7d8016a85f8e2e2
|
7
|
+
data.tar.gz: 39908d9a537b41c7545698b80c10850eff2dcf132eb0bdcee663cf602126825ea4c960fbee0d08b72d1a4bae8427ccd3a62478de4b436e6f26d0c30f84bed3d4
|
data/lib/jekyll/deprecator.rb
CHANGED
@@ -3,9 +3,10 @@ module Jekyll
|
|
3
3
|
extend self
|
4
4
|
|
5
5
|
def process(args)
|
6
|
-
no_subcommand(args)
|
7
6
|
arg_is_present? args, "--server", "The --server command has been replaced by the \
|
8
7
|
'serve' subcommand."
|
8
|
+
arg_is_present? args, "--serve", "The --server command has been replaced by the \
|
9
|
+
'serve' subcommand."
|
9
10
|
arg_is_present? args, "--no-server", "To build Jekyll without launching a server, \
|
10
11
|
use the 'build' subcommand."
|
11
12
|
arg_is_present? args, "--auto", "The switch '--auto' has been replaced with '--watch'."
|
@@ -16,12 +17,13 @@ module Jekyll
|
|
16
17
|
arg_is_present? args, "--paginate", "The 'paginate' setting can only be set in your \
|
17
18
|
config files."
|
18
19
|
arg_is_present? args, "--url", "The 'url' setting can only be set in your config files."
|
20
|
+
no_subcommand(args)
|
19
21
|
end
|
20
22
|
|
21
23
|
def no_subcommand(args)
|
22
24
|
if args.size > 0 && args.first =~ /^--/ && !%w[--help --version].include?(args.first)
|
23
|
-
deprecation_message "Jekyll now uses subcommands instead of just
|
24
|
-
|
25
|
+
deprecation_message "Jekyll now uses subcommands instead of just switches. Run `jekyll --help` to find out more."
|
26
|
+
abort
|
25
27
|
end
|
26
28
|
end
|
27
29
|
|
data/lib/jekyll/excerpt.rb
CHANGED
@@ -107,7 +107,11 @@ module Jekyll
|
|
107
107
|
def extract_excerpt(post_content)
|
108
108
|
head, _, tail = post_content.to_s.partition(post.excerpt_separator)
|
109
109
|
|
110
|
-
|
110
|
+
if tail.empty?
|
111
|
+
head
|
112
|
+
else
|
113
|
+
"" << head << "\n\n" << tail.scan(/^\[[^\]]+\]:.+$/).join("\n")
|
114
|
+
end
|
111
115
|
end
|
112
116
|
end
|
113
117
|
end
|
data/lib/jekyll/post.rb
CHANGED
@@ -227,6 +227,9 @@ module Jekyll
|
|
227
227
|
:year => date.strftime("%Y"),
|
228
228
|
:month => date.strftime("%m"),
|
229
229
|
:day => date.strftime("%d"),
|
230
|
+
:hour => date.strftime("%H"),
|
231
|
+
:minute => date.strftime("%M"),
|
232
|
+
:second => date.strftime("%S"),
|
230
233
|
:title => slug,
|
231
234
|
:i_day => date.strftime("%-d"),
|
232
235
|
:i_month => date.strftime("%-m"),
|
@@ -48,13 +48,13 @@ eos
|
|
48
48
|
|
49
49
|
output =
|
50
50
|
case context.registers[:site].highlighter
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
51
|
+
when 'pygments'
|
52
|
+
render_pygments(code, is_safe)
|
53
|
+
when 'rouge'
|
54
|
+
render_rouge(code)
|
55
|
+
else
|
56
|
+
render_codehighlighter(code)
|
57
|
+
end
|
58
58
|
|
59
59
|
rendered_output = add_code_tag(output)
|
60
60
|
prefix + rendered_output + suffix
|
data/lib/jekyll/version.rb
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# Welcome to Jekyll!
|
2
|
+
#
|
3
|
+
# This config file is meant for settings that affect your whole blog, values
|
4
|
+
# which you are expected to set up once and rarely need to edit after that.
|
5
|
+
# For technical reasons, this file is *NOT* reloaded automatically when you use
|
6
|
+
# 'jekyll serve'. If you change this file, please restart the server process.
|
7
|
+
|
1
8
|
# Site settings
|
2
9
|
title: Your awesome title
|
3
10
|
email: your-email@domain.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
layout: post
|
3
3
|
title: "Welcome to Jekyll!"
|
4
|
-
date: <%= Time.now.strftime('%Y-%m-%d %H:%M:%S') %>
|
4
|
+
date: <%= Time.now.strftime('%Y-%m-%d %H:%M:%S %z') %>
|
5
5
|
categories: jekyll update
|
6
6
|
---
|
7
7
|
You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
|
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: 3.0.0.pre.
|
4
|
+
version: 3.0.0.pre.beta10
|
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: 2015-
|
11
|
+
date: 2015-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: liquid
|