{"id":18319762,"url":"https://github.com/redding/much-factory","last_synced_at":"2025-06-11T07:09:19.939Z","repository":{"id":53505469,"uuid":"136241418","full_name":"redding/much-factory","owner":"redding","description":"An API for generating randomized data.","archived":false,"fork":false,"pushed_at":"2021-10-29T19:01:47.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-10T08:06:23.946Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/redding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-05T22:25:22.000Z","updated_at":"2021-10-29T19:01:50.000Z","dependencies_parsed_at":"2022-09-09T23:53:18.634Z","dependency_job_id":null,"html_url":"https://github.com/redding/much-factory","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redding%2Fmuch-factory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redding%2Fmuch-factory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redding%2Fmuch-factory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redding%2Fmuch-factory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redding","download_url":"https://codeload.github.com/redding/much-factory/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redding%2Fmuch-factory/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259219379,"owners_count":22823571,"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":[],"created_at":"2024-11-05T18:14:10.979Z","updated_at":"2025-06-11T07:09:19.915Z","avatar_url":"https://github.com/redding.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MuchFactory\n\nMuchFactory is an API for generating randomized data.  This is intended to be brought into testing environments and used in test runs to help generate randomized test data.\n\nNote: this was originally implemented in and extracted from [Assert](https://github.com/redding/assert).\n\n## Usage\n\n```ruby\nrequire \"much-factory\"\n\nMuchFactory.integer    #=\u003e 15742\nMuchFactory.integer(3) #=\u003e 2\nMuchFactory.float      #=\u003e 87.2716908041922\nMuchFactory.float(3)   #=\u003e 2.5466638138805\n\nMuchFactory.date       #=\u003e #\u003cDate: 4915123/2,0,2299161\u003e\nMuchFactory.time       #=\u003e Wed Sep 07 10:37:22 -0500 2016\nMuchFactory.datetime   #=\u003e #\u003cDateTime: 302518290593/43200,0,2299161\u003e\n\nMuchFactory.string     #=\u003e \"boxsrbazeq\"\nMuchFactory.string(3)  #=\u003e \"rja\"\nMuchFactory.symbol     #=\u003e :sfdhortksj\nMuchFactory.symbol(3)  #=\u003e :emh\nMuchFactory.text       #=\u003e \"khcwyizmymajfzzxlfwz\"\nMuchFactory.text(3)    #=\u003e \"qcy\"\nMuchFactory.slug       #=\u003e \"licia\"\nMuchFactory.slug(3)    #=\u003e \"luu\"\nMuchFactory.hex        #=\u003e \"48797adb33\"\nMuchFactory.hex(3)     #=\u003e \"2fe\"\nMuchFactory.url        #=\u003e \"/cdqz/hqeq/zbsl\"\nMuchFactory.email      #=\u003e \"vyojvtxght@gmrin.com\"\n\nMuchFactory.file_name  #=\u003e \"kagahm.ybb\"\nMuchFactory.path       #=\u003e \"jbzf/omyk/vbha\"\nMuchFactory.dir_path   #=\u003e \"fxai/lwnq/urqu\"\nMuchFactory.file_path  #=\u003e \"bcno/pzxg/gois/mpvlfo.wdr\"\n\nMuchFactory.binary     #=\u003e \"\\000\\000\\003S\"\nMuchFactory.boolean    #=\u003e false\n```\n\nYou can also extend on your own factory class:\n\n```ruby\nmodule Factory\n  extend MuchFactory\n\n  def self.data\n    { Factory.string =\u003e Factory.string }\n  end\nend\n```\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem \"much-factory\"\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install much-factory\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Added some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredding%2Fmuch-factory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredding%2Fmuch-factory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredding%2Fmuch-factory/lists"}