platformos-check 0.4.2 → 0.4.4

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.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/Makefile +2 -2
  4. data/README.md +1 -1
  5. data/build/windows/Gemfile +5 -0
  6. data/build/windows/README.md +15 -0
  7. data/build/windows/build.sh +15 -0
  8. data/build/windows/lsp.exe +0 -0
  9. data/build/windows/run.rb +6 -0
  10. data/data/platformos_liquid/documentation/filters.json +1 -1
  11. data/data/platformos_liquid/documentation/latest.json +1 -1
  12. data/docker/lsp.Dockerfile +3 -3
  13. data/lib/platformos_check/checks/unused_assign.rb +10 -2
  14. data/lib/platformos_check/graphql_file.rb +8 -0
  15. data/lib/platformos_check/graphql_traverser.rb +53 -0
  16. data/lib/platformos_check/in_memory_storage.rb +4 -0
  17. data/lib/platformos_check/language_server/completion_providers/object_attribute_completion_provider.rb +60 -11
  18. data/lib/platformos_check/language_server/variable_lookup_finder/assignments_finder/node_handler.rb +1 -21
  19. data/lib/platformos_check/language_server/variable_lookup_finder/assignments_finder/scope.rb +19 -2
  20. data/lib/platformos_check/language_server/variable_lookup_finder/constants.rb +2 -0
  21. data/lib/platformos_check/language_server/variable_lookup_finder/potential_lookup.rb +1 -1
  22. data/lib/platformos_check/language_server/variable_lookup_finder.rb +74 -4
  23. data/lib/platformos_check/platformos_liquid/source_index/filter_entry.rb +3 -1
  24. data/lib/platformos_check/tags/hash_assign.rb +2 -1
  25. data/lib/platformos_check/tags/log.rb +4 -0
  26. data/lib/platformos_check/tags/return.rb +4 -0
  27. data/lib/platformos_check/version.rb +1 -1
  28. data/lib/platformos_check.rb +1 -0
  29. metadata +9 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 183ab1521db9c8eeb17f1badc9e80e4eb349d5fb1aa40ea5b48b53a8bc45fc90
4
- data.tar.gz: af54b39516f7d5476b4685b274e0020e5b110564641a5faffd5fed3697f3df40
3
+ metadata.gz: 2232ebaad35fcbe180ef2bf7430a1f1b14a8a292e9e83162cab6f4daa2627e77
4
+ data.tar.gz: 664d5f186a9a9af5db288b287d05cacc1134b7533c63c11255e635481d7315e7
5
5
  SHA512:
6
- metadata.gz: fe146f2a07c952ac6b9df6f56e13b41258d3d67606e851781bfae3d67f4d12b2a3b28da6ce6f4cf2b27a04b45e89dce5a538816e1ee37b38eafa67c98bc53cfd
7
- data.tar.gz: 7dd5fd69bb9c10d814e668a2b54e4153df20b3a8af84fbf8fd19428f74a570131752ad09b08942224525daadd82bf0470032f8f0a53d0f87140cb405278ba62e
6
+ metadata.gz: 8dc44ad6b4b964108030b675ee46d883c75c4d3e8ef7262617dc2897eb7a53bf858d64b0e3ffb2ddc50a1f762bf9fbe6371c630d9a64c5358a5152e0a52e7901
7
+ data.tar.gz: 6c86d9c6e458117f9f25c0563fbe33d7f3792f5b9129671f8e30fe539b0d02cd9faedd77491c091e5c608d1e296a0bb9bc86c236b10f2cc10aa7711ac22f2f1f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ v0.4.4 / 2023-12-04
2
+ ==================
3
+
4
+ * Fix displaying description for filters
5
+
6
+ v0.4.3 / 2023-09-25
7
+ ==================
8
+
9
+ * Do not remove variable if it's later used via hash_assign
10
+
1
11
  v0.4.2 / 2023-09-21
2
12
  ==================
3
13
 
data/Makefile CHANGED
@@ -2,13 +2,13 @@ IMAGE_NAMES := lsp check
2
2
  BUILD_TARGETS := $(patsubst %,build-%,$(IMAGE_NAMES))
3
3
  PUSH_TARGETS := $(patsubst %,push-%,$(IMAGE_NAMES))
4
4
 
5
- VERSION=0.0.1
5
+ VERSION=$(shell ruby -r ./lib/platformos_check/version.rb -e "puts PlatformosCheck::VERSION")
6
6
 
7
7
  IMAGE_NAME=platformos/platformos
8
8
 
9
9
  build: $(BUILD_TARGETS)
10
10
  build-%:
11
- docker build -t ${IMAGE_NAME}-$*:${VERSION} -f docker/$*.Dockerfile .
11
+ docker build --build-arg VERSION=${VERSION} -t ${IMAGE_NAME}-$*:${VERSION} -f docker/$*.Dockerfile .
12
12
  docker tag ${IMAGE_NAME}-$*:${VERSION} ${IMAGE_NAME}-$*:latest
13
13
 
14
14
  push: $(PUSH_TARGETS)
data/README.md CHANGED
@@ -80,7 +80,7 @@ exec docker run -i \
80
80
  -e PLATFORMOS_CHECK_DEBUG_LOG_FILE=$LOG_FILE \
81
81
  $IMAGE_NAME $@
82
82
  ```
83
- This script will automatically download the latest Docker image and initiate a language server. Visual Studio Code (VSC) manages this process automatically. However, you can run the script for verification if needed."
83
+ This script will automatically download the latest Docker image and initiate a language server. Visual Studio Code (VSC) manages this process automatically. However, you can run the script for verification if needed.
84
84
 
85
85
  #### Troubleshooting
86
86
 
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "platformos-check", "~> 0.4.3"
@@ -0,0 +1,15 @@
1
+ # Info
2
+
3
+ This allow you to pack lsp server into one exe file without any dependencies.
4
+
5
+ ## Building exe
6
+
7
+ - To build exe file you need windows
8
+ - install ruby 3.2 installed(https://rubyinstaller.org/)
9
+ - install `ocran` gem `gem install ocran`
10
+ - copy this project
11
+ - run `bundle install`
12
+ - run in bash cmd `build.sh` it will generate `lsp.exe` file.
13
+
14
+
15
+ #TODO: create github action for building exe file https://github.com/ruby/setup-ruby
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env sh
2
+
3
+ ocran run.rb --output lsp.exe --add-all-core --gemfile ./Gemfile --no-dep-run --gem-full --gem-full=platformos-check --console \
4
+ --gem-file /c/Ruby32-x64/bin/etc/ssl \
5
+ --dll ruby_builtin_dlls/libyaml-0-2.dll \
6
+ --dll ruby_builtin_dlls/zlib1.dll \
7
+ --dll ruby_builtin_dlls/libssl-3-x64.dll \
8
+ --dll ruby_builtin_dlls/libcrypto-3-x64.dll \
9
+ --dll ruby_builtin_dlls/libgmp-10.dll \
10
+ --dll ruby_builtin_dlls/libyaml-0-2.dll \
11
+ --dll ruby_builtin_dlls/libffi-8.dll \
12
+ --dll ruby_builtin_dlls/libssl-3-x64.dll \
13
+ --dll ruby_builtin_dlls/libgcc_s_seh-1.dll \
14
+ --dll ruby_builtin_dlls/libwinpthread-1.dll \
15
+ --dll ruby_builtin_dlls/zlib1.dll
Binary file
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'platformos_check'
4
+
5
+ status_code = PlatformosCheck::LanguageServer.start
6
+ exit! status_code