Commit Graph

165 Commits

Author SHA1 Message Date
Ashwin Maroli 98c14c0f2f
Test `inspect` filter with custom object (#9743)
Merge pull request 9743
2024-12-30 08:15:47 -08:00
Matt Rogers 1f3c0dc0d4
fix(rubocop): correct lint errors (#9600)
Merge pull request 9600
2024-05-22 11:01:18 -07:00
Ashwin Maroli d03742e994
Handle TypeError from `where` filter gracefully (#9292)
Merge pull request 9292
2023-03-24 01:59:18 -07:00
Mamoru TASAKA 249101aea6
test: use hash explicitly for Struct initializer for ruby 3.2 (#9237)
Merge pull request 9237
2022-12-28 23:23:36 -08:00
なつき 572c86ec13
Update sass related tests for jekyll-sass-converter 3.x (#9223)
Merge pull request 9223
2022-12-22 06:51:02 -08:00
JJ 776748e13f
Expose `basename` from `document.rb` as `name` to Liquid templates (#8761)
Merge pull request 8761
2022-04-01 06:24:55 -07:00
Phil Ross 3a688fe55a
Fix random test failures in TestExcerpt #to_liquid. (#8884)
Merge pull request 8884
2021-11-17 04:48:03 -05:00
Frank Taillandier 8c8326e9ab
style: enable new cops (#8538)
Merge pull request 8538
2021-01-12 18:39:41 -05:00
Frank Taillandier d560d53266 style: fix rubocop 1.40 offense 2020-11-23 16:46:50 +01:00
Ashwin Maroli 822bb57d41
Configure Performance cops (#8369)
Merge pull request 8369
2020-09-04 06:08:14 -04:00
Ashwin Maroli ba29de02d4
Make page excerpts consistent with doc excerpts (#8236)
Merge pull request 8236
2020-06-17 09:26:53 -04:00
Ashwin Maroli ee20e844aa
Don't generate excerpts for non-html pages (#8234)
Merge pull request 8234
2020-06-08 08:39:50 -04:00
iBug ♦ 13b7291649
Make number_of_words respect CJK characters (#7813)
Merge pull request 7813
2020-05-22 11:01:17 -04:00
Ashwin Maroli 0b2c4c9cec
Add find filters to optimize where-first chains (#8171)
Merge pull request 8171
2020-05-21 06:56:47 -04:00
Ashwin Maroli 9c0c518d52
Cache URLFilter results of string inputs per site (#7990)
Merge pull request 7990
2020-04-13 03:52:54 -04:00
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 5cc78db648
Test where filter handling numeric property values (#7821)
Merge pull request 7821
2020-02-04 00:24:40 -05:00
Ivan Gromov eb81dc0e96 Update item_property to recognize integers (#7878)
Merge pull request 7878
2019-12-10 10:11:22 -05:00
Takashi Udagawa 3eab32fad7 Fix RuboCop Performance offenses in test files (#7839)
* Replace select.first with find
* Replace select.count with count
2019-10-06 12:00:25 +05:30
Ashwin Maroli de60632309 Remove configuration of theme sass files from Core (#7290)
Merge pull request 7290
2019-08-14 13:36:11 -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 dedfb0748f Handle files with trailing dots in their basename (#7315)
Merge pull request 7315
2019-02-16 11:31:14 -05: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
Ashwin Maroli 9adac3a11e Fix Rubocop offences in test files (#7128)
Merge pull request 7128
2018-07-12 10:21:23 -04:00
Pat Hawks 4c7dbb6915
Fix tests to have "expected value" as the first argument passed to `assert_equal` (#7104)
* assert_equal(exp, act)

* improve clarity of PageWithoutAFile test

* Hoist invariant out of loop
2018-07-09 11:10:35 -05: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
David Zhang 2a032a38ec Bump Rubocop to 0.54.x (#6915)
Merge pull request 6915
2018-04-09 04:26:49 -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 3f4bb55e07 Write a Rubocop Cop to ensure no `#p` or `#puts` calls get committed to master. (#6615)
Merge pull request 6615
2018-01-20 17:04:52 -05:00
jekyllbot 2c646a304c
Avoid block parser warning in SmartyPants (#6565)
Merge pull request 6565
2017-11-17 16:36:11 -05:00
Pat Hawks 41312370a3
Add extra smartify test 2017-11-12 11:52:18 -06:00
Pat Hawks 582165897d Allow URL filters to work directly with documents (#6478)
Merge pull request 6478
2017-11-10 11:35:44 -05:00
Johannes Müller a66c4780cc filter relative_url should keep absolute urls with scheme/authority (#6490)
Merge pull request 6490
2017-11-05 10:17:51 -05:00
jekyllbot e7f1ce2e2b Update Rubocop to 0.51.0 (#6444)
Merge pull request 6444
2017-10-19 14:22:36 -04:00
Ben Balter 045226f160 Guard against type error in absolute url (#6280)
Merge pull request 6280
2017-08-10 11:14:52 -04:00
Parker Moore 7cf5f51ca2 Enforce Style/FrozenStringLiteralComment. (#6265)
Merge pull request 6265
2017-08-03 21:27:32 -04:00
Ben Balter b35c0d8607 Call to_s on site.url before attempting to concatenate strings (#6253)
Merge pull request 6253
2017-07-30 15:12:42 -04:00
Ben Balter 9f7815786b Always normalize the result of the relative_url filter (#6185)
Merge pull request 6185
2017-06-30 21:58:25 -04:00
Ben Balter 69e97fa06f Add strip_index filter (#6075)
Merge pull request 6075
2017-06-15 14:28:41 -04:00
Anatoliy Yastreb d3b00cb84c Bump Rubocop to 0.49.1 (#6093)
Merge pull request 6093
2017-06-15 08:29:35 -04:00
David Zhang 551d2ea858 Add test for uri_escape on reserved characters (#6086)
Merge pull request 6086
2017-06-14 16:36:40 -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
Florian Thomas b76b4a4e8a
add test to use variable in where_exp condition 2017-06-14 15:22:26 -04:00
ashmaroli 2a4d33e615 patch URLFilters to prevent `//` (#6058)
Merge pull request 6058
2017-06-14 15:06:55 -04:00
jekyllbot 768d2bb5a3 absolute_url should not mangle URL if called more than once (#5789)
Merge pull request 5789
2017-04-05 16:16:55 -04:00
jekyllbot 52ac75b484 Date filters should never raise an exception (#5722)
Merge pull request 5722
2017-04-04 19:47:11 -04:00
Pat Hawks 6bc9f71050
Rename test for clarity 2017-03-16 07:59:13 -05:00
Pat Hawks ec5b45cd7c
Allow colons in `uri_escape` filter
Fixes #5954
2017-03-16 07:54:13 -05:00
Parker Moore b6bc85ec7c
Correct 2 Style/TrailingCommaInLiteral rubocop offenses in test_filters.rb 2017-01-18 14:16:08 -05:00
jekyllbot 76e9b8d266 Merge pull request #5542 from ashmaroli/url-slash
Merge pull request 5542
2017-01-17 20:21:48 -05:00