{"id":20047290,"url":"https://github.com/nsardo/ruby-change-maker","last_synced_at":"2025-10-15T06:12:54.744Z","repository":{"id":88610740,"uuid":"89026634","full_name":"nsardo/ruby-change-maker","owner":"nsardo","description":"Model Ruby Gem / Project. Gives change using the least amount of tender. Includes cucumber tests.","archived":false,"fork":false,"pushed_at":"2018-02-24T18:29:24.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T08:18:46.511Z","etag":null,"topics":["change","example-project","ruby","ruby-cli","ruby-gem","starter-project"],"latest_commit_sha":null,"homepage":"https://nsardo.github.io/ruby-change-maker/","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/nsardo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-21T21:56:02.000Z","updated_at":"2018-02-24T18:53:28.000Z","dependencies_parsed_at":"2024-03-25T09:15:25.445Z","dependency_job_id":null,"html_url":"https://github.com/nsardo/ruby-change-maker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nsardo/ruby-change-maker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsardo%2Fruby-change-maker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsardo%2Fruby-change-maker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsardo%2Fruby-change-maker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsardo%2Fruby-change-maker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nsardo","download_url":"https://codeload.github.com/nsardo/ruby-change-maker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsardo%2Fruby-change-maker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274989809,"owners_count":25386552,"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","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["change","example-project","ruby","ruby-cli","ruby-gem","starter-project"],"created_at":"2024-11-13T11:35:20.836Z","updated_at":"2025-10-15T06:12:49.712Z","avatar_url":"https://github.com/nsardo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![Gem Version](https://badge.fury.io/rb/RubyChangeMaker.svg)](https://badge.fury.io/rb/RubyChangeMaker)\n\n# Ruby Change Maker\nGiven a currency amount (assuming US Currency ) expressed as a floating point number ( i.e. 1.25 or 0.75 ) \nreturns that amount expressed as the least amount of change using the least number of bills, coins, or combination of bills and coins.\n\n## To use as a gem:\n\n```\ngem install RubyChangeMaker\n```\n\nThen, in your source file:\n\n```\nrequire 'RubyChangeMaker'\n\ncm = RubyChangeMaker::Change.new\namt = 1.25 # for $1.25, use 0.75 for .75 cents, etc.\ndollars, cents = cm.make_change(amt)\n```\n\nTo see an example program using the Module, look in this repo's **bin/** directory\n\n\n## To work with the source files:\n\n### To Run:\n```      \ncd into bin/ and type: './changemaker' (the file is already chmod'd)\n```\n\n### To Run Tests:\n```\n(require's cucumber)\ncd into root directory ( 'ruby-change-maker/' ), then type: cucumber\n```    \n\n### NOTES:\n\n* Source is in **lib/rubychangemaker/**.\n* **lib/rubychangemaker.rb** is just some boot-strapping for cucumber.\n* **features/support/** again, boot-strapping for cucumber.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsardo%2Fruby-change-maker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsardo%2Fruby-change-maker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsardo%2Fruby-change-maker/lists"}