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.30 #84

Merged
merged 2 commits into from
Nov 28, 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
6 changes: 4 additions & 2 deletions .github/workflows/publish-sonatype.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ jobs:
uses: gradle/gradle-build-action@v2

- name: Publish to Sonatype
run: |
run: |-
export -- GPG_SIGNING_KEY_ID
printenv -- GPG_SIGNING_KEY | gpg --batch --passphrase-fd 3 --import 3<<< "$GPG_SIGNING_PASSWORD"
GPG_SIGNING_KEY_ID="$(gpg --with-colons --list-keys | awk -F : -- '/^pub:/ { getline; print "0x" substr($10, length($10) - 7) }')"
./gradlew publishAndReleaseToMavenCentral --stacktrace -PmavenCentralUsername="$SONATYPE_USERNAME" -PmavenCentralPassword="$SONATYPE_PASSWORD"
env:
SONATYPE_USERNAME: ${{ secrets.ONEBUSAWAY_SDK_SONATYPE_USERNAME || secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.ONEBUSAWAY_SDK_SONATYPE_PASSWORD || secrets.SONATYPE_PASSWORD }}
GPG_SIGNING_KEY_ID: ${{ secrets.ONEBUSAWAY_SDK_SONATYPE_GPG_SIGNING_KEY_ID || secrets.GPG_SIGNING_KEY_ID }}
GPG_SIGNING_KEY: ${{ secrets.ONEBUSAWAY_SDK_SONATYPE_GPG_SIGNING_KEY || secrets.GPG_SIGNING_KEY }}
GPG_SIGNING_PASSWORD: ${{ secrets.ONEBUSAWAY_SDK_SONATYPE_GPG_SIGNING_PASSWORD || secrets.GPG_SIGNING_PASSWORD }}
1 change: 0 additions & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ jobs:
env:
SONATYPE_USERNAME: ${{ secrets.ONEBUSAWAY_SDK_SONATYPE_USERNAME || secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.ONEBUSAWAY_SDK_SONATYPE_PASSWORD || secrets.SONATYPE_PASSWORD }}
GPG_SIGNING_KEY_ID: ${{ secrets.ONEBUSAWAY_SDK_SONATYPE_GPG_SIGNING_KEY_ID || secrets.GPG_SIGNING_KEY_ID }}
GPG_SIGNING_KEY: ${{ secrets.ONEBUSAWAY_SDK_SONATYPE_GPG_SIGNING_KEY || secrets.GPG_SIGNING_KEY }}
GPG_SIGNING_PASSWORD: ${{ secrets.ONEBUSAWAY_SDK_SONATYPE_GPG_SIGNING_PASSWORD || secrets.GPG_SIGNING_PASSWORD }}
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.29"
".": "0.1.0-alpha.30"
}
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.30 (2024-11-28)

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

### Chores

