Parker Moore
2e91d094e5
filters#sample: n == 1, return item; n > 1, return array
2015-12-04 10:25:13 -08:00
Parker Moore
86195655d7
filters: allow sample(n) instead of just sample(1)
2015-12-04 09:40:57 -08:00
Parker Moore
96bc62c666
Add 'sample' Liquid filter
...
Equivalent to Array#sample functionality
2015-12-04 09:33:33 -08:00
Parker Moore
4169075dd1
filters: `where` should compare stringified versions of input & comparator
...
Non-string input was being missed as a result of poor comparison.
Converting inputs to strings ensure numerical and boolean values are
properly compared.
Fixes #3911 .
2015-08-25 23:00:58 -07:00
Martin Jorn Rogalla
92a9582733
Corrected error message as suggested by @parkr.
...
Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-01 11:16:08 +01:00
Martin Jorn Rogalla
78af3c5018
Improved clarity of sort nil input error message.
...
Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-01 09:51:59 +01:00
Martin Jorn Rogalla
0565308ce6
Added test to check on nil input for sort filter.
...
- Added a test to check if the sort filter will raise the correct
exception on given nil input.
- Improved error message and used "nil" consistently.
Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
2015-03-01 09:40:32 +01:00
Parker Moore
7ad0597bff
Make our own Minitest::Test subclass for further subclassing
2015-02-21 00:33:47 -08:00
Parker Moore
4b59eb4175
Fix the test inheritance for the tests.
2015-02-20 13:35:02 -08:00
Parker Moore
c1da91cf5c
Start removing mentions of Textile.
2015-01-17 16:51:28 -08:00
Parker Moore
10659e1eef
Merge branch 'nitoyon-slugify-new-param'
...
* nitoyon-slugify-new-param:
Remove superfluous Sass declarations.
Move the slugify options out to their own section so as to fix the formatting.
Document the mode parameter of slugify Liquid filter
Add tests for mode parameters of slugify Liquid filter
Add mode parameter to slugify Liquid filter
Conflicts:
lib/jekyll/utils.rb
---> Hadn't added UTF-8 support in nitoyon's PR.
2015-01-17 16:06:10 -08:00
Ryan Burnette
588bba39ad
Add test for Date object in filters.rb
2015-01-13 13:51:36 -05:00
Parker Moore
9109da32f9
Update test for the date() Liquid filter.
2014-12-29 20:44:10 -05:00
Aidan Feldman
229303bbc8
compare resulting data in jsonify test
2014-11-27 04:01:31 -06:00
Aidan Feldman
0662d31bf6
fix jsonify filter when used with boolean values
2014-11-26 02:40:41 -06:00
Parker Moore
18930b01f6
Fix up the assertions.
2014-11-05 11:39:15 -08:00
Parker Moore
b29fd6d380
Add tests.
...
Need to fix up the assertions to match the output.
2014-11-05 11:37:51 -08:00
Parker Moore
3fb1356593
The jsonify filter should deep-convert to Liquid when given an Array.
...
Fixes https://github.com/github/choosealicense.com/issues/225
2014-10-27 15:58:42 -07:00
nitoyon
3c5e9f5334
Add tests for mode parameters of slugify Liquid filter
2014-10-12 02:50:08 +09:00
Mike Kruk
56ac50c568
where filter - test return value when filtering a Hash
2014-10-08 17:02:36 -04:00
Mike Kruk
f6ea8b4d50
Allow Enumerables to be used with "where" filter.
2014-10-08 16:19:55 -04:00
Parker Moore
196a56e3ec
Add push, pop, shift, and unshift Liquid filters.
...
Fixes #2892 .
2014-09-09 21:29:23 -07:00
Chris Frederick
77297744ce
Add a test for the slugify Liquid filter
2014-09-07 16:49:14 +09:00
Shu Uesugi
cfd17b2e7d
Add inspect filter
2014-09-01 14:51:09 -07:00
Kevin
566d3718b0
added sassify and scssify filters fot converting sass and scss strings to css
2014-08-12 21:24:04 -06:00
Parker Moore
4147e92561
Merge pull request #2417 from jekyll/jekyll-env
2014-05-17 00:53:55 -04:00
Parker Moore
3413c96845
Add test for Jekyll.env
2014-05-17 00:47:03 -04:00
Parker Moore
04b0fe0160
Merge pull request #2377 from jekyll/numeric
2014-05-16 03:50:50 -04:00
Parker Moore
4d1c84aa2b
date_to_xmlschema does some weird things with timezones, but whatever it's not important.
2014-05-16 03:42:35 -04:00
Anatol Broder
7cd95734df
Fix coding for 1.9.3
2014-05-11 02:22:58 +02:00
Anatol Broder
06cebb0816
Add ascii+utf8 sort. Props @ixti
2014-05-11 01:34:09 +02:00
Anatol Broder
b2f30f5bee
Test Russian and Hebrew sort
2014-05-11 01:06:35 +02:00
Parker Moore
af9f1e6f48
Accept Numeric values for dates.
2014-05-09 23:11:05 -04: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
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
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
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
Parker Moore
9659cfe876
Test site.static_files
2014-02-19 13:34:44 -05:00
Parker Moore
ab0ebadee3
Merge master into security-vuln-patches
2014-02-16 22:02:03 -05:00
Parker Moore
d43341fab0
Merge pull request #2009 from penibelst/test-sass-include
2014-02-13 17:56:38 -05: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
Parker Moore
ac8d8a7cb8
Fix some tests
2014-02-08 00:31:26 -05:00
Anatol Broder
8e0a826cc7
Fix group_by_filter test by adding 2 items
2014-02-04 01:31:37 +01:00
Parker Moore
fdbfd719ca
Add CoffeeScript converter.
2014-01-25 20:38:51 -05:00