Skip to content

Commit

Permalink
next-ls 0.23.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Aug 22, 2024
1 parent 549354e commit bab2083
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{ github.token }}
HOMEBREW_GITHUB_PACKAGES_USER: ${{ github.actor }}
PULL_REQUEST: ${{ github.event.pull_request.number }}
run: brew pr-pull --debug --tap=$GITHUB_REPOSITORY $PULL_REQUEST
run: brew pr-pull --debug --tap="$GITHUB_REPOSITORY" "$PULL_REQUEST"

- name: Push commits
uses: Homebrew/actions/git-try-push@master
Expand All @@ -38,4 +38,4 @@ jobs:
if: github.event.pull_request.head.repo.fork == false
env:
BRANCH: ${{ github.event.pull_request.head.ref }}
run: git push --delete origin $BRANCH
run: git push --delete origin "$BRANCH"
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ jobs:
env:
GH_TOKEN: ${{ secrets.PAT }}
steps:
- run: gh pr edit ${{ github.event.number }} --add-label="pr-pull" --repo $GITHUB_REPOSITORY
- run: gh pr edit ${{ github.event.number }} --add-label="pr-pull" --repo "$GITHUB_REPOSITORY"
27 changes: 3 additions & 24 deletions next-ls.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class NextLs < Formula
desc "Language server for Elixir that just works"
homepage "https://www.elixir-tools.dev/next-ls"
url "https://github.com/elixir-tools/next-ls/archive/refs/tags/v0.22.8.tar.gz"
sha256 "6ada6792ca00c1eed7f9e5c0d4fc1f4df621c1b739db6c29e3f51975fa305464"
url "https://github.com/elixir-tools/next-ls/archive/refs/tags/v0.23.2.tar.gz"
sha256 "4224dc2ea099a41a0fe8f5abddbd0f731f2f10dbe3aeb2ce1ea3fc2a364f0c65"
license "MIT"

bottle do
Expand Down Expand Up @@ -76,27 +76,6 @@ def install
end

test do
require "open3"

json = <<~JSON
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"rootUri": null,
"capabilities": {}
}
}
JSON

shell_output("#{Formula["erlang"].prefix}/bin/epmd -daemon")

Open3.popen3("#{bin}/nextls", "--stdio") do |stdin, stdout, _e, w|
stdin.write "Content-Length: #{json.size}\r\n\r\n#{json}"
sleep 3
assert_match(/^Content-Length: \d+/i, stdout.readline)
Process.kill("KILL", w.pid)
end
system "true"
end
end

0 comments on commit bab2083

Please sign in to comment.