{"id":15032852,"url":"https://github.com/ruby/mutex_m","last_synced_at":"2025-05-15T20:07:13.719Z","repository":{"id":33649619,"uuid":"138372421","full_name":"ruby/mutex_m","owner":"ruby","description":"Mixin to extend objects to be handled like a Mutex","archived":false,"fork":false,"pushed_at":"2025-04-30T00:27:19.000Z","size":98,"stargazers_count":37,"open_issues_count":1,"forks_count":12,"subscribers_count":33,"default_branch":"master","last_synced_at":"2025-05-09T20:05:44.000Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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,"zenodo":null}},"created_at":"2018-06-23T04:54:12.000Z","updated_at":"2025-04-30T00:27:22.000Z","dependencies_parsed_at":"2024-02-29T11:55:24.852Z","dependency_job_id":"eb48a170-d485-4c1d-a65d-b9aea97e4b47","html_url":"https://github.com/ruby/mutex_m","commit_stats":{"total_commits":54,"total_committers":20,"mean_commits":2.7,"dds":0.5555555555555556,"last_synced_commit":"661130a95d5b11a37733e4d49db0fd6ec2606940"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fmutex_m","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fmutex_m/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fmutex_m/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fmutex_m/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/mutex_m/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254414499,"owners_count":22067272,"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-09-24T20:19:36.056Z","updated_at":"2025-05-15T20:07:08.642Z","avatar_url":"https://github.com/ruby.png","language":"Ruby","readme":"# Mutex_m\n\nWhen 'mutex_m' is required, any object that extends or includes Mutex_m will be treated like a Mutex.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'mutex_m'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install mutex_m\n\n## Usage\n\nStart by requiring the standard library Mutex_m:\n\n```ruby\nrequire \"mutex_m\"\n```\n\nFrom here you can extend an object with Mutex instance methods:\n\n```ruby\nobj = Object.new\nobj.extend Mutex_m\n```\n\nOr mixin Mutex_m into your module to your class inherit Mutex instance methods.\nYou should probably use `prepend` to mixin (if you use `include`, you need to\nmake sure that you call `super` inside `initialize`).\n\n```ruby\nclass Foo\n  prepend Mutex_m\n  # ...\nend\n\nobj = Foo.new\n# this obj can be handled like Mutex\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` 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/ruby/mutex_m.\n\n## License\n\nThe gem is available as open source under the terms of the [2-Clause BSD License](https://opensource.org/licenses/BSD-2-Clause).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fmutex_m","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby%2Fmutex_m","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fmutex_m/lists"}