Skip to content

Releases: lekemula/solargraph-rspec

v0.3.0

10 Jul 12:39
Compare
Choose a tag to compare

What's Changed

  • Added example_methods configuration option by @mskog in #6

New Contributors

  • @mskog made their first contribution in #6

Full Changelog: v0.2.2...v0.3.0

v0.2.2

23 Jun 16:41
Compare
Choose a tag to compare

Full Changelog: v0.2.1...v0.2.2

v0.2.2 - 2024-06-23

Fixed

  • Suggest keeping spec/**/* in the exclude section of .solargraph.yml to avoid performance issues (see commit)
  • Fix let definitions when do/end keywords overlap with body definition
      let(:todo) do # "do" keyword overlap
        {
          'todo' => 'end' # "end" keyword overlap
        }
      end
  • Error handling in SpecWalker::FakeLetMethod

v0.2.1

11 Jun 18:14
Compare
Choose a tag to compare

Full Changelog: v0.2.0...v0.2.1

[0.2.1] - 2024-06-09

Added

  • Documentation for RSpec::ExampleGroups DSL methods like it, fit, example etc.

Fixed

  • Fix nameless subject method completion inside nested context blocks
  • (Hack-ish) Fix described_class type collision when RSpec.describe SomeClassWithoutNamespace

v0.2.0

20 May 19:48
Compare
Choose a tag to compare

[0.2.0] - 2024-05-20

Added

  • let and subject type inference 🚀 (Resolves: Issue #1)

Changed

  • Migrate from parser gem to using ruby's built-in RubyVM::AbstractSyntaxTree (see why)

Fixed

  • Fix subject without name block completion: subject { ... }
  • Fix subject return class overlap with Rspec::ExampleGroups:: when class has no namespace

Full Changelog: v0.1.1...v0.2.0

v0.1.1

13 May 21:23
Compare
Choose a tag to compare

[0.1.1] - 2024-05-13

Removed

  • Removed redundant active_support dependency (Issue #2)

Fixed

  • Fixed completions inside subject and subject! blocks

v0.1.0

11 May 19:39
Compare
Choose a tag to compare

Full Changelog: https://github.com/lekemula/solargraph-rspec/commits/v0.1.0

First Release 🎉

Added:

  • describe and it methods completion
  • memoized let and let! methods completion
  • implicit and explicit subject methods
  • described_class with appropriate type inference
  • RSpec::Matchers methods completion
  • Completes normal ruby methods within describe/context blocks
  • RSpec DSL suggestions (eg. it, describe, fit.. etc.)