gitlab-exporter 11.15.0 → 11.16.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: 50218ad0f2683c122db031d1dcadc7f53d17b9336999f1a3469b397282204b59
4
- data.tar.gz: cf4dde17a48c734c00233fd74438058d7e94a9312c5619eb6eabdb9c3235d53d
3
+ metadata.gz: 59972832ceb5628be0928d0b307c129838ba6ebe5c2c96ad700ea28a8b153db7
4
+ data.tar.gz: 3fd4e095c416f2dbbea0c9f5901f1d8fe3d9006eda4f8b4a522a4802cdb2a924
5
5
  SHA512:
6
- metadata.gz: c3e8259f3bf5660aa80b08ab44cf77eff1304ae494508d8faa6a0e45184ca96fa69aae03fb6ddbfcd4bcb1d12c1746342c87333268c65101fd0c2b121243eda7
7
- data.tar.gz: 14f46e6a42d6cd0776f0687cee9f0091ceff4bcd4b3683692ca275b14e20c1f5e4be4b8be26dcc896ac37cb1ff235b7be7989979949acf675c476452f012de27
6
+ metadata.gz: 8b68d888728ea5316c91e8a3ca26383dd8161544db55df677fc58fcb3c6ed5771c9154235462c3a0decee89b9dd31c6ffbef424d4106d8b534c6d9b015dbc0a4
7
+ data.tar.gz: 4402cac5d98a53b077a1832c4d933a1ed93f49cc498a739396ec96f99ab361bb2a3f07e01c58bd4095c100ea77fbe3931fd645e1e4a4d37b5c8fccf99d43d644
data/.gitlab-ci.yml CHANGED
@@ -12,6 +12,7 @@ variables:
12
12
  stages:
13
13
  - test
14
14
  - dast
15
+ - publish
15
16
 
16
17
  default:
17
18
  image: ruby:${RUBY_VERSION}
@@ -57,3 +58,16 @@ gemnasium-dependency_scanning:
57
58
 
58
59
  secret_detection:
59
60
  rules: *workflow_rules
61
+
62
+ publish_to_rubygems:
63
+ stage: publish
64
+ script:
65
+ - mkdir -p ~/.gem
66
+ - 'echo ":rubygems_api_key: ${RUBYGEMS_API_KEY}" > ~/.gem/credentials'
67
+ - chmod 0600 ~/.gem/credentials
68
+ - gem build gitlab-exporter.gemspec --output=gitlab-exporter.gem
69
+ - gem push gitlab-exporter.gem
70
+ before_script: *before_scripts
71
+ rules:
72
+ # Only push to RubyGems.org when we tag a new version
73
+ - if: '$CI_COMMIT_TAG'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab-exporter (11.15.0)
4
+ gitlab-exporter (11.16.0)
5
5
  connection_pool (= 2.2.5)
6
6
  faraday (~> 1.8.0)
7
7
  pg (= 1.2.3)
@@ -10,7 +10,7 @@ PATH
10
10
  redis (= 4.4.0)
11
11
  redis-namespace (= 1.6.0)
12
12
  sidekiq (= 6.4.0)
13
- sinatra (~> 2.1.0)
13
+ sinatra (~> 2.2.0)
14
14
 
15
15
  GEM
16
16
  remote: https://rubygems.org/
@@ -48,8 +48,8 @@ GEM
48
48
  puma (5.6.2)
49
49
  nio4r (~> 2.0)
50
50
  quantile (0.2.1)
51
- rack (2.2.3)
52
- rack-protection (2.1.0)
51
+ rack (2.2.3.1)
52
+ rack-protection (2.2.0)
53
53
  rack
54
54
  rainbow (3.0.0)
55
55
  redis (4.4.0)
@@ -87,10 +87,10 @@ GEM
87
87
  connection_pool (>= 2.2.2)
88
88
  rack (~> 2.0)
89
89
  redis (>= 4.2.0)
90
- sinatra (2.1.0)
90
+ sinatra (2.2.0)
91
91
  mustermann (~> 1.0)
92
92
  rack (~> 2.2)
93
- rack-protection (= 2.1.0)
93
+ rack-protection (= 2.2.0)
94
94
  tilt (~> 2.0)
95
95
  tilt (2.0.10)
96
96
  unicode-display_width (1.7.0)
@@ -107,4 +107,4 @@ DEPENDENCIES
107
107
  webrick (~> 1.7)
108
108
 
109
109
  BUNDLED WITH
110
- 2.2.29
110
+ 2.2.22
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
28
28
  s.add_runtime_dependency "redis", "4.4.0"
29
29
  s.add_runtime_dependency "redis-namespace", "1.6.0"
30
30
  s.add_runtime_dependency "sidekiq", "6.4.0"
31
- s.add_runtime_dependency "sinatra", "~> 2.1.0"
31
+ s.add_runtime_dependency "sinatra", "~> 2.2.0"
32
32
 
33
33
  s.add_development_dependency "rspec", "~> 3.7.0"
34
34
  s.add_development_dependency "rspec-expectations", "~> 3.7.0"
@@ -182,7 +182,7 @@ module GitLab
182
182
  container_repositories_import_done_free: {
183
183
  select: :container_repositories,
184
184
  where: <<~SQL
185
- migration_state = 'import_done'
185
+ (migration_state = 'import_done' OR created_at >= '2022-01-23 00:00:00')
186
186
  AND (migration_plan IN ('free', 'early_adopter')
187
187
  OR migration_plan IS NULL)
188
188
  SQL
@@ -191,7 +191,7 @@ module GitLab
191
191
  select: :container_repositories,
192
192
  where: <<~SQL
193
193
  migration_state = 'pre_importing'
194
- AND (COALESCE(migration_pre_import_started_at, '01-01-1970') < (now() - INTERVAL '10 minutes'))
194
+ AND (COALESCE(migration_pre_import_started_at, '01-01-1970') < (now() - INTERVAL '20 minutes'))
195
195
  SQL
196
196
  },
197
197
  container_repositories_stalled_pre_import_done: {
@@ -1,5 +1,5 @@
1
1
  module GitLab
2
2
  module Exporter
3
- VERSION = "11.15.0".freeze
3
+ VERSION = "11.16.0".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-exporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.15.0
4
+ version: 11.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Carranza
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2016-07-27 00:00:00.000000000 Z
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 2.1.0
131
+ version: 2.2.0
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 2.1.0
138
+ version: 2.2.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rspec
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -224,7 +224,7 @@ homepage: http://gitlab.com
224
224
  licenses:
225
225
  - MIT
226
226
  metadata: {}
227
- post_install_message:
227
+ post_install_message:
228
228
  rdoc_options: []
229
229
  require_paths:
230
230
  - lib
@@ -239,8 +239,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  - !ruby/object:Gem::Version
240
240
  version: '0'
241
241
  requirements: []
242
- rubygems_version: 3.0.3.1
243
- signing_key:
242
+ rubygems_version: 3.1.6
243
+ signing_key:
244
244
  specification_version: 4
245
245
  summary: GitLab metrics exporter
246
246
  test_files: