Commit Graph

23 Commits

Author SHA1 Message Date
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
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
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
Ben Balter
229769e249 add StaticFileDrop 2017-02-08 17:44:47 -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
Pat Hawks
1d885911bc Rubocop: Require consistent comma in multiline literals 2017-01-12 17:52:29 -06:00
Pat Hawks
69c4a8a1aa Use assert_nil instead of assert_equal nil
Fixes #5648
2016-12-10 11:31:04 -06:00
jekyllbot
ef3f9d0e7a Merge pull request #5264 from DirtyF/static-file-name
Merge pull request 5264
2016-09-29 14:13:31 -07:00
Parker Moore
fd5f2eb399 Add failing test for File.utime of a symlink in staticfile. 2016-09-28 16:54:58 -07:00
Frank Taillandier
a9da814f17 add basename and name variables for static files 2016-08-27 11:22:24 +02:00
Frank Taillandier
326332a5d5 Rename filename to name 2016-08-21 21:32:26 +02:00
Frank Taillandier
87c00b2756 Get static filename 2016-08-20 17:42:05 +02:00
XhmikosR
dbc0349909 tests: Typo fixes. 2016-07-18 21:20:47 +03:00
Brint O'Hearn
6db5272528 Splitting args onto own lines in test/test_static_file.rb
For functions where the character limit was exceeded
and line wrapping was needed, this commit just splits
each arg into it's own line.
2016-05-20 21:24:34 -05:00
Brint O'Hearn
16c1146b4f Rubocop fixes for test/test_static_file.rb 2016-05-20 21:23:29 -05:00
Pat Hawks
a47ce7b655 Wrap Arguments in () when used in a setter 2015-12-26 12:48:20 -08:00
Mike Bland
250b6ebb7e Adapt StaticFile for collections, config defaults
This enables files such as images and PDFs to show up in the same relative
output directory as other HTML and Markdown documents in the same collection.

It also enables static files to be hidden using defaults from _config.yml in
the same way that other documents in the same collection and directories may
be hidden using `published: false`.
2015-06-29 19:58:27 -04:00
Parker Moore
dead70724e Fix expectation for StaticFile#to_liquid in tests. 2015-04-14 11:52:26 -07:00
Parker Moore
f86727c45a DRY up the StaticFile tests a bit. #3633. 2015-04-10 16:24:45 -04:00
Martijn den Hoedt
28a1d2445e Added tests for Jekyll:StaticFile 2015-04-01 17:15:44 +02:00