Skip to content

Commit 843f880

Browse files
committed
experimental update and version bump to be plotalyzer 0.1.0 compatible and test its update facility
1 parent 285b807 commit 843f880

3 files changed

Lines changed: 13 additions & 10 deletions

File tree

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ libraryDependencies ++= Seq(
1212
"org.wvlet.airframe" %% "airframe-log" % "21.2.0",
1313
"org.slf4j" % "slf4j-nop" % "1.7.30",
1414
"me.tongfei" % "progressbar" % "0.9.3",
15-
"de.tubs.cs.ias" %% "plotalyzer" % "1.0.0"
15+
"de.tubs.cs.ias" %% "plotalyzer" % "0.1.0"
1616
)
1717

1818
ThisBuild / resolvers ++= Seq(
Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
package de.tubs.cs.ias.plotalyzer.plugin
22

3-
import de.tubs.cs.ias.plotalyzer.database.entities.Experiment
4-
import de.tubs.cs.ias.plotalyzer.plugins.AnalysisPlugin
5-
import spray.json.{JsObject, JsString, JsValue}
3+
import de.tubs.cs.ias.plotalyzer.plugins.{
4+
AnalysisContext,
5+
AnalysisPlugin,
6+
AnalysisReturn,
7+
JSONReturn
8+
}
9+
import spray.json.{JsObject, JsString}
610

711
class ExperimentSummary extends AnalysisPlugin {
812

9-
override def analyze(experiment: Experiment): Either[Exception, JsValue] = {
13+
override def analyze(
14+
context: AnalysisContext): Either[Exception, AnalysisReturn] = {
1015
try {
11-
Right(JsObject("test" -> JsString("success")))
16+
Right(JSONReturn(JsObject("test" -> JsString("version 0.0.2"))))
1217
} catch {
13-
case e : Exception => Left(e)
18+
case e: Exception => Left(e)
1419
}
1520
}
16-
17-
1821
}

version.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ThisBuild / version := "0.0.1"
1+
ThisBuild / version := "0.0.2"

0 commit comments

Comments
 (0)