Skip to content

Commit 30ab0eb

Browse files
committed
1.0.0
1 parent 7a2cb4e commit 30ab0eb

File tree

8 files changed

+19
-14
lines changed

8 files changed

+19
-14
lines changed

CHANGES.md

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

3+
#### 1.0.0
4+
5+
- removed tag methods requiring collections
6+
7+
- handle non-json error entities from server
8+
39
#### 0.1.0
410

511
- support untag of users and companies

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# intercom-java
44

5-
Beta Java bindings for the [Intercom API](https://api.intercom.io/docs)
5+
Java bindings for the [Intercom API](https://api.intercom.io/docs)
66

77
- [Installation](#installation)
88
- [Resources](#resources)
@@ -17,7 +17,7 @@ Beta Java bindings for the [Intercom API](https://api.intercom.io/docs)
1717
[ ![Download](https://api.bintray.com/packages/intercom/intercom-maven/intercom-java/images/download.svg) ](https://bintray.com/intercom/intercom-maven/intercom-java/_latestVersion)
1818

1919
The distribution is hosted on [bintray](https://bintray.com/intercom/intercom-maven/intercom-java/view).
20-
To use the client,you can add the jcenter repository to your dependencies.
20+
To use the client, you can add the jcenter repository to your dependencies.
2121

2222
### maven
2323

@@ -38,7 +38,7 @@ and add the project declaration to your `pom.xml`:
3838
<dependency>
3939
<groupId>io.intercom</groupId>
4040
<artifactId>intercom-java</artifactId>
41-
<version>0.1.0</version>
41+
<version>1.0.0</version>
4242
</dependency>
4343
```
4444

@@ -56,7 +56,7 @@ and add the project to the `dependencies` block in your `build.gradle`:
5656

5757
```groovy
5858
dependencies {
59-
compile 'io.intercom:intercom-java:0.1.0'
59+
compile 'io.intercom:intercom-java:1.0.0'
6060
}
6161
```
6262

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.2.0-SNAPSHOT
1+
version: 1.0.0
22

33
groupId: io.intercom
44

intercom-java/src/main/java/io/intercom/api/HttpClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package io.intercom.api;
22

3-
import com.fasterxml.jackson.core.JsonProcessingException;
43
import com.fasterxml.jackson.databind.ObjectMapper;
54
import com.fasterxml.jackson.databind.SerializationFeature;
65
import com.google.common.collect.Lists;
@@ -245,7 +244,7 @@ private ErrorCollection createUnprocessableErrorResponse(IOException e) {
245244
final long grepCode = getGrepCode();
246245
final String msg = String.format("could not parse error response: [%s]", e.getLocalizedMessage());
247246
logger.error(String.format("[%016x] %s", grepCode, msg), e);
248-
Error err = new Error("unprocessable_entity", String.format("%s logged with code [%016x]", msg, grepCode)) ;
247+
Error err = new Error("unprocessable_entity", String.format("%s logged with code [%016x]", msg, grepCode));
249248
errors = new ErrorCollection(Lists.newArrayList(err));
250249
return errors;
251250
}

intercom-java/src/main/java/io/intercom/api/Intercom.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class Intercom {
1414

1515
static final String AUTH_BEARER = "Bearer";
1616

17-
private static final String VERSION = "0.2.0-SNAPSHOT";
17+
private static final String VERSION = "1.0.0";
1818

1919
public static final String USER_AGENT = "intercom-java/" + Intercom.VERSION;
2020

@@ -34,6 +34,7 @@ public static int getConnectionTimeout() {
3434
return connectionTimeout;
3535
}
3636

37+
@SuppressWarnings("UnusedDeclaration")
3738
public static void setConnectionTimeout(int connectionTimeout) {
3839
Intercom.connectionTimeout = connectionTimeout;
3940
}
@@ -42,6 +43,7 @@ public static int getRequestTimeout() {
4243
return requestTimeout;
4344
}
4445

46+
@SuppressWarnings("UnusedDeclaration")
4547
public static void setRequestTimeout(int requestTimeout) {
4648
Intercom.requestTimeout = requestTimeout;
4749
}

intercom-java/src/test/java/io/intercom/api/ErrorCollectionTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
import com.fasterxml.jackson.databind.ObjectMapper;
44
import com.google.common.collect.Lists;
5-
import org.junit.Assert;
65
import org.junit.BeforeClass;
76
import org.junit.Test;
87

9-
import static io.intercom.api.TestSupport.load;
10-
import static org.junit.Assert.*;
8+
import static org.junit.Assert.assertTrue;
9+
import static org.junit.Assert.fail;
1110

1211
public class ErrorCollectionTest {
1312

intercom-java/src/test/java/io/intercom/api/UriBuilderTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
package io.intercom.api;
22

33
import com.google.common.collect.Maps;
4-
import io.intercom.api.UriBuilder;
54
import org.junit.Test;
65

76
import java.net.URI;
87
import java.util.HashMap;
98

10-
import static org.junit.Assert.*;
9+
import static org.junit.Assert.assertEquals;
1110

1211
public class UriBuilderTest {
1312

intercom-java/src/test/java/io/intercom/api/UserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static void beforeClass() {
2323
@Test
2424
public void TestUserUpdate() throws Exception {
2525

26-
final long now = System.currentTimeMillis()/1000;
26+
final long now = System.currentTimeMillis() / 1000;
2727
final User user = new User()
2828
.setEmail("wash@serenity.io")
2929
.setUserId("22")

0 commit comments

Comments
 (0)