gitlab_query_language 0.20.12 → 0.22.0
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/Cargo.lock +1 -2
- data/README.md +43 -0
- data/ext/gitlab_query_language/Cargo.toml +1 -1
- data/lib/gitlab_query_language/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4e26eca02537e3eeeac2edd6059edaf18a1ef22587d669690abd43685bc039a7
|
|
4
|
+
data.tar.gz: f0b90ebde51e247bb30dfd43c87b36fe4d1928e85129225e66179e46cddbc4cf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ab48a5abbe533f12772db727d13078c240c002d2e973d0dc44761f6564c824b0369f0e99bba1a3dde7e8cedd80778e7fa17ff52b1a9fb394572c720495cc237
|
|
7
|
+
data.tar.gz: 7f96e6d476c4cd2b0cbe3c72d65adfaa092ad855982ce6c4811da230b38e453fcd85aeca6fcd49d940ce7a82a75084bfe7f3d58c81fb0bdb53d58cdebe77d4b0
|
data/Cargo.lock
CHANGED
|
@@ -233,8 +233,7 @@ checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
|
|
|
233
233
|
|
|
234
234
|
[[package]]
|
|
235
235
|
name = "glql"
|
|
236
|
-
version = "0.
|
|
237
|
-
source = "git+https://gitlab.com/gitlab-org/glql.git?tag=v0.20.12#0952ae6ece5b01adcb623f5597c6b1a09361012d"
|
|
236
|
+
version = "0.22.0"
|
|
238
237
|
dependencies = [
|
|
239
238
|
"chrono",
|
|
240
239
|
"graphql-parser",
|
data/README.md
CHANGED
|
@@ -66,6 +66,23 @@ The Rust extension is automatically compiled when you install the gem. To manual
|
|
|
66
66
|
bundle exec rake compile
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
+
**Note**: When building locally, the `Cargo.lock` will get updated and change the `glql` dependency (see example below). **DO NOT commit this change**.
|
|
70
|
+
|
|
71
|
+
```diff
|
|
72
|
+
diff --git a/glql_rb/Cargo.lock b/glql_rb/Cargo.lock
|
|
73
|
+
index 206bc68..08511d1 100644
|
|
74
|
+
--- a/glql_rb/Cargo.lock
|
|
75
|
+
+++ b/glql_rb/Cargo.lock
|
|
76
|
+
@@ -234,7 +234,6 @@ checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
|
|
77
|
+
[[package]]
|
|
78
|
+
name = "glql"
|
|
79
|
+
version = "0.20.12"
|
|
80
|
+
-source = "git+https://gitlab.com/gitlab-org/glql.git?tag=v0.20.12#0952ae6ece5b01adcb623f5597c6b1a09361012d"
|
|
81
|
+
dependencies = [
|
|
82
|
+
"chrono",
|
|
83
|
+
"graphql-parser",
|
|
84
|
+
```
|
|
85
|
+
|
|
69
86
|
### Running Tests
|
|
70
87
|
|
|
71
88
|
Run the test suite:
|
|
@@ -90,6 +107,32 @@ To install the gem onto your local machine:
|
|
|
90
107
|
bundle exec rake install
|
|
91
108
|
```
|
|
92
109
|
|
|
110
|
+
### Testing local GLQL changes
|
|
111
|
+
|
|
112
|
+
- Compile it with `bundle exec rake compile`
|
|
113
|
+
- Try your changes in the console `bundle exec rake console`
|
|
114
|
+
|
|
115
|
+
```ruby
|
|
116
|
+
bundle exec rake console
|
|
117
|
+
irb(main):001> Glql.compile('type = Issue', {group: 'gitlab-org', username: 'johnhope', fields: 'id'})
|
|
118
|
+
=>
|
|
119
|
+
{"fields" => [{"key" => "id", "label" => "ID", "name" => "id"}],
|
|
120
|
+
"output" =>
|
|
121
|
+
"query GLQL($before: String, $after: String, $limit: Int) {\n group(fullPath: \"gitlab-org\") {\n issues(types: ISSUE, before: $before, after: $after, first: $limit, includeSubgroups: true) {\n nodes {\n id\n iid\n title\n webUrl\n reference\n state\n id\n }\n pageInfo {\n startCursor\n endCursor\n hasNextPage\n hasPreviousPage\n }\n count\n }\n }\n}\n",
|
|
122
|
+
"success" => true,
|
|
123
|
+
"variables" =>
|
|
124
|
+
{"after" => {"type" => "String", "value" => nil}, "before" => {"type" => "String", "value" => nil}, "limit" => {"type" => "Int", "value" => nil}}}
|
|
125
|
+
irb(main):002>
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Additionally, if you want to test it in your Ruby project e.g. GitLab app, in the Gemfile, update the dependency to use your local version
|
|
129
|
+
|
|
130
|
+
```ruby
|
|
131
|
+
gem 'gitlab_query_language', path: 'GLQL_PROJECT_PATH/glql_rb'
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
and run `bundle install`. If you are testing it with GDK, remember to `gdk restart rails-web` before testing your local changes
|
|
135
|
+
|
|
93
136
|
## Release Process
|
|
94
137
|
|
|
95
138
|
The gem is released automatically using GitLab's [gem-release component](https://gitlab.com/gitlab-org/components/gem-release). When a version bump is merged to the main branch:
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gitlab_query_language
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.22.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Himanshu Kapoor
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-
|
|
12
|
+
date: 2026-02-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rb_sys
|