{"id":13619245,"url":"https://github.com/NotMyself/GildedRose","last_synced_at":"2025-04-14T16:30:56.545Z","repository":{"id":45713334,"uuid":"1357176","full_name":"NotMyself/GildedRose","owner":"NotMyself","description":"Refactoring Kata","archived":false,"fork":false,"pushed_at":"2024-07-03T08:59:06.000Z","size":5453,"stargazers_count":404,"open_issues_count":7,"forks_count":384,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-04-12T22:35:25.196Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","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/NotMyself.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE.txt","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":"2011-02-11T23:57:55.000Z","updated_at":"2025-02-18T21:20:42.000Z","dependencies_parsed_at":"2024-11-08T05:32:02.877Z","dependency_job_id":"3c2e3e33-b0e2-4c2e-9755-d3f39901938f","html_url":"https://github.com/NotMyself/GildedRose","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotMyself%2FGildedRose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotMyself%2FGildedRose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotMyself%2FGildedRose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotMyself%2FGildedRose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotMyself","download_url":"https://codeload.github.com/NotMyself/GildedRose/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248916555,"owners_count":21182826,"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-08-01T21:00:36.763Z","updated_at":"2025-04-14T16:30:56.485Z","avatar_url":"https://github.com/NotMyself.png","language":"C#","funding_links":[],"categories":["C# #","Others","Day 2"],"sub_categories":["Fearlessly Refactoring Legacy Ruby"],"readme":"# Gilded Rose Refactoring Kata\n\nHi and welcome to team Gilded Rose. As you know, we are a small inn with a \nprime location in a prominent city ran by a friendly innkeeper named \nAllison. We also buy and sell only the finest goods. Unfortunately, our \ngoods are constantly degrading in quality as they approach their sell by \ndate. We have a system in place that updates our inventory for us. It was \ndeveloped by a no-nonsense type named Leeroy, who has moved on to new \nadventures. Your task is to add the new feature to our system so that we \ncan begin selling a new category of items. First an introduction to our \nsystem:\n\n- All items have a SellIn value which denotes the number of days we have \nto sell the item\n- All items have a Quality value which denotes how valuable the item is\n- At the end of each day our system lowers both values for every item\n\nPretty simple, right? Well this is where it gets interesting:\n\n- Once the sell by date has passed, Quality degrades twice as fast\n- The Quality of an item is never negative\n- \"Aged Brie\" actually increases in Quality the older it gets\n- The Quality of an item is never more than 50\n- \"Sulfuras\", being a legendary item, never has to be sold or decreases \nin Quality\n- \"Backstage passes\", like aged brie, increases in Quality as it's SellIn \nvalue approaches; Quality increases by 2 when there are 10 days or less \nand by 3 when there are 5 days or less but Quality drops to 0 after the \nconcert\n\nWe have recently signed a supplier of conjured items. This requires an \nupdate to our system:\n\n- \"Conjured\" items degrade in Quality twice as fast as normal items\n\nFeel free to make any changes to the UpdateQuality method and add any \nnew code as long as everything still works correctly. However, do not \nalter the Item class or Items property as those belong to the goblin \nin the corner who will insta-rage and one-shot you as he doesn't \nbelieve in shared code ownership (you can make the UpdateQuality \nmethod and Items property static if you like, we'll cover for you).\n\nJust for clarification, an item can never have its Quality increase \nabove 50, however \"Sulfuras\" is a legendary item and as such its \nQuality is 80 and it never alters.\n\n## Getting Started\n\nClone the repository. Run build.bat from Powershell. If you see \noutput similar to the following screenshot, you are ready to \nstart refactoring.\n\n![alt text](images/build_output.png \"Good Build Output\")\n\n## Who, What, Why?\nWho: [@TerryHughes](https://twitter.com/TerryHughes), [@NotMyself](https://twitter.com/NotMyself)\n\nWhat \u0026 Why: [Refactor This: The Gilded Rose Kata](http://iamnotmyself.com/2011/02/13/refactor-this-the-gilded-rose-kata/)\n\n## License\n\nMIT\n\n## Suggested attribution\n\nThis work is by [@TerryHughes](https://twitter.com/TerryHughes), [@NotMyself](https://twitter.com/NotMyself)\n\nThe repository can be found at [https://github.com/NotMyself/GildedRose](https://github.com/NotMyself/GildedRose)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNotMyself%2FGildedRose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNotMyself%2FGildedRose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNotMyself%2FGildedRose/lists"}