Skip to content

Commit 5a8e5f2

Browse files
hopeman15Kyle
andauthored
[Release] Prepare Version 0.9.0 (#164)
* readme * migration guide * changelog * release baby * small p * update deprecation messages Co-authored-by: Kyle <[hopeman1986@gmail.com]>
1 parent 65c2037 commit 5a8e5f2

5 files changed

Lines changed: 29 additions & 10 deletions

File tree

CHANGELOG.MD

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
## [0.9.0] - Not released yet
1+
## [0.9.0] - March 22nd 2022
22

3-
* Support for map collection type
4-
* Better output message when using `attempt`
3+
* Support for map collection type.
4+
* Better output message when using `attempt`.
55
* Removed the custom Provider interface in favor of `javax.inject.Provider`.
6+
* See [Migration Guide](https://github.com/HelloCuriosity/model-forge/blob/main/MIGRATION.MD) for details.
7+
* Moved dependency definitions to `buildSrc`
8+
* Fixed StringProvider to be more explicit when generating strings.
69

710
## [0.8.0] - December 7th 2021
811

MIGRATION.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Migration Guide
2+
3+
## 0.9.0
4+
5+
In version 0.9.0 we removed the custom provider in favor of javax provider for easier
6+
adaptation in other projects.
7+
8+
Replace all instances of:
9+
```kotlin
10+
import io.github.hellocuriosity.providers.Provider
11+
```
12+
13+
with:
14+
```kotlin
15+
import javax.inject.Provider
16+
```

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Model Forge is a library to automate model generation for automated testing:
2323

2424
```kotlin
2525
dependencies {
26-
testImplementation("io.github.hellocuriosity:model-forge:0.8.0")
26+
testImplementation("io.github.hellocuriosity:model-forge:0.9.0")
2727
}
2828
```
2929

@@ -34,7 +34,7 @@ dependencies {
3434

3535
```groovy
3636
dependencies {
37-
testImplementation 'io.github.hellocuriosity:model-forge:0.8.0'
37+
testImplementation 'io.github.hellocuriosity:model-forge:0.9.0'
3838
}
3939
```
4040

@@ -53,7 +53,7 @@ repositories {
5353
}
5454

5555
dependencies {
56-
testImplementation("io.github.hellocuriosity:model-forge:0.8.0.xx-SNAPSHOT")
56+
testImplementation("io.github.hellocuriosity:model-forge:0.9.0.xx-SNAPSHOT")
5757
}
5858
```
5959

@@ -68,7 +68,7 @@ repositories {
6868
}
6969
7070
dependencies {
71-
testImplementation 'io.github.hellocuriosity:model-forge:0.8.0.xx-SNAPSHOT'
71+
testImplementation 'io.github.hellocuriosity:model-forge:0.9.0.xx-SNAPSHOT'
7272
}
7373
```
7474

@@ -183,7 +183,7 @@ Model Forge currently supports the auto generation for the following types:
183183
### Collections
184184

185185
* List
186-
* Map (_SNAPSHOT_)
186+
* Map
187187
* Set
188188

189189
_Can't find your data type? Feel free to create a pull request or open an issue_ :parachute:

forge-core/src/main/kotlin/io/github/hellocuriosity/Forgery.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public inline fun <reified T : Any> forgery(forger: ModelForge = ModelForge()):
77
}
88

99
@Deprecated(
10-
"forgeries is not used and will be removed in the future.",
10+
"forgeries is not used and will be removed in version 1.0.0.",
1111
ReplaceWith("forgeryList(forger: ModelForge = ModelForge(), size: Int = 10)")
1212
)
1313
public inline fun <reified T : Any> forgeries(forger: ModelForge = ModelForge(), size: Int = 10): Lazy<List<T>> = lazy {

forge-core/src/main/kotlin/io/github/hellocuriosity/ModelForgeKotlin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public fun <T : Any> ModelForge.addProvider(clazz: KClass<T>, provider: Provider
5454
public inline fun <reified T : Any> ModelForge.build(): T = build(T::class)
5555

5656
@Deprecated(
57-
"ModelForge.build is not used and will be removed in the future.",
57+
"ModelForge.build is not used and will be removed in version 1.0.0.",
5858
ReplaceWith("ModelForge.buildList(size: Int = 10)")
5959
)
6060
public inline fun <reified T : Any> ModelForge.build(size: Int = 10): List<T> = buildList(T::class, size)

0 commit comments

Comments
 (0)