gitlab-labkit 1.6.1 → 1.6.2

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: d4d14a6537b13d635133bda037b3c0d005c212414affacc546f6ba60cfc433c8
4
- data.tar.gz: 40b259acc97328cf5a12156b8415308750d1ded3bda89b190aae6b66be66be50
3
+ metadata.gz: 9df561103bdda6bf8f2aeb6a198b78e881f759312763df6ace096f148475ca86
4
+ data.tar.gz: 2560672a5ae35355619da45f4d74caaa97682c3dca7b87090264b44d458c68b3
5
5
  SHA512:
6
- metadata.gz: 41fa558041ba46e4b3280fe37273e8a819b19c62a9c5539cfcb6200dc94b5f25dc2ed5f0dde861c8653dd02d0d91a0a948220729cd022ea346de7cb94cc64acc
7
- data.tar.gz: a9966f49707dd37b1aa730e14745eb8f2181c5505e643531114e92d6c154c93ed3b185b1b5ab991663ed069a9ab4228a9ca8e8c64019f4a79d048130ef049086
6
+ metadata.gz: 9bfcebe79a6ae1802b48266d693b35dcc0a26680714ef6575338d1cc67be423005f5364f105d0ac07825f92a038aef5151cc3bcba743ec7a0e4ac8e8348b26b7
7
+ data.tar.gz: 583f3c4cad2869e29c62ad98e773095e1e9f8ea3d1b99f2993057021ce12afb55e08f81679d475387ef54f75cd9089344eb020cae8f15469437a050aa628abb6
data/.copier-answers.yml CHANGED
@@ -3,7 +3,7 @@
3
3
  # See the project for instructions on how to update the project
4
4
  #
5
5
  # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
6
- _commit: v1.41.2
6
+ _commit: v1.43.0
7
7
  _src_path: https://gitlab.com/gitlab-com/gl-infra/common-template-copier.git
8
8
  ee_licensed: false
9
9
  golang: false
@@ -15,3 +15,4 @@ release_platform: false
15
15
  ruby: true
16
16
  rubygem: true
17
17
  terraform: false
18
+ truncated_tags: true
@@ -1,5 +1,5 @@
1
1
  # DO NOT MANUALLY EDIT; Run ./scripts/update-asdf-version-variables.sh to update this
2
2
  variables:
3
- GL_ASDF_RUBY_VERSION: "3.4.8"
3
+ GL_ASDF_RUBY_VERSION: "4.0.1"
4
4
  GL_ASDF_SHELLCHECK_VERSION: "0.11"
5
- GL_ASDF_SHFMT_VERSION: "3.12"
5
+ GL_ASDF_SHFMT_VERSION: "3.13"
data/.gitlab-ci.yml CHANGED
@@ -19,29 +19,28 @@ include:
19
19
  # It includes standard checks, gitlab-scanners, validations and release processes
20
20
  # common to all projects using this template library.
21
21
  # see https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/templates/standard.md
22
- - component: $CI_SERVER_FQDN/gitlab-com/gl-infra/common-ci-tasks/standard-build@v3.8
22
+ - component: $CI_SERVER_FQDN/gitlab-com/gl-infra/common-ci-tasks/standard-build@v3.11
23
23
 
24
24
  # Runs rspec tests and rubocop on the project
25
25
  # see https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/templates/ruby.md
26
- - component: $CI_SERVER_FQDN/gitlab-com/gl-infra/common-ci-tasks/ruby-build@v3.8
26
+ - component: $CI_SERVER_FQDN/gitlab-com/gl-infra/common-ci-tasks/ruby-build@v3.11
27
27
 
28
- - component: $CI_SERVER_FQDN/gitlab-com/gl-infra/common-ci-tasks/danger@v3.8
29
-
30
- .test_template: &test_definition
31
- extends: .with_bundle
32
- image: ruby:${RUBY_VERSION}
33
- stage: validate
34
- script:
35
- - gem install bundler --no-document
36
- - bundle config --local path vendor
37
- - bundle install
38
- - bundle exec rake verify build install
28
+ - component: $CI_SERVER_FQDN/gitlab-com/gl-infra/common-ci-tasks/danger@v3.11
39
29
 
40
30
  ruby-versions:
