mockdata 1.0.1 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5dc41ec0f4e26127d72b8eabfe7a9c7d57ac897aa4e213ada21a3d6e27ea62f
4
- data.tar.gz: f96e3f533961668cae001ab5aab3689b7108d4eba721a11601732e1f8e8cefba
3
+ metadata.gz: ba1f4370422d620075e70b6a589488981f756ef5ce1c1ae27959b7b722fc0860
4
+ data.tar.gz: 3840c64215cea8d351619a4441794b6c2cc1edee367ff96a06ea2a3e7733426d
5
5
  SHA512:
6
- metadata.gz: 184c9477e8b52f4668b5aa537827e7a246a84cc8921624eed87923ebf72a6bb2b0d731e69bfd16c569a1a60fcc24b6dfd2aeee46dc96a211e19f0de185026a13
7
- data.tar.gz: 4235426c7776f208fca9309bd1442ecec470adff081f01dab72b0e632a01c118cb4c41f5f894dc5ef5f8fe0a351ff9aea9954fd40caf4f357268c2ab30b71d74
6
+ metadata.gz: ae72f552e442c8732f5e0a411cca266a23b42d03a28852747c611ba04d0a49d27fd36ce7cad3682932c119795e32af58762ebaaab0fb37241645a93f2940bb60
7
+ data.tar.gz: 651231c86710f94d6f3722c643e098a7ebc05e55f6fdd5a696b68b4c53c05d5734e1952e991bb317b487a52e0a3b474310cc3df3c2858fbddb7a17579378ec29
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mockdata (0.1.8)
4
+ mockdata (1.0.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- rake (12.3.2)
9
+ rake (13.0.1)
10
10
 
11
11
  PLATFORMS
12
12
  ruby
@@ -14,7 +14,7 @@ PLATFORMS
14
14
  DEPENDENCIES
15
15
  bundler (~> 2)
16
16
  mockdata!
17
- rake (~> 12)
17
+ rake (~> 13)
18
18
 
19
19
  BUNDLED WITH
20
- 2.0.1
20
+ 2.1.4
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
- [![Gem Version](https://badge.fury.io/rb/mockdata.svg)](https://badge.fury.io/rb/mockdata)
1
+ ![Gem Version](https://img.shields.io/gem/v/mockdata.svg) ![License](https://img.shields.io/github/license/evaneykelen/mockdata.svg)
2
+ ![Last Commit](https://img.shields.io/github/last-commit/evaneykelen/mockdata.svg)
2
3
 
3
4
  ### Random data generator for test purposes
4
5
 
@@ -24,8 +25,10 @@ _Note: All dummy data is work-place safe (IMO) but use at your own risk._
24
25
  | Locations | Islands | 50 |
25
26
  | Locations | Airports | 99 |
26
27
  | | | |
28
+ | Names | Car brands names | 51 |
27
29
  | Names | Company names | 69 |
28
30
  | Names | Business types | 95 |
31
+ | Names | File extensions | 83 |
29
32
  | Names | Project names | 37 |
30
33
  | Names | Hotel names | 60 |
31
34
  | Names | Occupations | 74 |
@@ -80,10 +83,16 @@ _Note: All dummy data is work-place safe (IMO) but use at your own risk._
80
83
 
81
84
  #### Names
82
85
 
86
+ `Mockdata::Names.car_brand => "Tesla"`
87
+
83
88
  `Mockdata::Names.company => "Purplegale Limited"`
84
89
 
85
90
  `Mockdata::Names.business_type => "Telephone Apparatus Manufacturing`
86
91
 
92
+ `Mockdata::Names.file_name => "blue-foal.pdf"`
93
+
94
+ `Mockdata::Names.file_extension => "xml`
95
+
87
96
  `Mockdata::Names.project => "Brave Neutron"`
88
97
 
89
98
  `Mockdata::Names.hotel => "Farmhouse Hotel"`
@@ -172,12 +181,10 @@ MIT (see LICENSE.txt)
172
181
  - [ ] Phone numbers
173
182
  - [ ] Bank numbers
174
183
  - [ ] Credit card numbers (fake)
175
- - [ ] Car brands
176
184
  - [ ] Flight numbers
177
185
  - [ ] Weather data
178
186
  - [ ] News
179
187
  - [ ] Amounts/prices
180
188
  - [ ] Dates/ranges
181
- - [ ] File extensions/icons
182
189
  - [ ] UTF-8 test strings
183
190
  - [ ] Currencies
@@ -2,16 +2,25 @@ module Mockdata
2
2
  class Names
3
3
 
4
4
  # Contact erik.van.eykelen@bitgain.com if you think I violate a trademark
5
+
6
+ CAR_BRANDS = ["Audi", "Baic", "Baojun", "BMW", "Buick", "BYD", "Cadillac", "Changan", "Chery", "Chevrolet", "Citroen", "Dacia", "Dodge", "Dongfeng", "Fiat", "Ford", "Foton", "Geely", "GMC", "Haval", "Honda", "Hyundai", "Isuzu", "JAC", "Jeep", "Kia", "Lada", "Land Rover", "Lexus", "Maruti", "Mazda", "Mercedes", "Mini", "Mitsubishi", "Nissan", "Opel", "Peugeot", "Ram", "Renault", "Roewe", "Saipa", "Seat", "Skoda", "Subaru", "Suzuki", "Tesla", "Toyota", "Trumpchi", "Volkswagen", "Volvo", "Wuling" ].freeze
7
+
5
8
  COMPANY_NAMES = [ "Aceredcode", "Babbletweet BV", "Bamhouse Holding", "Bitoptic, Inc.", "Blackchilla Works", "Bluelope.com", "Brightsquawk AS", "Bubblememo Ltd", "Buzzarray Ltd", "Canware", "Codecode Limited", "Conejikix GmbH", "Doncone Holding", "Donstrip", "Drip-taxon SA", "Duoin Limited", "Dynacable Holding", "Fixfind Limited", "Flipgram Corporation", "Freeing GmbH", "Freshcon Limited", "Freshhigh SA", "Ganjaice Ltd", "Geotex", "Gigasink SA", "Goodjob BV", "Icezap SA", "Jayholding", "Joycon AS", "Joytam Limited", "Kantone AS", "Kintechnology Holding", "Lagolux", "Lamace Limited", "Lamuniway Limited", "Latnix Holding", "Mediafix Limited", "Medialane GmbH", "Mednamfax SA", "Newelectrics", "O-zoom Holding", "Objectfiber GmbH", "Ontotax SA", "Physzim VOF", "Planetware Ltd", "Plexcorporation", "Purplegale Limited", "Ran-core GmbH", "Riffpoint Corp", "Rontom GmbH", "Round-lux", "Roundtex SA", "Sailware", "Snapath, Inc.", "Stanelectrics Ltd", "Streettouch", "Superquote Holding", "Tampace Holding", "Tamphouse Holding", "Tech-lab GmbH", "Techelectrics", "Temphouse Holding", "Unabiotom Ltd", "Unacity Holding", "Vaiacom Limited", "Volhex Holding", "Warehex Works", "Yellowolf.com", "Zimgeokix" ].freeze
6
9
 
7
10
  BUSINESS_TYPES = [ "Adhesive Manufacturing", "Agricultural Implement Manufacturing", "All Other Fabricated Metal Product Manufacturing", "All Other Waste Management Services", "Beer and Ale Merchant Wholesalers", "Book Stores and News Dealers", "Carpet and Upholstery Cleaning Services", "Cemeteries and Crematories", "Citrus (except Orange) Groves", "Clothing Accessories Stores", "Coal and Other Mineral and Ore Merchant Wholesalers", "Commercial and Service Industry Machinery Manufacturing", "Computer Training", "Construction Machinery Manufacturing", "Couriers and Express Delivery Services", "Dairy Product (except Dried or Canned) Merchant Wholesalers", "Distilleries", "Drafting Services", "Electrical Contractors and Other Wiring Installation Contractors", "Environmental Consulting Services", "Family Clothing Stores", "Finish Carpentry Contractors", "Fishing", "Footwear and Leather Goods Repair", "Fresh Fruit and Vegetable Merchant Wholesalers", "Fruit and Vegetable Canning, Pickling, and Drying", "General Freight Trucking, Local", "General Line Grocery Merchant Wholesalers", "Glass and Glazing Contractors", "Gypsum Product Manufacturing", "Hardware Merchant Wholesalers", "Hardware Stores", "Hay Farming", "Home and Garden Equipment and Appliance Repair and Maintenance", "Home Furnishing Merchant Wholesalers", "Interior Design Services", "International Affairs", "Investment Advice", "Iron and Steel Mills and Ferroalloy Manufacturing", "Labor Unions and Similar Labor Organizations", "Laminated Plastics Plate, Sheet (except Packaging), and Shape Manufacturing", "Language Schools", "Legislative Bodies", "Limousine Service", "Machine Shops", "Manufactured (Mobile) Home Dealers", "Meat Markets", "Medical and Diagnostic Laboratories", "Metal Valve Manufacturing", "Motor Vehicle Electrical and Electronic Equipment Manufacturing", "Motor Vehicle Gasoline Engine and Engine Parts Manufacturing", "Motor Vehicle Parts (Used) Merchant Wholesalers", "Narrow Fabric Mills and Schiffli Machine Embroidery", "Nonferrous Metal (except Aluminum) Smelting and Refining", "Office Machinery and Equipment Rental and Leasing", "Offices of Physical, Occupational and Speech Therapists, and Audiologists", "Other Building Material Dealers", "Other Clothing Stores", "Other Farm Product Raw Material Merchant Wholesalers", "Other Legal Services", "Other Miscellaneous Durable Goods Merchant Wholesalers", "Other Motor Vehicle Parts Manufacturing", "Other Petroleum and Coal Products Manufacturing", "Other Similar Organizations (except Business, Professional, Labor, and Political Organizations)", "Other Sound Recording Industries", "Other Specialty Food Stores", "Other Transportation Equipment Manufacturing", "Other Traveler Accommodation", "Other Warehousing and Storage", "Paint and Coating Manufacturing", "Petroleum and Petroleum Products Merchant Wholesalers (except Bulk Stations and Terminals)", "Plastics Bottle Manufacturing", "Plastics Packaging Materials and Unlaminated Film and Sheet Manufacturing", "Portfolio Management", "Professional Organizations", "Promoters of Performing Arts, Sports, and Similar Events with Facilities", "Public Finance Activities", "Radio and Television Broadcasting and Wireless Communications Equipment Manufacturing", "Regulation of Agricultural Marketing and Commodities", "Research and Development in the Physical, Engineering, and Life Sciences", "Rooming and Boarding Houses", "Shoe Stores", "Sign Manufacturing", "Soap and Cleaning Compound Manufacturing", "Stationery and Office Supplies Merchant Wholesalers", "Telephone Apparatus Manufacturing", "Timber Tract Operations", "Tire and Tube Merchant Wholesalers", "Tobacco Stemming and Redrying", "Transportation Equipment and Supplies (except Motor Vehicle) Merchant Wholesalers", "Truck, Utility Trailer, and RV (Recreational Vehicle) Rental and Leasing", "Turned Product and Screw, Nut, and Bolt Manufacturing", "Vending Machine Operators", "Veneer, Plywood, and Engineered Wood Product Manufacturing", "Waste Collection" ].freeze
8
11
 
12
+ FILE_EXTENSIONS = [ "7z", "ai", "aif", "apk", "arj", "avi", "bak", "bat", "bin", "bin", "bmp", "cda", "css", "csv", "dat", "db", "dbf", "deb", "dmg", "doc", "docx", "exe", "fnt", "fon", "gif", "h264", "html", "ico", "iso", "jpeg", "jpg", "js", "key", "log", "m4v", "mdb", "mid", "midi", "mov", "mp3", "mp4", "mpa", "mpeg", "mpg", "odp", "ods", "odt", "ogg", "otf", "pdf", "php", "pkg", "pl", "png", "pps", "ppt", "pptx", "ps", "psd", "py", "rar", "rpm", "rtf", "sql", "svg", "tar", "tar.gz", "tif", "tiff", "tmp", "ttf", "txt", "wav", "wma", "wmv", "wpl", "wsf", "xlr", "xls", "xlsx", "xml", "z", "zip" ]
13
+
9
14
  PROJECT_NAMES = [ "Anaconda Warp", "Bleeding Moon", "Brave Neutron", "Steep Curb", "Cool Artificial", "Dead Crystal", "Electric Spark", "Front Street", "Frozen Sunshine", "Furious Skunk", "Global Yard", "Green Emerald", "Gray Vulture", "Insane Steel", "Ivory Tuba", "Lucky Morning", "Moving Vegetable", "Navy Mountain", "Mars Mission", "Next Square", "Maroon Nitrogen", "Northernmost Galaxy", "Olive Monkey", "Permanent Albatross", "Pure Spider", "Purple Panther", "Ice Ruby", "Remote Cloud", "Running Creek", "Rusty Beacon", "Serious Summer", "Sienna Compass", "Stony Sound", "Straw Plastic", "Swift Burst", "Tainted Torpedo", "Tasty Comic" ].freeze
10
15
 
11
16
  HOTEL_NAMES = [ "Abundance Resort & Spa", "Apex Resort", "Aquamarine Peak Hotel & Spa", "Blizzard Hotel", "Citadel Hotel", "Cosmos Hotel & Spa", "Countryside Hotel & Spa", "Crown Manor Hotel", "Delight Resort & Spa", "Double Expanse Hotel & Spa", "Double Refuge Resort & Spa", "Elite Jewel Hotel", "Elite Sanctuary Hotel & Spa", "Elite Shore Hotel", "Elysium Resort", "Emerald Harbor Resort & Spa", "Enterprise Hotel", "Everland Resort & Spa", "Farmhouse Hotel", "Golden Fjord Hotel", "Grand Hotel", "Grand Resort & Spa", "Grand Tower Resort & Spa", "Iceberg Resort", "King's Island Hotel & Spa", "King's Palms Resort & Spa", "King's Pier Hotel & Spa", "Lunar Bay Resort", "Majestic Sanctum Resort & Spa", "Malachite Cove Resort", "Modest Residence Resort & Spa", "Noble Nebula Resort", "Oriental Resort", "Pleasant Spire Resort", "Prism Resort", "Private Oak Hotel", "Quiet Arc Hotel", "Remote Brewery Resort", "Remote Fjord Resort", "Riverside Cove Resort & Spa", "Rose Thicket Resort & Spa", "Sapphire Hotel & Spa", "Sapphire Resort", "Secret Park Hotel & Spa", "Serene Seashore Resort & Spa", "Silver Echo Hotel", "Slumber Resort & Spa", "Smile Resort", "Spring Grotto Hotel & Spa", "Spring Petal Resort", "Sunset Ocean Hotel", "Sunset Universe Resort", "Supreme Emperor Hotel", "Supreme Seashore Hotel & Spa", "Traveller Resort & Spa", "Triumph Hotel & Spa", "Voyager Hotel", "Western Cosmos Hotel", "White Shore Resort & Spa", "Yesteryear Resort" ].freeze
12
17
 
13
18
  OCCUPATIONS = [ "Airport Tower Controller", "Anger Control Counselor", "Arch-Support Maker", "Assault Boat Coxswain", "Assistant Paralegal", "Audio Recording Engineer", "Bike Mechanic", "Blast Setter", "Building Architect", "Cantor", "Car Wash Attendant", "Cargo Router", "Certified Dental Assistant", "Certified Pharmacist Assistant", "Chemical Engineering Technician", "Climatology Professor", "Computer Repair Technician", "Computer Systems Analyst", "Cosmetology Professor", "Dairy Equipment Mechanic", "Deep Tissue Massage Therapist", "Direct Mail Clerk", "Efficiency Engineer", "Engraver", "Enterprise Systems Engineer", "Epidemiology Investigator", "Extension Service Advisor", "Farrowing Manager", "Fighting Vehicle Infantryman", "Film Printer", "Floral Artist", "Forest Pathology Professor", "Forest Resources Professor", "Glass Artist", "Healthcare Social Worker", "Highway Engineer", "Histologic Technician", "Honest John Rocket Crew Member", "Hotel Registration Clerk", "Journey Level Plasterer", "Leather Lacer", "Library and Information Science Professor", "Liquid Waste Treatment Plant Operator", "Loan Teller", "Marquetry Worker", "Missile Technician", "Motor Winder", "Music Therapist", "Natural Resources Technician", "Network Intelligence Analyst Superintendent", "Non Destructive Testing Underwater Welder", "Outboard System Operator", "Piccoloist", "Pickle House Operator", "Plating Machine Operator", "Postal Service Window Clerk", "Postsecondary Career and Technical Education Teacher", "Railroad Car Cleaner", "Ramp Service Agent", "Records Management Director", "Rehabilitation Services Aide", "Relationship Counselor", "Rustic Terrazzo Setter", "Screw Machine Operator", "Sonar Watchstander", "Specifications Writer", "Student Success Counselor", "Submarine Vertical Launch System Tube Maintenance Technician", "Tenon Operator", "Timber Management Specialist", "Trial Attorney", "Voice Writing Reporter", "Wardrobe Dresser", "Winder Operator" ].freeze
14
19
 
20
+ def self.car_brand
21
+ CAR_BRANDS.sample
22
+ end
23
+
15
24
  def self.company
16
25
  COMPANY_NAMES.sample
17
26
  end
@@ -20,6 +29,14 @@ module Mockdata
20
29
  BUSINESS_TYPES.sample
21
30
  end
22
31
 
32
+ def self.file_name
33
+ "#{Mockdata::Words.one}-#{Mockdata::Words.one}.#{self.file_extension}".downcase
34
+ end
35
+
36
+ def self.file_extension
37
+ FILE_EXTENSIONS.sample
38
+ end
39
+
23
40
  def self.project
24
41
  PROJECT_NAMES.sample
25
42
  end
@@ -54,7 +54,7 @@ module Mockdata
54
54
  end
55
55
 
56
56
  def self.email_address
57
- "#{first_name}.#{last_name}@example.com".downcase
57
+ email_address_based_on_first_and_last_name(first_name, last_name)
58
58
  end
59
59
 
60
60
  def self.email_address_based_on_first_and_last_name(first_name, last_name)
@@ -1,3 +1,3 @@
1
1
  module Mockdata
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.6"
3
3
  end
@@ -20,5 +20,5 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.add_development_dependency "bundler", "~> 2"
23
- spec.add_development_dependency "rake", "~> 12"
23
+ spec.add_development_dependency "rake", "~> 13"
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mockdata
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik van Eykelen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-16 00:00:00.000000000 Z
11
+ date: 2020-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '12'
33
+ version: '13'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '12'
40
+ version: '13'
41
41
  description: Generates random first and last names, company names, numbers, time-zones
42
42
  and words
43
43
  email: