Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: 0.1.0-alpha.8 #19

Merged
merged 2 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.7"
".": "0.1.0-alpha.8"
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.1.0-alpha.8 (2024-10-23)

Full Changelog: [v0.1.0-alpha.7...v0.1.0-alpha.8](https://github.com/OneBusAway/kotlin-sdk/compare/v0.1.0-alpha.7...v0.1.0-alpha.8)

### Features

* **api:** api update ([#18](https://github.com/OneBusAway/kotlin-sdk/issues/18)) ([0aa617e](https://github.com/OneBusAway/kotlin-sdk/commit/0aa617e9c4104c91779100241bde9d046f0a2824))

## 0.1.0-alpha.7 (2024-10-22)

Full Changelog: [v0.1.0-alpha.6...v0.1.0-alpha.7](https://github.com/OneBusAway/kotlin-sdk/compare/v0.1.0-alpha.6...v0.1.0-alpha.7)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The REST API documentation can be found on [developer.onebusaway.org](https://d
<!-- x-release-please-start-version -->

```kotlin
implementation("org.onebusaway:onebusaway-sdk-kotlin:0.1.0-alpha.7")
implementation("org.onebusaway:onebusaway-sdk-kotlin:0.1.0-alpha.8")
```

#### Maven
Expand All @@ -30,7 +30,7 @@ implementation("org.onebusaway:onebusaway-sdk-kotlin:0.1.0-alpha.7")
<dependency>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-sdk-kotlin</artifactId>
<version>0.1.0-alpha.7</version>
<version>0.1.0-alpha.8</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {

allprojects {
group = "org.onebusaway"
version = "0.1.0-alpha.7" // x-release-please-version
version = "0.1.0-alpha.8" // x-release-please-version
}

nexusPublishing {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,12 @@ private constructor(
}
}

override fun close() {
httpClient.close()
}
override fun close() = httpClient.close()

private fun isRetryable(request: HttpRequest): Boolean {
private fun isRetryable(request: HttpRequest): Boolean =
// Some requests, such as when a request body is being streamed, cannot be retried because
// the body data aren't available on subsequent attempts.
return request.body?.repeatable() ?: true
}
request.body?.repeatable() ?: true

private fun setRetryCountHeader(request: HttpRequest, retries: Int) {
request.headers.removeAll("x-stainless-retry-count")
Expand Down Expand Up @@ -153,12 +150,11 @@ private constructor(
}
}

private fun shouldRetry(throwable: Throwable): Boolean {
private fun shouldRetry(throwable: Throwable): Boolean =
// Only retry IOException and OnebusawaySdkIoException, other exceptions are not intended to
// be
// retried.
return throwable is IOException || throwable is OnebusawaySdkIoException
}
throwable is IOException || throwable is OnebusawaySdkIoException

private fun getRetryBackoffMillis(retries: Int, response: HttpResponse?): Duration {
// About the Retry-After header:
Expand Down
Loading