* **internal:** codegen related update ([#83](https://github.com/OneBusAway/kotlin-sdk/issues/83)) ([e14a489](https://github.com/OneBusAway/kotlin-sdk/commit/e14a489b48e9ad1527d3f60549664f118f33283e))

## 0.1.0-alpha.29 (2024-11-23)

Full Changelog: [v0.1.0-alpha.28...v0.1.0-alpha.29](https://github.com/OneBusAway/kotlin-sdk/compare/v0.1.0-alpha.28...v0.1.0-alpha.29)
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.29")
implementation("org.onebusaway:onebusaway-sdk-kotlin:0.1.0-alpha.30")
```

#### Maven
Expand All @@ -30,7 +30,7 @@ implementation("org.onebusaway:onebusaway-sdk-kotlin:0.1.0-alpha.29")
<dependency>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-sdk-kotlin</artifactId>
<version>0.1.0-alpha.29</version>
<version>0.1.0-alpha.30</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.29" // x-release-please-version
version = "0.1.0-alpha.30" // x-release-please-version
}

nexusPublishing {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class ArrivalAndDepartureListParamsTest {
fun createArrivalAndDepartureListParams() {
ArrivalAndDepartureListParams.builder()
.stopId("stopID")
.minutesAfter(123L)
.minutesBefore(123L)
.minutesAfter(0L)
.minutesBefore(0L)
.time(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.build()
}
Expand All @@ -25,13 +25,13 @@ class ArrivalAndDepartureListParamsTest {
val params =
ArrivalAndDepartureListParams.builder()
.stopId("stopID")
.minutesAfter(123L)
.minutesBefore(123L)
.minutesAfter(0L)
.minutesBefore(0L)
.time(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.build()
val expected = QueryParams.builder()
expected.put("minutesAfter", "123")
expected.put("minutesBefore", "123")
expected.put("minutesAfter", "0")
expected.put("minutesBefore", "0")
expected.put("time", "2019-12-27T18:11:19.117Z")
assertThat(params.getQueryParams()).isEqualTo(expected.build())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ class ArrivalAndDepartureRetrieveParamsTest {
fun createArrivalAndDepartureRetrieveParams() {
ArrivalAndDepartureRetrieveParams.builder()
.stopId("stopID")
.serviceDate(123L)
.serviceDate(0L)
.tripId("tripId")
.stopSequence(123L)
.time(123L)
.stopSequence(0L)
.time(0L)
.vehicleId("vehicleId")
.build()
}
Expand All @@ -26,17 +26,17 @@ class ArrivalAndDepartureRetrieveParamsTest {
val params =
ArrivalAndDepartureRetrieveParams.builder()
.stopId("stopID")
.serviceDate(123L)
.serviceDate(0L)
.tripId("tripId")
.stopSequence(123L)
.time(123L)
.stopSequence(0L)
.time(0L)
.vehicleId("vehicleId")
.build()
val expected = QueryParams.builder()
expected.put("serviceDate", "123")
expected.put("serviceDate", "0")
expected.put("tripId", "tripId")
expected.put("stopSequence", "123")
expected.put("time", "123")
expected.put("stopSequence", "0")
expected.put("time", "0")
expected.put("vehicleId", "vehicleId")
assertThat(params.getQueryParams()).isEqualTo(expected.build())
}
Expand All @@ -46,11 +46,11 @@ class ArrivalAndDepartureRetrieveParamsTest {
val params =
ArrivalAndDepartureRetrieveParams.builder()
.stopId("stopID")
.serviceDate(123L)
.serviceDate(0L)
.tripId("tripId")
.build()
val expected = QueryParams.builder()
expected.put("serviceDate", "123")
expected.put("serviceDate", "0")
expected.put("tripId", "tripId")
assertThat(params.getQueryParams()).isEqualTo(expected.build())
}
Expand All @@ -60,7 +60,7 @@ class ArrivalAndDepartureRetrieveParamsTest {
val params =
ArrivalAndDepartureRetrieveParams.builder()
.stopId("stopID")
.serviceDate(123L)
.serviceDate(0L)
.tripId("tripId")
.build()
assertThat(params).isNotNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ReferencesTest {
References.Route.builder()
.id("id")
.agencyId("agencyId")
.type(123L)
.type(0L)
.color("color")
.description("description")
.longName("longName")
Expand All @@ -47,12 +47,12 @@ class ReferencesTest {
listOf(
References.Situation.builder()
.id("id")
.creationTime(123L)
.creationTime(0L)
.activeWindows(
listOf(
References.Situation.ActiveWindow.builder()
.from(123L)
.to(123L)
.from(0L)
.to(0L)
.build()
)
)
Expand Down Expand Up @@ -81,7 +81,7 @@ class ReferencesTest {
.ConditionDetails
.DiversionPath
.builder()
.length(123L)
.length(0L)
.levels("levels")
.points("points")
.build()
Expand All @@ -101,8 +101,8 @@ class ReferencesTest {
.publicationWindows(
listOf(
References.Situation.PublicationWindow.builder()
.from(123L)
.to(123L)
.from(0L)
.to(0L)
.build()
)
)
Expand All @@ -128,11 +128,11 @@ class ReferencesTest {
References.Stop.builder()
.id("id")
.code("code")
.lat(42.23)
.lon(42.23)
.lat(0.0)
.lon(0.0)
.name("name")
.direction("direction")
.locationType(123L)
.locationType(0L)
.parent("parent")
.routeIds(listOf("string"))
.staticRouteIds(listOf("string"))
Expand All @@ -143,9 +143,9 @@ class ReferencesTest {
.stopTimes(
listOf(
References.StopTime.builder()
.arrivalTime(123L)
.departureTime(123L)
.distanceAlongTrip(42.23)
.arrivalTime(0L)
.departureTime(0L)
.distanceAlongTrip(0.0)
.historicalOccupancy("historicalOccupancy")
.stopHeadsign("stopHeadsign")
.stopId("stopId")
Expand All @@ -160,7 +160,7 @@ class ReferencesTest {
.serviceId("serviceId")
.blockId("blockId")
.directionId("directionId")
.peakOffpeak(123L)
.peakOffpeak(0L)
.routeShortName("routeShortName")
.shapeId("shapeId")
.timeZone("timeZone")
Expand Down Expand Up @@ -191,7 +191,7 @@ class ReferencesTest {
References.Route.builder()
.id("id")
.agencyId("agencyId")
.type(123L)
.type(0L)
.color("color")
.description("description")
.longName("longName")
Expand All @@ -205,11 +205,9 @@ class ReferencesTest {
.containsExactly(
References.Situation.builder()
.id("id")
.creationTime(123L)
.creationTime(0L)
.activeWindows(
listOf(
References.Situation.ActiveWindow.builder().from(123L).to(123L).build()
)
listOf(References.Situation.ActiveWindow.builder().from(0L).to(0L).build())
)
.allAffects(
listOf(
Expand All @@ -234,7 +232,7 @@ class ReferencesTest {
References.Situation.Consequence.ConditionDetails
.DiversionPath
.builder()
.length(123L)
.length(0L)
.levels("levels")
.points("points")
.build()
Expand All @@ -253,10 +251,7 @@ class ReferencesTest {
)
.publicationWindows(
listOf(
References.Situation.PublicationWindow.builder()
.from(123L)
.to(123L)
.build()
References.Situation.PublicationWindow.builder().from(0L).to(0L).build()
)
)
.reason(References.Situation.Reason.EQUIPMENT_REASON)
Expand All @@ -272,11 +267,11 @@ class ReferencesTest {
References.Stop.builder()
.id("id")
.code("code")
.lat(42.23)
.lon(42.23)
.lat(0.0)
.lon(0.0)
.name("name")
.direction("direction")
.locationType(123L)
.locationType(0L)
.parent("parent")
.routeIds(listOf("string"))
.staticRouteIds(listOf("string"))
Expand All @@ -286,9 +281,9 @@ class ReferencesTest {
assertThat(references.stopTimes())
.containsExactly(
References.StopTime.builder()
.arrivalTime(123L)
.departureTime(123L)
.distanceAlongTrip(42.23)
.arrivalTime(0L)
.departureTime(0L)
.distanceAlongTrip(0.0)
.historicalOccupancy("historicalOccupancy")
.stopHeadsign("stopHeadsign")
.stopId("stopId")
Expand All @@ -302,7 +297,7 @@ class ReferencesTest {
.serviceId("serviceId")
.blockId("blockId")
.directionId("directionId")
.peakOffpeak(123L)
.peakOffpeak(0L)
.routeShortName("routeShortName")
.shapeId("shapeId")
.timeZone("timeZone")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class ReportProblemWithStopRetrieveParamsTest {
.stopId("stopID")
.code(ReportProblemWithStopRetrieveParams.Code.STOP_NAME_WRONG)
.userComment("userComment")
.userLat(42.23)
.userLocationAccuracy(42.23)
.userLon(42.23)
.userLat(0.0)
.userLocationAccuracy(0.0)
.userLon(0.0)
.build()
}

Expand All @@ -28,16 +28,16 @@ class ReportProblemWithStopRetrieveParamsTest {
.stopId("stopID")
.code(ReportProblemWithStopRetrieveParams.Code.STOP_NAME_WRONG)
.userComment("userComment")
.userLat(42.23)
.userLocationAccuracy(42.23)
.userLon(42.23)
.userLat(0.0)
.userLocationAccuracy(0.0)
.userLon(0.0)
.build()
val expected = QueryParams.builder()
expected.put("code", ReportProblemWithStopRetrieveParams.Code.STOP_NAME_WRONG.toString())
expected.put("userComment", "userComment")
expected.put("userLat", "42.23")
expected.put("userLocationAccuracy", "42.23")
expected.put("userLon", "42.23")
expected.put("userLat", "0.0")
expected.put("userLocationAccuracy", "0.0")
expected.put("userLon", "0.0")
assertThat(params.getQueryParams()).isEqualTo(expected.build())
}

Expand Down
Loading
Loading