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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54b0ee812908409bf4bcdb04b77511cc916804cba092dcfbfafea20ba399e2d9
4
- data.tar.gz: dc68e52e7a70e2df2e2c3f9808a9e873c8bbd4500506d2df037d02418323e343
3
+ metadata.gz: 4e26eca02537e3eeeac2edd6059edaf18a1ef22587d669690abd43685bc039a7
4
+ data.tar.gz: f0b90ebde51e247bb30dfd43c87b36fe4d1928e85129225e66179e46cddbc4cf
5
5
  SHA512:
6
- metadata.gz: 75adb8ee7eecc92ce1bf23f2433e686c7ac7e68136774d88c0a9cd0d5af11e177c14ff1ea5155ab03bf7493979cc98361f799c2314a76493f72671d4d296cad1
7
- data.tar.gz: cdd7a8cc0a2444c6c6647f38bcd79863784e53b475fbd117ef7759df909b9629abc6d7b889ebd14f3bdeb75e99ec462e8bb3f2870df6f19b6b28decc92291fb5
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.20.12"
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:
@@ -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", tag = "v0.20.12" }
13
+ glql = { git = "https://gitlab.com/gitlab-org/glql.git", tag = "v0.22.0" }
@@ -4,5 +4,5 @@
4
4
  # This version is kept in sync with the root Cargo.toml version.
5
5
  # A version bump will trigger a gem release.
6
6
  module Glql
7
- VERSION = "0.20.12"
7
+ VERSION = "0.22.0"
8
8
  end
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.20.12
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-01-20 00:00:00.000000000 Z
12
+ date: 2026-02-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rb_sys