rubydex 0.0.1 → 0.1.0.beta1
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/LICENSE.txt +3 -1
- data/README.md +15 -33
- data/THIRD_PARTY_LICENSES.html +3293 -0
- data/exe/rdx +47 -0
- data/ext/rubydex/extconf.rb +106 -0
- data/lib/rubydex/comment.rb +17 -0
- data/lib/rubydex/diagnostic.rb +21 -0
- data/lib/rubydex/graph.rb +44 -0
- data/lib/rubydex/location.rb +47 -0
- data/lib/rubydex/version.rb +1 -1
- data/lib/rubydex.rb +18 -2
- metadata +28 -17
- data/.rubocop.yml +0 -8
- data/CODE_OF_CONDUCT.md +0 -132
- data/Rakefile +0 -12
- data/sig/rubydex.rbs +0 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 49d742ca9aba88c7ee0a7c67830f092f1dd73e7b867977b1301bf6b3d1a775b1
|
|
4
|
+
data.tar.gz: db24001d8625c08fdf3c1ddf252735a1d1bab9d6f5ce8da8af565dcf64c4d4c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0be01d7da77e0934c2ead5ffcbfffd552b17dbdca3e038485c932af0420d52a33a32cc7acece7e939a3c2dbc51c25574c1850fd58487c837e0455db55c844a27
|
|
7
|
+
data.tar.gz: b0ed0cec3f8e97b139350e6ad339898906915ab739872e7ae7eb48acaa2924599ae82edc587228f090c83450dcb7fd44b66adebca83394b64ad3b7ec39823777
|
data/LICENSE.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2025
|
|
3
|
+
Copyright (c) 2025-present, Shopify Inc.
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -19,3 +19,5 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
21
|
THE SOFTWARE.
|
|
22
|
+
|
|
23
|
+
See the generated THIRD_PARTY_LICENSES.html file for third party licenses.
|
data/README.md
CHANGED
|
@@ -1,43 +1,25 @@
|
|
|
1
1
|
# Rubydex
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rubydex`. To experiment with that code, run `bin/console` for an interactive prompt.
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
|
10
|
-
|
|
11
|
-
Install the gem and add to the application's Gemfile by executing:
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
If bundler is not being used to manage dependencies, install the gem by executing:
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
|
|
21
|
-
```
|
|
3
|
+
This project is a high performance static analysis toolkit for the Ruby language. The goal is to be a solid
|
|
4
|
+
foundation to power a variety of tools, such as type checkers, linters, language servers and more.
|
|
22
5
|
|
|
23
6
|
## Usage
|
|
24
7
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
## Development
|
|
8
|
+
Both Ruby and Rust APIs are made available through a gem and a crate, respectively. Here's a simple example
|
|
9
|
+
of using the Ruby API:
|
|
28
10
|
|
|
29
|
-
|
|
11
|
+
```ruby
|
|
12
|
+
# Create a new graph representing the current workspace
|
|
13
|
+
graph = Rubydex::Graph.new
|
|
14
|
+
# Index the entire workspace with all dependencies
|
|
15
|
+
graph.index_workspace
|
|
16
|
+
# Transform the initially collected information into its semantic understanding by running resolution
|
|
17
|
+
graph.resolve
|
|
30
18
|
|
|
31
|
-
|
|
19
|
+
# Access the information as needed
|
|
20
|
+
graph["Foo"]
|
|
21
|
+
```
|
|
32
22
|
|
|
33
23
|
## Contributing
|
|
34
24
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
## License
|
|
38
|
-
|
|
39
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
40
|
-
|
|
41
|
-
## Code of Conduct
|
|
42
|
-
|
|
43
|
-
Everyone interacting in the Rubydex project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/paracycle/rubydex/blob/main/CODE_OF_CONDUCT.md).
|
|
25
|
+
See [the contributing documentation](CONTRIBUTING.md).
|