diff options
| author | Jason Garber <jason@sixtwothree.org> | 2024-01-31 22:04:50 -0500 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-02-16 04:53:14 +0000 |
| commit | 6f224d66a5210b090c095946fd20b9d33868695f (patch) | |
| tree | cf4d0f19af89814e20816e4696e890ec415cd0ba /test/ruby/test_rubyoptions.rb | |
| parent | df8ae9375609a70c1e5517b8d822140b707cfd6a (diff) | |
[rubygems/rubygems] Add `gitlab:` Git source shorthand
This new shorthand, similar to the existing `github:` shorthand, adds
support for Gitlab repositories with a notable difference. Gitlab
projects may be organized into projects and subprojects. An example
Ruby gem exists at:
https://gitlab.com/gitlab-org/analytics-section/product-analytics/gl-application-sdk-rb
With the new shorthand, a user may install this gem from its repository
by adding:
```ruby
gem "gitlab-sdk", gitlab: "gitlab-org/analytics-section/product-analytics/gl-application-sdk-rb"
```
As with the `github:` shorthand, a supplied string with no `/` will be
interpreted as `example/example`.
Also in keeping with the utility of the `github:` shorthand, the new
`gitlab:` shorthand also supports Merge Request URLs.
```ruby
gem "gitlab-sdk", gitlab: "https://gitlab.com/gitlab-org/analytics-section/product-analytics/gl-application-sdk-rb/-/merge_requests/27"
```
The `gitlab:` gem source shortcut is modeled on the existing `github:`
shortcut, so the new specs mimic the existing examples.
https://github.com/rubygems/rubygems/commit/f4399018c0
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
0 files changed, 0 insertions, 0 deletions
