Skip to content

Commit

Permalink
Merge pull request #115 from felipeflorencio/feature/car
Browse files Browse the repository at this point in the history
Added the fake data to generate car brands names
  • Loading branch information
vadymmarkov authored May 13, 2019
2 parents e3ff228 + 38d4897 commit 87c2401
Show file tree
Hide file tree
Showing 7 changed files with 483 additions and 152 deletions.
16 changes: 15 additions & 1 deletion Fakery.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
20580DE22283222C00D46446 /* Cat.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20580DE02283222C00D46446 /* Cat.swift */; };
20580DE32283222C00D46446 /* Cat.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20580DE02283222C00D46446 /* Cat.swift */; };
2A17AB0A1E4E45A600011BC6 /* tr-TR.json in Resources */ = {isa = PBXBuildFile; fileRef = 2A17AB091E4E45A600011BC6 /* tr-TR.json */; };
8C12478822832171009400B4 /* CarSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8C12478722832171009400B4 /* CarSpec.swift */; };
8C12478922832171009400B4 /* CarSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8C12478722832171009400B4 /* CarSpec.swift */; };
8C12478D2283226E009400B4 /* Car.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8C12478A228321C4009400B4 /* Car.swift */; };
8C12478E2283226F009400B4 /* Car.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8C12478A228321C4009400B4 /* Car.swift */; };
8C12478F2283226F009400B4 /* Car.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8C12478A228321C4009400B4 /* Car.swift */; };
AC8156A92153C27E00D779EF /* Date.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC88DC0A21531E2E007198E6 /* Date.swift */; };
AC8156AA2153C27F00D779EF /* Date.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC88DC0A21531E2E007198E6 /* Date.swift */; };
AC88DC0B21531E2E007198E6 /* Date.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC88DC0A21531E2E007198E6 /* Date.swift */; };
Expand Down Expand Up @@ -232,6 +237,8 @@
20580DDD2283205E00D46446 /* CatSpec.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CatSpec.swift; sourceTree = "<group>"; };
20580DE02283222C00D46446 /* Cat.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Cat.swift; sourceTree = "<group>"; };
2A17AB091E4E45A600011BC6 /* tr-TR.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "tr-TR.json"; sourceTree = "<group>"; };
8C12478722832171009400B4 /* CarSpec.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CarSpec.swift; sourceTree = "<group>"; };
8C12478A228321C4009400B4 /* Car.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Car.swift; sourceTree = "<group>"; };
AC88DC0A21531E2E007198E6 /* Date.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Date.swift; sourceTree = "<group>"; };
AC88DC0C215330A3007198E6 /* DateSpec.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DateSpec.swift; sourceTree = "<group>"; };
BC827FA81BFA3CE1005F09A4 /* Fakery.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Fakery.framework; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -461,8 +468,9 @@
F7A019922283212000B92D39 /* Ham.swift */,
1057479C1F6FBF6C00154ECB /* Bank.swift */,
AC88DC0A21531E2E007198E6 /* Date.swift */,
8C12478A228321C4009400B4 /* Car.swift */,
F178E8892283212B00A166DC /* Vehicle.swift */,
05F367CB2283222B00AB2165 /* ProgrammingLanguage.swift */,
F178E8892283212B00A166DC /* Vehicle.swift */
);
path = Generators;
sourceTree = "<group>";
Expand Down Expand Up @@ -527,6 +535,7 @@
F7A0198F22831FCB00B92D39 /* HamSpec.swift */,
105747991F6FBAA500154ECB /* BankSpec.swift */,
AC88DC0C215330A3007198E6 /* DateSpec.swift */,
8C12478722832171009400B4 /* CarSpec.swift */,
05F367C722831FE900AB2165 /* ProgrammingLanguageSpec.swift */,
F178E88522831FA600A166DC /* VehicleSpec.swift */
);
Expand Down Expand Up @@ -920,6 +929,7 @@
files = (
BC44779C1BFA452E00E8FB15 /* Team.swift in Sources */,
BC44779B1BFA452C00E8FB15 /* PhoneNumber.swift in Sources */,
8C12478E2283226F009400B4 /* Car.swift in Sources */,
BC4477931BFA451600E8FB15 /* App.swift in Sources */,
BC4477941BFA451900E8FB15 /* Business.swift in Sources */,
BC4477981BFA452400E8FB15 /* Internet.swift in Sources */,
Expand Down Expand Up @@ -970,6 +980,7 @@
F7A019912283206600B92D39 /* HamSpec.swift in Sources */,
D59B6D3A1D99C82E007CB072 /* PhoneNumberSpec.swift in Sources */,
D59B6D2C1D99C82E007CB072 /* ConfigSpec.swift in Sources */,
8C12478922832171009400B4 /* CarSpec.swift in Sources */,
D59B6D381D99C82E007CB072 /* NameSpec.swift in Sources */,
D59B6D2F1D99C82E007CB072 /* ProviderSpec.swift in Sources */,
);
Expand All @@ -981,6 +992,7 @@
files = (
BCFFA1961BF9F912005A3BC1 /* Address.swift in Sources */,
BCFFA19D1BF9F912005A3BC1 /* Lorem.swift in Sources */,
8C12478D2283226E009400B4 /* Car.swift in Sources */,
BCFFA1951BF9F912005A3BC1 /* Faker.swift in Sources */,
BCFFA1921BF9F912005A3BC1 /* Parser.swift in Sources */,
BCFFA19A1BF9F912005A3BC1 /* Company.swift in Sources */,
Expand Down Expand Up @@ -1031,6 +1043,7 @@
F7A019902283206600B92D39 /* HamSpec.swift in Sources */,
D59B6D2A1D99C82D007CB072 /* PhoneNumberSpec.swift in Sources */,
D59B6D1C1D99C82D007CB072 /* ConfigSpec.swift in Sources */,
8C12478822832171009400B4 /* CarSpec.swift in Sources */,
D59B6D281D99C82D007CB072 /* NameSpec.swift in Sources */,
D59B6D1F1D99C82D007CB072 /* ProviderSpec.swift in Sources */,
);
Expand All @@ -1042,6 +1055,7 @@
files = (
D59B6CA51D99C46C007CB072 /* Address.swift in Sources */,
D59B6CAC1D99C46C007CB072 /* Lorem.swift in Sources */,
8C12478F2283226F009400B4 /* Car.swift in Sources */,
D59B6CA41D99C467007CB072 /* Faker.swift in Sources */,
D59B6CA11D99C45D007CB072 /* Parser.swift in Sources */,
D59B6CA91D99C46C007CB072 /* Company.swift in Sources */,
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ It's useful in all the cases when you need to use some dummy data for testing, p
* [Phone number](#phone-number)
* [Team](#team)
* [Bank](#bank)
* [Car](#car)
* [Programming language](#programming-language)
* [Vehicle](#vehicle)
* [Ham](#ham)
Expand Down Expand Up @@ -234,6 +235,12 @@ faker.bank.iban() // => "NL45BUNQ2209931378"
faker.bank.bban() //=> ABNA0136468471
```

### Car

```swift
faker.car.brand() //=> "BMW"
```

### Programming language

```swift
Expand Down
Loading

0 comments on commit 87c2401

Please sign in to comment.