Parker Moore
aef2134128
Remove unneeded tests for the sass converter plugin.
2014-05-06 21:09:51 -04:00
Matt Rogers
5c109ee8dc
Merge pull request #2299 from penibelst/sort-nils
2014-05-06 16:49:40 -05:00
Anatol Broder
7c1709fab4
Change nils argument to string
2014-05-06 21:36:13 +02:00
Anatol Broder
558d0e8ac9
Add more strings tests
2014-05-06 21:07:09 +02:00
Parker Moore
6c1bb76316
Merge pull request #2303 from jekyll/jbranchaud-adding_exclude_tests
2014-05-06 14:40:18 -04:00
Parker Moore
5d827ac40e
No more relative permalinks! Fix for a test.
2014-05-06 13:16:51 -04:00
Parker Moore
ba8783190b
Fix test for new command's output.
2014-05-06 13:16:41 -04:00
Parker Moore
4c55c77c04
Using stderr instead of stdout
2014-05-06 13:15:19 -04:00
Parker Moore
2aa8908948
Stevenson now uses symbols instead of integers to set log level
2014-05-06 13:03:56 -04:00
jbranchaud
e4c3a8d0df
Adding two new test cases for exclude configuration use cases.
2014-05-06 12:43:44 -04:00
Anatol Broder
9c9e96cfa7
Add lexicographical sort test
2014-05-06 07:48:33 +02:00
Anatol Broder
cc80aab191
Add generic tests
2014-05-05 11:14:07 +02:00
Valery Tolstov
cf4304ab2b
Update tests
...
Remove language literal from class in test/test_redcarpet.rb
2014-05-03 21:46:16 +04:00
John Piasetzki
d6bd735aff
Refactor highlighting
...
Extract some of the common logic from the renderers.
2014-04-27 23:20:00 -04:00
Parker Moore
bac4075128
Collections' "written" attribute has been changed to "output".
...
This is a follow-up to 068d921ef6
.
2014-04-27 15:56:02 -04:00
Parker Moore
6225073095
Use the 'output' key instead of 'write' for writing out collections' document files.
2014-04-25 19:47:35 -04:00
Parker Moore
d2b1d538bf
Add test for collections' new #to_liquid sturff
2014-04-24 14:07:08 -04:00
Parker Moore
fb39b41ffb
NO MORE DATA COLLECTION I CAN'T HANDLE IT
2014-04-24 13:59:25 -04:00
Parker Moore
0dc680df0b
Always render collections, just don't always write them
2014-04-24 13:59:24 -04:00
Parker Moore
4de2be8c5f
Add Jekyll::LiquidExtensions.lookup_variable
...
To use, just include `Jekyll::LiquidExtensions` as you please:
```ruby
class SayHi < Liquid::Tag
include Jekyll::LiquidExtensions
def initialize(tag_name, markup, tokens)
@markup = markup.strip
end
def render(context)
"hi #{lookup_variable(context, @markup)}"
end
end
```
Fixes #2071 .
2014-04-22 14:27:47 -04:00
Parker Moore
1e16ab4d26
end the ned
2014-04-19 12:35:58 -04:00
Ben Balter
e91a90899c
do the do
2014-04-18 18:12:47 -04:00
Ben Balter
4f7b1f3306
no -> not
2014-04-18 16:56:37 -04:00
Ben Balter
6f0bebdfda
convert input to string before xml escaping
2014-04-18 16:54:48 -04:00
Parker Moore
2f99e1d5c1
Fix test for non-collectionized sites still containing data coll
2014-04-14 22:46:22 -04:00
Parker Moore
aa502348e5
Filter entries in the collection per EntryFilter#filter
2014-04-14 22:46:21 -04:00
Parker Moore
45120ad3eb
Moar tests for collections.
2014-04-14 22:46:21 -04:00
Parker Moore
be769dcf00
SANITIZE THE collection name plz.
2014-04-14 22:46:21 -04:00
Parker Moore
37a7236e20
Homagah it all renders I think.
2014-04-14 22:46:21 -04:00
Parker Moore
c1c5cc78a5
Expect site.data stuff to be hashes
2014-04-14 22:44:29 -04:00
Parker Moore
90807ac6e7
DEM TESTS
2014-04-14 22:44:29 -04:00
Parker Moore
50b46d7bee
OMG it's happening ~*Collections*~
2014-04-14 22:44:29 -04:00
Parker Moore
a77c92aebe
Replace load-in of YAML data with Jekyll::Document logic.
...
COLLECTIONS IS COMING
2014-04-14 22:43:09 -04:00
Matt Rogers
6be33cf6ef
Merge pull request #1492 from maul-esel/publishing
2014-04-14 20:17:01 -05:00
Parker Moore
91aa8e7637
We're not allowing custom data sources anymore.
2014-04-14 19:26:27 -04:00
Parker Moore
4f66db6c38
Merge pull request #2211 from jekyll/pgp-key-header-frontmatter
2014-04-14 12:59:59 -04:00
Ben Balter
658f418400
more explicit test description
2014-04-14 12:15:16 -04:00
szymzet
89b3bec1b0
Add missing Command tests
2014-04-08 11:32:53 +02:00
maul.esel
2804e08908
delete old superfluous tests; extend feature
2014-04-07 16:22:04 +02:00
maul.esel
3a330dc7fc
Use Publisher instead of Post#published?
2014-04-07 16:20:13 +02:00
Ben Balter
6c0f40385c
add test for PGP key yaml frontmatter
2014-04-06 16:03:19 -04:00
Marcus Stollsteimer
fec6b59950
Use File.exist? instead of deprecated File.exists?
2014-04-06 13:31:34 +02:00
Parker Moore
8ccdee4035
STRIP ALL THE NEWLINES FROM HIGHLIGHTED CODE ok just the ones at the beginning and end
2014-04-02 14:37:22 -04:00
Parker Moore
806f43cdbc
Merge pull request #1568 from nitoyon/url-escape
2014-04-02 14:09:09 -04:00
Lincoln Mullen
52ac2b3850
Permit YAML blocks to end with three dots
...
The YAML spec permits blocks to end with three dots (...) in addition to
three dashes (---): http://www.yaml.org/spec/1.2/spec.html#id2760395 . Some
programs that work with Jekyll (e.g., Pandoc) prefer the dots to dashes. This
commit permits the YAML metadata block to end with either dots or dashes. It
includes tests.
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-04-02 14:06:22 -04:00
Parker Moore
009e2c200d
Only strip the drive name if it begins the string.
2014-03-27 18:19:35 -04:00
nitoyon
e3e1c11509
Fix Page#url escape
...
Post#url wasn't escaped at all.
For example, when we have a page named 'a#b.html',
we expect its url to be 'a%23b.html',
but it was actually 'a#b.html'.
We now use Jekyll::URL.escape_path and Jekyll::URL.unescape_path.
2014-03-21 16:57:41 +00:00
nitoyon
eebb6414bf
Fix Post#url escape
...
Post#url was escaped using CGI.escape.
When file name contains a space character, its url points to
non-existing URL.
For example, when we have a post named '2014-01-02-foo bar.md',
we expect its url to be '/2014/01/02/foo%20bar.html',
but it was actually '/2014/01/02/foo+bar.html'.
We now define Jekyll::URL.escape_path and Jekyll::URL.unescape_path,
and use them to escape and unescape Post#url
2014-03-21 16:57:40 +00:00
Parker Moore
ac37b8acee
Merge pull request #2122 from XhmikosR/whitespace
2014-03-11 11:10:04 -04:00
XhmikosR
553338636b
Trim trailing spaces and convert tabs to spaces.
2014-03-11 07:44:01 +02:00
Parker Moore
37c2da5062
Properly clean path for Windows machines which is *nix-compliant.
2014-03-09 21:12:34 -04:00
Parker Moore
7787d64bce
Rename those Utils functions.
2014-03-04 15:52:05 -05:00
Parker Moore
e2af1b547b
Extract core extensions into a Utils module
...
Fixes #2111
2014-03-03 22:13:03 -05:00
Parker Moore
e2308eb7f4
Clean out Sass tests that we don't need anymore.
...
Ref: #2098
2014-02-28 21:38:07 -05:00
Parker Moore
0633cbf8fa
Bring in jekyll-sass-converter
2014-02-28 21:20:20 -05:00
Parker Moore
e3dd908d55
Add StaticFile#to_liquid['extname'] :)
2014-02-19 13:55:58 -05:00
Parker Moore
33490e4efc
Fix error in tests.
2014-02-19 13:43:16 -05:00
Parker Moore
9659cfe876
Test site.static_files
2014-02-19 13:34:44 -05:00
Parker Moore
949aa3fc32
Test fetching of static files
2014-02-19 13:16:21 -05:00
Matt Rogers
b68229aa2c
Make LayoutReader#layout_directory public.
...
Since it's being used in a test, let's go ahead and expose it instead of
dealing with using Object#send to send the message along.
2014-02-17 22:13:29 -06:00
Parker Moore
1a879a04ab
Add tests for determining source dir
2014-02-16 23:19:03 -05:00
Parker Moore
ab0ebadee3
Merge master into security-vuln-patches
2014-02-16 22:02:03 -05:00
Parker Moore
fb8e562123
Merge pull request #2042 from anthonyjsmith/draft-path
2014-02-16 21:36:00 -05:00
Parker Moore
d43341fab0
Merge pull request #2009 from penibelst/test-sass-include
2014-02-13 17:56:38 -05:00
Anthony Smith
18279558da
Update #relative_path for _drafts and add tests.
...
Resolves #2019 . Add new tests for drafts. Also check path variable in
test for posts.
2014-02-11 12:48:34 +00:00
Parker Moore
dd3018ce02
Merge pull request #1988 from jekyll/maruku-to-kramdown
2014-02-08 17:07:54 -05:00
Parker Moore
22f2001ff5
Set default markdown converter to Kramdown
...
- Update default markdown converter in docs for configuration
- Update tests so they are in line with Kramdown output
- Add deprecation message to when config is built
2014-02-08 13:17:46 -05:00
Anatol Broder
c17ed7ec93
Add comment about symlinked directories
2014-02-08 13:26:03 +01:00
Parker Moore
ac8d8a7cb8
Fix some tests
2014-02-08 00:31:26 -05:00
Matt Rogers & Persa Zula
facf115c04
Move layout tests from site to its own file
2014-02-06 22:45:51 -06:00
Parker Moore
f638fb1784
Merge master into security-vuln-patches
2014-02-06 17:21:54 -05:00
Anatol Broder
487e7a7137
Make sort test run
2014-02-04 09:23:00 +01:00
Anatol Broder
9e4dea14e4
Fix partial test
2014-02-04 02:03:14 +01:00
Anatol Broder
8e0a826cc7
Fix group_by_filter test by adding 2 items
2014-02-04 01:31:37 +01:00
Anatol Broder
e36f9d7da8
First draft
2014-02-04 01:26:28 +01:00
Matt Rogers
5edb4c6bfd
Merge pull request #1982 from dtao/safe-yaml-no-clobber
2014-01-31 06:48:16 -08:00
Parker Moore
fdbfd719ca
Add CoffeeScript converter.
2014-01-25 20:38:51 -05:00
Matt Rogers
5b7a53b543
Merge pull request #1932 from jekyll/sass
2014-01-24 15:18:06 -08:00
Parker Moore
774bf96c61
Merge master into sass
2014-01-24 12:17:35 -05:00
Dan Tao
fafacef0a0
added a test that YAML.load doesn't get clobbered
...
I THINK this is a good idea? I considered multiple approaches to testing this;
what I like about this dumb way (just try to deserialize a symbol) is that it's
nice and simple.
2014-01-23 17:42:14 -08:00
Dan Tao
4f0b1bdf6d
switched from YAML.safe_load* to SafeYAML.load*
2014-01-23 17:25:17 -08:00
Matt Rogers
98857832cd
Merge pull request #1931 from liufengyun/published
2014-01-22 05:38:04 -08:00
liufengyun
22e1e5f28c
make sure pages with published being false are not generated
2014-01-19 09:52:19 +08:00
Jens Nazarenus
82bee23bd0
added tests for full path leak to source directory when using include tag
2014-01-16 18:43:25 +01:00
Matt Rogers
10e5ecfe53
Improve the test description for the outputs_ext test
2014-01-15 23:04:52 -06:00
Matt Rogers
824d9f6ca8
Better express that the converter always outputs css
2014-01-15 22:49:33 -06:00
Ben Balter
e3be74e376
sanity check for pages permalink traversal
...
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Andy Lindeman
a8dd34420b
Prevents disclosure of file existence
...
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
c84cb5c007
escape relative post permalinks, cleanup
...
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
a799e41b70
patch symlink vuln and properly test
...
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
4e318cd192
test symlinkd dir, not file
...
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
ce425eec8b
fix symlink so tests fail
...
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
f570a9339d
unbreak tests
...
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
dfec551cc4
add symlink failing test
...
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
0acbe95797
test multiple traversals
...
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
f49ee21136
fix failing post count test
...
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
9b3068c15d
url escape before sanitizing
...
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Ben Balter
9e796d0627
failing test
...
Signed-off-by: Parker Moore <parkrmoore@gmail.com>
2014-01-13 22:21:30 -08:00
Parker Moore
2966606b1a
Add docs about the 'new' restriction on excludes.
2014-01-13 00:17:12 -08:00
Parker Moore
4afe39e461
Allow caching in unsafe mode, but disable in safe mode.
2014-01-12 21:36:08 -08:00
Parker Moore
ecf85a9cfa
Does not allow caching.
...
This was done to prevent putting the .sass-cache folder in bad places. Needed? cc @benbalter.
2014-01-12 21:30:30 -08:00
Parker Moore
8ecd2d9218
Don't allow path traversal or syntax overrides.
2014-01-12 21:30:30 -08:00
Parker Moore
4784d1de18
Build Sass configuration options.
2014-01-12 21:30:30 -08:00
Parker Moore
22d4e2aa90
Consolidate into one master 'Sass' converter.
2014-01-12 21:30:29 -08:00
Parker Moore
4da7223831
Fixes for Sass/SCSS converters.
2014-01-12 21:30:29 -08:00
Parker Moore
331c7adc08
Move #glob_include? from core_ext to entry_filter
2014-01-08 20:24:21 -08:00
Parker Moore
366f9268ee
Add tests for new exclude behaviour.
2014-01-05 11:01:51 -08:00
Parker Moore
a5f1bc0341
Fixed the tests... I guess Hash literals aren't ok.
2014-01-03 21:23:02 -08:00
Parker Moore
b4383a5c42
Flesh out tests for where filter for @mattr- 😃
2014-01-03 21:23:02 -08:00
Ben Balter
39e4d6b3ba
add where filter to filter arrays of objects
2014-01-03 21:23:02 -08:00
Parker Moore
c7b649f792
Update test_generated_site.rb to know about new post
2014-01-01 19:53:42 -08:00
Matt Rogers
012387396a
Merge pull request #1859 from robin850/rouge
2013-12-30 22:45:07 -06:00
Matt Rogers
a2fd8ba7c3
Merge pull request #1849 from afeld/sort-attributes
2013-12-30 20:31:45 -08:00
Meeka
1da8f04aaa
Removes assert_includes to pass Travis
2013-12-30 12:57:23 -05:00
Meeka
9652b7ef80
adds to_s method testing on Excerpt
2013-12-30 12:23:41 -05:00
Meeka
3a0733deb9
Adds tests for the Excerpt include?, id, and inspect methods
2013-12-30 12:15:13 -05:00
Parker Moore
791c6d815d
Merge pull request #1825 from arika/smallfix_post_url_tag_behavior_for_invalid_names
2013-12-25 22:32:50 -08:00
Parker Moore
6e8f31f406
Merge pull request #1841 from jens-na/include-variable-liquid-filters
2013-12-25 22:11:33 -08:00
Parker Moore
c70350e275
Merge branch 'steal-envygeeks-custom-markdown-processors' of git://github.com/gjtorikian/jekyll into gjtorikian-steal-envygeeks-custom-markdown-processors
...
* 'steal-envygeeks-custom-markdown-processors' of git://github.com/gjtorikian/jekyll:
Depend on Jekyll.logger.error, not $stderr
Allow custom Markdown processors.
New is implied by `raise`, 2nd is the message.
Use $stderr, not STDERR, $stderr points to STDERR.
2013-12-25 23:52:50 -05:00
Jordon
c759a7a75f
Allow custom Markdown processors.
2013-12-25 19:36:25 -06:00
Aidan Feldman
9d7c524530
fix file sorting test
2013-12-22 19:33:00 -05:00
Aidan Feldman
fa8618879d
Merge remote-tracking branch 'upstream/master' into sort-attributes
2013-12-22 19:31:56 -05:00
Robin Dupret
4bf716c2ad
Set highlighter to pygments when upgrading
...
In case you are upgrading from 1.4.2 to 2.0 and the pygments option is
set to true, then the highlighter option will be set to pygments
automatically.
2013-12-22 18:45:46 +01:00
Robin Dupret
0831d2b0f8
Add support for the Rouge syntax highlighter
...
By setting the `highlighter` setting to `rouge` you can now easily
highlight your code with it instead of relying on Pygments. However,
Jekyll doesn't depend on Rouge explicitly, you will need to install it
or add it to your Gemfile.
The documentation has been updated accordingly.
2013-12-22 18:45:40 +01:00
Robin Dupret
92064134d6
Rename the pygments option to highlighter
...
Rename the pygments configuration option to highlighter to allow
different highlighters in the future. For now, the allowed values are
`pygments` and `null`.
It's now more straightforward to plug another syntax highlighter.
2013-12-22 12:45:15 +01:00
Aidan Feldman
2bfafb3b33
make non-data properties/methods accessible to Liquid
...
per https://github.com/jekyll/jekyll/pull/1849/files#r8490593
2013-12-22 03:38:32 -05:00
Aidan Feldman
45ee9f814a
clarify page sorting test
2013-12-19 13:46:43 -05:00
Jens Nazarenus
f9ffbe0d6a
removed duplicate test scenario
2013-12-19 18:23:07 +01:00
Aidan Feldman
a6e1c40051
link to Stack Overflow answer re: Dir sorting
2013-12-19 01:05:00 -05:00
Aidan Feldman
3c1d45f45f
Sort pages by name by default
...
The order that files are returned differs across operating systems, so
ensure that they're being sorted after the fact.
2013-12-19 01:02:25 -05:00
Jens Nazarenus
43ef9a2e4f
variables in include tag with filters
2013-12-17 23:51:52 +01:00
akira yamada
a5545d5bad
post_url tag raises ArgumentError for invalid name
...
Using post_url tag with invalid name raises TypeError.
It should raise ArgumentError and should display detail of the error to
fix the error.
2013-12-14 22:30:22 +09:00
Matt Rogers
39b6fe732f
Merge pull request #1780 from mojombo/kill-1-8
2013-12-11 06:08:10 -08:00
Matt Rogers
a7d4ee8bfb
Merge pull request #1799 from konklone/maruku_fenced_code_blocks
2013-12-10 20:30:44 -08:00
Eric Mill
28ca5d71ee
Remove comments
2013-12-09 16:47:42 -05:00
Eric Mill
470abf46e2
better, simpler test case...
2013-12-09 16:42:51 -05:00
Eric Mill
71e625e02c
current state
2013-12-08 22:56:29 -05:00
Eric Mill
14418f74ae
in-progress patch for maruku and fenced code blocks
2013-12-08 22:37:46 -05:00
Parker Moore
381ab4e71b
Implement group_by Liquid filter & tests.
2013-12-08 01:16:48 -05:00
Parker Moore
f14c9db282
Add tests in all the time that was omitted for Ruby 1.8.x
2013-12-08 00:48:25 -05:00
Parker Moore
b4b6df5b6c
Remove checks for Ruby 1.8.x
2013-12-08 00:48:10 -05:00
Matt Rogers
9f1593299a
Merge pull request #1775 from Ivoz/maruku
...
Update to maruku 0.7
2013-12-06 20:56:52 -08:00
Matthew Iversen
fb9de8cbf6
Fix tests to expect maruku 0.7 output
2013-12-05 12:20:11 +11:00
Parker Moore
3b0c8ad654
Add some unit tests for TOML integration.
2013-11-29 23:33:52 -05:00
Greg Karékinian
9182b1b7ae
Fix duplicate test case name
2013-11-25 12:59:27 +01:00
Greg Karékinian
49d5c3457c
Remove extra trailing whitespace
2013-11-20 00:50:56 +01:00
Matt Rogers
63713799cd
Extract Site#filter_entries into its own class
2013-11-04 21:35:13 -06:00
liufengyun
f971aebfb1
support jsonify filter
2013-10-22 23:52:22 +08:00
Matt Rogers
0e784596a5
Merge pull request #1543 from maul-esel/fix-coderay
...
Add tests for special handling of kramdown's coderay options
2013-10-17 06:35:43 -07:00
Matt Rogers
0761769dda
Merge pull request #1615 from benbalter/downcase-lexers
...
Downcase lexers before passing to Pygments
2013-10-10 18:48:00 -07:00