Ashwin Maroli
0f4c8d2248
Allow multiple binary operator in where_exp filter ( #8047 )
...
Merge pull request 8047
2020-03-06 11:08:56 -05:00
Ashwin Maroli
8bb76c865f
Optimize Jekyll::Filters#item_property ( #7696 )
...
Merge pull request 7696
2020-02-06 11:11:50 -05:00
Ivan Gromov
eb81dc0e96
Update item_property to recognize integers ( #7878 )
...
Merge pull request 7878
2019-12-10 10:11:22 -05:00
Frank Taillandier
b02ba76c8a
Test number_like regex on stringified property ( #7788 )
...
Merge pull request 7788
2019-08-19 07:27:26 -04:00
Frank Taillandier
6a4f8bdbec
Fix: rubocop offenses ( #7769 )
...
Merge pull request 7769
2019-08-04 02:49:34 -04:00
Ashwin Maroli
ed385ba264
Reduce allocations from where-filter ( #7653 )
...
Merge pull request 7653
2019-05-16 12:38:53 -04:00
Ashwin Maroli
9240addcf0
Detect `nil` and empty values in objects with `where` filter ( #7580 )
...
Merge pull request 7580
2019-03-22 10:53:34 -04:00
Ashwin Maroli
3b4151b773
Cache computed item property ( #7301 )
...
Merge pull request 7301
2019-03-15 12:52:30 -04:00
Ashwin Maroli
e819bc4af0
Support for binary operators in where_exp filter ( #6998 )
...
Merge pull request 6998
2019-01-30 09:44:45 -05:00
jekyllbot
a28f54a59f
Bump Rubocop to v0.59.0 ( #7237 )
...
Merge pull request 7237
2018-09-09 18:14:46 -04:00
Kelly-Ann Green
f4fcfbdaa0
Update item_property to return numbers as numbers instead of strings ( #6608 )
...
Merge pull request 6608
2018-07-09 01:25:32 -04:00
Frank Taillandier
6c771608e5
Update Rubocop's config ( #7050 )
...
Merge pull request 7050
2018-06-02 06:50:32 -04:00
Ana María Martínez Gómez
bc84603017
Useless privates removed ( #6768 )
...
Merge pull request 6768
2018-05-19 15:49:54 -04:00
ashmaroli
053b522a82
implement a cache within the where filter ( #6868 )
...
Merge pull request 6868
2018-04-12 11:36:53 -04:00
ashmaroli
29dc190fcb
Store and retrieve converter instances for Jekyll::Filters via a hash ( #6856 )
...
Merge pull request 6856
2018-04-12 11:36:12 -04:00
ashmaroli
36fbcaa863
Optimize loading library into memory ( #6910 )
...
Merge pull request 6910
2018-04-10 11:00:12 -04:00
ashmaroli
33f59aef2c
minimize array allocations in the `where` filter ( #6860 )
...
Merge pull request 6860
2018-03-21 19:10:05 -04:00
Ana María Martínez Gómez
ebcd830693
Allow date filters to output ordinal days ( #6773 )
...
Merge pull request 6773
2018-03-05 17:15:59 -05:00
Parker Moore
6ce912e957
Use a Schwartzian transform with custom sorting ( #6342 )
...
Merge pull request 6342
2017-09-02 10:38:07 -04:00
Parker Moore
7cf5f51ca2
Enforce Style/FrozenStringLiteralComment. ( #6265 )
...
Merge pull request 6265
2017-08-03 21:27:32 -04:00
Martin Desrumaux
e031ac9b27
Allow filters to sort & select based on subvalues ( #5622 )
...
Merge pull request 5622
2017-06-14 16:18:07 -04:00
jekyllbot
52ac75b484
Date filters should never raise an exception ( #5722 )
...
Merge pull request 5722
2017-04-04 19:47:11 -04:00
Parker Moore
faf5be46a5
Filters#time helper: Duplicate time before calling #localtime. ( #5996 )
...
Merge pull request 5996
2017-03-31 14:44:46 -04:00
Pat Hawks
ec5b45cd7c
Allow colons in `uri_escape` filter
...
Fixes #5954
2017-03-16 07:54:13 -05:00
Frank Taillandier
31178bfe69
Merge branch 'master' into liquid-4
2017-01-10 20:01:04 +01:00
Pat Hawks
6fb05e0799
Use Addressable instead of URI to decode
2017-01-05 17:44:54 -06:00
Pat Hawks
72a56d9eb7
Check for `to_time`
2016-12-22 19:18:43 -06:00
Pat Hawks
f7edcceb70
Check return value of `to_date`
2016-12-22 16:15:09 -06:00
Pat Hawks
2eb8469936
Never throw on `sample`
2016-12-22 15:48:03 -06:00
Pat Hawks
607ab66707
Use Liquid's own `to_integer`
2016-12-22 15:32:55 -06:00
Pat Hawks
c42eb7fc3a
Take advantage of Liquid::Utils.to_date
2016-12-22 15:32:45 -06:00
Florian Thomas
dbea1ca80b
parse expressions before passing it to Liquid::Condition
2016-12-16 15:37:04 -08:00
jekyllbot
8ed324007a
Merge pull request #5513 from thiagoarrais/5415-group_by_exp-filter
...
Merge pull request 5513
2016-12-09 16:01:21 -08:00
Tim Banks
5c965d6a20
Add connector param to array_to_sentence_string filter
2016-11-22 17:38:33 -06:00
Thiago Arrais
7f18ac8f99
Group using arbitraty Liquid expressions
2016-11-04 18:16:46 -03:00
Parker Moore
aa86651650
Add absolute_url and relative_url filters.
2016-09-22 14:16:00 -07:00
jekyllbot
0f3ce73516
Merge pull request #4860 from pathawks/pr/where_exp
...
Merge pull request 4860
2016-07-25 12:16:55 -07:00
Anatoliy Yastreb
9176924eab
filters: raise error if no input given to date filters
2016-07-24 01:37:35 +03:00
David Zhang
20b3758edb
Add to_integer filter
...
Add to_integer filter
Fix test_filter: parenthesize the method
Fix offense: seperate every 3 digits with _
rubocop:disable Metrics/ModuleLength
More descriptive exception
Fix fmt error
Remove if stmt for integer input
Remove rescue for to_i
Remove error message assert
2016-07-15 08:38:36 +08:00
Florian Thomas
99663a9199
object needs to respond to select instead of being an enumerable
2016-07-14 13:11:09 -05:00
Parker Moore
ddf833505c
Fix offense.
2016-06-15 10:33:30 -07:00
jekyllbot
fb1a459ddd
Merge pull request #4917 from pathawks/pr/normalize_whitespace
...
Merge pull request 4917
2016-06-14 14:03:05 -07:00
Anatoliy Yastreb
5f2bb5d0aa
rubocop: fix code style
2016-06-07 20:13:43 +03:00
Pat Hawks
714c99b418
Convert input to string before markdownify or smartify
2016-05-28 15:19:15 -05:00
Pat Hawks
f7714add15
Add normalize_whitepace filter
2016-05-19 19:59:22 -07:00
Jordon Bedwell
1e74c7a547
Globalize Jekyll's Filters.
...
As it stands Jekyll does not globalize it's filters. So anybody wishing to go
into Jekyll's context to process their own Liquid (say in a plugin) may be taken
aback when they find out that Jekyll's filters are not available.
See: jekyll/jekyll-assets#252 .
2016-04-14 20:36:22 -05:00
Thomas Wood
e470cae6da
Fix rubocop warning.
2016-04-12 19:11:59 +01:00
Thomas Wood
1ef7653fed
Fix minor code style recommendations and typos.
2016-04-12 18:59:56 +01:00
Thomas Wood
66c4ff8800
Add a where_exp filter for filtering by expression
...
This commit introduces a where_exp filter, which can be used as follows:
`{{ array | where_exp: "item", "item == 10" }}`
`{{ array | where_exp: "item", "item.field > 10" }}`
`{{ site.posts | where_exp: "post", "post contains 'field'" }}`
`{{ site.posts | where_exp: "post", "post.array contains 'giraffes'" }}`
This permits a variety of use cases, such as reported in: jekyll#4467,
jekyll#4385, jekyll#2787.
2016-04-12 18:52:58 +01:00
Pat Hawks
b06af5a44f
Use encode for xml_escape filter
2016-03-21 11:07:46 -07:00