gitlab_query_language 0.20.9 → 0.20.11
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 +2 -2
- data/README.md +28 -0
- data/ext/gitlab_query_language/Cargo.toml +1 -1
- data/lib/gitlab_query_language/version.rb +4 -4
- metadata +13 -10
- data/lib/gitlab_query_language/gitlab_query_language.bundle +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b9afcdfce12c251ace3e5e60538dc62029a90557648df4735e421a607a4a8fb
|
|
4
|
+
data.tar.gz: af90cdf2a8c0c5b2bca14c2af61e4b9ec3e21301b582b3688319778cf73166f3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 713ff3f209c81d890145c20c1839e469b3acc7a7c298cac40eafa3a75e1a8814dfdf6afef0b9c606c5844c6345a8468e57faed6123b7cb4efb76513c0b133b64
|
|
7
|
+
data.tar.gz: 5751f2ac5b1439172c75f4ac2cfe0690aca4ef7f32b25dbe131142bab04198e092b6283987509c9487bb2281c17fd60ab9e610ad34a63c4fc4b051842009640e
|
data/Cargo.lock
CHANGED
|
@@ -233,8 +233,8 @@ checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
|
|
|
233
233
|
|
|
234
234
|
[[package]]
|
|
235
235
|
name = "glql"
|
|
236
|
-
version = "0.20.
|
|
237
|
-
source = "git+https://gitlab.com/gitlab-org/glql.git?
|
|
236
|
+
version = "0.20.11"
|
|
237
|
+
source = "git+https://gitlab.com/gitlab-org/glql.git?tag=v0.20.11#504291b82a035931b5c03976ee900d052b9684f9"
|
|
238
238
|
dependencies = [
|
|
239
239
|
"chrono",
|
|
240
240
|
"graphql-parser",
|
data/README.md
CHANGED
|
@@ -33,6 +33,15 @@ require 'gitlab_query_language'
|
|
|
33
33
|
query = 'label != "backend" and author = currentUser() and weight = 1'
|
|
34
34
|
result = Glql.compile(query, {group: 'gitlab-org', username: 'johnhope', fields: 'title'})
|
|
35
35
|
puts result
|
|
36
|
+
|
|
37
|
+
{"fields" => [{"key" => "title", "label" => "Title", "name" => "title"}],
|
|
38
|
+
"output" =>
|
|
39
|
+
"query GLQL($before: String, $after: String, $limit: Int) {\n group(fullPath: \"gitlab-org\") {\n issues(authorUsername: \"johnhope\", weight: \"1\", not: {labelName: \"backend\"}, before: $before, after: $after, first: $limit, includeSubgroups: true) {\n nodes {\n id\n iid\n title\n webUrl\n reference\n state\n title\n }\n pageInfo {\n startCursor\n endCursor\n hasNextPage\n hasPreviousPage\n }\n count\n }\n }\n}\n",
|
|
40
|
+
"success" => true,
|
|
41
|
+
"variables" =>
|
|
42
|
+
{"after" => {"type" => "String", "value" => nil},
|
|
43
|
+
"before" => {"type" => "String", "value" => nil},
|
|
44
|
+
"limit" => {"type" => "Int", "value" => nil}}}
|
|
36
45
|
```
|
|
37
46
|
|
|
38
47
|
## Development
|
|
@@ -81,6 +90,25 @@ To install the gem onto your local machine:
|
|
|
81
90
|
bundle exec rake install
|
|
82
91
|
```
|
|
83
92
|
|
|
93
|
+
## Release Process
|
|
94
|
+
|
|
95
|
+
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:
|
|
96
|
+
|
|
97
|
+
1. The component builds both the regular gem and pre-compiled native gems for multiple platforms (Linux, macOS, with different architectures)
|
|
98
|
+
2. Runs smoke tests to verify the gem installs and functions correctly
|
|
99
|
+
3. Creates a GitLab release with changelog notes
|
|
100
|
+
4. Publishes all gem variants to RubyGems.org
|
|
101
|
+
|
|
102
|
+
The gem uses tag-based versioning to depend on specific GLQL core releases (e.g., `tag = "v0.21.0"` in `Cargo.toml`). This ensures explicit version coupling and reproducible builds. When a new GLQL version is released, the automated release script creates a merge request that:
|
|
103
|
+
|
|
104
|
+
- Updates the gem version in `glql_rb/lib/gitlab_query_language/version.rb`
|
|
105
|
+
- Updates the GLQL dependency tag in `glql_rb/ext/gitlab_query_language/Cargo.toml`
|
|
106
|
+
- Updates lock files (`Gemfile.lock`, `Cargo.lock`)
|
|
107
|
+
|
|
108
|
+
The release is triggered automatically when these changes are merged to main.
|
|
109
|
+
|
|
110
|
+
**Manual Testing:** To manually trigger the gem build jobs before merging (e.g., for testing), include the word "RELEASE" in the merge request title. This will run the build and smoke test jobs without publishing to RubyGems.
|
|
111
|
+
|
|
84
112
|
## Contributing
|
|
85
113
|
|
|
86
114
|
Bug reports and pull requests are welcome at https://gitlab.com/gitlab-org/glql.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
#
|
|
3
|
+
# Do not edit manually. The gem version is managed by the CI build job through scripts/create_release.sh.
|
|
4
|
+
# This version is kept in sync with the root Cargo.toml version.
|
|
5
|
+
# A version bump will trigger a gem release.
|
|
6
6
|
module Glql
|
|
7
|
-
VERSION = "0.20.
|
|
7
|
+
VERSION = "0.20.11"
|
|
8
8
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gitlab_query_language
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.20.
|
|
4
|
+
version: 0.20.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Himanshu Kapoor
|
|
8
8
|
- Daniele Rossetti
|
|
9
|
+
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
12
|
+
date: 2025-11-06 00:00:00.000000000 Z
|
|
12
13
|
dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
|
14
15
|
name: rb_sys
|
|
@@ -24,7 +25,7 @@ dependencies:
|
|
|
24
25
|
- - "~>"
|
|
25
26
|
- !ruby/object:Gem::Version
|
|
26
27
|
version: 0.9.91
|
|
27
|
-
description:
|
|
28
|
+
description: A library to compile GitLab Query Language (GLQL) queries to GraphQL
|
|
28
29
|
email:
|
|
29
30
|
- hkapoor@gitlab.com
|
|
30
31
|
- drossetti@gitlab.com
|
|
@@ -40,14 +41,15 @@ files:
|
|
|
40
41
|
- ext/gitlab_query_language/extconf.rb
|
|
41
42
|
- ext/gitlab_query_language/src/lib.rs
|
|
42
43
|
- lib/gitlab_query_language.rb
|
|
43
|
-
- lib/gitlab_query_language/gitlab_query_language.bundle
|
|
44
44
|
- lib/gitlab_query_language/version.rb
|
|
45
|
-
homepage: https://gitlab.com/gitlab-org/glql
|
|
46
|
-
licenses:
|
|
45
|
+
homepage: https://gitlab.com/gitlab-org/glql/-/tree/main/glql_rb
|
|
46
|
+
licenses:
|
|
47
|
+
- MIT
|
|
47
48
|
metadata:
|
|
48
|
-
homepage_uri: https://gitlab.com/gitlab-org/glql
|
|
49
|
-
source_code_uri: https://gitlab.com/gitlab-org/glql
|
|
50
|
-
changelog_uri: https://gitlab.com/gitlab-org/glql/-/releases
|
|
49
|
+
homepage_uri: https://gitlab.com/gitlab-org/glql/-/tree/main/glql_rb
|
|
50
|
+
source_code_uri: https://gitlab.com/gitlab-org/glql/-/tree/main/glql_rb
|
|
51
|
+
changelog_uri: https://gitlab.com/gitlab-org/glql/-/tree/main/glql_rb/-/releases
|
|
52
|
+
post_install_message:
|
|
51
53
|
rdoc_options: []
|
|
52
54
|
require_paths:
|
|
53
55
|
- lib
|
|
@@ -62,7 +64,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
62
64
|
- !ruby/object:Gem::Version
|
|
63
65
|
version: 3.3.11
|
|
64
66
|
requirements: []
|
|
65
|
-
rubygems_version: 3.
|
|
67
|
+
rubygems_version: 3.5.22
|
|
68
|
+
signing_key:
|
|
66
69
|
specification_version: 4
|
|
67
70
|
summary: GitLab Query Language compiler
|
|
68
71
|
test_files: []
|
|
Binary file
|