{"id":15793226,"url":"https://github.com/evaneykelen/mockdata","last_synced_at":"2025-03-14T15:31:08.469Z","repository":{"id":1321905,"uuid":"1266958","full_name":"evaneykelen/mockdata","owner":"evaneykelen","description":"Random data generator for test purposes","archived":false,"fork":false,"pushed_at":"2022-03-23T20:06:40.000Z","size":76,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-03-15T07:23:33.400Z","etag":null,"topics":["gem","ruby","testdata"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evaneykelen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-01-18T12:15:21.000Z","updated_at":"2022-03-23T20:06:44.000Z","dependencies_parsed_at":"2022-08-02T20:00:31.123Z","dependency_job_id":null,"html_url":"https://github.com/evaneykelen/mockdata","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evaneykelen%2Fmockdata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evaneykelen%2Fmockdata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evaneykelen%2Fmockdata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evaneykelen%2Fmockdata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evaneykelen","download_url":"https://codeload.github.com/evaneykelen/mockdata/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243600566,"owners_count":20317300,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gem","ruby","testdata"],"created_at":"2024-10-04T23:10:13.727Z","updated_at":"2025-03-14T15:31:08.165Z","avatar_url":"https://github.com/evaneykelen.png","language":"Ruby","readme":"![Gem Version](https://img.shields.io/gem/v/mockdata.svg) ![License](https://img.shields.io/github/license/evaneykelen/mockdata.svg)\n![Last Commit](https://img.shields.io/github/last-commit/evaneykelen/mockdata.svg)\n\n### Random data generator for test purposes\n\n_Note: All dummy data is work-place safe (IMO) but use at your own risk._\n\n| Class | Type | Number of random data elements |\n|----------|-------|--------|\n| Animals | Horse names | 96 |\n| Animals | Pet names | 52 |\n| Animals | Critter names | 170 |\n| Animals | Dog names | 150 |\n| Animals | Cat names | 116 |\n| | | |\n| Avatars | Profile pictures | 280 |\n| | | |\n| Countries | Country names | 249 |\n| | | |\n| Languages | Language names | 121 |\n| | | |\n| Locations | City/Longitude/Latitude | 31 |\n| Locations | City/Country | 120 |\n| Locations | Street names | 100 |\n| Locations | Islands | 50 |\n| Locations | Airports | 99 |\n| | | |\n| Names | Car brands names | 51 |\n| Names | Company names | 69 |\n| Names | Business types | 95 |\n| Names | File extensions | 83 |\n| Names | Project names | 37 |\n| Names | Hotel names | 60 |\n| Names | Occupations | 74 |\n| | | |\n| People | First names | 176 |\n| People | Last names | 195 |\n| People | First names (Dutch-only) | 111 |\n| People | Last names (Dutch-only) | 91 |\n| People | Superhero names | 53 |\n| People | Elf names | 55 |\n| People | Robot names | 49 |\n| | | |\n| TimeZones | TimeZone/Region | 142 |\n| | | |\n| Words | Words | 2323 |\n\n#### Animal names\n\n`Mockdata::Animals.horse =\u003e \"Sally\"`\n\n`Mockdata::Animals.pet =\u003e \"Cute Tiger\"`\n\n`Mockdata::Animals.critter =\u003e \"Ferret\"`\n\n`Mockdata::Animals.dog =\u003e \"Dodger\"`\n\n`Mockdata::Animals.cat =\u003e \"Sammy\"`\n\n#### Avatars\n\n`Mockdata::Avatars.pick =\u003e \"https://s3.amazonaws.com/uifaces/faces/twitter/arminophen/128.jpg\"`\n\n#### Countries\n\n`Mockdata::Countries.pick =\u003e \"France\"`\n\n#### Languages\n\n`Mockdata::Languages.pick =\u003e \"Chinese\"`\n\n#### Locations\n\n`Mockdata::Locations.city_latitude_longitude =\u003e [\"Miami\", 25.809781975840405, -80.255126953125]`\n\n`Mockdata::Locations.city_country =\u003e [\"Belgrade\", \"Serbia\"]`\n\n`Mockdata::Locations.streetname =\u003e \"Back Wood Quay\"`\n\n`Mockdata::Locations.island =\u003e \"The Coral Cay\"`\n\n`Mockdata::Locations.airport =\u003e \"Medcalf Field Airport\"`\n\n#### Names\n\n`Mockdata::Names.car_brand =\u003e \"Tesla\"`\n\n`Mockdata::Names.company =\u003e \"Purplegale Limited\"`\n\n`Mockdata::Names.business_type =\u003e \"Telephone Apparatus Manufacturing`\n\n`Mockdata::Names.file_name =\u003e \"blue-foal.pdf\"`\n\n`Mockdata::Names.file_extension =\u003e \"xml`\n\n`Mockdata::Names.project =\u003e \"Brave Neutron\"`\n\n`Mockdata::Names.hotel =\u003e \"Farmhouse Hotel\"`\n\n`Mockdata::Names.occupation =\u003e \"Airport Tower Controller\"`\n\n#### Numbers\n\nReturn random number between 1 and 3 including 1 and 3\n\n`Mockdata::Numbers.random_between_min_max_inclusive(1, 3) =\u003e 3`\n\nReturn random number between 1 and 3 excluding 1 and 3\n\n`Mockdata::Numbers.random_between_min_max_exclusive(1, 3) =\u003e 2`\n\nReturn array with 3 elements, filled with random numbers between 1 and 10\n\n`Mockdata::Numbers.random_number_array(1..10, 3) =\u003e [9, 1, 4]`\n\nReturn array with 3 elements, filled with random numbers picked from [1, 2, 3, 4]\n\n`Mockdata::Numbers.choose_from_array_with_possible_duplicates([1, 2, 3, 4], 3) =\u003e [4, 2, 2]`\n\n`Mockdata::Numbers.choose_from_array_without_duplicates([1, 2, 3, 4], 3) =\u003e [4, 2, 3]`\n\nReturn written number from zero to 100 inclusive:\n\n`Mockdata::Numbers.written_number(42) =\u003e \"forty-two\"`\n\n#### People\n\nThe first and last names contain English, European, Asian and other names.\n\n`Mockdata::People.first_and_last_name =\u003e \"David Allen\"`\n\n`Mockdata::People.first_name =\u003e \"David\"`\n\n`Mockdata::People.last_name =\u003e \"Allen\"`\n\n`Mockdata::People.dutch_first_and_last_name =\u003e \"Bart van der Heijden\"`\n\n`Mockdata::People.dutch_first_name =\u003e \"Bart\"`\n\n`Mockdata::People.dutch_last_name =\u003e \"van der Heijden\"`\n\n`Mockdata::People.superhero =\u003e \"Raving Warrior\"`\n\n`Mockdata::People.elf =\u003e \"Relboron Meldin\"`\n\n`Mockdata::People.robot =\u003e \"Sensory Network Defense Android\"`\n\n`Mockdata::People.email_address =\u003e \"david.allen@example.com\"`\n\n`Mockdata::People.email_address_based_on_first_and_last_name(\"David\", \"Allen\") =\u003e \"david.allen@example.com\"`\n\nNote: all email addresses use `example.com` to prevent accidentally generating real email addresses.\n\n`Mockdata::People.physicists_last_name =\u003e \"du Châtelet\"`\n\n#### Time-zones\n\nReturn a random time-zone:\n\n`Mockdata::TimeZones.pick =\u003e {\"Minsk\"=\u003e\"Europe/Minsk\"}`\n\n#### Words\n\nReturn random words:\n\n`Mockdata::Words.one =\u003e \"rocket\"`\n\n`Mockdata::Words.two =\u003e \"silk verb\"`\n\n`Mockdata::Words.three =\u003e \"thin moment pool\"`\n\n`Mockdata::Words.four =\u003e \"onto surprise note hall\"`\n\n`Mockdata::Words.pick(10) =\u003e \"well shovel slick doctor poke seek threat bone together obey\"`\n\nReturn between 2 and 10 random words separated by spaces:\n\n`Mockdata::Words.some(2..10) =\u003e \"beam scan grown tape course thimble newscast main asleep\"`\n\nReturn translations for the word 'sun':\n\n`Mockdata::Words.word_for_sun =\u003e \"zon\"`\n\n#### License\n\nMIT (see LICENSE.txt)\n\n#### In the works...\n\n- [ ] Zip-codes\n- [ ] Phone numbers\n- [ ] Bank numbers\n- [ ] Credit card numbers (fake)\n- [ ] Flight numbers\n- [ ] Weather data\n- [ ] News\n- [ ] Amounts/prices\n- [ ] Dates/ranges\n- [ ] UTF-8 test strings\n- [ ] Currencies\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevaneykelen%2Fmockdata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevaneykelen%2Fmockdata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevaneykelen%2Fmockdata/lists"}