From 9d4eda4cbf4d569493b209a13bca0656f07faf46 Mon Sep 17 00:00:00 2001 From: Lonnie Pryor Date: Mon, 10 Mar 2014 01:15:29 -0500 Subject: [PATCH] Release version 1.3. --- CHANGELOG.md | 45 +++++++++++++++++++++++++++++++++++---------- build.sbt | 7 ++++++- project/plugins.sbt | 2 ++ 3 files changed, 43 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3895d3e..a79fc6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,21 +1,45 @@ -1.3 (2014-??-??) +1.3 (2014-03-10) ================ Reworked `atmos.retries.EventMonitor.PrintEvents`: - - Converted `PrintEvents` into a trait and extracted two concrete subtypes, `PrintEventsWithStream` and `PrintEventsWithWriter`. + - Converted `PrintEvents` into a trait and extracted two concrete subtypes, `PrintEventsWithStream` and + `PrintEventsWithWriter`. - - Deprecated the use of booleans to signal whether a stack trace should be printed for a particular event. The booleans are replaced by `PrintEvents.PrintAction`, a `sealed trait` / `case object` enumeration capable of representing any number of printing strategies. + - Deprecated the use of booleans to signal whether a stack trace should be printed for a particular event. The + booleans are replaced by `PrintEvents.PrintAction`, a `sealed trait` / `case object` enumeration capable of + representing any number of printing strategies. - - Modified the retry DSL to support concise configuration of print actions on event monitors derived from print streams and print writers. + - Modified the retry DSL to support concise configuration of print actions on event monitors derived from print + streams and print writers. Reworked `atmos.retries.EventMonitor.LogEvents`: - - Converted `LogEvents` into a trait and extracted the concrete -subtype `LogEventsWithJava`. + - Converted `LogEvents` into a trait and extracted the concrete subtype `LogEventsWithJava`. - - Deprecated the use of log levels to describe behavior when called with a particular event. The levels are replaced by -`LogEvents.LogAction`, a `sealed trait` / `case object` enumeration -capable of representing any number of logging strategies. + - Deprecated the use of log levels to describe behavior when called with a particular event. The levels are replaced + by `LogEvents.LogAction`, a `sealed trait` / `case object` enumeration capable of representing any number of logging + strategies. + + - Modified the retry DSL to support concise configuration of log actions on event monitors derived from Java loggers. + +Reworked the Slf4j support in `atmos.retries.EventMonitor`: + + - Created `LogEventsWithSlf4j` as a subtype of `LogEvents`. + + - Converted `LogEventsToSlf4j` into a deprecated collection of aliases to aspects of `LogEventsWithSlf4j`. + + - Deprecated the use of log levels to describe behavior when called with a particular event, replacing them with + `LogEvents.LogAction`, a `sealed trait` / `case object` enumeration capable of representing any number of logging + strategies. + + - Modified the retry DSL to support concise configuration of log actions on event monitors derived from Slf4j loggers. + +Added support for asynchronous monitoring with Akka to `atmos.retries`: + + - Created `LogEventsWithAkka` as a subtype of `LogEvents`. + + - Modified the retry DSL to support concise configuration of log actions on event monitors derived from Akka logging + adapters. 1.2 (2014-02-18) ================ @@ -25,7 +49,8 @@ Enhancements to the backoff policies in `atmos.retries`: - Added `BackoffPolicy.Randomized`, a policy that randomizes the result of another backoff policy. - - Removed the previous backoff value from the list of items provided to a `BackoffPolicy` when calculating a backoff and replaced it with the most recently thrown exception. + - Removed the previous backoff value from the list of items provided to a `BackoffPolicy` when calculating a backoff + and replaced it with the most recently thrown exception. Enhancements to the termination policies in `atmos.retries`: diff --git a/build.sbt b/build.sbt index 573ddc2..87a4fdf 100644 --- a/build.sbt +++ b/build.sbt @@ -1,3 +1,6 @@ +import de.johoop.jacoco4sbt._ +import JacocoPlugin._ + // // Basic project information. // @@ -6,7 +9,7 @@ organization := "atmos" name := "atmos" -version := "1.3-SNAPSHOT" +version := "1.3" scalaVersion := "2.10.3" @@ -17,6 +20,8 @@ libraryDependencies ++= Seq( "org.scalamock" %% "scalamock-scalatest-support" % "3.1.RC1" % "test" ) +jacoco.settings + // // Documentation site generation. // diff --git a/project/plugins.sbt b/project/plugins.sbt index f9c3555..2ff80f2 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,3 +1,5 @@ +addSbtPlugin("de.johoop" % "jacoco4sbt" % "2.1.4") + addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "0.7.1") addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.5.2") \ No newline at end of file