From fd6a2376bda8dee7de8549d2d090ddd3c152377f Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Thu, 1 Oct 2015 10:25:53 -0700 Subject: [PATCH] Fix frontmatter on 2.0 --- middleman-core/lib/middleman-core/util/data.rb | 1 + middleman-core/middleman-core.gemspec | 1 + 2 files changed, 2 insertions(+) diff --git a/middleman-core/lib/middleman-core/util/data.rb b/middleman-core/lib/middleman-core/util/data.rb index 060b8f65..5ed00a4f 100644 --- a/middleman-core/lib/middleman-core/util/data.rb +++ b/middleman-core/lib/middleman-core/util/data.rb @@ -3,6 +3,7 @@ require 'json' require 'pathname' require 'middleman-core/util' require 'middleman-core/contracts' +require 'backports/2.1.0/array/to_h' module Middleman::Util::Data include Contracts diff --git a/middleman-core/middleman-core.gemspec b/middleman-core/middleman-core.gemspec index 58e23107..001a828e 100644 --- a/middleman-core/middleman-core.gemspec +++ b/middleman-core/middleman-core.gemspec @@ -54,4 +54,5 @@ Gem::Specification.new do |s| # Hash stuff s.add_dependency('hashie', ['~> 3.4']) s.add_dependency('hamster', ['~> 1.0']) + s.add_dependency('backports', ['~> 3.6']) end