From 3c0d3a5a99d5f53082da5ad8523167f31648d0d0 Mon Sep 17 00:00:00 2001 From: Sam Ritchie Date: Fri, 2 Dec 2016 14:40:27 -0700 Subject: [PATCH] prepare for release --- CHANGES.md | 2 +- README.md | 2 +- .../src/main/scala/com/twitter/algebird/First.scala | 2 +- docs/src/main/tut/index.md | 6 ++++++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 014552ea8..27cf429ee 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -15,7 +15,7 @@ * Add `metricsLaws[T]` to `BaseProperties` in `algebird-test`: https://github.com/twitter/algebird/pull/584 * Modify generated `Tuple2Monoid`, etc to extend `TupleNSemigroup`, giving subclasses access to efficient `sumOption`: https://github.com/twitter/algebird/pull/585 * optimize `Generated{Abstract,Product}Algebra.sumOption` with benchmarking https://github.com/twitter/algebird/pull/591 -* Add an efficient `sumOption`, `+`, `-` and docs to `AveragedValue`: https://github.com/twitter/algebird/pull/589 +* Add an efficient `sumOption`, `+`, `-`, methods and docs to `AveragedValue`: https://github.com/twitter/algebird/pull/589 ### Version 0.12.2 ### diff --git a/README.md b/README.md index aefc89ce3..a362f266d 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ A list of contributors to the project can be found here: [Contributors](https:// ## Maven -Algebird modules are available on maven central. The current groupid and version for all modules is, respectively, `"com.twitter"` and `0.12.2`. +Algebird modules are available on maven central. The current groupid and version for all modules is, respectively, `"com.twitter"` and `0.12.3`. See [Algebird's page on the Scaladex](https://index.scala-lang.org/twitter/algebird) for information on all published artifacts and their associated Scala versions. Algebird currently supports Scala 2.10 and 2.11. diff --git a/algebird-core/src/main/scala/com/twitter/algebird/First.scala b/algebird-core/src/main/scala/com/twitter/algebird/First.scala index bc73a7a7a..1d5cb5d05 100644 --- a/algebird-core/src/main/scala/com/twitter/algebird/First.scala +++ b/algebird-core/src/main/scala/com/twitter/algebird/First.scala @@ -27,7 +27,7 @@ case class First[@specialized(Int, Long, Float, Double) +T](get: T) { * * @param r ignored instance of `First[U]` */ - def +[U >: T](r: First[U]): First[U] = this + def +[U >: T](r: First[U]): First[T] = this } /** diff --git a/docs/src/main/tut/index.md b/docs/src/main/tut/index.md index b04824114..ac152d2d4 100644 --- a/docs/src/main/tut/index.md +++ b/docs/src/main/tut/index.md @@ -22,6 +22,12 @@ In the above, the class `Max[T]` signifies that the `+` operator should actually - All of these combine naturally in tuples, vectors, maps, options and more standard scala classes. - Implementations of Monoids for interesting approximation algorithms, such as Bloom filter, HyperLogLog and CountMinSketch. These allow you to think of these sophisticated operations like you might numbers, and add them up in hadoop or online to produce powerful statistics and analytics. +## Using Algebird + +Algebird modules are available on Maven Central. The current groupid and version for all modules is, respectively, `"com.twitter"` and `0.12.3`. + +See [Algebird's page on the Scaladex](https://index.scala-lang.org/twitter/algebird) for information on all published artifacts and their associated Scala versions. Algebird currently supports Scala 2.10 and 2.11. + ## Documentation The latest API docs are hosted at Algebird's [ScalaDoc index](api/).