ruby-lsp-extras 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/LICENSE +18 -1
- data/README.md +12 -0
- data/lib/ruby_lsp/ruby_lsp_extras/version.rb +1 -1
- data/lib/ruby_lsp/ruby_lsp_rails_partial/LICENSE.txt +26 -0
- data/lib/ruby_lsp/ruby_lsp_rails_partial/addon.rb +5 -0
- data/lib/ruby_lsp/ruby_lsp_rails_partial/completion.rb +5 -0
- data/lib/ruby_lsp/ruby_lsp_rails_partial/definition.rb +5 -0
- data/lib/ruby_lsp/ruby_lsp_rails_partial/hover.rb +5 -0
- data/lib/ruby_lsp/ruby_lsp_rails_partial/partial_index.rb +5 -0
- data/lib/ruby_lsp/ruby_lsp_rails_partial/partial_resolver.rb +5 -0
- data/lib/ruby_lsp/ruby_lsp_rails_partial/util.rb +5 -0
- data/lib/ruby_lsp/ruby_lsp_rails_partial/version.rb +5 -0
- data/lib/ruby_lsp/ruby_lsp_rails_routes/LICENSE.txt +26 -0
- data/lib/ruby_lsp/ruby_lsp_rails_routes/addon.rb +5 -0
- data/lib/ruby_lsp/ruby_lsp_rails_routes/definition.rb +5 -0
- data/lib/ruby_lsp/ruby_lsp_rails_routes/server_addon.rb +5 -0
- data/lib/ruby_lsp/ruby_lsp_rails_routes/util.rb +5 -0
- data/lib/ruby_lsp/ruby_lsp_rails_routes/version.rb +5 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1d67c7e87bfdf1657937f496c0a741454075441426ca1fa853c4d2ca42124063
|
|
4
|
+
data.tar.gz: 947f5cdfa5ccbacd3cca9b20cfd833a07acb816adc17e65b2a3afbd880c622f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 90833defd472aef23fee127b04fa2b4975ec7fe29bdb194bd9b12b79032a335022693872d44309900222a130a6c10a9f56cc98235c0c24e9013bb07e7234bbf3
|
|
7
|
+
data.tar.gz: e1c052ae64552165081c77721ecc11675819b62ec49198ea25df26614c36e0db69daf09035f1daaf84ea60530259ed72352d667f5cb1d3bb07fe77139bfebb4e
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased changes
|
|
4
4
|
|
|
5
|
+
## 0.2.1
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Attribute vendored MIT code from `ruby-lsp-rails-routes` and `ruby-lsp-rails-partial`. Adds the upstream MIT
|
|
10
|
+
notices as `LICENSE.txt` in each add-on directory, per-file headers, a third-party section in `LICENSE`, and
|
|
11
|
+
credits in `README`. The gem stays BSD-3-Clause.
|
|
12
|
+
|
|
5
13
|
## 0.2.0
|
|
6
14
|
|
|
7
15
|
- Initial Release
|
data/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
BSD 3-Clause License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2026, Brands Insurance Agency, Inc.
|
|
4
4
|
|
|
5
5
|
Redistribution and use in source and binary forms, with or without
|
|
6
6
|
modification, are permitted provided that the following conditions are met:
|
|
@@ -26,3 +26,20 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
|
26
26
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
27
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
28
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
29
|
+
|
|
30
|
+
-------------------------------------------------------------------------------
|
|
31
|
+
|
|
32
|
+
THIRD-PARTY CODE
|
|
33
|
+
|
|
34
|
+
This gem bundles modified copies of third-party code. Those portions remain
|
|
35
|
+
under their original licenses, reproduced in full alongside the code:
|
|
36
|
+
|
|
37
|
+
- lib/ruby_lsp/ruby_lsp_rails_routes/
|
|
38
|
+
Derived from https://github.com/aki77/ruby-lsp-rails-routes
|
|
39
|
+
MIT License, Copyright (c) 2026 aki77
|
|
40
|
+
Full notice: lib/ruby_lsp/ruby_lsp_rails_routes/LICENSE.txt
|
|
41
|
+
|
|
42
|
+
- lib/ruby_lsp/ruby_lsp_rails_partial/
|
|
43
|
+
Derived from https://github.com/aki77/ruby-lsp-rails-partial
|
|
44
|
+
MIT License, Copyright (c) 2026 aki77
|
|
45
|
+
Full notice: lib/ruby_lsp/ruby_lsp_rails_partial/LICENSE.txt
|
data/README.md
CHANGED
|
@@ -36,3 +36,15 @@ See [CHANGELOG](CHANGELOG.md) for changes
|
|
|
36
36
|
## Contributing
|
|
37
37
|
|
|
38
38
|
See [CONTRIBUTING](CONTRIBUTING.md) for contributing guidelines
|
|
39
|
+
|
|
40
|
+
## Credits
|
|
41
|
+
|
|
42
|
+
The routes and partial add-ons are modified copies of [aki77](https://github.com/aki77)'s work, vendored because the
|
|
43
|
+
originals require Ruby 3.4+ while this gem supports 3.3.4:
|
|
44
|
+
|
|
45
|
+
- [ruby-lsp-rails-routes](https://github.com/aki77/ruby-lsp-rails-routes) (MIT)
|
|
46
|
+
- [ruby-lsp-rails-partial](https://github.com/aki77/ruby-lsp-rails-partial) (MIT)
|
|
47
|
+
|
|
48
|
+
## License
|
|
49
|
+
|
|
50
|
+
BSD 3-Clause, except for the vendored add-ons above, which remain MIT. See [LICENSE](LICENSE).
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
The code in this directory is derived from https://github.com/aki77/ruby-lsp-rails-partial
|
|
2
|
+
and is distributed under the terms below. Modifications are Copyright (c) 2026,
|
|
3
|
+
Brands Insurance Agency, Inc. and are additionally available under the BSD 3-Clause
|
|
4
|
+
License in the LICENSE file at the root of this gem.
|
|
5
|
+
|
|
6
|
+
The MIT License (MIT)
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2026 aki77
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in
|
|
18
|
+
all copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
26
|
+
THE SOFTWARE.
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
#
|
|
4
|
+
# Derived from https://github.com/aki77/ruby-lsp-rails-partial (MIT).
|
|
5
|
+
# Copyright (c) 2026 aki77. Modified by Brands Insurance Agency, Inc.
|
|
6
|
+
# See LICENSE.txt in this directory for the full MIT notice.
|
|
7
|
+
|
|
3
8
|
require_relative 'completion'
|
|
4
9
|
require_relative 'definition'
|
|
5
10
|
require_relative 'hover'
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
#
|
|
4
|
+
# Derived from https://github.com/aki77/ruby-lsp-rails-partial (MIT).
|
|
5
|
+
# Copyright (c) 2026 aki77. Modified by Brands Insurance Agency, Inc.
|
|
6
|
+
# See LICENSE.txt in this directory for the full MIT notice.
|
|
7
|
+
|
|
3
8
|
module RubyLsp
|
|
4
9
|
module RailsPartial
|
|
5
10
|
# Completes partial names while typing the partial name string of a render call.
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
#
|
|
4
|
+
# Derived from https://github.com/aki77/ruby-lsp-rails-partial (MIT).
|
|
5
|
+
# Copyright (c) 2026 aki77. Modified by Brands Insurance Agency, Inc.
|
|
6
|
+
# See LICENSE.txt in this directory for the full MIT notice.
|
|
7
|
+
|
|
3
8
|
module RubyLsp
|
|
4
9
|
module RailsPartial
|
|
5
10
|
# When the cursor is on the partial name string of a render call, provides go-to-definition
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
#
|
|
4
|
+
# Derived from https://github.com/aki77/ruby-lsp-rails-partial (MIT).
|
|
5
|
+
# Copyright (c) 2026 aki77. Modified by Brands Insurance Agency, Inc.
|
|
6
|
+
# See LICENSE.txt in this directory for the full MIT notice.
|
|
7
|
+
|
|
3
8
|
module RubyLsp
|
|
4
9
|
module RailsPartial
|
|
5
10
|
# When the cursor is on the partial name string of a render call, shows the list of resolved
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
#
|
|
4
|
+
# Derived from https://github.com/aki77/ruby-lsp-rails-partial (MIT).
|
|
5
|
+
# Copyright (c) 2026 aki77. Modified by Brands Insurance Agency, Inc.
|
|
6
|
+
# See LICENSE.txt in this directory for the full MIT notice.
|
|
7
|
+
|
|
3
8
|
module RubyLsp
|
|
4
9
|
module RailsPartial
|
|
5
10
|
# In-memory index of partials (`_*.*`) under the view root.
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
#
|
|
4
|
+
# Derived from https://github.com/aki77/ruby-lsp-rails-partial (MIT).
|
|
5
|
+
# Copyright (c) 2026 aki77. Modified by Brands Insurance Agency, Inc.
|
|
6
|
+
# See LICENSE.txt in this directory for the full MIT notice.
|
|
7
|
+
|
|
3
8
|
module RubyLsp
|
|
4
9
|
module RailsPartial
|
|
5
10
|
# Resolves the partial reference string of a `render` call to a PartialIndex key.
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
#
|
|
4
|
+
# Derived from https://github.com/aki77/ruby-lsp-rails-partial (MIT).
|
|
5
|
+
# Copyright (c) 2026 aki77. Modified by Brands Insurance Agency, Inc.
|
|
6
|
+
# See LICENSE.txt in this directory for the full MIT notice.
|
|
7
|
+
|
|
3
8
|
require 'uri'
|
|
4
9
|
|
|
5
10
|
module RubyLsp
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
#
|
|
4
|
+
# Derived from https://github.com/aki77/ruby-lsp-rails-partial (MIT).
|
|
5
|
+
# Copyright (c) 2026 aki77. Modified by Brands Insurance Agency, Inc.
|
|
6
|
+
# See LICENSE.txt in this directory for the full MIT notice.
|
|
7
|
+
|
|
3
8
|
module RubyLsp
|
|
4
9
|
module RailsPartial
|
|
5
10
|
VERSION = '0.1.0'
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
The code in this directory is derived from https://github.com/aki77/ruby-lsp-rails-routes
|
|
2
|
+
and is distributed under the terms below. Modifications are Copyright (c) 2026,
|
|
3
|
+
Brands Insurance Agency, Inc. and are additionally available under the BSD 3-Clause
|
|
4
|
+
License in the LICENSE file at the root of this gem.
|
|
5
|
+
|
|
6
|
+
The MIT License (MIT)
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2026 aki77
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in
|
|
18
|
+
all copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
26
|
+
THE SOFTWARE.
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
#
|
|
4
|
+
# Derived from https://github.com/aki77/ruby-lsp-rails-routes (MIT).
|
|
5
|
+
# Copyright (c) 2026 aki77. Modified by Brands Insurance Agency, Inc.
|
|
6
|
+
# See LICENSE.txt in this directory for the full MIT notice.
|
|
7
|
+
|
|
3
8
|
require_relative 'definition'
|
|
4
9
|
require_relative 'util'
|
|
5
10
|
require_relative 'version'
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
#
|
|
4
|
+
# Derived from https://github.com/aki77/ruby-lsp-rails-routes (MIT).
|
|
5
|
+
# Copyright (c) 2026 aki77. Modified by Brands Insurance Agency, Inc.
|
|
6
|
+
# See LICENSE.txt in this directory for the full MIT notice.
|
|
7
|
+
|
|
3
8
|
module RubyLsp
|
|
4
9
|
module RailsRoutes
|
|
5
10
|
# When the cursor is on a *_path / *_url route helper call, asks the rails runner process to
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
#
|
|
4
|
+
# Derived from https://github.com/aki77/ruby-lsp-rails-routes (MIT).
|
|
5
|
+
# Copyright (c) 2026 aki77. Modified by Brands Insurance Agency, Inc.
|
|
6
|
+
# See LICENSE.txt in this directory for the full MIT notice.
|
|
7
|
+
|
|
3
8
|
# This file is loaded inside the rails runner process via RunnerClient#register_server_addon.
|
|
4
9
|
# The base class RubyLsp::Rails::ServerAddon only exists in that process, so this file must never
|
|
5
10
|
# be required from the LSP process (do not require_relative it from addon.rb).
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
#
|
|
4
|
+
# Derived from https://github.com/aki77/ruby-lsp-rails-routes (MIT).
|
|
5
|
+
# Copyright (c) 2026 aki77. Modified by Brands Insurance Agency, Inc.
|
|
6
|
+
# See LICENSE.txt in this directory for the full MIT notice.
|
|
7
|
+
|
|
3
8
|
require 'uri'
|
|
4
9
|
|
|
5
10
|
module RubyLsp
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
#
|
|
4
|
+
# Derived from https://github.com/aki77/ruby-lsp-rails-routes (MIT).
|
|
5
|
+
# Copyright (c) 2026 aki77. Modified by Brands Insurance Agency, Inc.
|
|
6
|
+
# See LICENSE.txt in this directory for the full MIT notice.
|
|
7
|
+
|
|
3
8
|
module RubyLsp
|
|
4
9
|
module RailsRoutes
|
|
5
10
|
VERSION = '0.1.0'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-lsp-extras
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brands Insurance
|
|
@@ -78,6 +78,7 @@ files:
|
|
|
78
78
|
- lib/ruby_lsp/ruby_lsp_extras/definition.rb
|
|
79
79
|
- lib/ruby_lsp/ruby_lsp_extras/server_addon.rb
|
|
80
80
|
- lib/ruby_lsp/ruby_lsp_extras/version.rb
|
|
81
|
+
- lib/ruby_lsp/ruby_lsp_rails_partial/LICENSE.txt
|
|
81
82
|
- lib/ruby_lsp/ruby_lsp_rails_partial/addon.rb
|
|
82
83
|
- lib/ruby_lsp/ruby_lsp_rails_partial/completion.rb
|
|
83
84
|
- lib/ruby_lsp/ruby_lsp_rails_partial/definition.rb
|
|
@@ -86,6 +87,7 @@ files:
|
|
|
86
87
|
- lib/ruby_lsp/ruby_lsp_rails_partial/partial_resolver.rb
|
|
87
88
|
- lib/ruby_lsp/ruby_lsp_rails_partial/util.rb
|
|
88
89
|
- lib/ruby_lsp/ruby_lsp_rails_partial/version.rb
|
|
90
|
+
- lib/ruby_lsp/ruby_lsp_rails_routes/LICENSE.txt
|
|
89
91
|
- lib/ruby_lsp/ruby_lsp_rails_routes/addon.rb
|
|
90
92
|
- lib/ruby_lsp/ruby_lsp_rails_routes/definition.rb
|
|
91
93
|
- lib/ruby_lsp/ruby_lsp_rails_routes/server_addon.rb
|