Skip to content

Commit

Permalink
Merge pull request vadymmarkov#113 from mderuiter/feature/vehicle
Browse files Browse the repository at this point in the history
Feature/vehicle
  • Loading branch information
vadymmarkov authored May 9, 2019
2 parents 6de3007 + 635f215 commit 03f895a
Show file tree
Hide file tree
Showing 8 changed files with 409 additions and 1 deletion.
14 changes: 14 additions & 0 deletions Fakery.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@
D59B6D391D99C82E007CB072 /* NumberSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = D59B6CFC1D99C5FD007CB072 /* NumberSpec.swift */; };
D59B6D3A1D99C82E007CB072 /* PhoneNumberSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = D59B6CFD1D99C5FD007CB072 /* PhoneNumberSpec.swift */; };
D59B6D3B1D99C82E007CB072 /* TeamSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = D59B6CFE1D99C5FD007CB072 /* TeamSpec.swift */; };
F178E88722831FC400A166DC /* VehicleSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = F178E88522831FA600A166DC /* VehicleSpec.swift */; };
F178E88822831FC400A166DC /* VehicleSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = F178E88522831FA600A166DC /* VehicleSpec.swift */; };
F178E88A2283212B00A166DC /* Vehicle.swift in Sources */ = {isa = PBXBuildFile; fileRef = F178E8892283212B00A166DC /* Vehicle.swift */; };
F178E88B2283227C00A166DC /* Vehicle.swift in Sources */ = {isa = PBXBuildFile; fileRef = F178E8892283212B00A166DC /* Vehicle.swift */; };
F178E88C2283227D00A166DC /* Vehicle.swift in Sources */ = {isa = PBXBuildFile; fileRef = F178E8892283212B00A166DC /* Vehicle.swift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -272,6 +277,8 @@
D59B6D131D99C6C7007CB072 /* Info-Tests-Mac.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Info-Tests-Mac.plist"; sourceTree = "<group>"; };
D59B6D141D99C6C7007CB072 /* Info-Tests-tvOS.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Info-Tests-tvOS.plist"; sourceTree = "<group>"; };
D59B6D151D99C6C7007CB072 /* Info-tvOS.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Info-tvOS.plist"; sourceTree = "<group>"; };
F178E88522831FA600A166DC /* VehicleSpec.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VehicleSpec.swift; sourceTree = "<group>"; };
F178E8892283212B00A166DC /* Vehicle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Vehicle.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -423,6 +430,7 @@
BCFFA1741BF9F912005A3BC1 /* Team.swift */,
1057479C1F6FBF6C00154ECB /* Bank.swift */,
AC88DC0A21531E2E007198E6 /* Date.swift */,
F178E8892283212B00A166DC /* Vehicle.swift */,
);
path = Generators;
sourceTree = "<group>";
Expand Down Expand Up @@ -484,6 +492,7 @@
D59B6CFE1D99C5FD007CB072 /* TeamSpec.swift */,
105747991F6FBAA500154ECB /* BankSpec.swift */,
AC88DC0C215330A3007198E6 /* DateSpec.swift */,
F178E88522831FA600A166DC /* VehicleSpec.swift */,
);
path = Generators;
sourceTree = "<group>";
Expand Down Expand Up @@ -881,6 +890,7 @@
BC4477951BFA451C00E8FB15 /* Commerce.swift in Sources */,
BC44779E1BFA453C00E8FB15 /* Parser.swift in Sources */,
BC44779A1BFA452900E8FB15 /* Name.swift in Sources */,
F178E88B2283227C00A166DC /* Vehicle.swift in Sources */,
09F65D701CA30351006C87C5 /* Number.swift in Sources */,
BC4477921BFA451400E8FB15 /* Address.swift in Sources */,
BC4477971BFA452100E8FB15 /* Generator.swift in Sources */,
Expand Down Expand Up @@ -908,6 +918,7 @@
D59B6D391D99C82E007CB072 /* NumberSpec.swift in Sources */,
D59B6D341D99C82E007CB072 /* CompanySpec.swift in Sources */,
1057479B1F6FBAAA00154ECB /* BankSpec.swift in Sources */,
F178E88822831FC400A166DC /* VehicleSpec.swift in Sources */,
D59B6D311D99C82E007CB072 /* AppSpec.swift in Sources */,
D59B6D331D99C82E007CB072 /* CommerceSpec.swift in Sources */,
D59B6D2E1D99C82E007CB072 /* ParserSpec.swift in Sources */,
Expand All @@ -932,6 +943,7 @@
BCFFA1931BF9F912005A3BC1 /* Provider.swift in Sources */,
BCFFA1911BF9F912005A3BC1 /* Config.swift in Sources */,
BCFFA19C1BF9F912005A3BC1 /* Internet.swift in Sources */,
F178E88A2283212B00A166DC /* Vehicle.swift in Sources */,
09F65D6F1CA30351006C87C5 /* Number.swift in Sources */,
BCFFA19F1BF9F912005A3BC1 /* PhoneNumber.swift in Sources */,
BCFFA19B1BF9F912005A3BC1 /* Generator.swift in Sources */,
Expand Down Expand Up @@ -959,6 +971,7 @@
D59B6D291D99C82D007CB072 /* NumberSpec.swift in Sources */,
D59B6D241D99C82D007CB072 /* CompanySpec.swift in Sources */,
1057479A1F6FBAA500154ECB /* BankSpec.swift in Sources */,
F178E88722831FC400A166DC /* VehicleSpec.swift in Sources */,
D59B6D211D99C82D007CB072 /* AppSpec.swift in Sources */,
D59B6D231D99C82D007CB072 /* CommerceSpec.swift in Sources */,
D59B6D1E1D99C82D007CB072 /* ParserSpec.swift in Sources */,
Expand All @@ -983,6 +996,7 @@
D59B6CAE1D99C46C007CB072 /* Number.swift in Sources */,
D59B6CA21D99C460007CB072 /* Provider.swift in Sources */,
D59B6CA01D99C45A007CB072 /* Config.swift in Sources */,
F178E88C2283227D00A166DC /* Vehicle.swift in Sources */,
D59B6CB01D99C46C007CB072 /* Team.swift in Sources */,
D59B6CAB1D99C46C007CB072 /* Internet.swift in Sources */,
D59B6CAA1D99C46C007CB072 /* Generator.swift in Sources */,
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,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)
* [Vehicle](#vehicle)
* [Installation](#installation)
* [Contributing](#contributing)
* [Author](#author)
Expand Down Expand Up @@ -212,6 +213,14 @@ faker.bank.iban() // => "NL45BUNQ2209931378"
faker.bank.bban() //=> ABNA0136468471
```

### Vehicle

```swift
faker.vehicle.manufacture() //=> "Volkswagen"
faker.vehicle.make() //=> "BMW"
faker.vehicle.colors() //=> "Red"
```

## Installation

**Fakery** is available through [CocoaPods](http://cocoapods.org). To install
Expand Down
43 changes: 42 additions & 1 deletion Resources/Locales/en-TEST.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"secondary_address": ["Apt. ###"],
"postcode": ["#####-####"],
"postcode_by_state": {
"CA": "900##"
"CA": "900##"
},
"state": ["California"],
"state_abbr": ["CA"],
Expand Down Expand Up @@ -118,7 +118,48 @@
"ibanLetterCode": ["????"],
"ibanDigits": ["############"],
}
},
"vehicle": {
"manufacture": [
"Volkswagen"
],
"makes": [
"BMW"
],
"models_by_make": {
"BMW": [
"328i"
]
},
"colors": [
"Red"
],
"transmissions": [
"Automanual"
],
"drive_types": [
"4x2/2-wheel drive"
],
"fuel_types": [
"Compressed Natural Gas"
],
"styles": [
"XL"
],
"car_types": [
"Cargo Van"
],
"car_options": [
"A/C: Front"
],
"doors": [
1
],
"engine_sizes": [
4
]
}
}
}
}

Loading

0 comments on commit 03f895a

Please sign in to comment.