{"id":15288527,"url":"https://github.com/envygeeks/jekyll-faker","last_synced_at":"2025-04-13T07:49:36.988Z","repository":{"id":56878559,"uuid":"112540196","full_name":"envygeeks/jekyll-faker","owner":"envygeeks","description":"Faker wrapper for Jekyll, a library that generates fake data","archived":false,"fork":false,"pushed_at":"2018-01-10T04:52:23.000Z","size":64,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T07:49:31.972Z","etag":null,"topics":["content","jekyll","prototyping","ruby","user-interface"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/jekyll-faker","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/envygeeks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/codeowners","security":null,"support":null}},"created_at":"2017-11-29T23:35:44.000Z","updated_at":"2024-03-25T02:04:50.000Z","dependencies_parsed_at":"2022-08-20T11:40:32.492Z","dependency_job_id":null,"html_url":"https://github.com/envygeeks/jekyll-faker","commit_stats":null,"previous_names":["anomaly/jekyll-faker"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envygeeks%2Fjekyll-faker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envygeeks%2Fjekyll-faker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envygeeks%2Fjekyll-faker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envygeeks%2Fjekyll-faker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/envygeeks","download_url":"https://codeload.github.com/envygeeks/jekyll-faker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681494,"owners_count":21144700,"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":["content","jekyll","prototyping","ruby","user-interface"],"created_at":"2024-09-30T15:49:53.717Z","updated_at":"2025-04-13T07:49:36.968Z","avatar_url":"https://github.com/envygeeks.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Code Climate](https://img.shields.io/codeclimate/maintainability/anomaly/jekyll-faker.svg?style=for-the-badge)](https://codeclimate.com/github/anomaly/jekyll-faker/maintainability)\n[![Code Climate](https://img.shields.io/codeclimate/c/anomaly/jekyll-faker.svg?style=for-the-badge)](https://codeclimate.com/github/anomaly/jekyll-faker/coverage)\n[![Travis CI](https://img.shields.io/travis/anomaly/jekyll-faker/master.svg?style=for-the-badge)](https://travis-ci.org/anomaly/jekyll-faker)\n![Gem Version](https://img.shields.io/gem/v/jekyll-faker.svg?style=for-the-badge)\n![Gem DL](https://img.shields.io/gem/dt/jekyll-faker.svg?style=for-the-badge)\n\n# Jekyll Faker\n\nJekyll Faker is a Jekyll/Liquid wrapper around the Faker gem, it allows you to do anything that Faker allows you to do, as long as it's an acceptable format. It is disaware of it's surroundings, and is extensible by automatic upgrade, meaning... if faker adds new methods, or even new classes, you can continue to use it without needing to upgrade Jekyll Faker.\n\n## Installing\n\n```ruby\ngem \"jekyll-faker\"\ngem \"jekyll-faker\", {\n  git: \"https://github.com/anomaly/jekyll-faker.git\"\n}\n```\n\n## Usage\n\nGiven faker has a class called `Lorem`, and that class `Lorem` accepts messages to the method `sentences`, you can then do the following to extract the data from `Faker`:\n\n```liquid\n{% faker lorem sentences=8 %}\n  \u003cp\u003e{{ faker.val }}\u003c/p\u003e\n{% endfaker %}\n```\n\nw/ the result\n\n```html\n\u003cp\u003eSentence 1\u003c/p\u003e\n\u003cp\u003eSentence 2\u003c/p\u003e\n\u003cp\u003eSentence 3\u003c/p\u003e\n\u003cp\u003eSentence 4\u003c/p\u003e\n\u003cp\u003eSentence 5\u003c/p\u003e\n\u003cp\u003eSentence 6\u003c/p\u003e\n\u003cp\u003eSentence 7\u003c/p\u003e\n\u003cp\u003eSentence 8\u003c/p\u003e\n```\n\n### Multiple Arguments\n\nIf a class and method you wish to use takes multiple arguments, you can replicate the name of the method multiple times to create an array that will be expanded, and messaged to the method.  For example:\n\n```liquid\n{% faker number between=1 between=10 %}\n  \u003csmall\u003e\n    {{ faker.val }}\n  \u003c/small\u003e\n{% endfaker %}\n```\n\n### CamelCase classes\n\nIf a Faker is a CamelCased class, for example \"DrWho\" (even though technically it's supposed to be DoctorWho, it's Doctor, not Dr, who even does that?) You can do the following:\n\n```liquid\n{% faker dr-who catch_phrase %}\n  \u003cp\u003e{{ faker.val }}\u003c/p\u003e\n{% endfaker %}\n```\n\nor\n\n```liquid\n{% faker id-number valid %}\n  \u003cp\u003e{{ faker.val }}\u003c/p\u003e\n{% endfaker %}\n```\n\n**We will attempt to determine the class name automatically, first, efficiently by assuming the dash is a literal for uppercase, and then by doing a simple regexp search, this should often result in the class being found.***\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenvygeeks%2Fjekyll-faker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenvygeeks%2Fjekyll-faker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenvygeeks%2Fjekyll-faker/lists"}