Commit Graph

3072 Commits

Author SHA1 Message Date
Ashwin Maroli 27aa53cf82 Memoize SiteDrop#documents to reduce allocations (#7697)
Merge pull request 7697
2019-06-25 17:02:04 -04:00
Ashwin Maroli e10a90987a Replace `String#=~` with `String#match?` (#7718)
Merge pull request 7718
2019-06-24 13:46:28 -04:00
Ashwin Maroli 68a31c8eb2 Don't read symlinks in site.include in safe mode (#7711)
Merge pull request 7711
2019-06-23 18:15:25 -04:00
Ashwin Maroli 06eafadcbb Use regexp to filter special entries (#7702)
Merge pull request 7702
2019-06-23 16:23:09 -04:00
Ashwin Maroli 25898f8d9d Reword code-comment to reflect the implementation 2019-06-14 15:46:09 +05:30
Frank Taillandier cca639dcc3
Merge pull request #7705 from ashmaroli/filter-dot-entries
Reject entries that are just dots in a directory
2019-06-14 08:31:57 +02:00
Ashwin Maroli 119e0047e8 Don't sanitize pattern or entry string 2019-06-09 16:38:19 +05:30
Ashwin Maroli 3002aa58f5 Refactor `EntryFilter#glob_include?` 2019-06-09 15:35:39 +05:30
Ashwin Maroli 49e5b33fb0 Reject entries that are just dots in a directory 2019-06-09 11:42:34 +05:30
Ashwin Maroli e05745929f Remove override to Jekyll::Document#respond_to? (#7695)
Merge pull request 7695
2019-06-05 12:10:37 -04:00
Ashwin Maroli 554e07d4a5 Revert memoizing Site#docs_to_write and #documents (#7684)
Merge pull request 7684
2019-05-30 21:28:03 -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 49ffbbd4c7 Add `type` attribute to Document instances (#7406)
Merge pull request 7406
2019-05-16 11:44:39 -04:00
Ashwin Maroli 7548132944 Reduce allocations from Jekyll::Document instances (#7625)
Merge pull request 7625
2019-05-16 10:55:59 -04:00
Ashwin Maroli cbfdeaefcd Reduce string allocations with better alternatives (#7643)
Merge pull request 7643
2019-05-16 10:04:37 -04:00
Ashwin Maroli 20c9d0957a Encode and unencode urls only as required (#7654)
Merge pull request 7654
2019-05-15 12:14:08 -04:00
Ashwin Maroli c47611cb6e Initialize and reset glob_cache only as necessary (#7658)
Merge pull request 7658
2019-05-15 11:49:05 -04:00
Ashwin Maroli ec347597da Reduce Array allocations via Jekyll::Cleaner (#7659)
Merge pull request 7659
2019-05-15 11:48:12 -04:00
Ashwin Maroli 965aef60e6 Initialize mutations for Drops only if necessary (#7657)
Merge pull request 7657
2019-05-15 11:43:13 -04:00
Ashwin Maroli b04e3d3de7 Store list of expected extnames in a constant (#7638)
Merge pull request 7638
2019-05-01 14:54:18 -04:00
Ashwin Maroli 3e8c37b641 Refactor Jekyll::Cache (#7532)
Merge pull request 7532
2019-05-01 14:43:20 -04:00
Ashwin Maroli 14e5d00555 Fix broken include_relative usage in excerpt (#7633)
Merge pull request 7633
2019-04-30 09:03:48 -04:00
Ashwin Maroli a5cac26766 Bump RuboCop to v0.68.x (#7637)
Merge pull request 7637
2019-04-30 08:44:08 -04:00
Ashwin Maroli c8fe609f8f Target Ruby 2.4 syntax in RuboCop scans (#7583)
Merge pull request 7583
2019-04-19 10:30:17 -04:00
Ashwin Maroli f4ee82650e
Revert "Refactor `highlight` tag to behave like the `raw` tag" (#7592)
* Revert "Refactor `highlight` tag to behave like the `raw` tag (#6821)"

This reverts commit 36404b9a43.

* use Liquid `raw` in upgrading document
* let the minor improvements stay
* Revert entry in History.markdown
2019-04-19 12:49:03 +05:30
Ashwin Maroli ec0971ab17 Generate a "TOTAL" row for build-profile table (#7614)
Merge pull request 7614
2019-04-12 13:48:33 -04:00
Ashwin Maroli 2591f33aa8 Incorporate `relative_url` within `post_url` tag (#7589)
Merge pull request 7589
2019-03-29 02:54:45 -04:00
Ashwin Maroli 2090989fb3 Favor Ruby 2.3 squiggly-heredoc operator (#7584)
Merge pull request 7584
2019-03-22 12:18:58 -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
Christoph Päper 0da5389cbb ISO week date drops (#5981)
Merge pull request 5981
2019-03-21 20:42:36 -04:00
Frank Taillandier 378147d761 Release v4.0.0.pre.alpha1 (#7574)
Merge pull request 7574
2019-03-19 03:03:57 -04:00
Ashwin Maroli 9e137bae29 Push Markdown link refs to excerpt only as required (#7577)
Merge pull request 7577
2019-03-18 17:39:08 -04:00
Ashwin Maroli cc7978f3bc Optimize Document::DATE_FILENAME_MATCHER to match valid filenames (#7292)
Merge pull request 7292
2019-03-15 13:38:12 -04:00
mo khan 2bdf1a53c4 Log a warning when the slug is empty (#7357)
Merge pull request 7357
2019-03-15 13:35:01 -04:00
Ashwin Maroli 555722887d Replace `name` in Page#inspect with relative_path (#7434)
Merge pull request 7434
2019-03-15 13:33:13 -04:00
Ashwin Maroli 18f7a28168 Cleanup Markdown converter (#7519)
Merge pull request 7519
2019-03-15 13:30:39 -04:00
Ashwin Maroli 575f4b66de Upgrade kramdown dependency to v2.x (#7492)
Merge pull request 7492
2019-03-15 13:27:41 -04:00
Ashwin Maroli 5942ee46ae Memoize Document#excerpt_separator (#7569)
Merge pull request 7569
2019-03-15 13:20:15 -04:00
Ashwin Maroli 907477b9ca Escape valid special chars in a site's path name (#7568)
Merge pull request 7568
2019-03-15 13:14:57 -04:00
Ashwin Maroli da313bf883 Avoid unnecessary duplication of pages array (#7272)
Merge pull request 7272
2019-03-15 13:11:46 -04:00
Ashwin Maroli 8ccb013f85 Use communicative method parameters (#7566)
Merge pull request 7566
2019-03-15 12:54:24 -04:00
Ashwin Maroli 7ddaa9ffa1 Don't check if site URL is absolute if it is nil (#7498)
Merge pull request 7498
2019-03-15 12:53:40 -04:00
Ashwin Maroli 3b4151b773 Cache computed item property (#7301)
Merge pull request 7301
2019-03-15 12:52:30 -04:00
Ashwin Maroli b4dcdd42f8 Cache globbed paths in front matter defaults (#7345)
Merge pull request 7345
2019-03-15 12:49:00 -04:00
Ashwin Maroli 36404b9a43 Refactor `highlight` tag to behave like the `raw` tag (#6821)
Merge pull request 6821
2019-03-15 12:48:21 -04:00
Ashwin Maroli aea502745a Utilize absolute paths of user-provided file paths (#7450)
Merge pull request 7450
2019-03-15 12:10:48 -04:00
Ashwin Maroli b668eb0150 Fix unnecessary allocations via StaticFileReader (#7572)
Merge pull request 7572
2019-03-14 21:40:45 -04:00
Ashwin Maroli 5fa93015a6
Revert Utils::WinTZ upgrade and lock to TZInfo-1.x (#7562)
Revert "Add missing divider in upgrading-guide"
This reverts commit d8c745ca30.

Revert "Update history to reflect merge of #7521"
This reverts commit 7ee2e26d6c.

Revert "Upgrade WinTZ utility to use TZInfo-2.0"
This reverts commit 13cbef4221.

Lock use of `tzinfo` gem to v1.x
2019-03-10 17:20:48 +05:30
Ashwin Maroli 13cbef4221 Upgrade WinTZ utility to use TZInfo-2.0 (#7521)
Merge pull request 7521
2019-02-20 15:53:13 -05:00
Ashwin Maroli 63b3739062 Add `Site#in_cache_dir` helper method (#7160)
Merge pull request 7160
2019-02-20 10:47:20 -05:00
Ashwin Maroli 091b5bd697 Always exclude certain paths from being processed (#7188)
Merge pull request 7188
2019-02-19 11:54:18 -05: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 07bf5be7b4 Allow custom sorting of collection documents (#7427)
Merge pull request 7427
2019-02-16 11:19:03 -05:00
Josue Caraballo 9ee96562dd changed future post loglevel to warn to help user narrow down issues (#7527)
Merge pull request 7527
2019-02-16 11:08:26 -05:00
Ashwin Maroli 06c49c7af6 Configure cache_dir (#7232)
Merge pull request 7232
2019-02-15 08:47:00 -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 1df4e94989 Search Front matter defaults with relative_path (#7261)
Merge pull request 7261
2019-01-27 09:00:44 -05:00
Ashwin Maroli 1a01f95a12 Remind user to include gem in the Gemfile on error (#7476)
Merge pull request 7476
2019-01-14 11:08:17 -05:00
Ashwin Maroli ae0a064f3f Output correct class name in custom inspect string 2019-01-11 13:18:49 +05:30
Kyle Barbour 88d63c9303 Excerpt handling of custom and intermediate tags (#7382)
Merge pull request 7382
2019-01-04 04:30:29 -05:00
Ashwin Maroli 5d144beb00 Dont write static files from unrendered collection (#7410)
Merge pull request 7410
2019-01-02 19:48:07 -05:00
Dan Allen 9a0153f4d2 fix warning in Jekyll::Renderer#layouts (#7448)
Merge pull request 7448
2019-01-02 19:21:57 -05:00
Ashwin Maroli 18fb5687f4 Reduce array traversal in Jekyll::Reader (#7157)
Merge pull request 7157
2018-12-16 11:14:32 -05:00
Ashwin Maroli 446aa88bdf Add a custom inspect string for StaticFile objects (#7422)
Merge pull request 7422
2018-12-16 01:16:24 -05:00
Ashwin Maroli 1a7b55e6dd Documents should be able to render their date (#7404)
Merge pull request 7404
2018-12-16 01:08:53 -05:00
Parker Moore 8741c69d42 Theme gems: ensure directories aren't symlinks (#7419)
Merge pull request 7419
2018-12-14 10:08:41 -05:00
XhmikosR fa914d2dd8 Switch to `gem 'wdm', '~> 0.1.1', :install_if => Gem.win_platform?` (#7372)
Merge pull request 7372
2018-11-24 08:25:15 -05:00
Ashwin Maroli bfc733da90 Only read layouts from source_dir or theme_dir (#6788)
Merge pull request 6788
2018-11-18 06:54:32 -05:00
olivia 271e476e67 reflect 3.8.5 release 2018-11-04 21:22:28 +01:00
Ashwin Maroli d926ebf688 Incorporate `relative_url` filter in `link` tag (#6727)
Merge pull request 6727
2018-11-04 14:03:18 -05:00
Ashwin Maroli 592b530de1 Re-implement handling Liquid blocks in excerpts (#7250)
Merge pull request 7250
2018-11-04 14:02:00 -05:00
Ashwin Maroli f0af098abe Memoize the return value of Site#documents (#7273)
Merge pull request 7273
2018-10-31 13:10:19 -04:00
Ashwin Maroli d67cbb4e5f Load config file from within current theme-gem (#7304)
Merge pull request 7304
2018-10-28 06:08:32 -04:00
Ashwin Maroli 9152b1c9b8 Measure the no. of times a template gets rendered (#7316)
Merge pull request 7316
2018-10-28 06:04:27 -04:00
Ashwin Maroli ea8ac3a7fa Memoize Site#post_attr_hash (#7276)
Merge pull request 7276
2018-10-28 01:12:04 -04:00
Ashwin Maroli 8d80ada92b Bump RuboCop to v0.60.x (#7338)
Merge pull request 7338
2018-10-26 09:43:40 -04:00
Ashwin Maroli c7a99f276c Revert "Cache converter in renderer" (#7326)
Merge pull request 7326
2018-10-19 16:29:14 -04:00
Mario ad7a5c0121 Skip processing posts that can not be read (#7302)
Merge pull request 7302
2018-10-19 11:35:42 -04:00
olivia hugger 5779b29855
fix typo in blank site template 2018-10-12 13:01:38 +02:00
jekyllbot 37baaec83e
feat: enhance --blank scaffolding (#7310)
Merge pull request 7310
2018-10-12 06:57:45 -04:00
argv-minus-one 052dbf8b98 Automatically load _config.toml (#7299)
Merge pull request 7299
2018-10-05 09:43:06 -04:00
Ashwin Maroli a2d61f976f Optimize rendering Liquid templates (#7136)
Merge pull request 7136
2018-10-03 11:29:45 -04:00
Pat Hawks 139ea09967 Do not dump undumpable objects (#7190)
Merge pull request 7190
2018-10-02 07:27:15 -04:00
Pat Hawks b8dfc9a32f Cache converter in renderer (#7183)
Merge pull request 7183
2018-10-02 04:16:49 -04:00
Pat Hawks 18d33b1fd6 Cache converted markdown (#7159)
Merge pull request 7159
2018-10-02 04:07:08 -04:00
Grzegorz Kaczorek 55dd39d580 Document converter methods (#7289)
Merge pull request 7289
2018-10-01 14:37:15 -04:00
Ashwin Maroli faed9c4143 Drop support for `jekyll-watch-1.4.0` and older (#7287)
Merge pull request 7287
2018-10-01 08:49:31 -04:00
jekyllbot 05f109071d
Remove default config for markdown (#7285)
Merge pull request 7285
2018-09-30 11:03:02 -04:00
Frank Taillandier 63deec3074
Add links to YAML cheatsheets
Fix #6054
2018-09-30 11:00:57 +02:00
Ashwin Maroli 4707017936 Drop support for pygments as syntax-highlighter (#7118)
Merge pull request 7118
2018-09-27 08:29:46 -04:00
Ashwin Maroli 57da5c0e29 Check key in collections only if it isn't "posts" (#7277)
Merge pull request 7277
2018-09-26 10:18:57 -04:00
Ashwin Maroli 6eee8b7e06 Strip extra slashes via `Jekyll.sanitized_path` (#7182)
Merge pull request 7182
2018-09-24 13:27:44 -04:00
Grzegorz Kaczorek 8a7ecfce36 Document two methods, simplify one of the methods (#7270)
Merge pull request 7270
2018-09-24 12:31:36 -04:00
ikeji 0960ae0755 Ignore permission error of /proc/version (#7267)
Merge pull request 7267
2018-09-24 12:29:55 -04:00
jekyllbot 88dbe5db8a
chore(release): reflect latest patched releases (#7262)
Merge pull request 7262
2018-09-20 09:49:39 -04:00
Ashwin Maroli 88e0472160 Check if scope applies to type before given path (#7263)
Merge pull request 7263
2018-09-20 09:45:53 -04:00
Ashwin Maroli 352133f39b cache matched defaults sets for given parameters (#6888)
Merge pull request 6888
2018-09-19 07:46:39 -04:00
jekyllbot a28f54a59f
Bump Rubocop to v0.59.0 (#7237)
Merge pull request 7237
2018-09-09 18:14:46 -04:00
Parker Moore f1c87a9129 Security: fix `include` bypass of `EntryFilter#filter` symlink check (#7226)
Merge pull request 7226
2018-09-07 15:17:55 -04:00
Ashwin Maroli 9f93fd092f Interpolate Jekyll::Page subclass on inspection (#7203)
Merge pull request 7203
2018-08-29 13:20:52 -04:00