lib/jekyll/converters/coffeescript.rb in jekyll-coffeescript-1.0.2 vs lib/jekyll/converters/coffeescript.rb in jekyll-coffeescript-1.1.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module Jekyll module Converters class CoffeeScript < Converter safe true priority :low @@ -8,13 +10,13 @@ require "coffee-script" @setup = true end def matches(ext) - ext.downcase == ".coffee" + ext.casecmp(".coffee").zero? end - def output_ext(ext) + def output_ext(_ext) ".js" end def convert(content) setup unless @setup