Skip to content

Commit d8f7f60

Browse files
committed
Merge branch 'release/0.7.2'
2 parents 1597c26 + 6d1d5b9 commit d8f7f60

File tree

6 files changed

+14
-5
lines changed

6 files changed

+14
-5
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: scala
2+
sudo: false
23
scala:
34
- 2.10.4
45
- 2.11.2

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Bijection #
22

3+
### 0.7.2
4+
* FIX: gzip Bijection resource leak. https://github.com/twitter/bijection/pull/193
5+
* Use new Travis CI infrastructure https://github.com/twitter/bijection/pull/191
6+
37
### 0.7.1
48
* Remove some package privacy so these things can be used in scalding and ...: https://github.com/twitter/bijection/pull/190
59
* Add macros to create Trys: https://github.com/twitter/bijection/pull/187

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ Injections to any of these types give you binary serialization via Bufferable.
124124

125125
## Community and Documentation
126126

127+
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.
128+
127129
To learn more and find links to tutorials and information around the web, check out the [Bijection Wiki](https://github.com/twitter/bijection/wiki).
128130

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

133135
## Maven
134136

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

137139
Current published artifacts are
138140

bijection-core/src/main/scala/com/twitter/bijection/BinaryBijections.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,14 @@ trait BinaryBijections extends StringBijections {
8181
val baos = new ByteArrayOutputStream
8282
val gos = new GZIPOutputStream(baos)
8383
gos.write(bytes)
84-
gos.finish()
84+
gos.close()
8585
GZippedBytes(baos.toByteArray)
8686
}
8787
override def invert(gz: GZippedBytes) = {
8888
val baos = new ByteArrayOutputStream
89-
copy(new GZIPInputStream(new ByteArrayInputStream(gz.bytes)), baos)
89+
val is = new GZIPInputStream(new ByteArrayInputStream(gz.bytes))
90+
copy(is, baos)
91+
is.close()
9092
baos.toByteArray
9193
}
9294
}

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ object BijectionBuild extends Build {
1818
val sharedSettings = Project.defaultSettings ++ osgiSettings ++ scalariformSettings ++ Seq(
1919
organization := "com.twitter",
2020

21-
crossScalaVersions := Seq("2.10.4", "2.11.2"),
21+
crossScalaVersions := Seq("2.10.4", "2.11.5"),
2222

2323
ScalariformKeys.preferences := formattingPreferences,
2424

version.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
version in ThisBuild := "0.7.1"
2+
version in ThisBuild := "0.7.2"

0 commit comments

Comments
 (0)