Skip to content

Commit f06c0ba

Browse files
authored
Merge pull request #66 from adamint/dev
update dependencies
2 parents d9a663b + faf6104 commit f06c0ba

File tree

3 files changed

+17
-20
lines changed

3 files changed

+17
-20
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ This library is available via Maven Central [here](https://search.maven.org/arti
2828
<dependency>
2929
<groupId>com.adamratzman</groupId>
3030
<artifactId>spotify-api-kotlin</artifactId>
31-
<version>2.1.1</version>
31+
<version>2.1.2</version>
3232
</dependency>
3333
```
3434

3535
### Gradle
3636
```
37-
compile group: 'com.adamratzman', name: 'spotify-api-kotlin', version: '2.1.1'
37+
compile group: 'com.adamratzman', name: 'spotify-api-kotlin', version: '2.1.2'
3838
```
3939

4040
To use the latest snapshot instead, you must add the Jitpack repository

build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlin_version = '1.3.11'
2+
ext.kotlin_version = '1.3.21'
33
ext.dokka_version = '0.9.17'
44

55
repositories { jcenter() }
@@ -36,23 +36,23 @@ repositories {
3636

3737
dependencies {
3838
// Actual library dependencies
39-
implementation 'com.beust:klaxon:5.0.1'
39+
implementation 'com.beust:klaxon:5.0.5'
4040

4141
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
4242
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
4343

4444
// Spek testing requirements
45-
testImplementation('org.spekframework.spek2:spek-dsl-jvm:2.0.0-rc.1') {
45+
testImplementation('org.spekframework.spek2:spek-dsl-jvm:2.0.0') {
4646
exclude group: 'org.jetbrains.kotlin'
4747
}
48-
testRuntimeOnly('org.spekframework.spek2:spek-runner-junit5:2.0.0-rc.1') {
48+
testRuntimeOnly('org.spekframework.spek2:spek-runner-junit5:2.0.0') {
4949
exclude group: 'org.junit.platform'
5050
exclude group: 'org.jetbrains.kotlin'
5151
}
52-
53-
testImplementation('org.junit.jupiter:junit-jupiter-api:5.3.2')
52+
53+
testImplementation('org.junit.jupiter:junit-jupiter-api:5.4.0')
5454
testImplementation(group: 'org.json', name: 'json', version: '20180130')
55-
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.2'
55+
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.4.0'
5656
}
5757

5858
dokka {

src/test/kotlin/com/adamratzman/spotify/utilities/HttpConnectionTests.kt

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@ class HttpConnectionTests : Spek({
2727
assertEquals(
2828
mapOf(
2929
"Accept" to "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2",
30-
"Connection" to "close",
3130
"Host" to "httpbin.org",
3231
"Content-Type" to "text/html"
33-
),
32+
).toSortedMap(),
3433
// ignore the user-agent because of the version in it
35-
requestHeader.toMap().filterKeys { it != "User-Agent" }
34+
requestHeader.toMap().filterKeys { it.length >= 3 && it != "User-Agent" }.toSortedMap()
3635
)
3736
}
3837

@@ -58,13 +57,12 @@ class HttpConnectionTests : Spek({
5857
assertEquals(
5958
mapOf(
6059
"Accept" to "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2",
61-
"Connection" to "close",
6260
"Host" to "httpbin.org",
6361
"Content-Type" to "text/html",
6462
"Content-Length" to "4"
65-
),
63+
).toSortedMap(),
6664
// ignore the user-agent because of the version in it
67-
requestHeader.toMap().filterKeys { it != "User-Agent" }
65+
requestHeader.toMap().filterKeys { it.length >= 4 && it != "User-Agent" }.toSortedMap()
6866
)
6967
}
7068

@@ -94,13 +92,12 @@ class HttpConnectionTests : Spek({
9492
assertEquals(
9593
mapOf(
9694
"Accept" to "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2",
97-
"Connection" to "close",
9895
"Host" to "httpbin.org",
9996
"Content-Type" to "text/html",
10097
"Content-Length" to "4"
101-
),
98+
).toSortedMap(),
10299
// ignore the user-agent because of the version in it
103-
requestHeader.toMap().filterKeys { it != "User-Agent" }
100+
requestHeader.toMap().filterKeys { it.length >= 4 && it != "User-Agent" }.toSortedMap()
104101
)
105102
}
106103

@@ -115,9 +112,9 @@ class HttpConnectionTests : Spek({
115112

116113
it("status code") {
117114
assertEquals(
118-
102,
115+
200,
119116
HttpConnection(
120-
"https://httpbin.org/status/102",
117+
"https://apple.com",
121118
HttpRequestMethod.GET,
122119
null,
123120
null

0 commit comments

Comments
 (0)