src/main/scala/s3/website/model/push.scala in s3_website-2.1.14 vs src/main/scala/s3/website/model/push.scala in s3_website-2.1.15

- old
+ new

@@ -79,10 +79,12 @@ .right.map(respectMostSpecific) .fold( (seconds: Int) => Some(seconds), (globs: GlobsSeq) => globs.find { globAndInt => - (rubyRuntime evalScriptlet s"File.fnmatch('${globAndInt._1}', '$s3Key')") + (rubyRuntime evalScriptlet + s"""|# encoding: utf-8 + |File.fnmatch('${globAndInt._1}', '$s3Key')""".stripMargin) .toJava(classOf[Boolean]) .asInstanceOf[Boolean] } map (_._2) ) }