ruby-lsp-factory_bot-goto 0.1.0 → 0.3.0
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 +10 -0
- data/README.md +0 -1
- data/lib/ruby_lsp/factory_bot/definition_listener.rb +1 -1
- metadata +8 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b9b0a2003b46fa231f202bd5eb5c2cbbe88e82ae0079746061f64665eb6d163a
|
|
4
|
+
data.tar.gz: 28cc686582762249c36e1150b90d7b4a1294975e747a3c5575aa0709514421e6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3735d8342063bc6853fdb9db9619f649bff6a94f55044a316baa966fd61d1805bd5ddb295b7c9360ceba5a8380c03968d5137e0fa1448a4b92cfbf624b8bcb52
|
|
7
|
+
data.tar.gz: 978bfbbb5c7f4b21e2216c8644113a99d76bb7634614708248868e95a64cb3f9211f3f937d12c7d2ea202fb11956ad50ab3ddb34813552b9f3b9817667a64e0b
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.3.0] - 2026-07-28
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Relaxed `prism` dependency from `~> 0.19` to `~> 1.2` to resolve a version conflict with `ruby-lsp ~> 0.26`, which requires `prism >= 1.2, < 2.0`
|
|
12
|
+
|
|
13
|
+
## [0.2.0]
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
- Consider association syntax when navigating to factory definitions
|
|
17
|
+
|
|
8
18
|
## [0.1.0] - 2025-01-XX
|
|
9
19
|
|
|
10
20
|
### Added
|
data/README.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
A Ruby LSP addon that provides **"Go to Definition"** support for [FactoryBot](https://github.com/thoughtbot/factory_bot) factories.
|
|
4
4
|
|
|
5
|
-
> **Note**: This is a separate addon from [`ruby-lsp-factory_bot`](https://rubygems.org/gems/ruby-lsp-factory_bot). That gem provides code completion, while this gem provides navigation (go-to-definition). They complement each other and can be used together!
|
|
6
5
|
|
|
7
6
|
## Features
|
|
8
7
|
|
|
@@ -8,7 +8,7 @@ module RubyLsp
|
|
|
8
8
|
class DefinitionListener
|
|
9
9
|
include ::RubyLsp::Requests::Support::Common
|
|
10
10
|
|
|
11
|
-
FACTORY_METHODS = %i[create build build_list create_list attributes_for].freeze
|
|
11
|
+
FACTORY_METHODS = %i[create build build_list create_list attributes_for association].freeze
|
|
12
12
|
|
|
13
13
|
def initialize(response_builder, node_context, factory_index, dispatcher)
|
|
14
14
|
@response_builder = response_builder
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-lsp-factory_bot-goto
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tyler Rhodes
|
|
@@ -13,36 +13,30 @@ dependencies:
|
|
|
13
13
|
name: prism
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
|
15
15
|
requirements:
|
|
16
|
-
- - "
|
|
16
|
+
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
18
|
version: '1.2'
|
|
19
|
-
- - "<"
|
|
20
|
-
- !ruby/object:Gem::Version
|
|
21
|
-
version: '2.0'
|
|
22
19
|
type: :runtime
|
|
23
20
|
prerelease: false
|
|
24
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
22
|
requirements:
|
|
26
|
-
- - "
|
|
23
|
+
- - "~>"
|
|
27
24
|
- !ruby/object:Gem::Version
|
|
28
25
|
version: '1.2'
|
|
29
|
-
- - "<"
|
|
30
|
-
- !ruby/object:Gem::Version
|
|
31
|
-
version: '2.0'
|
|
32
26
|
- !ruby/object:Gem::Dependency
|
|
33
27
|
name: ruby-lsp
|
|
34
28
|
requirement: !ruby/object:Gem::Requirement
|
|
35
29
|
requirements:
|
|
36
|
-
- - "
|
|
30
|
+
- - "~>"
|
|
37
31
|
- !ruby/object:Gem::Version
|
|
38
|
-
version: 0.
|
|
32
|
+
version: '0.26'
|
|
39
33
|
type: :runtime
|
|
40
34
|
prerelease: false
|
|
41
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
42
36
|
requirements:
|
|
43
|
-
- - "
|
|
37
|
+
- - "~>"
|
|
44
38
|
- !ruby/object:Gem::Version
|
|
45
|
-
version: 0.
|
|
39
|
+
version: '0.26'
|
|
46
40
|
description: Provides 'Go to Definition' functionality for FactoryBot factories in
|
|
47
41
|
Ruby LSP. Jump from factory references like create(:user) directly to factory definitions.
|
|
48
42
|
email:
|
|
@@ -79,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
79
73
|
- !ruby/object:Gem::Version
|
|
80
74
|
version: '0'
|
|
81
75
|
requirements: []
|
|
82
|
-
rubygems_version:
|
|
76
|
+
rubygems_version: 4.0.10
|
|
83
77
|
specification_version: 4
|
|
84
78
|
summary: Ruby LSP addon for FactoryBot go-to-definition support
|
|
85
79
|
test_files: []
|