https://github.com/ruby/ruby2_keywords
Shim library for Module#ruby2_keywords
https://github.com/ruby/ruby2_keywords
Keywords
ruby
Keywords from Contributors
activerecord rubygems activejob mvc debugging-tool debugger repl openssl tls documentation-tool
Last synced: about 15 hours ago
JSON representation
Repository metadata
Shim library for Module#ruby2_keywords
- Host: GitHub
- URL: https://github.com/ruby/ruby2_keywords
- Owner: ruby
- License: bsd-2-clause
- Created: 2019-10-16T15:18:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-11-24T04:04:00.000Z (18 days ago)
- Last Synced: 2025-11-27T17:42:31.384Z (15 days ago)
- Topics: ruby
- Language: Ruby
- Homepage:
- Size: 48.8 KB
- Stars: 63
- Watchers: 6
- Forks: 14
- Open Issues: 5
- Releases: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
README.md
ruby2_keywords
Provides empty Module#ruby2_keywords method, for the forward
source-level compatibility against ruby2.7 and ruby3.
Installation
Add this line to your application's Gemfile:
gem 'ruby2_keywords'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ruby2_keywords
Usage
For class/module instance methods:
require 'ruby2_keywords'
module YourModule
ruby2_keywords def delegating_method(*args)
other_method(*args)
end
end
For global methods:
require 'ruby2_keywords'
ruby2_keywords def oldstyle_keywords(options = {})
end
You can do the same for a method defined by Module#define_method:
define_method :delegating_method do |*args, &block|
other_method(*args, &block)
end
ruby2_keywords :delegating_method
Contributing
Bug reports and pull requests are welcome on GitHub or
Ruby Issue Tracking System.
Development
After checking out the repo, run bundle install to install dependencies.
Then, run bundle exec rake test to run the tests.
To test on older Ruby versions, you can use docker. E.g. to test on Ruby 2.0,
use docker-compose run ruby-2.0.
License
The gem is available as open source under the terms of the
Ruby License or the 2-Clause BSD License.
Owner metadata
- Name: The Ruby Programming Language
- Login: ruby
- Email: info@ruby-lang.org
- Kind: organization
- Description: Repositories related to the Ruby Programming language
- Website: https://www.ruby-lang.org/
- Location: Matsue, Japan
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/210414?v=4
- Repositories: 171
- Last ynced at: 2023-04-09T03:40:20.875Z
- Profile URL: https://github.com/ruby
GitHub Events
Total
- Watch event: 3
- Delete event: 6
- Issue comment event: 3
- Push event: 6
- Pull request event: 17
- Create event: 7
Last Year
- Watch event: 3
- Delete event: 6
- Issue comment event: 3
- Push event: 6
- Pull request event: 17
- Create event: 7
Committers metadata
Last synced: 8 days ago
Total Commits: 63
Total Committers: 10
Avg Commits per committer: 6.3
Development Distribution Score (DDS): 0.429
Commits in past year: 5
Committers in past year: 1
Avg Commits per committer in past year: 5.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| Nobuyoshi Nakada | n****u@r****g | 36 |
| Ivo Anjo | i****o@d****m | 7 |
| Hiroshi SHIBATA | h****t@r****g | 6 |
| Yusuke Endoh | m****e@r****g | 5 |
| dependabot[bot] | 4****] | 2 |
| Nazar Matus | f****e@g****m | 2 |
| Benoit Daloze | e****p@g****m | 2 |
| Junichi Sato | 2****1 | 1 |
| Jeremy Evans | c****e@j****t | 1 |
| Antonio Terceiro | a****a@t****z | 1 |
Committer domains:
- ruby-lang.org: 3
- terceiro.xyz: 1
- jeremyevans.net: 1
- datadoghq.com: 1
Issue and Pull Request metadata
Last synced: 4 days ago
Total issues: 7
Total pull requests: 30
Average time to close issues: 5 months
Average time to close pull requests: about 1 month
Total issue authors: 6
Total pull request authors: 11
Average comments per issue: 2.71
Average comments per pull request: 0.63
Merged pull request: 18
Bot issues: 0
Bot pull requests: 12
Past year issues: 0
Past year pull requests: 13
Past year average time to close issues: N/A
Past year average time to close pull requests: 28 days
Past year issue authors: 0
Past year pull request authors: 2
Past year average comments per issue: 0
Past year average comments per pull request: 0.46
Past year merged pull request: 2
Past year bot issues: 0
Past year bot pull requests: 9
Top Issue Authors
- ShockwaveNN (2)
- pvalena (1)
- swikars1 (1)
- brian-kephart (1)
- bastelfreak (1)
- p (1)
Top Pull Request Authors
- dependabot[bot] (12)
- hsbt (5)
- mame (4)
- eregon (2)
- FunkyloverOne (1)
- tanakakc (1)
- terceiro (1)
- sato11 (1)
- nobu (1)
- jeremyevans (1)
- ivoanjo (1)
Top Issue Labels
Top Pull Request Labels
- dependencies (12)
- github_actions (9)
Package metadata
- Total packages: 3
-
Total downloads:
- rubygems: 832,456,120 total
- Total docker downloads: 7,136,596,240
- Total dependent packages: 55 (may contain duplicates)
- Total dependent repositories: 134,322 (may contain duplicates)
- Total versions: 18
- Total maintainers: 3
gem.coop: ruby2_keywords
Shim library for Module#ruby2_keywords
- Homepage: https://github.com/ruby/ruby2_keywords
- Documentation: http://www.rubydoc.info/gems/ruby2_keywords/
- Licenses: Ruby,BSD-2-Clause
- Latest release: 0.0.5 (published over 4 years ago)
- Last Synced: 2025-12-10T12:00:54.303Z (2 days ago)
- Versions: 6
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 416,170,603 Total
- Docker Downloads: 3,568,298,120
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.019%
- Docker downloads count: 0.021%
- Downloads: 0.056%
- Maintainers (3)
rubygems.org: ruby2_keywords
Shim library for Module#ruby2_keywords
- Homepage: https://github.com/ruby/ruby2_keywords
- Documentation: http://www.rubydoc.info/gems/ruby2_keywords/
- Licenses: Ruby,BSD-2-Clause
- Latest release: 0.0.5 (published over 4 years ago)
- Last Synced: 2025-12-10T20:00:34.444Z (1 day ago)
- Versions: 6
- Dependent Packages: 55
- Dependent Repositories: 134,322
- Downloads: 416,285,517 Total
- Docker Downloads: 3,568,298,120
-
Rankings:
- Docker downloads count: 0.026%
- Downloads: 0.06%
- Dependent repos count: 0.106%
- Dependent packages count: 0.495%
- Average: 2.364%
- Forks count: 6.595%
- Stargazers count: 6.906%
- Maintainers (3)
proxy.golang.org: github.com/ruby/ruby2_keywords
- Homepage:
- Documentation: https://pkg.go.dev/github.com/ruby/ruby2_keywords#section-documentation
- Licenses: bsd-2-clause
- Latest release: v0.0.5 (published almost 5 years ago)
- Last Synced: 2025-12-10T20:00:35.236Z (1 day ago)
- Versions: 6
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Stargazers count: 5.371%
- Forks count: 5.453%
- Average: 7.8%
- Dependent packages count: 9.576%
- Dependent repos count: 10.802%
Dependencies
- rake >= 0 development
- test-unit >= 2.2 development
- actions/checkout master composite
- actions/upload-artifact v3 composite
- ruby/setup-ruby v1 composite
- ruby 2.0
- ruby 2.1
- ruby 2.2
- ruby 2.3
- ruby 2.4
- ruby 2.5
- ruby 2.6
- ruby 2.7
- ruby 3.0
- actions/checkout 11bd71901bbe5b1630ceea73d27597364c9af683 composite
- ruby/setup-ruby 13e7a03dc3ac6c3798f4570bfead2aed4d96abfb composite
- rubygems/release-gem a25424ba2ba8b387abc8ef40807c2c85b96cbe32 composite
- step-security/harden-runner 0634a2670c59f64b4a01f0f96f84700a4088b9f0 composite
Score: 29.32094166204347