Skip to content

Commit

Permalink
remove "07". just use "Java"
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Jan 8, 2016
1 parent 6848820 commit 83ad5aa
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 21 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# msgpack4z-java07
# msgpack4z-java

[![Build Status](https://secure.travis-ci.org/msgpack4z/msgpack4z-java07.png?branch=master)](http://travis-ci.org/msgpack4z/msgpack4z-java07)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.xuwei-k/msgpack4z-java07/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.xuwei-k/msgpack4z-java07)
[![javadoc](http://javadoc-badge.appspot.com/com.github.xuwei-k/msgpack4z-java07.svg?label=javadoc)](http://javadoc-badge.appspot.com/com.github.xuwei-k/msgpack4z-java07)
[![Build Status](https://secure.travis-ci.org/msgpack4z/msgpack4z-java.png?branch=master)](http://travis-ci.org/msgpack4z/msgpack4z-java)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.xuwei-k/msgpack4z-java/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.xuwei-k/msgpack4z-java)
[![javadoc](http://javadoc-badge.appspot.com/com.github.xuwei-k/msgpack4z-java.svg?label=javadoc)](http://javadoc-badge.appspot.com/com.github.xuwei-k/msgpack4z-java)

- <http://msgpack.org/>
- <https://github.com/msgpack/msgpack/blob/master/spec.md>

### latest stable version

```scala
libraryDependencies += "com.github.xuwei-k" % "msgpack4z-java07" % "0.2.0"
libraryDependencies += "com.github.xuwei-k" % "msgpack4z-java" % "0.3.0"
```


Expand All @@ -19,5 +19,5 @@ libraryDependencies += "com.github.xuwei-k" % "msgpack4z-java07" % "0.2.0"
```scala
resolvers += Opts.resolver.sonatypeSnapshots

libraryDependencies += "com.github.xuwei-k" % "msgpack4z-java07" % "0.2.1-SNAPSHOT"
libraryDependencies += "com.github.xuwei-k" % "msgpack4z-java" % "0.3.1-SNAPSHOT"
```
12 changes: 6 additions & 6 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ object build extends Build {
sys.process.Process("git rev-parse HEAD").lines_!.head
).getOrElse("master")

private val msgpack4zJava07Name = "msgpack4z-java07"
private val msgpack4zJavaName = "msgpack4z-java"

val modules = msgpack4zJava07Name :: Nil
val modules = msgpack4zJavaName :: Nil

lazy val msgpack4zJava07 = Project("msgpack4z-java07", file(".")).settings(
lazy val msgpack4zJava = Project("msgpack4z-java", file(".")).settings(
ReleasePlugin.extraReleaseCommands ++ sonatypeSettings: _*
).settings(
resolvers += Opts.resolver.sonatypeReleases,
fullResolvers ~= {_.filterNot(_.name == "jcenter")},
autoScalaLibrary := false,
crossPaths := false,
name := msgpack4zJava07Name,
name := msgpack4zJavaName,
javacOptions in compile ++= Seq("-target", "6", "-source", "6"),
javacOptions in (Compile, doc) ++= Seq("-locale", "en_US"),
commands += Command.command("updateReadme")(UpdateReadme.updateReadmeTask),
Expand Down Expand Up @@ -76,8 +76,8 @@ object build extends Build {
</developer>
</developers>
<scm>
<url>git@github.com:msgpack4z/msgpack4z-java07.git</url>
<connection>scm:git:git@github.com:msgpack4z/msgpack4z-java07.git</connection>
<url>git@github.com:msgpack4z/msgpack4z-java.git</url>
<connection>scm:git:git@github.com:msgpack4z/msgpack4z-java.git</connection>
<tag>{if(isSnapshot.value) gitHash else { "v" + version.value }}</tag>
</scm>
,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@

import org.msgpack.core.MessagePack;
import org.msgpack.core.MessagePacker;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.math.BigInteger;

public class Msgpack07Packer implements MsgPacker {
public class MsgpackJavaPacker implements MsgPacker {
private final MessagePacker self;
private final ByteArrayOutputStream out;

public Msgpack07Packer() {
public MsgpackJavaPacker() {
this(new MessagePack.PackerConfig());
}

public Msgpack07Packer(MessagePack.PackerConfig config) {
public MsgpackJavaPacker(MessagePack.PackerConfig config) {
this.out = new ByteArrayOutputStream();
this.self = config.newPacker(out);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
import java.io.IOException;
import java.math.BigInteger;

public class Msgpack07Unpacker implements MsgUnpacker {
public class MsgpackJavaUnpacker implements MsgUnpacker {
private final MessageUnpacker unpacker;

public Msgpack07Unpacker(MessageUnpacker unpacker) {
public MsgpackJavaUnpacker(MessageUnpacker unpacker) {
this.unpacker = unpacker;
}

public Msgpack07Unpacker(MessagePack.UnpackerConfig config, byte[] bytes) {
public MsgpackJavaUnpacker(MessagePack.UnpackerConfig config, byte[] bytes) {
this(config.newUnpacker(bytes));
}

public static MsgUnpacker defaultUnpacker(byte[] bytes) {
return new Msgpack07Unpacker(new MessagePack.UnpackerConfig(), bytes);
return new MsgpackJavaUnpacker(new MessagePack.UnpackerConfig(), bytes);
}

public static MsgType toMsgType(ValueType t) {
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version in ThisBuild := "0.2.1-SNAPSHOT"
version in ThisBuild := "0.3.0-SNAPSHOT"

0 comments on commit 83ad5aa

Please sign in to comment.