Skip to content

Commit 0f223c9

Browse files
authored
Add 'Gravity Falls' faker (#1701)
1 parent 3676162 commit 0f223c9

File tree

8 files changed

+313
-0
lines changed

8 files changed

+313
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ The list below is not complete and shows only a part of available providers. To
356356
* Gender
357357
* Ghostbusters
358358
* Grateful Dead
359+
* Gravity Falls
359360
* Greek Philosopher
360361
* Hacker
361362
* Harry Potter

docs/documentation/providers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ Datafaker comes with a total of 253 data providers:
146146
| [Gender](https://javadoc.io/doc/net.datafaker/datafaker/latest/net/datafaker/providers/base/Gender.html) | This class is used to generate gender randomly. | Base | 0.8.0 |
147147
| [Ghostbusters](https://javadoc.io/doc/net.datafaker/datafaker/latest/net/datafaker/providers/entertainment/Ghostbusters.html) | | Entertainment | 1.5.0 |
148148
| [Grateful Dead](https://javadoc.io/doc/net.datafaker/datafaker/latest/net/datafaker/providers/entertainment/GratefulDead.html) | The Grateful Dead was an American rock band formed in 1965 in Palo Alto, California. | Entertainment | 1.4.0 |
149+
| [Gravity Falls](https://javadoc.io/doc/net.datafaker/datafaker/latest/net/datafaker/providers/entertainment/GravityFalls.html) | Gravity Falls is an American animated television series created by Alex Hirsch, and produced by Disney Television Animation for Disney Channel and Disney X | Entertainment | 2.5.3 |
149150
| [Greek Philosopher](https://javadoc.io/doc/net.datafaker/datafaker/latest/net/datafaker/providers/base/GreekPhilosopher.html) | | Base | 1.5.0 |
150151
| [Hacker](https://javadoc.io/doc/net.datafaker/datafaker/latest/net/datafaker/providers/base/Hacker.html) | | Base | 0.8.0 |
151152
| [Half Life](https://javadoc.io/doc/net.datafaker/datafaker/latest/net/datafaker/providers/videogame/HalfLife.html) | Half-Life is a series of first-person shooter games developed and published by Valve. | Videogame | 1.8.0 |

src/main/java/net/datafaker/providers/entertainment/EntertainmentProviders.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ default GratefulDead gratefulDead() {
119119
return getProvider(GratefulDead.class, GratefulDead::new);
120120
}
121121

122+
default GravityFalls gravityFalls() {
123+
return getProvider(GravityFalls.class, GravityFalls::new);
124+
}
125+
122126
default HarryPotter harryPotter() {
123127
return getProvider(HarryPotter.class, HarryPotter::new);
124128
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
package net.datafaker.providers.entertainment;
2+
3+
import net.datafaker.providers.base.AbstractProvider;
4+
5+
/**
6+
* Gravity Falls is an American animated television series created by Alex Hirsch,
7+
* and produced by Disney Television Animation for Disney Channel and Disney XD.
8+
*
9+
* @author vicky-iv
10+
* @since 2.5.3
11+
*/
12+
public class GravityFalls extends AbstractProvider<EntertainmentProviders> {
13+
14+
protected GravityFalls(EntertainmentProviders faker) {
15+
super(faker);
16+
}
17+
18+
public String character() {
19+
return resolve("gravity_falls.characters");
20+
}
21+
22+
public String location() {
23+
return resolve("gravity_falls.locations");
24+
}
25+
26+
public String creature() {
27+
return resolve("gravity_falls.creatures");
28+
}
29+
30+
public String artifact() {
31+
return resolve("gravity_falls.artifacts");
32+
}
33+
34+
public String quote() {
35+
return resolve("gravity_falls.quotes");
36+
}
37+
38+
public String mabelSweater() {
39+
return resolve("gravity_falls.mabel_sweaters");
40+
}
41+
42+
public String mysteryShackItem() {
43+
return resolve("gravity_falls.mystery_shack_items");
44+
}
45+
}

src/main/java/net/datafaker/service/files/EnFile.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ public String getPath() {
128128
"gender.yml",
129129
"ghostbusters.yml",
130130
"grateful_dead.yml",
131+
"gravity_falls.yml",
131132
"greek_philosophers.yml",
132133
"hacker.yml",
133134
"half_life.yml",

src/main/resources/META-INF/native-image/reachability-metadata.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12391,6 +12391,10 @@
1239112391
"name": "gratefulDead",
1239212392
"parameterTypes": []
1239312393
},
12394+
{
12395+
"name": "gravityFalls",
12396+
"parameterTypes": []
12397+
},
1239412398
{
1239512399
"name": "harryPotter",
1239612400
"parameterTypes": []
@@ -12932,6 +12936,20 @@
1293212936
}
1293312937
]
1293412938
},
12939+
{
12940+
"type": "net.datafaker.providers.entertainment.GravityFallsTest",
12941+
"allDeclaredFields": true,
12942+
"methods": [
12943+
{
12944+
"name": "<init>",
12945+
"parameterTypes": []
12946+
},
12947+
{
12948+
"name": "providerListTest",
12949+
"parameterTypes": []
12950+
}
12951+
]
12952+
},
1293512953
{
1293612954
"type": "net.datafaker.providers.entertainment.HarryPotter",
1293712955
"methods": [
@@ -19912,6 +19930,9 @@
1991219930
{
1991319931
"glob": "en/grateful_dead.yml"
1991419932
},
19933+
{
19934+
"glob": "en/gravity_falls.yml"
19935+
},
1991519936
{
1991619937
"glob": "en/greek_philosophers.yml"
1991719938
},
Lines changed: 217 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,217 @@
1+
en:
2+
faker:
3+
gravity_falls:
4+
characters:
5+
- "Dipper Pines"
6+
- "Mabel Pines"
7+
- "Grunkle Stan"
8+
- "Soos Ramirez"
9+
- "Wendy Corduroy"
10+
- "Bill Cipher"
11+
- "Ford Pines"
12+
- "Sherman Pines"
13+
- "Caryn Pines"
14+
- "Pacifica Northwest"
15+
- "Robbie Valentino"
16+
- "Gideon Gleeful"
17+
- "Lazy Susan"
18+
- "Old Man McGucket"
19+
- "Sheriff Blubs"
20+
- "Deputy Durland"
21+
- "Tambry"
22+
- "Thompson"
23+
- "Candy Chiu"
24+
- "Grenda"
25+
- "Waddles"
26+
- "Agent Powers"
27+
- "Agent Jeff Trigger"
28+
- "Abuelita"
29+
- "Granny Sweetkin"
30+
- "Blendin Blandin"
31+
locations:
32+
- "Mystery Shack"
33+
- "Gravity Falls Forest"
34+
- "Gravity Falls Lake"
35+
- "Downtown Gravity Falls"
36+
- "Gravity Falls Cemetery"
37+
- "Greasy’s Diner"
38+
- "Northwest Mansion"
39+
- "Gravity Falls High School"
40+
- "Dusk 2 Dawn"
41+
- "Tent of Telepathy"
42+
- "Lookout Point"
43+
- "The Shacktron"
44+
- "Globnar"
45+
- "Mystery Mountain"
46+
- "Upside-Down Town"
47+
- "Dimension O"
48+
- "Nightmare Realm"
49+
- "Bottomless pit"
50+
- "Fearamid"
51+
- "Mindscape"
52+
creatures:
53+
- "Gnomes"
54+
- "Manotaurs"
55+
- "Multi-Bear"
56+
- "Summerween Trickster"
57+
- "Time Baby"
58+
- "Shapeshifter"
59+
- "Gremloblin"
60+
- "Unicorns"
61+
- "Zombies"
62+
- "Eyeball Bats"
63+
- "Bill Cipher's Henchmaniacs"
64+
- "8 Ball"
65+
- "Kryptos"
66+
- "Zanthar"
67+
- "Teeth"
68+
- "Keyhole"
69+
- "Hectorgon"
70+
- "Amorphous Shape"
71+
- "Pyronica"
72+
- "Paci-Fire"
73+
- "Lava Lamp"
74+
- "Tony Three-Legs"
75+
- "Creature with 88 different faces"
76+
artifacts:
77+
- "Journal 1"
78+
- "Journal 2"
79+
- "Journal 3"
80+
- "Stan's Fez"
81+
- "The Memory Gun"
82+
- "The Mystery Shack Key"
83+
- "Waddles’ Sweater"
84+
- "The Infinite Pizza Box"
85+
- "The Shapeshifter’s Cage"
86+
- "Time Wish"
87+
- "The Portal Device"
88+
- "Gravity Falls Map"
89+
- "Bill Cipher Wheel"
90+
- "The Crystal Glasses"
91+
- "The Laptop"
92+
- "Uncle Ford’s Crossbow"
93+
- "The Axolotl Page"
94+
- "Dipper’s Hat"
95+
- "Mabel’s Sweater Collection"
96+
- "Stan’s Grappling Hook"
97+
- "Goldie"
98+
quotes:
99+
- "Remember: reality is an illusion, the universe is a hologram, buy gold, bye!"
100+
- "It’s funny how dumb you are!"
101+
- "The future is in the past! Onwards, Aoshima!"
102+
- "It’s not about the past, it’s about the future."
103+
- "When life gives you lemons, squeeze them in your enemies’ eyes!"
104+
- "I eat kids like you for breakfast!"
105+
- "Trust no one!"
106+
- "Get ‘em, Waddles!"
107+
- "Reality is an illusion, the universe is a hologram!"
108+
- "No one questions the sword!"
109+
- "My name is Mabel! It rhymes with table!"
110+
- "Look, I'm just a triangle trying to save you. From the delusions society gave you"
111+
mabel_sweaters:
112+
- "Shooting Star"
113+
- "Rainbow"
114+
- "Smiling Shooting Star"
115+
- "Comet with Rainbow Trail"
116+
- "Hearts"
117+
- "Llama"
118+
- "Winking Face"
119+
- "Cat Face"
120+
- "Donkey"
121+
- "Star with Face"
122+
- "Mabel Head"
123+
- "Pumpkin (Summerween)"
124+
- "Question Mark"
125+
- "Spray Can"
126+
- "Candy Cane (Christmas)"
127+
- "Grapes"
128+
- "Jellyfish"
129+
- "Dolphin Jumping Over Rainbow"
130+
- "Squirrel"
131+
- "Shooting Star in Space"
132+
- "Glitter Unicorn"
133+
- "Waddles the Pig"
134+
- "Light-Up Star (Glows)"
135+
- "Turtle"
136+
- "Shooting Heart"
137+
- "Music Notes"
138+
- "Peace Sign"
139+
- "Galaxy Print"
140+
- "Watermelon"
141+
- "Banana"
142+
- "Disco Ball"
143+
- "Rainbow Heart"
144+
- "Ice Cream Cone"
145+
- "Sunshine"
146+
- "Crescent Moon"
147+
- "Pine Tree"
148+
- "Rainbow with Clouds"
149+
- "Bear with Bowtie"
150+
- "Mermaid"
151+
- "Rainbow Unicorn"
152+
mystery_shack_items:
153+
- "Shrunken Heads"
154+
- "Jackalope Head"
155+
- "Unicorn Horn"
156+
- "Severed Wax Head of Larry King"
157+
- "Bigfoot Hair Sample"
158+
- "Mystery Shack Snow Globe"
159+
- "Shack Coffee Mug"
160+
- "Jar of eyeballs"
161+
- "The Gobblewonker Photo"
162+
- "Crystal Ball"
163+
- "Haunted Jukebox"
164+
- "Severed Hand in a Jar"
165+
- "Talking Skull"
166+
- "Fiji Mermaid"
167+
- "Wax Figure of Abraham Lincoln"
168+
- "Wax Figure of Coolio"
169+
- "Wax Figure of Genghis Khan"
170+
- "Wax Figure of Sherlock Holmes"
171+
- "Bill Cipher Plush"
172+
- "Gnomes in a Cage"
173+
- "Shacktron Remote"
174+
- "Tourist Map of Gravity Falls"
175+
- "Mystery Shack T-Shirt"
176+
- "Soos’s Mystery Shack Nametag"
177+
- "Stan’s Name Tag"
178+
- "Stan’s Fez"
179+
- "Stan Bucks Coupon Book"
180+
- "Box of Mystery Shack Souvenirs"
181+
- "Lucky Rabbit’s Foot"
182+
- "Shack Snack Bar"
183+
- "The Tooth of a Yeti"
184+
- "Mabel’s Glitter Cannon"
185+
- "Ticket Stub to Dusk 2 Dawn"
186+
- "Haunted Taxidermy Squirrel"
187+
- "Mystery Shack Brochure"
188+
- "Soos’s Toolbox"
189+
- "Gravity Falls Souvenir Keychain"
190+
- "Employee of the Month Plaque"
191+
- "Stan’s Secret Trapdoor Key"
192+
- "Miniature Totem Pole"
193+
- "Replica Jersey Devil Claw"
194+
- "Sock Puppet Theater"
195+
- "Mystery Shack Bumper Stickers"
196+
- "Stan’s Grappling Hook"
197+
- "Cursed Mirror"
198+
- "Monster Repellent Spray"
199+
- "Box of Stolen Pens"
200+
- "Tourist Feedback Box"
201+
- "Mystery Shack Register Bell"
202+
- "Haunted Portrait of Stan"
203+
- "Sascrotch"
204+
- "Grizzlycorn"
205+
- "World's Most Distracting Object"
206+
- "Pterosaur"
207+
- "Griffin"
208+
- "T-Rex head fossil"
209+
- "Ship in a bottle"
210+
- "Horse Riding a Horse"
211+
- "Beavercorn"
212+
- "Roostdeer"
213+
- "The Invisible Man"
214+
- "Stan Bobbleheads"
215+
- "Cuckoo clock"
216+
- "Puma/Panther shirts"
217+
- "Singin' Salmon"
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package net.datafaker.providers.entertainment;
2+
3+
4+
import java.util.Collection;
5+
import java.util.List;
6+
7+
class GravityFallsTest extends EntertainmentFakerTest {
8+
9+
private final GravityFalls gravityFalls = getFaker().gravityFalls();
10+
11+
@Override
12+
protected Collection<TestSpec> providerListTest() {
13+
return List.of(
14+
TestSpec.of(gravityFalls::character, "gravity_falls.characters"),
15+
TestSpec.of(gravityFalls::location, "gravity_falls.locations"),
16+
TestSpec.of(gravityFalls::creature, "gravity_falls.creatures"),
17+
TestSpec.of(gravityFalls::artifact, "gravity_falls.artifacts"),
18+
TestSpec.of(gravityFalls::quote, "gravity_falls.quotes"),
19+
TestSpec.of(gravityFalls::mabelSweater, "gravity_falls.mabel_sweaters"),
20+
TestSpec.of(gravityFalls::mysteryShackItem, "gravity_falls.mystery_shack_items")
21+
);
22+
}
23+
}

0 commit comments

Comments
 (0)