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

Update existing dict files #176

Merged
merged 3 commits into from
Jan 22, 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
39 changes: 39 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
.[1.14.0] - UNRELEASED
[%collapsible]
====
[discrete]
=== Added

* https://github.com/serpro69/kotlin-faker/pull/176[#176] [core] Update dictionary files, including:
** Data and functions in existing data providers
** Updates to existing localized dictionaries

++++
<details><summary><h3>New Data Providers</h3></summary>
<p>
++++
* `airport`
* `cowboy_bebop`
* `spongebob`
++++
</p>
</details>
++++

[discrete]
=== Changed

* ...

[discrete]
=== Fixed

* ...

[discrete]
=== Other

* ...

====

.[1.13.0] - 2022-12-18
[%collapsible]
====
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@
{
"name": "faker.com.fasterxml.jackson.databind.deser.ValueInstantiators[]"
},
{
"name": "faker.com.fasterxml.jackson.databind.ext.Java7SupportImpl",
"methods": [
{
"name": "<init>",
"parameterTypes": []
}
]
},
{
"name": "faker.com.fasterxml.jackson.databind.ser.Serializers[]"
},
Expand All @@ -31,6 +22,10 @@
"name": "getAdjective",
"parameterTypes": []
},
{
"name": "getAirport",
"parameterTypes": []
},
{
"name": "getAncient",
"parameterTypes": []
Expand Down Expand Up @@ -195,6 +190,10 @@
"name": "getCosmere",
"parameterTypes": []
},
{
"name": "getCowboyBebop",
"parameterTypes": []
},
{
"name": "getCrossfit",
"parameterTypes": []
Expand Down Expand Up @@ -671,6 +670,10 @@
"name": "getSpace",
"parameterTypes": []
},
{
"name": "getSpongebob",
"parameterTypes": []
},
{
"name": "getSport",
"parameterTypes": []
Expand Down Expand Up @@ -905,6 +908,9 @@
}
]
},
{
"name": "io.github.serpro69.kfaker.provider.Airport"
},
{
"name": "io.github.serpro69.kfaker.provider.Ancient",
"methods": [
Expand Down Expand Up @@ -1680,6 +1686,27 @@
{
"name": "io.github.serpro69.kfaker.provider.CountryCode"
},
{
"name": "io.github.serpro69.kfaker.provider.CowboyBebop",
"methods": [
{
"name": "character",
"parameterTypes": []
},
{
"name": "episode",
"parameterTypes": []
},
{
"name": "quote",
"parameterTypes": []
},
{
"name": "song",
"parameterTypes": []
}
]
},
{
"name": "io.github.serpro69.kfaker.provider.Crossfit",
"methods": [
Expand Down Expand Up @@ -2304,6 +2331,9 @@
}
]
},
{
"name": "io.github.serpro69.kfaker.provider.EuropeanUnion"
},
{
"name": "io.github.serpro69.kfaker.provider.FakeDataProvider"
},
Expand Down Expand Up @@ -3629,9 +3659,6 @@
}
]
},
{
"name": "io.github.serpro69.kfaker.provider.RandomProvider"
},
{
"name": "io.github.serpro69.kfaker.provider.Relationship",
"methods": [
Expand Down Expand Up @@ -4053,6 +4080,23 @@
}
]
},
{
"name": "io.github.serpro69.kfaker.provider.Spongebob",
"methods": [
{
"name": "characters",
"parameterTypes": []
},
{
"name": "episodes",
"parameterTypes": []
},
{
"name": "quotes",
"parameterTypes": []
}
]
},
{
"name": "io.github.serpro69.kfaker.provider.Sport",
"methods": [
Expand Down Expand Up @@ -4705,6 +4749,9 @@
}
]
},
{
"name": "io.github.serpro69.kfaker.provider.UnitedStates"
},
{
"name": "io.github.serpro69.kfaker.provider.University",
"methods": [
Expand Down Expand Up @@ -5038,6 +5085,9 @@
}
]
},
{
"name": "io.github.serpro69.kfaker.provider.misc.RandomClassProvider"
},
{
"name": "io.github.serpro69.kfaker.provider.misc.StringProvider"
},
Expand All @@ -5058,15 +5108,6 @@
{
"name": "java.lang.String"
},
{
"name": "java.lang.System",
"methods": [
{
"name": "console",
"parameterTypes": []
}
]
},
{
"name": "java.nio.file.Path"
},
Expand All @@ -5085,9 +5126,6 @@
{
"name": "java.sql.Connection"
},
{
"name": "java.sql.Date"
},
{
"name": "java.sql.Driver"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
{"pattern":"\\Qkotlin/kotlin.kotlin_builtins\\E"},
{"pattern":"\\Qkotlin/ranges/ranges.kotlin_builtins\\E"},
{"pattern":"\\Qkotlin/reflect/reflect.kotlin_builtins\\E"},
{"pattern":"\\Qsun/text/resources/LineBreakIteratorData\\E"},
{"pattern": ".*/*.json$"}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class IntrospectorTest : DescribeSpec() {
val expectedProviders = listOf(
"Address",
"Adjective",
"Airport",
"Ancient",
"Animal",
"App",
Expand Down Expand Up @@ -65,6 +66,7 @@ class IntrospectorTest : DescribeSpec() {
"Construction",
"Control",
"Cosmere",
"CowboyBebop",
"Crossfit",
"CryptographyProvider",
"CryptoCoin",
Expand Down Expand Up @@ -184,6 +186,7 @@ class IntrospectorTest : DescribeSpec() {
"SonicTheHedgehog",
"SouthPark",
"Space",
"Spongebob",
"Sport",
"StarTrek",
"StarWars",
Expand Down Expand Up @@ -237,6 +240,7 @@ class IntrospectorTest : DescribeSpec() {
val expectedProviders = listOf(
"address",
"adjective",
"airport",
"ancient",
"animal",
"app",
Expand Down Expand Up @@ -278,6 +282,7 @@ class IntrospectorTest : DescribeSpec() {
"construction",
"control",
"cosmere",
"cowboyBebop",
"crossfit",
"crypto",
"cryptoCoin",
Expand Down Expand Up @@ -397,6 +402,7 @@ class IntrospectorTest : DescribeSpec() {
"sonicTheHedgehog",
"southPark",
"space",
"spongebob",
"sport",
"starTrek",
"starWars",
Expand Down
3 changes: 3 additions & 0 deletions core/src/main/kotlin/io/github/serpro69/kfaker/Faker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class Faker @JvmOverloads constructor(internal val config: FakerConfig = fakerCo
// dictionary-based providers
val address: Address by lazy { Address(fakerService) }
val adjective: Adjective by lazy { Adjective(fakerService) }
val airport: Airport by lazy { Airport(fakerService) }
val ancient: Ancient by lazy { Ancient(fakerService) }
val animal: Animal by lazy { Animal(fakerService) }
val app: App by lazy { App(fakerService) }
Expand Down Expand Up @@ -80,6 +81,7 @@ class Faker @JvmOverloads constructor(internal val config: FakerConfig = fakerCo
val construction: Construction by lazy { Construction(fakerService) }
val control: Control by lazy { Control(fakerService) }
val cosmere: Cosmere by lazy { Cosmere(fakerService) }
val cowboyBebop: CowboyBebop by lazy { CowboyBebop(fakerService) }
val crossfit: Crossfit by lazy { Crossfit(fakerService) }
val cryptoCoin: CryptoCoin by lazy { CryptoCoin(fakerService) }
val cultureSeries: CultureSeries by lazy { CultureSeries(fakerService) }
Expand Down Expand Up @@ -201,6 +203,7 @@ class Faker @JvmOverloads constructor(internal val config: FakerConfig = fakerCo
// val source: Source by lazy {Source(fakerService }
val southPark: SouthPark by lazy { SouthPark(fakerService) }
val space: Space by lazy { Space(fakerService) }
val spongebob: Spongebob by lazy { Spongebob(fakerService) }
val sport: Sport by lazy { Sport(fakerService) }
val stargate: Stargate by lazy { Stargate(fakerService) }
val starTrek: StarTrek by lazy { StarTrek(fakerService) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ internal enum class YamlCategory : Category {
// Rest of providers
ADDRESS,
ADJECTIVE,
AIRPORT,
ANCIENT,
APP,
APPLIANCE,
Expand Down Expand Up @@ -53,6 +54,7 @@ internal enum class YamlCategory : Category {
CONAN,
CONSTRUCTION,
COSMERE,
COWBOY_BEBOP,
COUNTRY_CODE,
CREATURE,
CROSSFIT,
Expand Down Expand Up @@ -160,6 +162,7 @@ internal enum class YamlCategory : Category {
SOURCE,
SOUTH_PARK,
SPACE,
SPONGEBOB,
SPORT,
STARGATE,
STAR_TREK,
Expand Down
Loading