{"id":19489837,"url":"https://github.com/alekpopovic/configem","last_synced_at":"2025-02-25T19:27:41.983Z","repository":{"id":208887937,"uuid":"722720420","full_name":"alekpopovic/configem","owner":"alekpopovic","description":"A mixin to add configuration functionality","archived":false,"fork":false,"pushed_at":"2023-11-30T13:04:02.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T04:05:02.315Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/configem","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/alekpopovic.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-23T19:32:20.000Z","updated_at":"2024-12-24T18:53:16.000Z","dependencies_parsed_at":"2025-01-08T08:37:57.796Z","dependency_job_id":"af852971-e96e-42eb-b2d5-93d9aa3ecbb3","html_url":"https://github.com/alekpopovic/configem","commit_stats":null,"previous_names":["alekpopovic/configem","mozgovac/configem"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alekpopovic%2Fconfigem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alekpopovic%2Fconfigem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alekpopovic%2Fconfigem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alekpopovic%2Fconfigem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alekpopovic","download_url":"https://codeload.github.com/alekpopovic/configem/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240732000,"owners_count":19848615,"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":["ruby"],"created_at":"2024-11-10T21:09:59.912Z","updated_at":"2025-02-25T19:27:41.926Z","avatar_url":"https://github.com/alekpopovic.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Configem\n\n[![Ruby](https://github.com/alekpopovic/configem/actions/workflows/ruby.yml/badge.svg)](https://github.com/alekpopovic/configem/actions/workflows/ruby.yml)\n\n[![Ruby Gem](https://github.com/alekpopovic/configem/actions/workflows/gem-push.yml/badge.svg)](https://github.com/alekpopovic/configem/actions/workflows/gem-push.yml)\n\nA simple mixin to add configuration functionality to your classes\n\n## Installation\n\nTODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.\n\nInstall the gem and add to the application's Gemfile by executing:\n\n    $ bundle add configem\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n    $ gem install configem\n\n## Usage\n\n```sh\nclass Example1\n  include Configem\nend\n\nclass Example2\n  extend Configem\nend\n\nclass Example3\n  prepend Configem\nend\n\nExample1.configure do |config|\n  config.api_key_1 = \"api_key_1_value\"\nend\n\nExample2.configure do |config|\n  config.api_key_2 = \"api_key_2_value\"\nend\n\nExample3.configure do |config|\n  config.api_key_3 = \"api_key_3_value\"\nend\n\nputs Example1.config.api_key_1\n\n\"api_key_1_value\"\n\nputs Example2.config.api_key_2\n\n\"api_key_2_value\"\n\nputs Example3.config.api_key_3\n\n\"api_key_3_value\"\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\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/alekpopovic/configem/issues. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/alekpopovic/configem/blob/master/CODE_OF_CONDUCT.md).\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 Configem project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/alekpopovic/configem/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falekpopovic%2Fconfigem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falekpopovic%2Fconfigem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falekpopovic%2Fconfigem/lists"}