Skip to content

Commit 6c78891

Browse files
committed
Deprecate old property instead of removing it
1 parent 3ac401e commit 6c78891

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
44
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and the project versioning adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
66

7-
## [v1.6.0] - UNRELEASED
7+
## [v1.6.0] - 2020-12-30
88
### Added
99
- [#44](https://github.com/serpro69/kotlin-faker/pull/44) [core] Add support for random instance configuration.
1010
- [#47](https://github.com/serpro69/kotlin-faker/issues/47) [core] Publish release candidates to bintray

cli-bot/src/main/resources/META-INF/native-image/io.github.serpro69/cli-bot/reflect-config.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
{"name":"getBasketball","parameterTypes":[] },
2929
{"name":"getBeer","parameterTypes":[] },
3030
{"name":"getBigBangTheory","parameterTypes":[] },
31-
{"name":"getBlood","parameterTypes":[] },
32-
{"name":"getBojackHorseman","parameterTypes":[] },
31+
{"name":"getBlood","parameterTypes":[] },
32+
{"name":"getBojackHoreseman","parameterTypes":[] },
33+
{"name":"getBojackHorseman","parameterTypes":[] },
3334
{"name":"getBook","parameterTypes":[] },
3435
{"name":"getBossaNova","parameterTypes":[] },
3536
{"name":"getBreakingBad","parameterTypes":[] },

cli-bot/src/test/kotlin/io/github/serpro69/kfaker/app/cli/IntrospectorTest.kt

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class IntrospectorTest : DescribeSpec() {
3636
"BigBangTheory",
3737
"Blood",
3838
"BojackHorseman",
39+
"BojackHorseman",
3940
"Book",
4041
"BossaNova",
4142
"BreakingBad",

core/src/main/kotlin/io/github/serpro69/kfaker/Faker.kt

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ class Faker @JvmOverloads constructor(internal val fakerConfig: FakerConfig = Fa
3232
val beer: Beer
3333
val bigBangTheory: BigBangTheory
3434
val blood: Blood
35+
@Deprecated(message = "Fix #50 - typo. Will be removed in 1.7.0", level = DeprecationLevel.WARNING, replaceWith = ReplaceWith("bojackHorseman"))
36+
val bojackHoreseman: BojackHorseman
3537
val bojackHorseman: BojackHorseman
3638
val book: Book
3739
val bossaNova: BossaNova
@@ -202,6 +204,7 @@ class Faker @JvmOverloads constructor(internal val fakerConfig: FakerConfig = Fa
202204
beer = Beer(fakerService)
203205
bigBangTheory = BigBangTheory(fakerService)
204206
blood = Blood(fakerService)
207+
bojackHoreseman = BojackHorseman(fakerService)
205208
bojackHorseman = BojackHorseman(fakerService)
206209
book = Book(fakerService)
207210
bossaNova = BossaNova(fakerService)

0 commit comments

Comments
 (0)