From c894681693c03e9acab86d0b2252335c0d5b08b8 Mon Sep 17 00:00:00 2001 From: James Smith Date: Tue, 6 Oct 2020 10:45:17 +0100 Subject: [PATCH] try out frontmatter testing --- .ruby-version | 2 +- Gemfile | 7 ++++++- Gemfile.lock | 13 +++++++++++-- _posts/2008-01-09-testing-in-trac.html | 2 +- _posts/2013-06-04-my-mentoring-journey.markdown | 2 +- _posts/2015-01-02-the-best-of-2014.markdown | 4 ++-- _posts/2017-01-23-the-web-of-truth.markdown | 2 +- deploy/tests/schema/_posts.yml | 10 ++++++++++ deploy/tests/schema/_projects.yml | 9 +++++++++ deploy/tests/schema/_talks.yml | 13 +++++++++++++ 10 files changed, 55 insertions(+), 9 deletions(-) create mode 100644 deploy/tests/schema/_posts.yml create mode 100644 deploy/tests/schema/_projects.yml create mode 100644 deploy/tests/schema/_talks.yml diff --git a/.ruby-version b/.ruby-version index 2714f531..860487ca 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.6.4 +2.7.1 diff --git a/Gemfile b/Gemfile index b882d1b1..d7773f25 100644 --- a/Gemfile +++ b/Gemfile @@ -1,9 +1,14 @@ source "https://rubygems.org" -ruby "2.6.4" +ruby "2.7.1" gem 'github-pages' +group :jekyll_plugins do + gem 'pry' + gem 'jekyll_frontmatter_tests' +end + group :test do gem 'jekyll-test' gem 'colorize' diff --git a/Gemfile.lock b/Gemfile.lock index 01468a87..1feb178d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -9,6 +9,7 @@ GEM zeitwerk (~> 2.2, >= 2.2.2) addressable (2.7.0) public_suffix (>= 2.0.2, < 5.0) + coderay (1.1.3) coffee-script (2.4.1) coffee-script-source execjs @@ -205,6 +206,8 @@ GEM jekyll (>= 3.3, < 5.0) jekyll-watch (2.2.1) listen (~> 3.0) + jekyll_frontmatter_tests (0.1.0) + jekyll (>= 2.0, < 4.0) jemoji (0.12.0) gemoji (~> 3.0) html-pipeline (~> 2.2) @@ -218,6 +221,7 @@ GEM rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) mercenary (0.3.6) + method_source (1.0.0) mini_portile2 (2.4.0) minima (2.5.1) jekyll (>= 3.5, < 5.0) @@ -233,6 +237,9 @@ GEM parallel (1.17.0) pathutil (0.16.2) forwardable-extended (~> 2.6) + pry (0.13.1) + coderay (~> 1.1) + method_source (~> 1.0) public_suffix (3.1.1) rainbow (3.0.0) rake (12.3.3) @@ -292,9 +299,11 @@ DEPENDENCIES colorize github-pages jekyll-test + jekyll_frontmatter_tests + pry RUBY VERSION - ruby 2.6.4p104 + ruby 2.7.1p83 BUNDLED WITH - 1.17.2 + 2.1.4 diff --git a/_posts/2008-01-09-testing-in-trac.html b/_posts/2008-01-09-testing-in-trac.html index 7d8c21e2..1fcd4d68 100644 --- a/_posts/2008-01-09-testing-in-trac.html +++ b/_posts/2008-01-09-testing-in-trac.html @@ -1,7 +1,7 @@ --- layout: post title: Testing in Trac -categories: +categories: [] ---

Hurrah, I've just contributed my first code back to the Trac project. I've created a workflow for the 0.11 release which adds a simple "testing" state to tickets before they are closed. For the Trac addicts amongst you, it's available at Trac Hacks. I'm rather proud of it, because it's actually the first workflow hack on the site! diff --git a/_posts/2013-06-04-my-mentoring-journey.markdown b/_posts/2013-06-04-my-mentoring-journey.markdown index 129671d3..cc2205a3 100644 --- a/_posts/2013-06-04-my-mentoring-journey.markdown +++ b/_posts/2013-06-04-my-mentoring-journey.markdown @@ -3,7 +3,7 @@ layout: post title: "My Mentoring Journey" date: 2013-06-04 20:03 comments: true -categories: +categories: [] --- Since January, I've worked at the [Open Data Institute](http://www.theodi.org), which has been a really great experience. As well as being a non-profit with a mission to make the world better, which is already a huge win as far as I'm concerned, the organisation also puts a massive emphasis on culture and people. For a small enterprise (less than 20 people), this is amazing, and I've never seen anything quite like it anywhere I've worked. diff --git a/_posts/2015-01-02-the-best-of-2014.markdown b/_posts/2015-01-02-the-best-of-2014.markdown index cd737936..f1d5bccf 100644 --- a/_posts/2015-01-02-the-best-of-2014.markdown +++ b/_posts/2015-01-02-the-best-of-2014.markdown @@ -3,7 +3,7 @@ layout: post title: The Best of 2014 date: 2015-01-02 17:28 comments: true -categories: +categories: [] --- I've seen a few personal reviews of 2014 around the net, so I thought I'd write one to get back into the writing habit. Here are my favourite things from the last year: @@ -72,4 +72,4 @@ Tough competition here, with many other worthy people doing amazing things, but -So, come on 2015, how you going to beat that lot? Bring it. \ No newline at end of file +So, come on 2015, how you going to beat that lot? Bring it. diff --git a/_posts/2017-01-23-the-web-of-truth.markdown b/_posts/2017-01-23-the-web-of-truth.markdown index 74755ee0..4ccc58ed 100644 --- a/_posts/2017-01-23-the-web-of-truth.markdown +++ b/_posts/2017-01-23-the-web-of-truth.markdown @@ -3,7 +3,7 @@ layout: post title: The Web Of Truth date: 2017-01-23 00:00 comments: true -categories: +categories: [] featured_image: url: /images/batmanslap.jpg --- diff --git a/deploy/tests/schema/_posts.yml b/deploy/tests/schema/_posts.yml new file mode 100644 index 00000000..902c98b3 --- /dev/null +++ b/deploy/tests/schema/_posts.yml @@ -0,0 +1,10 @@ +--- +title: "String" +categories: "Array" +config: + path: '_posts' + ignore: + - .. + - . + - .DS_Store + optional: [] diff --git a/deploy/tests/schema/_projects.yml b/deploy/tests/schema/_projects.yml new file mode 100644 index 00000000..f3885fe0 --- /dev/null +++ b/deploy/tests/schema/_projects.yml @@ -0,0 +1,9 @@ +--- +title: "String" +config: + path: '_projects' + ignore: + - .. + - . + - .DS_Store + optional: [] diff --git a/deploy/tests/schema/_talks.yml b/deploy/tests/schema/_talks.yml new file mode 100644 index 00000000..9bad8cdc --- /dev/null +++ b/deploy/tests/schema/_talks.yml @@ -0,0 +1,13 @@ +--- +title: "String" +host: + url: "String" + name: "String" +# vimeo: "String" +config: + path: '_talks' + ignore: + - .. + - . + - .DS_Store + optional: ["vimeo", "youtube"]