{"id":18847539,"url":"https://github.com/nanne007/dependency","last_synced_at":"2025-06-11T00:07:24.145Z","repository":{"id":148344605,"uuid":"65663317","full_name":"nanne007/dependency","owner":"nanne007","description":"declare dependencies  of your ruby modules.","archived":false,"fork":false,"pushed_at":"2019-12-14T22:44:54.000Z","size":4,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-23T00:32:11.568Z","etag":null,"topics":[],"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/nanne007.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-08-14T11:35:07.000Z","updated_at":"2016-08-14T11:48:55.000Z","dependencies_parsed_at":"2023-05-12T01:30:34.609Z","dependency_job_id":null,"html_url":"https://github.com/nanne007/dependency","commit_stats":null,"previous_names":["nanne007/dependency"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanne007%2Fdependency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanne007%2Fdependency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanne007%2Fdependency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanne007%2Fdependency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanne007","download_url":"https://codeload.github.com/nanne007/dependency/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanne007%2Fdependency/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259172988,"owners_count":22816560,"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-11-08T03:08:37.210Z","updated_at":"2025-06-11T00:07:24.117Z","avatar_url":"https://github.com/nanne007.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dependency\n\nA simple module to declare dependencies in your modules.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'dependency'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install dependency\n\n## Usage\n\n``` ruby\nrequire 'dependency'\nmodule A\n  extend Dependency\n  dependent :user, class: User\nend\n\np A.denepdencies =\u003e [[:user, {class: User}]]\n\nclass B\n  include A\nend\n\np B.dependencies =\u003e [[:user, {class: User}]]\n```\n\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/lerencao/dependency.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanne007%2Fdependency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanne007%2Fdependency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanne007%2Fdependency/lists"}