Commit Graph

742 Commits

Author SHA1 Message Date
David Williamson d7e3d4df8f Add support for collections documents to have YAML front matter ending in dots. 2014-11-20 14:38:17 -06:00
Parker Moore 5a350788e7 Test JEKYLL_NO_BUNDLER_REQUIRE. 2014-11-05 21:04:34 -08:00
Parker Moore 8ee1b2a1fd Finish up the plugin manager
And so it shall be.
2014-11-05 19:29:54 -08:00
Parker Moore 18930b01f6 Fix up the assertions. 2014-11-05 11:39:15 -08:00
Parker Moore b29fd6d380 Add tests.
Need to fix up the assertions to match the output.
2014-11-05 11:37:51 -08:00
Parker Moore 0c6137b2d3 Fix site tests. 2014-11-03 22:16:48 -08:00
Parker Moore 8d02c5cd94 Allow override of `destination` in site_configuration in tests 2014-11-03 22:16:48 -08:00
Parker Moore 2690c045ec Fix the tests so they are *PERFECT*. 2014-11-03 22:16:48 -08:00
Parker Moore 817f6cb658 Fix problem where entries weren't stripped of their trailing slashes. 2014-11-03 22:16:47 -08:00
Parker Moore 3762878381 Correctly access the StaticFile's site variable. 2014-11-03 22:16:47 -08:00
Parker Moore 4078bde3ba More passing tests. 2014-11-03 22:15:41 -08:00
Parker Moore 3b634134a0 Another test passing. 😄 2014-11-03 22:15:41 -08:00
Parker Moore 461e16f8bc More tests are passing. Hooray. 2014-11-03 22:15:40 -08:00
Renaud Martinet f9e249ae20 Generalize Utils#slugify for any scripts
It replaces any non alphanumeric glyphs by an hyphen.
2014-10-31 15:56:03 +01:00
Parker Moore 8dcf7a6680 Merge pull request #3031 from alfredxing/frontmatter-permalinks 2014-10-29 15:13:12 -07:00
Parker Moore 3fb1356593 The jsonify filter should deep-convert to Liquid when given an Array.
Fixes https://github.com/github/choosealicense.com/issues/225
2014-10-27 15:58:42 -07:00
Alfred Xing 0fe1d0686a Allow placeholders in permalinks 2014-10-26 18:23:58 -07:00
Parker Moore ae01b1d5df 😦 2014-10-22 02:16:50 -07:00
Parker Moore 5ed4638400 Merge pull request #2986 from tamagokun/where_filters_enumerable 2014-10-20 20:09:21 -07:00
Parker Moore 078b2785e4 Revert "Make permalink parsing consistent with pages" 2014-10-18 12:07:44 -07:00
Parker Moore 73ca205a5c Add test for Document#basename_without_ext 2014-10-12 14:33:13 -07:00
nitoyon 3c5e9f5334 Add tests for mode parameters of slugify Liquid filter 2014-10-12 02:50:08 +09:00
Mike Kruk 56ac50c568 where filter - test return value when filtering a Hash 2014-10-08 17:02:36 -04:00
Mike Kruk f6ea8b4d50 Allow Enumerables to be used with "where" filter. 2014-10-08 16:19:55 -04:00
Alfred Xing 3a96d01e4a Make permalink parsing consistent with pages
Require permalink to end in a slash to write an index file.
Addresses #2920.
2014-09-24 22:08:25 -07:00
Ruslan Korolev 121a06a9eb unit test for jekyll new --force 2014-09-16 16:42:33 +04:00
Ruslan Korolev d9e5fdde5b test for jekyll new --blank 2014-09-12 18:30:06 +04:00
Alfred Xing 6c0e791236 Use relative path for `path` Liquid variable in Documents 2014-09-10 21:04:40 -07:00
Parker Moore 196a56e3ec Add push, pop, shift, and unshift Liquid filters.
Fixes #2892.
2014-09-09 21:29:23 -07:00
Garen Torikian 0675f2a423 Update include_relative tests
This verifies you can’t go “up” in the include
2014-09-07 21:23:45 -07:00
Parker Moore 6644c77d23 Merge pull request #2870 from gjtorikian/support-relative-include 2014-09-07 13:05:38 -07:00
Garen Torikian 4da07bb2c3 Add tests around nasty include attempts 2014-09-07 12:00:37 -07:00
Garen Torikian e7c8bbf5df Test that includes relative to self are included 2014-09-07 11:24:44 -07:00
Garen Torikian 934c37b578 Separate include_relative test out into its own context 2014-09-07 11:21:50 -07:00
Chris Frederick 77297744ce Add a test for the slugify Liquid filter 2014-09-07 16:49:14 +09:00
Garen Torikian 9f558d1cec Rename tag to `include_relative` 2014-09-06 21:48:15 -07:00
Parker Moore 58a76911bb Merge pull request #2864 from kansaichris/add-title-to-collection-urls 2014-09-05 10:04:38 -07:00
Garen Torikian aa97f1025d Support a new `relative_include` tag 2014-09-03 15:43:51 -07:00
Chris Frederick 62a3961739 Add tests for Utils#slugify 2014-09-02 14:33:03 +09:00
Shu Uesugi cfd17b2e7d Add inspect filter 2014-09-01 14:51:09 -07:00
Chris Frederick be2b16507e Test documents without a title 2014-09-01 13:32:31 +09:00
Chris Frederick a5e51cfdbe Properly handle titles with trailing punctuation 2014-09-01 13:25:38 +09:00
Chris Frederick 4dec3c8c6b Test titles in document permalinks 2014-09-01 13:04:54 +09:00
Chris Frederick 55de135467 Test Liquid syntax in CoffeeScript files 2014-08-26 17:24:27 +09:00
Chris Frederick cc4a0d1704 Change :title to :name 2014-08-26 11:26:19 +09:00
Chris Frederick e8b00fb6f2 Add the 'title' variable to collection permalinks 2014-08-23 14:50:55 +09:00
Parker Moore 4d8e335da1 The mighty classifier --- reborn!!!!!
Use classifier-reborn v2.0 in place of classifier 1.3.
Code at https://github.com/jekyll/classifier-reborn
2014-08-13 00:29:40 -04:00
Kevin 566d3718b0 added sassify and scssify filters fot converting sass and scss strings to css 2014-08-12 21:24:04 -06:00
Parker Moore 530e049d2d Read in static files info `collection.files` as `StaticFile`s. 2014-08-12 15:59:45 -04:00
Parker Moore 90ec93373b Ensure the new type works. 2014-08-12 12:24:28 -04:00
Parker Moore 6f8b8816f5 Merge pull request #2704 from jekyll/mult-converters 2014-08-10 20:29:37 -04:00
Parker Moore 533ed6eb38 Remove tests for the Command.ignored_paths method which now lives in jekyll-watch. 2014-08-10 14:46:06 -04:00
ChaYoung You c8d1c3d264
Remove duplicated mixed case categories 2014-08-07 11:27:42 +09:00
ChaYoung You 3768d90278
Use category in downcase only for URL (Resolves #1739) 2014-08-07 11:27:41 +09:00
Bret Comnes 311f3be63b Fixed ignore subir test. 2014-08-06 16:45:34 -07:00
Bret Comnes f29884593b Reverted deleted test and modified ensure subdirs are ignored. 2014-08-06 16:05:53 -07:00
Bret Comnes d0ac4915cb Reverts 18c033dc5c
The merge that is reverted assigned categories to posts
based on the subfolders in the _posts directory and 
was merged under the understanding that it was fixing a bug.

Subfolders in the _posts directory should not assign 
metadata information to posts at this point in time and 
was not a bug.
2014-08-06 14:20:03 -07:00
Parker Moore d004bc4ea5 Allow Convertibles to be converted by >= 1 converters. 2014-08-06 16:20:24 -04:00
Parker Moore cb671acd0c Merge pull request #2682 from alfredxing/date-parser-util 2014-08-06 15:30:02 -04:00
Ivan Tse 83f726f503 Add tests for include tag with partial variables 2014-08-05 01:04:20 -04:00
Alfred Xing c7f8c70935 Add tests for `Utils.parse_date` method 2014-08-02 15:03:31 -07:00
Parker Moore 81807cb5af Merge pull request #2615 from alfredxing/collections-static-files 2014-08-02 14:44:45 -04:00
Alfred Xing bd59fa14f3 Add tests for static files in collections 2014-08-02 09:00:03 -07:00
Parker Moore 4ca3fe5137 Merge pull request #2664 from alfredxing/replace-deprecated-methods 2014-08-01 23:27:58 -04:00
Parker Moore b63d113fe0 Merge pull request #2674 from kleinfreund/master 2014-08-01 13:48:18 -04:00
Alfred Xing 89e45afcc1 Add tests for front matter defaults 2014-08-01 10:28:53 -07:00
kleinfreund 0ed02e9c1e Replacing front-matter/frontmatter with front matter 2014-08-01 10:07:09 +02:00
Alfred Xing 6d62dbbafc Replace deprecated Ruby methods
Replace `Hash#has_key?` and `File.exists?` with `Hash#key?`
and `File.exist?`
2014-07-31 12:50:20 -07:00
Parker Moore 3cb2e74b5c Add further testing for Highlight#sanitized_opts 2014-07-29 16:30:44 -04:00
Sylvain UTARD 592630d48c Do not forget to downcase the categories here as well 2014-07-27 00:29:31 +02:00
Sylvain UTARD 16dbe54560 When using subdirs to reflect categories, the underlying `categories` attribute was not set 2014-07-24 18:59:26 +02:00
Alfred Xing 475e08bba3 Replace all RubyForge links with new residences 2014-07-16 13:43:09 -07:00
Parker Moore c7cc36abdb Put errors/exceptions into Jekyll::Errors module 2014-07-12 13:47:59 -07:00
Parker Moore ece22497dd Merge pull request #2576 from bhollis/maruku-update 2014-07-09 23:44:03 -07:00
Ben Hollis cbb4b10ce6 Update Maruku dependency to allow use of the latest version.
All Maruku releases post-0.6 follow semver, so they should be backwards-compatible on minor versions. In this case, the only test that needed to change was one that was asserting buggy behavior that was fixed in 0.7.1.
2014-07-08 19:44:40 -07:00
Alfred Xing ce1f01c494 Modify tests a bit 2014-07-07 10:49:36 -07:00
Alfred Xing a13a4ca532 Solidify document permalink tests 2014-07-07 10:39:22 -07:00
Alfred Xing f830120044 Add test for document permalink 2014-07-07 10:28:03 -07:00
Parker Moore 0b9eb3c111 Ensure collections with dots work. 2014-06-28 16:51:44 -04:00
Parker Moore cedbdf43ca Merge pull request #2532 from alexmedearis/hl_lines 2014-06-25 16:14:14 -04:00
Parker Moore e75dcc18f1 Merge pull request #2511 from denilsonsa/patch-1 2014-06-23 19:01:31 -04:00
Alex Medearis a7d20df95a unit tests 2014-06-18 17:29:07 -07:00
Alex Medearis 674b540c6f unit tests 2014-06-18 17:27:27 -07:00
Parker Moore 35ed101651 Add test for the concatenation of categories 2014-06-18 18:19:28 -04:00
Denilson Sá b42e29c5a7 Fixing tests. 2014-06-13 03:50:02 -03:00
Parker Moore d59b2c3ef6 Merge pull request #2419 from jens-na/collection-defaults 2014-06-12 20:38:21 -04:00
Anatol Broder df334e809e Remove coverage reporting with Coveralls 2014-06-09 02:35:55 +02:00
Parker Moore ccf97a62f1 Merge pull request #2459 from ivantsepp/watch_ignore_files 2014-06-06 23:11:44 -04:00
Ivan Tse 6684a8f914 Refactor logic into Command class. Add tests. 2014-06-04 14:23:40 -04:00
Bud Parr dc622470c9 add test for collection name 2014-06-02 15:12:21 -04:00
Jens Nazarenus ae67940544 Adds the missing tests for #2405 2014-06-01 22:21:31 +02:00
Jens Nazarenus e868a8437f Includes tests for frontmatter defaults in documents 2014-06-01 22:21:31 +02:00
Parker Moore ed87454ff8 Remove tests for gists. 2014-06-01 14:01:57 -04:00
Parker Moore 83fb1fd0f6 Merge pull request #2444 from createdbypete/configurable-logger 2014-05-30 18:16:47 -04:00
Ivan Tse 6ba077cf37 Remove `Command.globs` method
It is no longer being used.
2014-05-28 01:15:07 -04:00
Renaud Martinet 72c410363c Keep parents of directories in keep_files
Closes #1297
2014-05-27 21:11:17 +02:00
Renaud Martinet 04baeefaa8 Make sure Cleaner doesn't remove dirs if they only contain subdirs
Closes #2204
2014-05-27 18:06:52 +02:00
Parker Moore 9e4ef3cbff Add the paginator as a plugin: jekyll-paginate 2014-05-26 20:09:33 -04:00
Peter Rhoades e6345f39a9 Renaming LogWriter to LogAdapter and adding tests for class
String coloring moved to Stevenson as not responsibility of LogAdapter
2014-05-24 21:22:10 +01:00
Parker Moore b9c3d8ba03 Merge pull request #2373 from tschmidt/handle-categories-in-site-config-defaults 2014-05-21 01:10:37 -04:00
Parker Moore 3c6377d665 Merge pull request #2395 from rdumont/data-subdirectories 2014-05-21 01:09:15 -04:00
Parker Moore 5aefaa1c48 Merge pull request #2418 from mathbruyen/collections_permalink 2014-05-20 22:52:29 -04:00
Parker Moore 7e05b6e0b3 Merge pull request #2420 from albertogg/fix-encoding-issue 2014-05-20 22:35:50 -04:00
Alberto Grespan 879184fe37 Update unescaped string test
Nothing was being tested without explicitly making the string
encoding ASCII.
2014-05-20 17:04:08 -04:30
Alberto Grespan 7ce849a2b6 Revert changes and add encoding to the test file
* Add encoding to the test file as Ruby 1.9.3 doesn’t defaults to utf-8.
* Remove the forced encoding as encode seems too aggressive.
2014-05-20 00:03:40 -04:30
Parker Moore 54fba9af4b Merge pull request #2406 from yihangho/config-yaml 2014-05-20 00:15:58 -04:00
Alberto Grespan 2a1054b1a8 Change test to make it pass in Ruby 1.9.3 2014-05-19 22:08:14 -04:30
Alberto Grespan 2f3390750d Add tests to validate encoding of URLs
Added tests to validate the encoding of returned URL strings
after been escaped or unescaped.
2014-05-19 18:45:47 -04:30
Yihang Ho 658a4d0b47 Try to load _config.yaml if _config.yml is nonexistent. 2014-05-19 09:06:55 +08:00
Mathieu Bruyen 921dbe0547 Override collection url template 2014-05-17 10:40:52 +02:00
Parker Moore 4147e92561 Merge pull request #2417 from jekyll/jekyll-env 2014-05-17 00:53:55 -04:00
Parker Moore 3413c96845 Add test for Jekyll.env 2014-05-17 00:47:03 -04:00
Parker Moore 04b0fe0160 Merge pull request #2377 from jekyll/numeric 2014-05-16 03:50:50 -04:00
Parker Moore 4d1c84aa2b date_to_xmlschema does some weird things with timezones, but whatever it's not important. 2014-05-16 03:42:35 -04:00
Quinn Shanahan 5ea62443f4 override EXCERPT_ATTRIBUTES_FOR_LIQUID
Allow EXCERPT_ATTRIBUTES_FOR_LIQUID to be overridden by inheriting class. Right now will always reference Jekyll::Post::EXCERPT_ATTRIBUTES_FOR_LIQUID. This is already being used in the codebase for ATTRIBUTES_FOR_LIQUID.
2014-05-14 13:39:16 -04:00
Rodrigo Dumont 604fb3286c Allow subdirectories in _data 2014-05-11 20:28:49 -03:00
Anatol Broder 7cd95734df Fix coding for 1.9.3 2014-05-11 02:22:58 +02:00
Anatol Broder 06cebb0816 Add ascii+utf8 sort. Props @ixti 2014-05-11 01:34:09 +02:00
Anatol Broder b2f30f5bee Test Russian and Hebrew sort 2014-05-11 01:06:35 +02:00
Parker Moore 01c09fd7fa Merge pull request #2345 from penibelst/sort-collection 2014-05-10 15:42:53 -04:00
Parker Moore af9f1e6f48 Accept Numeric values for dates. 2014-05-09 23:11:05 -04:00
Terry Schmidt 0371b69952 Set categor[y|ies] on post if they appear in site frontmatter defaults 2014-05-09 13:34:13 -05:00
Ben Balter 5129a3ccc3 add tests for json data 2014-05-09 10:29:37 -04:00
Anatol Broder ab3aaebe6d Resolve second conflict 2014-05-09 08:59:46 +02:00
Parker Moore f2f2ebfa4f Register subclasses of subclasses of Jekyll::Plugin
The Sass and SCSS converters are practically the same – only different in
the input syntax and file extension. As such, we've created
`Jekyll::Converters::Scss` which is a subclass of `Jekyll::Converter`, and
`Jekyll::Converters::Sass` which is a subclass of
`Jekyll::Converters::Scss`. When `Site#instantiate_classes` is called on
`Jekyll::Converter`, it only instantiates the `Scss` converter, not the
`Sass` converter. This change fixes that.

Fixes #2334.
2014-05-07 14:59:08 -04:00
Parker Moore aef2134128 Remove unneeded tests for the sass converter plugin. 2014-05-06 21:09:51 -04:00
Matt Rogers 5c109ee8dc Merge pull request #2299 from penibelst/sort-nils 2014-05-06 16:49:40 -05:00
Anatol Broder 7c1709fab4 Change nils argument to string 2014-05-06 21:36:13 +02:00
Anatol Broder 558d0e8ac9 Add more strings tests 2014-05-06 21:07:09 +02:00
Parker Moore 6c1bb76316 Merge pull request #2303 from jekyll/jbranchaud-adding_exclude_tests 2014-05-06 14:40:18 -04:00
Parker Moore 5d827ac40e No more relative permalinks! Fix for a test. 2014-05-06 13:16:51 -04:00
Parker Moore ba8783190b Fix test for new command's output. 2014-05-06 13:16:41 -04:00
Parker Moore 4c55c77c04 Using stderr instead of stdout 2014-05-06 13:15:19 -04:00
Parker Moore 2aa8908948 Stevenson now uses symbols instead of integers to set log level 2014-05-06 13:03:56 -04:00
jbranchaud e4c3a8d0df Adding two new test cases for exclude configuration use cases. 2014-05-06 12:43:44 -04:00
Anatol Broder 9c9e96cfa7 Add lexicographical sort test 2014-05-06 07:48:33 +02:00
Anatol Broder cc80aab191 Add generic tests 2014-05-05 11:14:07 +02:00
Valery Tolstov cf4304ab2b Update tests
Remove language literal from class in test/test_redcarpet.rb
2014-05-03 21:46:16 +04:00
John Piasetzki d6bd735aff Refactor highlighting
Extract some of the common logic from the renderers.
2014-04-27 23:20:00 -04:00
Parker Moore bac4075128 Collections' "written" attribute has been changed to "output".
This is a follow-up to 068d921ef6.
2014-04-27 15:56:02 -04:00
Parker Moore 6225073095 Use the 'output' key instead of 'write' for writing out collections' document files. 2014-04-25 19:47:35 -04:00
Parker Moore d2b1d538bf Add test for collections' new #to_liquid sturff 2014-04-24 14:07:08 -04:00
Parker Moore fb39b41ffb NO MORE DATA COLLECTION I CAN'T HANDLE IT 2014-04-24 13:59:25 -04:00
Parker Moore 0dc680df0b Always render collections, just don't always write them 2014-04-24 13:59:24 -04:00
Parker Moore 4de2be8c5f Add Jekyll::LiquidExtensions.lookup_variable
To use, just include `Jekyll::LiquidExtensions` as you please:

```ruby
class SayHi < Liquid::Tag
  include Jekyll::LiquidExtensions

  def initialize(tag_name, markup, tokens)
    @markup = markup.strip
  end

  def render(context)
    "hi #{lookup_variable(context, @markup)}"
  end
end
```

Fixes #2071.
2014-04-22 14:27:47 -04:00
Parker Moore 1e16ab4d26 end the ned 2014-04-19 12:35:58 -04:00
Ben Balter e91a90899c do the do 2014-04-18 18:12:47 -04:00
Ben Balter 4f7b1f3306 no -> not 2014-04-18 16:56:37 -04:00
Ben Balter 6f0bebdfda convert input to string before xml escaping 2014-04-18 16:54:48 -04:00
Parker Moore 2f99e1d5c1 Fix test for non-collectionized sites still containing data coll 2014-04-14 22:46:22 -04:00