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

Fluent disk and inline facet assertions #68

Merged
merged 2 commits into from
Dec 27, 2023
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: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
* `DiskSelfie.toMatchDisk` now returns `DiskSelfie` so that we can fluently chain inline assertions on facets.

## [0.1.3] - 2023-12-26
* Publish `selfie-lib-jvm` *and* `selfie-lib` to Maven Central.
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repositories {
}
group = 干.proj('maven_group', 'the maven group, recommend com.diffplug')
apply from: rootProject.file('gradle/spotless.gradle')
apply from: rootProject.file('gradle/changelog.gradle')
apply from: .file('base/changelog.gradle')
apply from: 干.file('base/sonatype.gradle')

// ./gradlew :dokkatooGeneratePublicationHtml
Expand Down
97 changes: 0 additions & 97 deletions gradle/changelog.gradle

This file was deleted.

108 changes: 0 additions & 108 deletions gradle/maven.gradle

This file was deleted.

4 changes: 2 additions & 2 deletions selfie-lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ext {
maven_desc = 'Core logic and parsing for Selfie'
}

apply from: rootProject.file('gradle/changelog.gradle')
apply from: .file('base/changelog.gradle')
apply from: rootProject.file('gradle/spotless.gradle')
kotlin {
jvm {
Expand Down Expand Up @@ -40,5 +40,5 @@ tasks.create('test') {
}

// it all needs to get published and formatted
apply from: rootProject.file('gradle/maven.gradle')
apply from: .file('base/maven.gradle')
apply from: 干.file('base/sonatype.gradle')
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ object Selfie {

class DiskSelfie internal constructor(actual: Snapshot) : LiteralStringSelfie(actual) {
@JvmOverloads
fun toMatchDisk(sub: String = ""): Snapshot {
fun toMatchDisk(sub: String = ""): DiskSelfie {
val comparison = storage.readWriteDisk(actual, sub)
if (!storage.isWrite) {
comparison.assertEqual(storage)
}
return comparison.actual
return this
}
}

Expand Down
4 changes: 2 additions & 2 deletions selfie-runner-junit5/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ext {
maven_desc = 'JUnit 5 test runner for Selfie'
}

apply from: rootProject.file('gradle/changelog.gradle')
apply from: .file('base/changelog.gradle')
apply from: rootProject.file('gradle/spotless.gradle')
apply plugin: 'java-library'
dependencies {
Expand All @@ -31,5 +31,5 @@ test {
}

// it all needs to get published and formatted
apply from: rootProject.file('gradle/maven.gradle')
apply from: .file('base/maven.gradle')
apply from: 干.file('base/sonatype.gradle')
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ plugins {
}

blowdryerSetup {
github 'diffplug/blowdryer-diffplug', 'tag', '7.1.1'
github 'diffplug/blowdryer-diffplug', 'tag', '7.2.0'
//devLocal '../blowdryer-diffplug'
setPluginsBlockTo {
it.file 'plugin.versions'
Expand Down