Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ plugins:
- rubocop-rake

AllCops:
TargetRubyVersion: 3.3 # 4.0 not yet afailable Tue Dec 30 15:07:23 PST 2025
TargetRubyVersion: 4.0
NewCops: enable
Exclude:
- 'spec/fixture_files/**/*'
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
#
# For development:
# docker run -it -v $PWD:/project -v $PWD:/tmp/src -w /tmp/src ruby_language_server sh -c 'bundle && guard'
FROM ruby:3.3-alpine
FROM ruby:4.0-alpine
LABEL maintainer="kurt@CircleW.org"

RUN gem update bundler
# RUN gem update bundler - Skipping as Ruby 4.0 comes with compatible bundler

# Needed for byebug and some other gems
RUN apk update
Expand All @@ -19,7 +19,7 @@ RUN curl -O -L https://github.com/mateusza/SQLite-Levenshtein/archive/master.zip
RUN unzip master.zip
WORKDIR /usr/local/src/SQLite-Levenshtein-master
RUN ./configure
RUN make -j 8 install
RUN make install

WORKDIR /app
RUN rm -rf /usr/local/src
Expand Down
2 changes: 1 addition & 1 deletion ruby_language_server.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
spec.description = 'Provide a language server implementation for ruby in ruby. See https://microsoft.github.io/language-server-protocol/ "A Language Server is meant to provide the language-specific smarts and communicate with development tools over a protocol that enables inter-process communication."'
spec.homepage = 'https://github.com/kwerle/ruby_language_server'
spec.license = 'MIT'
spec.required_ruby_version = '>=3.3.0'
spec.required_ruby_version = '>=4.0.0'

# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
# to allow pushing to a single host or delete this section to allow pushing to any host.
Expand Down
8 changes: 4 additions & 4 deletions spec/lib/ruby_language_server/completion_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ def baz; end
let(:all_scopes) { @scope_parser.root_scope.self_and_descendants }
let(:nar_naz_scope) { all_scopes.find_by_path('Foo::Nar#naz') }

def scope_completions(*args)
RubyLanguageServer::Completion.send(:scope_completions, *args)
def scope_completions(*)
RubyLanguageServer::Completion.send(:scope_completions, *)
end

def scope_completions_in_target_context(*args)
RubyLanguageServer::Completion.send(:scope_completions_in_target_context, *args)
def scope_completions_in_target_context(*)
RubyLanguageServer::Completion.send(:scope_completions_in_target_context, *)
end

describe '.completion' do
Expand Down