Skip to content

Commit 4ae89a9

Browse files
committed
Version bump
1 parent e585871 commit 4ae89a9

File tree

169 files changed

+1749
-1163
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+1749
-1163
lines changed

constructorio-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>io.constructor.client</groupId>
55
<artifactId>constructorio-client</artifactId>
66
<packaging>jar</packaging>
7-
<version>5.22.1</version>
7+
<version>5.23.0</version>
88
<name>constructorio-client</name>
99
<url>https://github.com/Constructor-io/constructorio-java</url>
1010
<dependencies>

constructorio-client/src/main/java/io/constructor/client/ConstructorIO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@ protected static String getResponseBody(Response response) throws ConstructorExc
18551855
* @return version number
18561856
*/
18571857
protected String getVersion() {
1858-
return "ciojava-5.22.1";
1858+
return "ciojava-5.23.0";
18591859
}
18601860

18611861
/**

constructorio-client/src/test/java/io/constructor/client/ConstructorIOAutocompleteUrlEncodingTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void AutocompleteWithPlusShouldBeEncodedInUrl() throws Exception {
4242

4343
RecordedRequest recordedRequest = mockServer.takeRequest();
4444
String expectedPath =
45-
String.format("/autocomplete/r%%2Bco?key=%s&c=ciojava-5.22.1", apiKey);
45+
String.format("/autocomplete/r%%2Bco?key=%s&c=ciojava-5.23.0", apiKey);
4646
String actualPath = recordedRequest.getPath();
4747
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
4848
}
@@ -60,7 +60,7 @@ public void AutocompleteWithSpaceShouldBeEncodedInUrl() throws Exception {
6060

6161
RecordedRequest recordedRequest = mockServer.takeRequest();
6262
String expectedPath =
63-
String.format("/autocomplete/r%%20co?key=%s&c=ciojava-5.22.1", apiKey);
63+
String.format("/autocomplete/r%%20co?key=%s&c=ciojava-5.23.0", apiKey);
6464
String actualPath = recordedRequest.getPath();
6565
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
6666
}
@@ -78,7 +78,7 @@ public void AutocompleteWithSlashShouldBeEncodedInUrl() throws Exception {
7878

7979
RecordedRequest recordedRequest = mockServer.takeRequest();
8080
String expectedPath =
81-
String.format("/autocomplete/r%%2Fco?key=%s&c=ciojava-5.22.1", apiKey);
81+
String.format("/autocomplete/r%%2Fco?key=%s&c=ciojava-5.23.0", apiKey);
8282
String actualPath = recordedRequest.getPath();
8383
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
8484
}
@@ -95,7 +95,7 @@ public void AutocompleteWithSingleQuoteShouldBeAllowedInUrl() throws Exception {
9595
constructor.autocomplete(request, null);
9696

9797
RecordedRequest recordedRequest = mockServer.takeRequest();
98-
String expectedPath = String.format("/autocomplete/r'co?key=%s&c=ciojava-5.22.1", apiKey);
98+
String expectedPath = String.format("/autocomplete/r'co?key=%s&c=ciojava-5.23.0", apiKey);
9999
String actualPath = recordedRequest.getPath();
100100
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
101101
}

constructorio-client/src/test/java/io/constructor/client/ConstructorIOBasicTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public void makeUrlShouldReturnAUrl() throws Exception {
136136
HttpUrl url = constructor.makeUrl(Arrays.asList("getitUuuurl"));
137137
assertEquals("host is set", url.host(), "ac.cnstrc.com");
138138
assertEquals("protocol is set", url.scheme(), "https");
139-
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.22.1");
139+
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.23.0");
140140
assertEquals("apiKey is set", url.queryParameter("key"), "doinkaKey");
141141
}
142142

@@ -147,7 +147,7 @@ public void makeUrlWithUserIdShouldReturnAUrl() throws Exception {
147147
HttpUrl url = constructor.makeUrl(Arrays.asList("getitUuuurl"), info);
148148
assertEquals("host is set", url.host(), "ac.cnstrc.com");
149149
assertEquals("protocol is set", url.scheme(), "https");
150-
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.22.1");
150+
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.23.0");
151151
assertEquals("apiKey is set", url.queryParameter("key"), "doinkaKey");
152152
assertEquals("session id is set", url.queryParameter("s"), "2");
153153
assertEquals("client id is set", url.queryParameter("i"), "sideshow bob");
@@ -162,7 +162,7 @@ public void makeUrlWithUserInfoShouldReturnAUrl() throws Exception {
162162
HttpUrl url = constructor.makeUrl(Arrays.asList("getitUuuurl"), info);
163163
assertEquals("host is set", url.host(), "ac.cnstrc.com");
164164
assertEquals("protocol is set", url.scheme(), "https");
165-
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.22.1");
165+
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.23.0");
166166
assertEquals("apiKey is set", url.queryParameter("key"), "doinkaKey");
167167
assertEquals("session id is set", url.queryParameter("s"), "2");
168168
assertEquals("client id is set", url.queryParameter("i"), "sideshow bob");
@@ -177,7 +177,7 @@ public void makeUrlWithUserSegmentsShouldReturnAUrl() throws Exception {
177177
HttpUrl url = constructor.makeUrl(Arrays.asList("getitUuuurl"), info);
178178
assertEquals("host is set", url.host(), "ac.cnstrc.com");
179179
assertEquals("protocol is set", url.scheme(), "https");
180-
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.22.1");
180+
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.23.0");
181181
assertEquals("apiKey is set", url.queryParameter("key"), "doinkaKey");
182182
assertEquals("session id is set", url.queryParameter("s"), "2");
183183
assertEquals("client id is set", url.queryParameter("i"), "sideshow bob");
@@ -195,7 +195,7 @@ public void verifyShouldReturnTrueWithValidKeyTokenPair() throws Exception {
195195
@Test
196196
public void getVersionShouldReturnClientVersion() throws Exception {
197197
ConstructorIO constructor = new ConstructorIO(token, apiKey, true, null);
198-
assertEquals("grabs version from pom.xml", constructor.getVersion(), "ciojava-5.22.1");
198+
assertEquals("grabs version from pom.xml", constructor.getVersion(), "ciojava-5.23.0");
199199
}
200200

201201
@Test

constructorio-client/src/test/java/io/constructor/client/ConstructorIOSearchUrlEncodingTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void SearchWithPlusShouldBeEncodedInUrl() throws Exception {
4343
RecordedRequest recordedRequest = mockServer.takeRequest();
4444
String expectedPath =
4545
String.format(
46-
"/search/r%%2Bco?key=%s&c=ciojava-5.22.1&section=Products&num_results_per_page=30",
46+
"/search/r%%2Bco?key=%s&c=ciojava-5.23.0&section=Products&num_results_per_page=30",
4747
apiKey);
4848
String actualPath = recordedRequest.getPath();
4949
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
@@ -63,7 +63,7 @@ public void SearchWithSpaceShouldBeEncodedInUrl() throws Exception {
6363
RecordedRequest recordedRequest = mockServer.takeRequest();
6464
String expectedPath =
6565
String.format(
66-
"/search/r%%20co?key=%s&c=ciojava-5.22.1&section=Products&num_results_per_page=30",
66+
"/search/r%%20co?key=%s&c=ciojava-5.23.0&section=Products&num_results_per_page=30",
6767
apiKey);
6868
String actualPath = recordedRequest.getPath();
6969
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
@@ -83,7 +83,7 @@ public void SearchWithSlashShouldBeEncodedInUrl() throws Exception {
8383
RecordedRequest recordedRequest = mockServer.takeRequest();
8484
String expectedPath =
8585
String.format(
86-
"/search/r%%2Fco?key=%s&c=ciojava-5.22.1&section=Products&num_results_per_page=30",
86+
"/search/r%%2Fco?key=%s&c=ciojava-5.23.0&section=Products&num_results_per_page=30",
8787
apiKey);
8888
String actualPath = recordedRequest.getPath();
8989
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
@@ -103,7 +103,7 @@ public void SearchWithSingleQuoteShouldBeAllowedInUrl() throws Exception {
103103
RecordedRequest recordedRequest = mockServer.takeRequest();
104104
String expectedPath =
105105
String.format(
106-
"/search/r'co?key=%s&c=ciojava-5.22.1&section=Products&num_results_per_page=30",
106+
"/search/r'co?key=%s&c=ciojava-5.23.0&section=Products&num_results_per_page=30",
107107
apiKey);
108108
String actualPath = recordedRequest.getPath();
109109
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);

0 commit comments

Comments
 (0)