Skip to content

Commit 8e8f9b2

Browse files
committed
Merge branch 'cheeseng-3.1-scala-2.13.0-RC1' into 3.1.x
2 parents 4ff1c0b + 999b2dd commit 8e8f9b2

File tree

19 files changed

+45
-54
lines changed

19 files changed

+45
-54
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,21 +150,22 @@ Before publishing any patch release, binary compatibility with previous version
150150
$ sbt ++2.12.6 scalacticJS/package scalacticJS/mimaReportBinaryIssues
151151
$ sbt ++2.12.6 scalatestJS/package scalatestJS/mimaReportBinaryIssues
152152

153-
$ sbt ++2.13.0-M5 scalactic/package scalactic/mimaReportBinaryIssues
154-
$ sbt ++2.13.0-M5 scalatest/package scalatest/mimaReportBinaryIssues
155-
$ sbt ++2.13.0-M5 scalacticJS/package scalacticJS/mimaReportBinaryIssues
156-
$ sbt ++2.13.0-M5 scalatestJS/package scalatestJS/mimaReportBinaryIssues
153+
$ sbt ++2.13.0-RC1 scalactic/package scalactic/mimaReportBinaryIssues
154+
$ sbt ++2.13.0-RC1 scalatest/package scalatest/mimaReportBinaryIssues
155+
$ sbt ++2.13.0-RC1 scalacticJS/package scalacticJS/mimaReportBinaryIssues
156+
$ sbt ++2.13.0-RC1 scalatestJS/package scalatestJS/mimaReportBinaryIssues
157157

158158
To publish scalactic, scalatest and scalatest-app use the following command:
159159

160-
$ export SCALAJS_VERSION=0.6.26
160+
$ export SCALAJS_VERSION=0.6.27
161161
$ sbt ++2.10.7 clean publishSigned "project scalatestAppJS" clean publishSigned
162162
$ sbt ++2.11.12 clean publishSigned "project scalatestAppJS" clean publishSigned
163163
$ sbt ++2.12.8 "project scalatestApp" clean publishSigned "project scalatestAppJS" clean publishSigned
164-
$ sbt ++2.13.0-M5 "project scalatestApp" clean publishSigned "project scalatestAppJS" clean publishSigned
165-
$ export SCALAJS_VERSION=1.0.0-M3
164+
$ sbt ++2.13.0-RC1 "project scalatestApp" clean publishSigned "project scalatestAppJS" clean publishSigned
165+
$ export SCALAJS_VERSION=1.0.0-M7
166166
$ sbt ++2.11.12 "project scalatestAppJS" clean publishSigned
167-
$ sbt ++2.12.6 "project scalatestAppJS" clean publishSigned
167+
$ sbt ++2.12.8 "project scalatestAppJS" clean publishSigned
168+
$ sbt ++2.13.0-RC1 "project scalatestAppJS" clean publishSigned
168169

169170
To publish scalactic, scalatest and scalatest-app (for Scala-native version 2.11, and make sure you're on Java 8) to Sonatype, use the following command:
170171

common-test.js/src/main/scala/org/scalatest/TestConcurrentDistributor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ class TestConcurrentDistributor(poolSize: Int) extends Distributor {
1818
status
1919
}
2020

21-
def waitUntilDone() = Unit
21+
def waitUntilDone() = ()
2222
}

common-test/src/main/scala/org/scalatest/LineNumberHelper.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ private[scalatest] trait LineNumberHelper {
44

55
import scala.language.experimental.macros
66

7-
def thisLineNumber = macro LineNumberMacro.thisLineNumberImpl
7+
def thisLineNumber: Int = macro LineNumberMacro.thisLineNumberImpl
88

99
}

