-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbm-instrumentations.gemspec
41 lines (33 loc) · 1.49 KB
/
bm-instrumentations.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# frozen_string_literal: true
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'bm/instrumentations/version'
Gem::Specification.new do |spec|
spec.name = 'bm-instrumentations'
spec.version = BM::Instrumentations::VERSION
spec.authors = ['Dmitry Galinsky']
spec.email = ['dima@bookmate.com']
spec.summary = 'Provides Prometheus metrics collectors and integrations for Sequel, Rack, S3, Roda and etc'
spec.homepage = 'https://github.com/bookmate/backend-commons/bm-instrumentations'
spec.license = 'MIT'
spec.required_ruby_version = '>= 2.7.0'
if spec.respond_to?(:metadata)
spec.metadata['allowed_push_host'] = 'https://nexus.bookmate.services/repository/bookmate/'
spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = spec.homepage
spec.metadata['changelog_uri'] = "#{spec.homepage}/CHANGELOG.md"
else
raise 'RubyGems 2.0 or newer is required to protect against ' \
'public gem pushes.'
end
spec.files = Dir.chdir(File.expand_path(__dir__)) do
`git ls-files -z`
.split("\x0")
.reject { _1.match(/^\./) }
.reject { _1.match(%r{^(test|spec|features|bin)/}) }
.reject { _1.match(%r{^(CODE_OF_CONDUIT|Gemfile|Rakefile|docker-compose|lib/tasks)}) }
end
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = %w[lib]
spec.add_dependency 'prometheus-client', '~> 2.1'
end