{"id":16639879,"url":"https://github.com/v-kolesnikov/sparse_include","last_synced_at":"2025-10-30T09:30:52.279Z","repository":{"id":59156011,"uuid":"168056662","full_name":"v-kolesnikov/sparse_include","owner":"v-kolesnikov","description":null,"archived":false,"fork":false,"pushed_at":"2019-01-29T00:31:58.000Z","size":7,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-19T14:18:57.750Z","etag":null,"topics":["meta-programming","module","modules","namespace","namespaces","ruby"],"latest_commit_sha":null,"homepage":"","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/v-kolesnikov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-28T23:45:16.000Z","updated_at":"2019-03-23T17:56:13.000Z","dependencies_parsed_at":"2022-09-13T20:10:53.717Z","dependency_job_id":null,"html_url":"https://github.com/v-kolesnikov/sparse_include","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/v-kolesnikov%2Fsparse_include","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-kolesnikov%2Fsparse_include/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-kolesnikov%2Fsparse_include/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v-kolesnikov%2Fsparse_include/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/v-kolesnikov","download_url":"https://codeload.github.com/v-kolesnikov/sparse_include/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219856491,"owners_count":16556082,"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":["meta-programming","module","modules","namespace","namespaces","ruby"],"created_at":"2024-10-12T07:07:17.760Z","updated_at":"2025-10-30T09:30:51.911Z","avatar_url":"https://github.com/v-kolesnikov.png","language":"Ruby","readme":"# SparseInclude\n\n[![Build Status](https://travis-ci.org/v-kolesnikov/sparse_include.svg?branch=master)](https://travis-ci.org/v-kolesnikov/sparse_include)\n\nA simple module wrapper which allows to sparse include (and extend) methods from other modules.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'sparse_include'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install sparse_include\n\n## Usage\n\n```ruby\nmodule Foo\n  def foo\n    42\n  end\n\n  def bar\n    24\n  end\nend\n\nclass Bar\n  include SparseInclude[Foo, foo: :bar]\nend\n\n\u003e\u003e Bar.new.respond_to?(:foo)\n=\u003e false\n\u003e\u003e Bar.new.respond_to?(:bar)\n=\u003e true\n\u003e\u003e Bar.new.bar\n=\u003e 42\n\nclass Bar\n  extend SparseInclude[Foo, foo: :bar]\nend\n\n\u003e\u003e Bar.respond_to?(:foo)\n=\u003e false\n\u003e\u003e Bar.respond_to?(:bar)\n=\u003e true\n\u003e\u003e Bar.bar\n=\u003e 42\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/sparse_include. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Sparse::Include project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/v-kolesnikov/sparse_include/blob/master/CODE_OF_CONDUCT.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv-kolesnikov%2Fsparse_include","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fv-kolesnikov%2Fsparse_include","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv-kolesnikov%2Fsparse_include/lists"}