lib/jekyll/converters/coffeescript.rb in jekyll-coffeescript-1.2.1 vs lib/jekyll/converters/coffeescript.rb in jekyll-coffeescript-1.2.2
- 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