Skip to content

Commit

Permalink
Merge pull request #625 from hexagonkt/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
jaguililla authored May 4, 2023
2 parents c9a2820 + f968ec3 commit b52ac89
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 11 deletions.
3 changes: 0 additions & 3 deletions core/src/main/kotlin/com/hexagonkt/core/Jvm.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ object Jvm {
/** Number of processors available to the Java virtual machine. */
val cpuCount: Int by lazy { runtime.availableProcessors() }

/** User Time Zone property. Can be set with -D user.timezone=<tz> JVM argument. */
val timezone: String by lazy { System.getProperty("user.timezone", "N/A") }

/** User locale consist of 2-letter language code, 2-letter country code and file encoding. */
val localeCode: String by lazy {
"%s_%s.%s".format(locale.language, locale.country, charset.name())
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ org.gradle.warning.mode=all
org.gradle.console=plain

# Gradle
version=2.8.3
version=2.8.4
group=com.hexagonkt
description=The atoms of your platform

Expand Down
1 change: 0 additions & 1 deletion http/src/main/kotlin/com/hexagonkt/http/model/Cookie.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.hexagonkt.http.model

import java.time.Instant

// TODO Handle 'path', 'httpOnly', 'sameSite' and 'expires'
data class Cookie(
val name: String,
val value: String,
Expand Down
3 changes: 1 addition & 2 deletions http/src/main/kotlin/com/hexagonkt/http/model/HttpField.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package com.hexagonkt.http.model

/**
* TODO
* Used in headers, query parameters and form parameters
* HTTP multi-value field. Used in headers, query parameters and form parameters.
*/
interface HttpField {
val name: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import com.hexagonkt.core.Jvm.ip
import com.hexagonkt.core.Jvm.name
import com.hexagonkt.core.Jvm.version
import com.hexagonkt.core.Jvm.localeCode
import com.hexagonkt.core.Jvm.timezone
import com.hexagonkt.http.model.HttpProtocol.HTTP2
import com.hexagonkt.http.model.HttpProtocol.HTTP

Expand All @@ -20,6 +19,7 @@ import com.hexagonkt.core.Ansi.DEFAULT
import com.hexagonkt.core.Ansi.MAGENTA
import com.hexagonkt.core.Ansi.RESET
import com.hexagonkt.core.Ansi.UNDERLINE
import com.hexagonkt.core.Jvm.timeZone
import com.hexagonkt.core.Jvm.totalMemory
import com.hexagonkt.core.Jvm.usedMemory
import com.hexagonkt.core.prependIndent
Expand Down Expand Up @@ -172,7 +172,7 @@ data class HttpServer(
val javaVersionValue = "$BOLD${BLUE}Java $version$RESET [$BLUE$name$RESET]"

val localeValue = "$BLUE$localeCode$RESET"
val timezoneValue = "$BLUE$timezone$RESET"
val timezoneValue = "$BLUE${timeZone.id}$RESET"
val charsetValue = "$BLUE$charset$RESET"

val startUpTimeValue = "$BOLD$MAGENTA$startUpTime ms$RESET"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ abstract class ServletServer(
val javaVersionValue = "$BOLD${BLUE}Java ${Jvm.version}$RESET [$BLUE${Jvm.name}$RESET]"

val localeValue = "$BLUE${Jvm.localeCode}$RESET"
val timezoneValue = "$BLUE${Jvm.timezone}$RESET"
val timezoneValue = "$BLUE${Jvm.timeZone.id}$RESET"
val charsetValue = "$BLUE${Jvm.charset}$RESET"

val bootTimeValue = "$BOLD$MAGENTA$bootTime s$RESET"
Expand Down
1 change: 0 additions & 1 deletion site/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ val footer = file("footer.txt").readLines().joinToString(" ") { it.trim() }
val dokkaConfiguration =
mapOf("org.jetbrains.dokka.base.DokkaBase" to """{ "footerMessage": "$footer" }""")

// TODO Make this task depend on 'assets' directory to update it upon changes on those CSS files
rootProject.tasks.named<DokkaMultiModuleTask>("dokkaHtmlMultiModule") {
outputDirectory.set(rootProject.file("site/build/content/api"))
pluginsMapConfiguration.set(dokkaConfiguration)
Expand Down

0 comments on commit b52ac89

Please sign in to comment.