41
- <<: *test_definition
31
+ extends: rspec
32
+ image: ${CI_REGISTRY}/gitlab-com/gl-infra/common-ci-tasks-images/ruby:${RUBY_VERSION}
33
+ parallel:
34
+ matrix:
35
+ - RUBY_VERSION: ["3.4"]
36
+
37
+ # These versions aren't built in common CI tasks, so use a public ruby image
38
+ legacy-ruby-versions:
39
+ extends: rspec
40
+ image: ruby:${RUBY_VERSION}
42
41
  parallel:
43
42
  matrix:
44
- - RUBY_VERSION: ["3.2", "3.3"]
43
+ - RUBY_VERSION: ["3.3"]
45
44
 
46
45
  deploy:
47
46
  rules:
@@ -25,7 +25,7 @@ repos:
25
25
  # Documentation available at
26
26
  # https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/docs/pre-commit.md
27
27
  - repo: https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks
28
- rev: v3.8 # renovate:managed
28
+ rev: v3.11 # renovate:managed
29
29
 
30
30
  hooks:
31
31
  - id: shellcheck # Run shellcheck for changed Shell files
data/.tool-versions CHANGED
@@ -1,3 +1,3 @@
1
- ruby 3.4.8
2
- shfmt 3.12
1
+ ruby 4.0.1
2
+ shfmt 3.13
3
3
  shellcheck 0.11
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.bindir = "exe"
20
20
  spec.executables = %w[labkit-logging]
21
21
  spec.require_paths = ["lib"]
22
- spec.required_ruby_version = "~> 3.2"
22
+ spec.required_ruby_version = ">= 3.3", "< 5"
23
23
 
24
24
  # Please maintain alphabetical order for dependencies
25
25
  spec.add_runtime_dependency "actionpack", ">= 5.0.0", "< 8.1.0"
@@ -39,7 +39,7 @@ Gem::Specification.new do |spec|
39
39
 
40
40
  # Please maintain alphabetical order for dev dependencies
41
41
  spec.add_development_dependency "excon", "~> 0.78.1"
42
- spec.add_development_dependency "faraday", "~> 1.10.3"
42
+ spec.add_development_dependency "faraday", "~> 2.13"
43
43
  spec.add_development_dependency "gitlab-dangerfiles", "~> 2.11.0"
44
44
  spec.add_development_dependency "gitlab-styles", "~> 13.1"
45
45
  spec.add_development_dependency "grpc-tools", ">= 1.75"
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "base64"
4
- require "cgi"
4
+ require "cgi/escape"
5
5
  require "active_support"
6
6
  require "active_support/core_ext"
7
7
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "cgi"
3
+ require "uri"
4
4
  require "active_support/core_ext/string/starts_ends_with"
5
5
  require "opentracing"
6
6
 
@@ -80,7 +80,7 @@ module Labkit
80
80
  def self.parse_query_string(query)
81
81
  return {} unless query
82
82
 
83
- CGI.parse(query).symbolize_keys.transform_values(&:first)
83
+ URI.decode_www_form(query).each_with_object({}) { |(k, v), h| h[k.to_sym] ||= v }
84
84
  end
85
85
  end
86
86
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-labkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Newdigate
@@ -267,14 +267,14 @@ dependencies:
267
267
  requirements:
268
268
  - - "~>"
269
269
  - !ruby/object:Gem::Version
270
- version: 1.10.3
270
+ version: '2.13'
271
271
  type: :development
272
272
  prerelease: false
273
273
  version_requirements: !ruby/object:Gem::Requirement
274
274
  requirements:
275
275
  - - "~>"
276
276
  - !ruby/object:Gem::Version
277
- version: 1.10.3
277
+ version: '2.13'
278
278
  - !ruby/object:Gem::Dependency
279
279
  name: gitlab-dangerfiles
280
280
  requirement: !ruby/object:Gem::Requirement
@@ -665,16 +665,19 @@ require_paths:
665
665
  - lib
666
666
  required_ruby_version: !ruby/object:Gem::Requirement
667
667
  requirements:
668
- - - "~>"
668
+ - - ">="
669
+ - !ruby/object:Gem::Version
670
+ version: '3.3'
671
+ - - "<"
669
672
  - !ruby/object:Gem::Version
670
- version: '3.2'
673
+ version: '5'
671
674
  required_rubygems_version: !ruby/object:Gem::Requirement
672
675
  requirements:
673
676
  - - ">="
674
677
  - !ruby/object:Gem::Version
675
678
  version: '0'
676
679
  requirements: []
677
- rubygems_version: 3.6.9
680
+ rubygems_version: 4.0.3
678
681
  specification_version: 4
679
682
  summary: Instrumentation for GitLab
680
683
  test_files: []