Skip to content

Commit 04be0c0

Browse files
committed
Vendor PackageURL class into the codebase
This is better than adding a gem dependency for it
1 parent 5215791 commit 04be0c0

File tree

6 files changed

+420
-5
lines changed

6 files changed

+420
-5
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ PATH
33
specs:
44
ruby-lsp (0.26.3)
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)

cspell.jsonc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838
"**/node_modules/**",
3939
"vendor/**",
4040
"coverage/**",
41-
"test/fixtures/"
41+
"test/fixtures/",
42+
"lib/ruby_lsp/requests/support/package_url.rb"
43+
4244
],
4345
"dictionaries": [
4446
"ruby",

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)