{"id":15587169,"url":"https://github.com/ijackua/ruby-di-playground","last_synced_at":"2025-03-29T09:16:58.245Z","repository":{"id":78715408,"uuid":"64955373","full_name":"iJackUA/ruby-di-playground","owner":"iJackUA","description":"Try different approaches for Dependency Injection in Ruby code","archived":false,"fork":false,"pushed_at":"2016-08-26T15:50:13.000Z","size":13,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T23:49:26.133Z","etag":null,"topics":["dependency-injection","ruby"],"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/iJackUA.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":"2016-08-04T17:47:22.000Z","updated_at":"2018-05-22T17:31:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"d5ebc0d0-5569-438e-beb1-5495a489492d","html_url":"https://github.com/iJackUA/ruby-di-playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iJackUA%2Fruby-di-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iJackUA%2Fruby-di-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iJackUA%2Fruby-di-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iJackUA%2Fruby-di-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iJackUA","download_url":"https://codeload.github.com/iJackUA/ruby-di-playground/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246162147,"owners_count":20733357,"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":["dependency-injection","ruby"],"created_at":"2024-10-02T22:00:53.620Z","updated_at":"2025-03-29T09:16:58.225Z","avatar_url":"https://github.com/iJackUA.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Ruby dependency injection experiments\n\nEach sub-folder contains own implementation of the similar synthetic functionality\n\n### How to run?\n\n* `ruby ./hardcode/server.rb` - start a fake web app\n* open `http://localhost:8080/` to run our action\n\n### Expectations\n\nInitial behavior\n\n```\n» ruby ./server.rb                                                                                      130 ↵\n...\nStart App action\nLogStorage::call |\u003e Save to File. Msg: get_by_id via 'jdbc:postgresql://localhost:1234/users'\nApp |\u003e User: Ievgen\nFinish App action\n```\n\nBehavior after classes monkey-patching\n\n```\n» ruby ./server.rb                                                                                      130 ↵\n...\nStart App action\nLogStorage::call |\u003e Send to Elastic. Msg: get_by_id via 'jdbc:sqlite://skynet:1234/humanoids'\nApp |\u003e User: Ievgen\nFinish App action\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fijackua%2Fruby-di-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fijackua%2Fruby-di-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fijackua%2Fruby-di-playground/lists"}