Skip to content

Commit 4da24fb

Browse files
committed
Vendor PackageURL class into the codebase
This is better than adding a gem dependency for it
1 parent 9358dfe commit 4da24fb

File tree

5 files changed

+417
-6
lines changed

5 files changed

+417
-6
lines changed

.rubocop.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ AllCops:
2222
- "test/fixtures/**/*"
2323
- "test/expectations/**/*"
2424
- "jekyll/**/*"
25+
# This a vendored source file that is not a part of our codebase
26+
- "lib/ruby_lsp/requests/support/package_url.rb"
2527

2628
Layout/LeadingCommentSpace:
2729
AllowRBSInlineAnnotation: true

Gemfile.lock

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ PATH
33
specs:
44
ruby-lsp (0.26.2)
55
language_server-protocol (~> 3.17.0)
6-
packageurl-ruby
76
prism (>= 1.2, < 2.0)
87
rbs (>= 3, < 5)
98

@@ -31,7 +30,6 @@ GEM
3130
mocha (2.7.1)
3231
ruby2_keywords (>= 0.0.5)
3332
netrc (0.11.0)
34-
packageurl-ruby (0.2.0)
3533
parallel (1.27.0)
3634
parser (3.3.8.0)
3735
ast (~> 2.4.1)
@@ -132,8 +130,6 @@ GEM
132130

133131
PLATFORMS
134132
arm64-darwin
135-
x64-mingw-ucrt
136-
x64-mingw32
137133
x86_64-darwin
138134
x86_64-linux
139135

lib/ruby_lsp/listeners/document_link.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# frozen_string_literal: true
33

44
require "ruby_lsp/requests/support/source_uri"
5-
require "package_url"
5+
require "ruby_lsp/requests/support/package_url"
66

77
module RubyLsp
88
module Listeners

0 commit comments

Comments
 (0)