lib/cloudcannon-jekyll/readers/data-reader.rb in cloudcannon-jekyll-2.3.4 vs lib/cloudcannon-jekyll/readers/data-reader.rb in cloudcannon-jekyll-3.0.0

- old
+ new

@@ -1,19 +1,19 @@ # frozen_string_literal: true -unless Jekyll::VERSION.start_with? "2." - require "jekyll" +unless Jekyll::VERSION.start_with? '2.' + require 'jekyll' module CloudCannonJekyll # Reads data files and creates a collections-style hash representation class DataReader < Jekyll::DataReader # Determines how to read a data file. # This is overridden return a hash instead of reading the file. # # Returns a hash with the path to the data file. def read_data_file(path) { - "path" => path, + 'path' => path } end end end end