diff --git a/build.sbt b/build.sbt
index 631e0f4..862103b 100644
--- a/build.sbt
+++ b/build.sbt
@@ -29,7 +29,7 @@ versionScheme := Some("semver-spec")
libraryDependencies ++= Seq(
"org.playframework" %% "play" % playVersion % "provided",
- "org.webjars" % "requirejs" % "2.3.6",
+ "org.webjars" % "requirejs" % "2.3.7",
"org.webjars" % "webjars-locator" % "0.52",
"org.playframework" %% "play-test" % playVersion % "test",
"org.playframework" %% "play-specs2" % playVersion % "test",
diff --git a/src/test/scala/org/webjars/play/RequireJSSpec.scala b/src/test/scala/org/webjars/play/RequireJSSpec.scala
index edb1c8b..d4fc6fe 100644
--- a/src/test/scala/org/webjars/play/RequireJSSpec.scala
+++ b/src/test/scala/org/webjars/play/RequireJSSpec.scala
@@ -16,7 +16,7 @@ class RequireJSSpec extends PlaySpecification {
status(result) must equalTo(OK)
contentType(result) must beSome(MimeTypes.JAVASCRIPT)
contentAsString(result) must contain("return [\n '/' + webJarId")
- contentAsString(result) must contain("\"requirejs\":\"2.3.6\"")
+ contentAsString(result) must contain("\"requirejs\":\"2.3.7\"")
}
}
"produce a setup using a cdn" in new WithApplication(_.configure("webjars.use-cdn" -> "true")) {
diff --git a/src/test/scala/org/webjars/play/WebJarsUtilSpec.scala b/src/test/scala/org/webjars/play/WebJarsUtilSpec.scala
index c8f7639..e373dba 100644
--- a/src/test/scala/org/webjars/play/WebJarsUtilSpec.scala
+++ b/src/test/scala/org/webjars/play/WebJarsUtilSpec.scala
@@ -30,7 +30,7 @@ class WebJarsUtilSpec extends PlaySpecification {
val webJarsUtil = app.injector.instanceOf[WebJarsUtil]
val requireJsPath = webJarsUtil.locate("require.js")
- requireJsPath.path must beASuccessfulTry("requirejs/2.3.6/require.js")
+ requireJsPath.path must beASuccessfulTry("requirejs/2.3.7/require.js")
}
}
"be able to locate an asset with a webjar specified" in new WithApplication {
@@ -58,21 +58,21 @@ class WebJarsUtilSpec extends PlaySpecification {
"url" in new WithApplication {
override def running() = {
val webJarsUtil = app.injector.instanceOf[WebJarsUtil]
- webJarsUtil.locate("requirejs/2.3.6/require.js").url must beASuccessfulTry("/requirejs/2.3.6/require.js")
- webJarsUtil.locate("requirejs", "requirejs/2.3.6/require.js").url must beASuccessfulTry("/requirejs/2.3.6/require.js")
+ webJarsUtil.locate("requirejs/2.3.7/require.js").url must beASuccessfulTry("/requirejs/2.3.7/require.js")
+ webJarsUtil.locate("requirejs", "requirejs/2.3.7/require.js").url must beASuccessfulTry("/requirejs/2.3.7/require.js")
webJarsUtil.locate("asdf1234qwer4321").url must beAFailedTry
}
}
"url with a cdn" in new WithApplication(_.configure("webjars.use-cdn" -> "true")) {
override def running() = {
val webJarsUtil = app.injector.instanceOf[WebJarsUtil]
- webJarsUtil.locate("require.js").url must beASuccessfulTry("https://cdn.jsdelivr.net/webjars/org.webjars/requirejs/2.3.6/require.js")
+ webJarsUtil.locate("require.js").url must beASuccessfulTry("https://cdn.jsdelivr.net/webjars/org.webjars/requirejs/2.3.7/require.js")
}
}
"url with a custom cdn" in new WithApplication(_.configure("webjars.use-cdn" -> "true", "webjars.cdn-url" -> "http://asdf.com")) {
override def running() = {
val webJarsUtil = app.injector.instanceOf[WebJarsUtil]
- webJarsUtil.locate("require.js").url must beASuccessfulTry("http://asdf.com/org.webjars/requirejs/2.3.6/require.js")
+ webJarsUtil.locate("require.js").url must beASuccessfulTry("http://asdf.com/org.webjars/requirejs/2.3.7/require.js")
}
}
"generate a script tag from a partial WebJar path" in new WithApplication {
@@ -168,7 +168,7 @@ class WebJarsUtilSpec extends PlaySpecification {
val requireJs = webJarsUtil.requireJs(Call("GET", "/assets/js/app"))
requireJs.body must contain("""""")
- requireJs.body must contain("""""")
+ requireJs.body must contain("""""")
}
}
"generate a requireJs config with a cdn" in new WithApplication(_.configure("webjars.use-cdn" -> "true")) {
@@ -178,7 +178,7 @@ class WebJarsUtilSpec extends PlaySpecification {
val requireJs = webJarsUtil.requireJs(Call("GET", "/assets/js/app"))
requireJs.body must contain("""""")
- requireJs.body must contain("""""")
+ requireJs.body must contain("""""")
}
}
}