project/GenConfigMap.scala

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ object GenConfigMap {
130130
|
131131
| override def +[A >: Any](kv: (String, A)): ConfigMap = new ConfigMap(underlying + kv)
132132
|
133-
| def remove(key: String): ConfigMap = new ConfigMap(underlying - key)
133+
| //def remove(key: String): ConfigMap = new ConfigMap(underlying - key)
134+
| def removed(key: String): ConfigMap = new ConfigMap(underlying - key)
134135
|
135136
| override def empty: ConfigMap = new ConfigMap(Map.empty[String, Any])
136137
|
@@ -213,25 +214,6 @@ object GenConfigMap {
213214
| }
214215
| }
215216
|
216-
| // https://github.com/scala/scala-dev/issues/562
217-
| // TODO: This is to fix the serialization problem in 2.13.0-M5, we should try to remove this when newer 2.13 release is available.
218-
|
219-
| override protected[this] def writeReplace(): AnyRef = new java.io.Serializable {
220-
| @throws(classOf[java.io.IOException])
221-
| private def writeObject(out: java.io.ObjectOutputStream): Unit = {
222-
| out.writeObject(underlying)
223-
| }
224-
|
225-
| var map: Map[String, Any] = _
226-
|
227-
| @throws(classOf[java.io.IOException])
228-
| private def readObject(in: java.io.ObjectInputStream): Unit = {
229-
| map = in.readObject().asInstanceOf[Map[String, Any]]
230-
| }
231-
|
232-
| protected[this] def readResolve(): Any = new ConfigMap(map)
233-
| }
234-
|
235217
|}
236218
|
237219
|/**

project/GenFactories.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,7 @@ $endif$
15181518
* ^
15191519
* </pre>
15201520
*/
1521-
def matchPattern(right: PartialFunction[Any, _]) = macro MatchPatternMacro.andNotMatchPatternMatcher
1521+
def matchPattern(right: PartialFunction[Any, _]): Matcher[Any] = macro MatchPatternMacro.andNotMatchPatternMatcher
15221522
}
15231523
"""
15241524

@@ -2812,7 +2812,7 @@ $endif$
28122812
* ^
28132813
* </pre>
28142814
*/
2815-
def matchPattern(right: PartialFunction[Any, _]) = macro MatchPatternMacro.orNotMatchPatternMatcher
2815+
def matchPattern(right: PartialFunction[Any, _]): Matcher[Any] = macro MatchPatternMacro.orNotMatchPatternMatcher
28162816
}
28172817
28182818
/**

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1")
22

33
addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.9.4")
44

5-
val scalaJSVersion = Option(System.getenv("SCALAJS_VERSION")).getOrElse("0.6.26")
5+
val scalaJSVersion = Option(System.getenv("SCALAJS_VERSION")).getOrElse("0.6.27")
66

77
addSbtPlugin("org.scala-js" % "sbt-scalajs" % scalaJSVersion)
88

project/scalatest.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ object ScalatestBuild {
3636

3737
// To temporarily switch sbt to a different Scala version:
3838
// > ++ 2.10.5
39-
lazy val supportedScalaVersions = List("2.12.8", "2.11.12", "2.10.7", "2.13.0-M5")
39+
lazy val supportedScalaVersions = List("2.12.8", "2.11.12", "2.10.7", "2.13.0-RC1")
4040

41-
val releaseVersion = "3.1.0-SNAP8"
41+
val releaseVersion = "3.1.0-SNAP9"
4242

4343
val previousReleaseVersion = "3.0.5"
4444

45-
val plusJUnitVersion = "1.0.0-SNAP4"
46-
val plusTestNGVersion = "1.0.0-SNAP3"
45+
val plusJUnitVersion = "1.0.0-SNAP5"
46+
val plusTestNGVersion = "1.0.0-SNAP4"
4747
val pegdownVersion = "1.4.2"
4848

4949
val githubTag = "release-3.1.0" // for scaladoc source urls
@@ -174,7 +174,7 @@ object ScalatestBuild {
174174

175175
def scalaXmlDependency(theScalaVersion: String): Seq[ModuleID] =
176176
CrossVersion.partialVersion(theScalaVersion) match {
177-
case Some((2, scalaMajor)) if scalaMajor >= 11 => Seq("org.scala-lang.modules" %% "scala-xml" % "1.1.0")
177+
case Some((2, scalaMajor)) if scalaMajor >= 11 => Seq("org.scala-lang.modules" %% "scala-xml" % "1.2.0")
178178
case other => Seq.empty
179179
}
180180

@@ -214,7 +214,7 @@ object ScalatestBuild {
214214
Seq(
215215
// We'll do without scala-parallel-collections until it catches up with Scala 2.13.0-M4.
216216
//"org.scala-lang.modules" %% "scala-parallel-collections" % "0.1.2",
217-
"org.scala-lang.modules" %%% "scala-parser-combinators" % "1.1.1"
217+
"org.scala-lang.modules" %%% "scala-parser-combinators" % "1.1.2"
218218
)
219219

220220
case Some((2, scalaMajor)) if scalaMajor >= 11 =>
@@ -231,7 +231,7 @@ object ScalatestBuild {
231231
"org.scalatestplus" %% "scalatestplus-junit" % plusJUnitVersion % "test"
232232
)
233233

234-
val scalaJSVersion = Option(System.getenv("SCALAJS_VERSION")).getOrElse("0.6.25")
234+
val scalaJSVersion = Option(System.getenv("SCALAJS_VERSION")).getOrElse("0.6.27")
235235

236236
def scalatestJSLibraryDependencies =
237237
Seq(

scalactic-test/src/test/scala/org/scalactic/EverySpec.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,12 @@ class EverySpec extends UnitSpec {
133133
Every(1, 2, 3)(1) shouldEqual 2
134134
One("hi")(0) shouldEqual "hi"
135135
Many(7, 8, 9)(2) shouldEqual 9
136+
val vectorOutOfBoundsException = intercept[IndexOutOfBoundsException] {
137+
Vector(1, 2, 3)(3)
138+
}
136139
the [IndexOutOfBoundsException] thrownBy {
137140
Every(1, 2, 3)(3)
138-
} should have message "3"
141+
} should have message vectorOutOfBoundsException.getMessage
139142
}
140143
it should "have an length method" in {
141144
One(1).length shouldBe 1

scalactic-test/src/test/scala/org/scalactic/anyvals/NonEmptyArraySpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1470,7 +1470,7 @@ class NonEmptyArraySpec extends UnitSpec {
14701470
NonEmptyArray(1).updated(0, 2) shouldBe NonEmptyArray(2)
14711471
def willThrowIndexOutOfBoundsException(): Unit = {
14721472
NonEmptyArray(1).updated(1, 2)
1473-
Unit
1473+
()
14741474
}
14751475
an [IndexOutOfBoundsException] should be thrownBy {
14761476
willThrowIndexOutOfBoundsException()

scalactic-test/src/test/scala/org/scalactic/anyvals/NonEmptyVectorSpec.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,12 @@ class NonEmptyVectorSpec extends UnitSpec {
135135
NonEmptyVector(1, 2, 3)(1) shouldEqual 2
136136
NonEmptyVector("hi")(0) shouldEqual "hi"
137137
NonEmptyVector(7, 8, 9)(2) shouldEqual 9
138+
val vectorOutOfBoundException = intercept[IndexOutOfBoundsException] {
139+
Vector(1, 2, 3)(3)
140+
}
138141
the [IndexOutOfBoundsException] thrownBy {
139142
NonEmptyVector(1, 2, 3)(3)
140-
} should have message "3"
143+
} should have message vectorOutOfBoundException.getMessage
141144
}
142145
it should "have a length method" in {
143146
NonEmptyVector(1).length shouldBe 1

0 commit comments

Comments
 (0)