Skip to content

Commit

Permalink
Merge branch 'release/0.7.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
isnotinvain committed Jan 17, 2015
2 parents 1597c26 + 6d1d5b9 commit d8f7f60
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: scala
sudo: false
scala:
- 2.10.4
- 2.11.2
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Bijection #

### 0.7.2
* FIX: gzip Bijection resource leak. https://github.com/twitter/bijection/pull/193
* Use new Travis CI infrastructure https://github.com/twitter/bijection/pull/191

### 0.7.1
* Remove some package privacy so these things can be used in scalding and ...: https://github.com/twitter/bijection/pull/190
* Add macros to create Trys: https://github.com/twitter/bijection/pull/187
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ Injections to any of these types give you binary serialization via Bufferable.

## Community and Documentation

This, and all github.com/twitter projects, are under the [Twitter Open Source Code of Conduct](https://engineering.twitter.com/opensource/code-of-conduct). Additionally, see the [Typelevel Code of Conduct](http://typelevel.org/conduct) for specific examples of harassing behavior that are not tolerated.

To learn more and find links to tutorials and information around the web, check out the [Bijection Wiki](https://github.com/twitter/bijection/wiki).

The latest ScalaDocs are hosted on Bijection's [Github Project Page](http://twitter.github.io/bijection).
Expand All @@ -132,7 +134,7 @@ Discussion occurs primarily on the [Bijection mailing list](https://groups.googl

## Maven

Bijection modules are available on maven central. The current groupid and version for all modules is, respectively, `"com.twitter"` and `0.7.1`.
Bijection modules are available on maven central. The current groupid and version for all modules is, respectively, `"com.twitter"` and `0.7.2`.

Current published artifacts are

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,14 @@ trait BinaryBijections extends StringBijections {
val baos = new ByteArrayOutputStream
val gos = new GZIPOutputStream(baos)
gos.write(bytes)
gos.finish()
gos.close()
GZippedBytes(baos.toByteArray)
}
override def invert(gz: GZippedBytes) = {
val baos = new ByteArrayOutputStream
copy(new GZIPInputStream(new ByteArrayInputStream(gz.bytes)), baos)
val is = new GZIPInputStream(new ByteArrayInputStream(gz.bytes))
copy(is, baos)
is.close()
baos.toByteArray
}
}
Expand Down
2 changes: 1 addition & 1 deletion project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ object BijectionBuild extends Build {
val sharedSettings = Project.defaultSettings ++ osgiSettings ++ scalariformSettings ++ Seq(
organization := "com.twitter",

crossScalaVersions := Seq("2.10.4", "2.11.2"),
crossScalaVersions := Seq("2.10.4", "2.11.5"),

ScalariformKeys.preferences := formattingPreferences,

Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

version in ThisBuild := "0.7.1"
version in ThisBuild := "0.7.2"

0 comments on commit d8f7f60

Please sign in to comment.