{"id":15032693,"url":"https://github.com/ruby/ruby2_keywords","last_synced_at":"2025-04-04T06:09:55.341Z","repository":{"id":36918191,"uuid":"215580125","full_name":"ruby/ruby2_keywords","owner":"ruby","description":"Shim library for Module#ruby2_keywords","archived":false,"fork":false,"pushed_at":"2024-04-19T10:57:27.000Z","size":41,"stargazers_count":61,"open_issues_count":1,"forks_count":15,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-29T12:57:42.137Z","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":"bsd-2-clause","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":"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":"2019-10-16T15:18:13.000Z","updated_at":"2023-12-25T22:13:36.000Z","dependencies_parsed_at":"2024-04-19T12:02:28.281Z","dependency_job_id":null,"html_url":"https://github.com/ruby/ruby2_keywords","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fruby2_keywords","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fruby2_keywords/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fruby2_keywords/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fruby2_keywords/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/ruby2_keywords/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238333457,"owners_count":19454599,"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:08.982Z","updated_at":"2025-02-12T14:07:49.506Z","avatar_url":"https://github.com/ruby.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ruby2_keywords\n\nProvides empty `Module#ruby2_keywords` method, for the forward\nsource-level compatibility against ruby2.7 and ruby3.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'ruby2_keywords'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install ruby2_keywords\n\n## Usage\n\nFor class/module instance methods:\n\n```ruby\nrequire 'ruby2_keywords'\n\nmodule YourModule\n  ruby2_keywords def delegating_method(*args)\n    other_method(*args)\n  end\nend\n```\n\nFor global methods:\n\n```ruby\nrequire 'ruby2_keywords'\n\nruby2_keywords def oldstyle_keywords(options = {})\nend\n```\n\nYou can do the same for a method defined by `Module#define_method`:\n\n```ruby\ndefine_method :delegating_method do |*args, \u0026block|\n  other_method(*args, \u0026block)\nend\nruby2_keywords :delegating_method\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on [GitHub] or\n[Ruby Issue Tracking System].\n\n## Development\n\nAfter checking out the repo, run `bundle install` to install dependencies.\nThen, run `bundle exec rake test` to run the tests.\n\nTo test on older Ruby versions, you can use docker. E.g. to test on Ruby 2.0,\nuse `docker-compose run ruby-2.0`.\n\n## License\n\nThe gem is available as open source under the terms of the\n[Ruby License] or the [2-Clause BSD License].\n\n[GitHub]: https://github.com/ruby/ruby2_keywords/\n[Ruby Issue Tracking System]: https://bugs.ruby-lang.org\n[Ruby License]: https://www.ruby-lang.org/en/about/license.txt\n[2-Clause BSD License]: https://opensource.org/licenses/BSD-2-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fruby2_keywords","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby%2Fruby2_keywords","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fruby2_keywords/lists"}