lib/jekyll/converters/coffeescript.rb in jekyll-coffeescript-1.2.2 vs lib/jekyll/converters/coffeescript.rb in jekyll-coffeescript-2.0.0
- old
+ new
@@ -1,28 +1,28 @@
-# frozen_string_literal: true
-
-module Jekyll
- module Converters
- class CoffeeScript < Converter
- safe true
- priority :low
-
- def setup
- require "coffee-script"
- @setup = true
- end
-
- def matches(ext)
- ext.casecmp(".coffee").zero?
- end
-
- def output_ext(_ext)
- ".js"
- end
-
- def convert(content)
- setup unless @setup
- ::CoffeeScript.compile(content)
- end
- end
- end
-end
+# frozen_string_literal: true
+
+module Jekyll
+ module Converters
+ class CoffeeScript < Converter
+ safe true
+ priority :low
+
+ def setup
+ require "coffee-script"
+ @setup = true
+ end
+
+ def matches(ext)
+ ext.casecmp(".coffee").zero?
+ end
+
+ def output_ext(_ext)
+ ".js"
+ end
+
+ def convert(content)
+ setup unless @setup
+ ::CoffeeScript.compile(content)
+ end
+ end
+ end
+end