{"id":15707198,"url":"https://github.com/manfred/bendy","last_synced_at":"2025-05-12T19:40:46.313Z","repository":{"id":1216149,"uuid":"1132725","full_name":"Manfred/Bendy","owner":"Manfred","description":"A tiny mocking framework for Ruby","archived":false,"fork":false,"pushed_at":"2021-08-27T09:17:33.000Z","size":11,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-01T02:48:12.815Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":false,"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/Manfred.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-12-02T18:02:13.000Z","updated_at":"2022-03-28T07:26:55.000Z","dependencies_parsed_at":"2022-07-06T12:34:21.244Z","dependency_job_id":null,"html_url":"https://github.com/Manfred/Bendy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Manfred%2FBendy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Manfred%2FBendy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Manfred%2FBendy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Manfred%2FBendy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Manfred","download_url":"https://codeload.github.com/Manfred/Bendy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253809185,"owners_count":21967673,"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-10-03T20:38:07.976Z","updated_at":"2025-05-12T19:40:46.263Z","avatar_url":"https://github.com/Manfred.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bendy\n\nBendy is a tiny mocking framework.\n\n## Install\n\n\t$ curl -o lib/bendy.rb https://raw.github.com/Manfred/Bendy/master/bendy.rb\n\n## Examples\n\nMock object that responds to a couple of methods.\n\n```ruby\nhenry = shape(name: \"Henry\")\nhenry.name #=\u003e \"Henry\"\n```\n\nWrap a class definition and override a couple of methods.\n\n```ruby\nclass Weblog\n  def author\n    \"Henry\"\n  end\n\n  def path\n    \"/path/to/weblog\"\n  end\nend\n\nweblog = shape(Weblog,\n  path: \"/mnt/data/weblog\",\n  reverse: Proc.new { |s| s.reverse }\n)\nweblog.path #=\u003e \"/mnt/data/weblog\"\nweblog.author #=\u003e \"Henry\"\nweblog.reverse('Jimmy') #=\u003e 'ymmiJ\"\n```\n\nInitialize a shape with arguments.\n\n```ruby\nclass Weblog\n  attr_reader :path\n\n  def initialize(path)\n    @path = path\n  end\nend\n\nweblog = shape(Weblog, \"/mnt/data/weblog\", author: \"Henry\")\nweblog.path #=\u003e \"/mnt/data/weblog\"\nweblog.author #=\u003e \"Henry\"\n```\n\n## Copying\n\nBendy is freely distributable under the terms of an MIT-style license. See COPYING or http://www.opensource.org/licenses/mit-license.php.\n\n-----\n\n“Ik wil alleen maar benden.”","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanfred%2Fbendy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanfred%2Fbendy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanfred%2Fbendy/lists"}