Commit Graph

1314 Commits

Author SHA1 Message Date
Ashwin Maroli 878e0ba29c Skip theme-dir-symlink test if on Windows 2018-12-18 23:18:48 +05:30
Ashwin Maroli c368fec322 Create symlink only if target is accessible (#7429)
Merge pull request 7429
2018-12-18 12:00:27 -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
Ashwin Maroli eda9e2e4ef Bump RuboCop to v0.61.x (#7401)
Merge pull request 7401
2018-12-05 11:21:48 -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
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 d67cbb4e5f Load config file from within current theme-gem (#7304)
Merge pull request 7304
2018-10-28 06:08:32 -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
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
Pat Hawks 18d33b1fd6 Cache converted markdown (#7159)
Merge pull request 7159
2018-10-02 04:07:08 -04: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 6eee8b7e06 Strip extra slashes via `Jekyll.sanitized_path` (#7182)
Merge pull request 7182
2018-09-24 13:27:44 -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
ExE Boss 9195b61d51 Add support for `*.xhtml` files (#6854)
Merge pull request 6854
2018-08-25 06:07:28 -04:00
Pat Hawks 24dd9f1457 Add Cache class (#7169)
Merge pull request 7169
2018-08-21 03:38:53 -04:00
Ashwin Maroli 506c764e1e fix incorrectly passed arguments to assert_equal (#7134)
Merge pull request 7134
2018-07-15 16:11:45 -04:00
Ken Salomon c7ce7ae054 fix up refute_equal call (#7133)
Merge pull request 7133
2018-07-13 19:48:00 -04:00
Pat Hawks 7a4b3fe03d Disable Liquid via front matter (#6824)
Merge pull request 6824
2018-07-13 12:12:49 -04:00
Ashwin Maroli 9adac3a11e Fix Rubocop offences in test files (#7128)
Merge pull request 7128
2018-07-12 10:21:23 -04:00
Jakob Krigovsky 1801793035 Use .markdown for page templates (#7126)
Merge pull request 7126
2018-07-11 10:01:17 -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
jekyllbot 0b6962cfe9
Use assert_include (#7093)
Merge pull request 7093
2018-06-23 16:57:35 -04:00
Kyle Barbour b915c7577b Add whitespace control to LIQUID_TAG_REGEX (#7015)
Merge pull request 7015
2018-05-17 18:22:32 -04:00
Ashwin Maroli 4f06767ac8 Load Rouge for TestKramdown (#7007)
Merge pull request 7007
2018-05-10 18:28:39 -04:00
jekyllbot 149d5de59a
Remove support for rdiscount (#6988)
Merge pull request 6988
2018-05-09 09:44:36 -04:00
Nikita Skalkin e0758ba550 Remove support for Redcarpet (#6987)
Merge pull request 6987
2018-05-06 10:18:02 -04:00
Frank Taillandier 41fa9cda36
Fix tests
Co-Authored-By: ashmaroli <ashmaroli@users.noreply.github.com>
2018-05-04 14:14:44 +02:00
Ashwin Maroli f8dfbd2f7b Drop support for older versions of Rouge (#6978)
Merge pull request 6978
2018-05-03 10:03:55 -04:00
Alexey Pelykh b95151c4a7 Liquefied link tag (#6269)
Merge pull request 6269
2018-05-02 19:58:12 -04:00
ashmaroli d09db32d10 handle liquid tags in excerpts robustly (#6891)
Merge pull request 6891
2018-04-12 11:37:42 -04:00
David Zhang 2a032a38ec Bump Rubocop to 0.54.x (#6915)
Merge pull request 6915
2018-04-09 04:26:49 -04:00
Roger Rohrbach 37b729fd87 Assert existence of <collection>.files (#6907)
Merge pull request 6907
2018-04-05 16:26:29 -04:00
ashmaroli 8f3363e2dc Fix passing multiline params to include tag when using the variable syntax (#6858)
Merge pull request 6858
2018-03-21 18:24:04 -04:00
Florian Thomas 5bb12d0099 fix minitest deprecation warning in test (#6839)
Merge pull request 6839
2018-03-11 13:19:33 -04:00
ashmaroli f8a66ca76c Improve handling non-default collection documents rendering and writing (#6795)
Merge pull request 6795
2018-03-09 21:11:24 -05: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
ashmaroli 5ebdc184c0 Excerpt relative-path should match its path (#6597)
Merge pull request 6597
2018-02-20 10:58:50 -05:00
ashmaroli a662bc24aa Append appropriate closing tag to Liquid block in an excerpt (#6724)
Merge pull request 6724
2018-02-20 09:47:56 -05:00
Semen Zhydenko 8fae0052c8 Fix typos (#6764)
Merge pull request 6764
2018-02-10 21:58:13 -05:00
Florian Thomas cf5c689d94 Fix timezone incosistencies between different ruby version (#6697)
Merge pull request 6697
2018-01-25 10:43:56 -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
ashmaroli 009d308f9f Glob scope path only if configured with a pattern (#6692)
Merge pull request 6692
2018-01-19 14:26:47 -05:00
Florian Thomas 082e0623af inform that symlinks are not allowed in safe mode (#6670)
Merge pull request 6670
2018-01-14 15:47:53 -05:00
Frank Taillandier c00054a069
Merge pull request #6538 from jekyll/pull/imageOptim
Site: Lossless image optimization
2018-01-05 14:27:08 +01:00
Jashank Jeremy a9fe56830b Switch to an actively-maintained TOML parser. (#6652)
Merge pull request 6652
2018-01-02 12:36:58 -05:00
jekyllbot ba75c87f63
Remove paginate check (#6606)
Merge pull request 6606
2017-12-10 08:35:12 -05:00
Alex Wood 50ff219ba2
Add LiveReload functionality to Jekyll. (#5142)
Merge pull request 5142
2017-12-07 19:55:25 +01:00
ashmaroli 65f7deca98
Add PageWithoutAFile class from jekyll plugins (#6556)
Merge pull request 6556
2017-12-07 19:55:19 +01:00
ashmaroli 61e53b6b61
cleanup test_redcarpet.rb (#6584)
Merge pull request 6584
2017-12-07 19:55:18 +01:00
Parker Moore bd1d44493f
Upgrade pygments to v1.x (#5937)
Merge pull request 5937
2017-12-07 19:55:16 +01:00
Florian Thomas 7ef3260327
return correct file in dir if dir has same name as file (#6569)
Merge pull request 6569
2017-12-07 19:55:12 +01:00
Jonathan Hooper f906a3cb59
Rescue from Psych::SyntaxError instead of SyntaxError after parsing YAML (#5828)
Merge pull request 5828
2017-12-07 19:55:10 +01:00
jekyllbot 0fdb39bbd6
Avoid block parser warning in SmartyPants (#6565)
Merge pull request 6565
2017-12-07 19:55:05 +01:00
Ashwin Maroli fcb1b410e3 rename log_warnings to show_warnings 2017-12-07 23:44:15 +05:30
Ashwin Maroli 77852b8838 add option to configure kramdown warning output 2017-11-13 22:02:58 +05:30
Pat Hawks 41312370a3
Add extra smartify test 2017-11-12 11:52:18 -06:00
Frank Taillandier 4bfdd28790 Site: Lossless image optimization
Ran ImageOptim
2017-11-10 22:12:07 +01:00
ImgBot fd271f5bb2 [ImgBot] optimizes images (#6519)
Merge pull request 6519
2017-11-10 11:54:58 -05: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
Florian Thomas fa22ebf056 Log kramdown warnings if log level is WARN (#6522)
Merge pull request 6522
2017-11-09 09:11:05 -05:00
ashmaroli 0205fb9e79 Assert raising Psych::SyntaxError when `"strict_front_matter"=>true` (#6520)
Merge pull request 6520
2017-11-05 22:50:46 -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
Alex Tsui 93e3eb06d2 Add latin mode to slugify (#6509)
Merge pull request 6509
2017-11-02 23:07:25 -04:00
Parker Moore 8fc463bdce Add Utils::Internet.connected? to determine whether host machine has internet connection. (#5870)
Merge pull request 5870
2017-11-02 16:54:42 -04:00
Angelika Tyborska 8dbe5de66b Raise when theme root directory is not available (#6455)
Merge pull request 6455
2017-10-28 11:34:38 -04:00
jekyllbot e7f1ce2e2b Update Rubocop to 0.51.0 (#6444)
Merge pull request 6444
2017-10-19 14:22:36 -04:00
Frank Taillandier 363bd6c7eb Problematic UTF+bom files (#6322)
Merge pull request 6322
2017-10-17 23:15:26 -04:00
Alexey Pelykh a78b518f83 Scope path glob (#6268)
Merge pull request 6268
2017-10-09 06:52:19 -04:00
ashmaroli 00bad8bfe5 Bump rubocop to use `v0.50.x` (#6368)
Merge pull request 6368
2017-09-22 09:06:32 -04:00
Florian Thomas 47bcbfb654 skip adding binary files as posts (#6344)
Merge pull request 6344
2017-09-21 16:30:23 -04:00
Ben Balter a5fd0c0b26 Mutable drops should fallback to their own methods when a mutation isn't present (#6350)
Merge pull request 6350
2017-09-21 15:57:24 -04:00
Ben Balter 1637f29d6c Alias Drop#invoke_drop to Drop#[] (#6338)
Merge pull request 6338
2017-09-06 12:52:34 -04:00
Parker Moore 232ec4679a Allow `yield` to logger methods & bail early on no-op messages (#6315)
Merge pull request 6315
2017-08-18 12:45:23 -04:00
Parker Moore 4c15b9e5e4 [WIP] Add shim that works for both Rouge 1 and Rouge 2 (#5919)
Merge pull request 5919
2017-08-17 11:16:18 -04:00
Parker Moore 3f0c77cfd5 Add a quick test for DataReader (#6284)
Merge pull request 6284
2017-08-10 16:27:14 -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 bd31986ad6 Fix Drop#key? so it can handle a nil argument (#6281)
Merge pull request 6281
2017-08-08 23:10:38 -04:00
ashmaroli c8eee7ffcb Access custom config array throughout session (#6200)
Merge pull request 6200
2017-08-07 12:13:33 -04:00
Florian Thomas 39631db0bd make flakey test more robust (#6277)
Merge pull request 6277
2017-08-06 10:49:01 -04:00
Kyle Zhao a99186fe0a delegate `StaticFile#to_json` to `StaticFile#to_liquid` for a more (#6273)
Merge pull request 6273
2017-08-05 11:01:40 -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
Parker Moore 143367c5ca kramdown: symbolize keys in-place (#6247)
Merge pull request 6247
2017-07-28 12:05:43 -04:00
Bogdan 8f1959bbc4 Define path with __dir__ (#6087)
Merge pull request 6087
2017-07-25 19:20:20 -04:00
ashmaroli 00a1d70e8f fix tests (#6240)
Merge pull request 6240
2017-07-25 06:28:17 -04:00
ashmaroli 026f8280e0 Ignore final newline in folded YAML string (#6054)
Merge pull request 6054
2017-07-18 03:29:33 -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 f91b614793 Static files contain front matter default keys when to_liquid'd (#6162)
Merge pull request 6162
2017-06-30 21:51:55 -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
Anatoliy Yastreb 2ceff6ab3e Read explicitly included dot-files in collections. #6091 (#6092)
Merge pull request 6092
2017-06-14 15:42:43 -04:00
ashmaroli fcde83431e Address reading non-binary static files in themes (#5918)
Merge pull request 5918
2017-06-14 15:38:38 -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
Anatoliy Yastreb 2cfcb23a49 Fix layout front-matter variables rendering. #6071 (#6073)
Merge pull request 6073
2017-06-14 15:05:38 -04:00
Jonathan Hooper 308ba550ef Add option to fail a build with front matter syntax errors (#5832)
Merge pull request 5832
2017-05-09 20:17:36 -04:00
Frank Taillandier 3a36fde240 Fix CI after #6040 (#6044)
Merge pull request 6044
2017-04-22 16:22:26 -04:00
Florian Thomas 0108b22f3c create configuration from options only once in the boot process (#5487)
Merge pull request 5487
2017-04-19 14:50:25 -04:00
Florian Thomas ccb133fd33 add `plugins` config key as replacement for `gems` (#5130)
Merge pull request 5130
2017-04-17 07:46:33 -04:00
ashmaroli 7d7a312b33 Bump Rubocop to v0.48 (#5997)
Merge pull request 5997
2017-04-09 07:24:45 -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
Frank Taillandier a4c4388b8d Don't raise an error if URL contains a colon (#5889)
Merge pull request 5889
2017-03-31 01:48:54 -04:00
ashmaroli 0eb9379354 Require `runtime_dependencies` of a Gem-based theme from its `.gemspec` file (#5914)
Merge pull request 5914
2017-03-31 01:46:15 -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
jekyllbot 9a740bc447 Merge pull request #5934 from ashmaroli/appease-classifier
Merge pull request 5934
2017-03-06 20:58:51 -05:00
Ashwin Maroli 635e3365cc appease classifier-reborn 2017-03-04 23:29:04 +05:30
Parker Moore 3e4dbc83e3
Attempt to alleviate strange Windows encoding error.
Error:
TestGeneratedSite#test_: generated sites should render latest post's content. :
Encoding::CompatibilityError: incompatible character encodings: IBM437 and UTF-8
    C:/projects/jekyll/test/test_generated_site.rb:22:in `include?'
    C:/projects/jekyll/test/test_generated_site.rb:22:in `block (2 levels) in <class:TestGeneratedSite>'
    C:/projects/jekyll/test/test_generated_site.rb:34:in `instance_exec'
    C:/projects/jekyll/test/test_generated_site.rb:34:in `block in create_test_from_should_hash'
2017-03-01 22:36:25 -05:00
Parker Moore ca87c99a3c
Fix fmt issues in test for 'include a post with a abbreviated dates' 2017-03-01 22:08:21 -05:00
Parker Moore 8a0c0727ea
Failing test: abbreviated post dates are no longer read.
This is a regression introduced by https://github.com/jekyll/jekyll/pull/5609.
2017-03-01 21:38:55 -05:00
Parker Moore 23808c2ae6
Fix missing trailing comma to alleviate fmt errors
Offenses:

test/test_static_file.rb:151:9: C: [Corrected] Style/TrailingCommaInLiteral: Put a comma after the last item of a multiline hash.
        "collection"    => nil
        ^^^^^^^^^^^^^^^^^^^^^^
2017-02-10 21:16:25 -05:00
jekyllbot afe6e3622c Merge pull request #5860 from ashmaroli/exclude-patch
Merge pull request 5860
2017-02-10 21:10:09 -05:00
Ben Balter 229769e249
add StaticFileDrop 2017-02-08 17:44:47 -05:00
Ashwin Maroli 2813b9c039 test exclusion of Gemfile 2017-02-05 01:49:38 +05:30
Ashwin Maroli 384be58b5e add missing comma 2017-01-31 08:40:06 +05:30
jekyllbot 2cf685feb2 Merge pull request #4362 from jekyll/liquid-4
Merge pull request 4362
2017-01-27 11:10:53 -05:00
Frank Taillandier 5ed22d0b3e
Now we must execute SimpleCov 2017-01-19 22:39:39 +01:00
Parker Moore b6bc85ec7c
Correct 2 Style/TrailingCommaInLiteral rubocop offenses in test_filters.rb 2017-01-18 14:16:08 -05:00
jekyllbot 477b2f0f3e Merge pull request #5640 from jekyll/jekyll-utils-exec
Merge pull request 5640
2017-01-18 14:15:11 -05:00
jekyllbot 76e9b8d266 Merge pull request #5542 from ashmaroli/url-slash
Merge pull request 5542
2017-01-17 20:21:48 -05:00
Parker Moore 130159dda4
Fix rubocop error. 2017-01-17 17:05:14 -05:00
Parker Moore e0d63c8aa9
Add test to ensure that if the includes dir isn't in the theme that it won't break the site 2017-01-17 16:19:47 -05:00
Parker Moore ad8fb9b927
Add theme_dir() helper func 2017-01-17 16:19:26 -05:00
jekyllbot 71dab94a97 Merge pull request #5779 from jekyll/fix-flaky-plugins-path-test
Merge pull request 5779
2017-01-16 17:03:41 -05:00
Parker Moore aa7e47a30d
Remove calls to Dir.chdir without a block.
This removes the necessity to initialize Jekyll::Configuration::DEFAULTS manually.
2017-01-16 16:43:25 -05:00
Parker Moore 567a7952dd
test/helper: fix flaky plugin path test by initializing Configuration::DEFAULTS at start of tests
If we do a Dir.chdir before Configuration::DEFAULTS is initialized, then its source and destination values will not be what we expect.
We expect that Dir.pwd should stay as the root of the repo but there are some errant calls to Dir.chdir without a block that are still
not yet cleaned up.
2017-01-16 16:25:09 -05:00
Frank Taillandier 5d52074d2d appease Rubocop 2017-01-14 20:01:41 +01:00
Pat Hawks 1d885911bc
Rubocop: Require consistent comma in multiline literals 2017-01-12 17:52:29 -06:00
Frank Taillandier 31178bfe69 Merge branch 'master' into liquid-4 2017-01-10 20:01:04 +01:00
Pat Hawks 368294b2a9
Update tests to be position independent 2017-01-06 05:55:50 -06:00
Pat Hawks 0f2013114c
Merge branch 'master' into jekyll-utils-exec 2017-01-06 05:42:15 -06:00
Ashwin Maroli ea9c303c95 Merge branch 'master' of https://github.com/jekyll/jekyll into url-slash 2017-01-06 12:02:34 +05:30
Pat Hawks 4b51c1da58
Use `assert_nil` 2017-01-05 17:08:04 -06:00
Florian Thomas dde0441b3a
find keys also in assigned collections 2016-12-16 15:37:10 -08:00
Parker Moore d24ea03acf
Update highlight block test to conform with v4 API. 2016-12-16 15:36:48 -08:00
Pat Hawks 69c4a8a1aa
Use `assert_nil` instead of `assert_equal nil`
Fixes #5648
2016-12-10 11:31:04 -06: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
Thiago Arrais d4c8d7fd2b Ignore symlinked file in windows 2016-12-09 13:15:16 -03:00
Parker Moore 6e2449b482
Write Jekyll::Utils::Exec.run for running shell commands. 2016-12-07 17:38:22 -08:00
Thiago Arrais 4ed41558d1 Whoops! 2016-11-30 17:54:59 -03:00
jekyllbot 805dd4b0f1 Merge pull request #5611 from XhmikosR/https
Merge pull request 5611
2016-11-29 15:50:29 -08:00