Skip to content

Commit 61fb705

Browse files
committed
Update sbt/scala/scalacheck/scalatest deps
1 parent 361d759 commit 61fb705

40 files changed

+180
-194
lines changed

build.sbt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ organization := "com.github.mdr"
44

55
version := "0.0.6"
66

7-
scalaVersion := "2.10.1"
7+
scalaVersion := "2.12.1"
88

99
crossScalaVersions := Seq("2.9.1", "2.9.2", "2.10.1")
1010

1111
scalacOptions ++= Seq("-deprecation")
1212

1313
javacOptions ++= Seq("-source", "1.6", "-target", "1.6")
1414

15-
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9.1" % "test"
15+
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test"
1616

17-
libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.10.1" % "test"
17+
libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.13.4" % "test"
1818

1919
// Screen-sized dependency graph:
2020
// libraryDependencies += "org.vert-x" % "vertx-core" % "1.3.1.final"
@@ -23,12 +23,12 @@ EclipseKeys.withSource := true
2323

2424
EclipseKeys.eclipseOutput := Some("bin")
2525

26-
net.virtualvoid.sbt.graph.Plugin.graphSettings
26+
//net.virtualvoid.sbt.graph.Plugin.graphSettings
2727

28-
scalariformSettings
28+
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
2929

3030
ScalariformKeys.preferences <<= baseDirectory.apply { dir =>
31-
scalariform.formatter.preferences.PreferencesImporterExporter.loadPreferences((dir / "formatterPreferences.properties").getPath)
31+
scalariform.formatter.preferences.PreferencesImporterExporter.loadPreferences((dir / "formatterPreferences.properties").getPath)
3232
}
3333

3434
publishMavenStyle := true

project/build.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
sbt.version=0.12.3
1+
sbt.version=0.13.13
2+

project/plugins.sbt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.2.0")
22

3-
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.7.3")
4-
5-
// addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.7.4-SNAPSHOT")
3+
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.8.2")
64

75
addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8")
86

9-
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.4.0")
7+
resolvers += Resolver.typesafeRepo("releases")
8+
9+
addSbtPlugin("org.scalariform" % "sbt-scalariform" % "1.6.0")
1010

11-
addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.0.1")

src/main/java/com/github/mdr/ascii/java/ScalaJavaHelper.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.github.mdr.ascii.java
22

3-
import java.{ util ju }
3+
import java.{util ju}
44
import scala.collection.JavaConverters._
55
import com.github.mdr.ascii.graph.Graph
66
import com.github.mdr.ascii.layout.GraphLayout

src/main/scala/com/github/mdr/ascii/diagram/Box.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ trait Box extends Container {
1515
edge edges
1616
if edgeType.includeEdge(edge, this)
1717
otherBox = edge.otherBox(this)
18-
} yield edge -> otherBox
18+
} yield edge otherBox
1919

2020
}

src/main/scala/com/github/mdr/ascii/diagram/parser/DiagramImplementation.scala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,13 @@ trait DiagramImplementation { self: DiagramParser ⇒
9595
Region(
9696
Point(
9797
points.map(_.row).min,
98-
points.map(_.column).min),
98+
points.map(_.column).min
99+
),
99100
Point(
100101
points.map(_.row).max,
101-
points.map(_.column).max))
102+
points.map(_.column).max
103+
)
104+
)
102105

103106
}
104107

src/main/scala/com/github/mdr/ascii/diagram/parser/DiagramParser.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class DiagramParser(s: String)
3535
innerBox diagram.allBoxes
3636
if outerBox != innerBox
3737
if outerBox.region contains innerBox.region
38-
} yield outerBox -> innerBox).toMap
38+
} yield outerBox innerBox).toMap
3939

4040
for {
4141
(box, containingBoxMap) boxContains.groupBy(_._2)

src/main/scala/com/github/mdr/ascii/graph/DiagramToGraphConverter.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ object DiagramToGraphConvertor {
1717
vertex2 boxToVertexMap.get(edge.box2)
1818
} yield {
1919
if (edge.hasArrow2)
20-
vertex1 -> vertex2
20+
vertex1 vertex2
2121
else
22-
vertex2 -> vertex1
22+
vertex2 vertex1
2323
}
2424
Graph(vertices, edges)
2525
}

src/main/scala/com/github/mdr/ascii/layout/GraphLayout.scala

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ object GraphLayout {
1919
def renderGraph[V](
2020
graph: Graph[V],
2121
vertexRenderingStrategy: VertexRenderingStrategy[V] = ToStringVertexRenderingStrategy,
22-
layoutPrefs: LayoutPrefs = LayoutPrefsImpl()): String = {
22+
layoutPrefs: LayoutPrefs = LayoutPrefsImpl()
23+
): String = {
2324
val cycleRemovalResult = CycleRemover.removeCycles(graph)
2425
val (layering, _) = new LayeringCalculator[V].assignLayers(cycleRemovalResult)
2526
val reorderedLayering = LayerOrderingCalculator.reorder(layering)
@@ -30,12 +31,6 @@ object GraphLayout {
3031
drawing = KinkRemover.removeKinks(drawing)
3132
if (layoutPrefs.elevateEdges)
3233
drawing = EdgeElevator.elevateEdges(drawing)
33-
34-
// if (layoutPrefs.removeKinks)
35-
// drawing = KinkRemover.removeKinks(drawing)
36-
// if (layoutPrefs.elevateEdges)
37-
// drawing = EdgeElevator.elevateEdges(drawing)
38-
//
3934
if (layoutPrefs.compactify)
4035
drawing = RedundantRowRemover.removeRedundantRows(drawing)
4136

src/main/scala/com/github/mdr/ascii/layout/coordAssign/EdgeBendCalculator.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ class EdgeBendCalculator(edgeInfos: List[EdgeInfo], edgeZoneTopRow: Int, selfEdg
9090
if row1 > row2
9191
if !swappedEdges.contains((edgeInfo1, edgeInfo2)) // Prevents more involved infinite loops
9292
} {
93-
updatedEdgeToRowMap += edgeInfo1 -> row2
94-
updatedEdgeToRowMap += edgeInfo2 -> row1
93+
updatedEdgeToRowMap += edgeInfo1 row2
94+
updatedEdgeToRowMap += edgeInfo2 row1
9595
swappedEdges += ((edgeInfo1, edgeInfo2))
9696
continue = true
9797
}

0 commit comments

Comments
 (0)