gitlab_query_language 0.20.9 → 0.20.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b67d037d530bcc30de700a007a655cb8e60ad7941e1bc771171d5b3131998f99
4
- data.tar.gz: 3af738c4e48352b0d57b99f06e7d93a6c3a59cd8d6e220c014aa1833f853567b
3
+ metadata.gz: 876d559d34894bb6c2f321edfd049a585760b08f3c5f01135757a673ea40fb59
4
+ data.tar.gz: ff98c2f28bdd6f59d55be9461e6d3b96aab81f43ccc7f57b44d41d59c87005e6
5
5
  SHA512:
6
- metadata.gz: 7d7cbe405728127a8d03b0e352c0bd9031d5a9921f9a0834c9904ae51f7fcb8c60f2df0d2327ec38b25266963cd163ae7da7c8ad83f8113b02c4b8bc392ccb90
7
- data.tar.gz: 790ab3d60eb3cf5673ca79b273093641228c686e1b089a0c0d37efde0307570f2aebac077be38a31663cf8f2aff06627ea92444db3895be98705ab557e5cc107
6
+ metadata.gz: 0010e9d4a24c25a20c2832b7ea9fde10aaa9c3b2d33562f2473f2f741ae8b944a5ce4ab4ec5e30a9f7dec6b09071627869e5c739cce8b9effe23e5cf41f92c18
7
+ data.tar.gz: fd891504446e3b2da07f6422fc22ea5733076106f63fb48d02dd3ce9f9bf53b7ecfd3ed69a7ec1f02971c3f01f719b95364a41630645b5e6f57d2fee19af97e1
data/Cargo.lock CHANGED
@@ -233,8 +233,8 @@ checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
233
233
 
234
234
  [[package]]
235
235
  name = "glql"
236
- version = "0.20.9"
237
- source = "git+https://gitlab.com/gitlab-org/glql.git?branch=main#5f8b30a8f3490aa42d80b030870f73a629dff706"
236
+ version = "0.20.10"
237
+ source = "git+https://gitlab.com/gitlab-org/glql.git?tag=v0.20.10#f03237fcc8015d2a6215b6301af61e6feaceb0d9"
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.
@@ -10,4 +10,4 @@ crate-type = ["cdylib"]
10
10
 
11
11
  [dependencies]
12
12
  magnus = { version = "0.6.2" }
13
- glql = { git = "https://gitlab.com/gitlab-org/glql.git", branch = "main" }
13
+ glql = { git = "https://gitlab.com/gitlab-org/glql.git", tag = "v0.20.10" }
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This file is auto-generated by rake sync_version during the build process.
4
- # The version is read from the root Cargo.toml to keep them in sync.
5
- # Changes to this file should be committed. A version change will trigger a gem release.
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.9"
7
+ VERSION = "0.20.10"
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.9
4
+ version: 0.20.10
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-10-31 00:00:00.000000000 Z
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: Compiler for GitLab Query Language (GLQL)
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.6.2
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: []