-
Notifications
You must be signed in to change notification settings - Fork 83
/
hammer_cli_katello.gemspec
72 lines (65 loc) · 2.2 KB
/
hammer_cli_katello.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# -*- encoding: utf-8 -*-
$LOAD_PATH.unshift(File.expand_path('../lib', __FILE__))
require 'hammer_cli_katello/version'
# rubocop:disable Layout/LineLength
begin
Dir["locale/**/*.po"].each do |po|
mo = po.sub(/hammer-cli-katello\.po$/, "LC_MESSAGES/hammer-cli-katello.mo")
STDERR.puts "WARNING: File #{mo} does not exist, generate with 'make all-mo'!" unless File.exist?(mo)
STDERR.puts "WARNING: File #{mo} outdated, regenerate with 'make all-mo'" if File.mtime(po) > File.mtime(mo)
# Adding this so you can actually build the gem and the warnings come out, without this
# we get an error when making the gem and it fails as well as a ruby error if the mo files don't exist
end
rescue => e
puts "#{e} not found"
end
# rubocop:enable Layout/LineLength
Gem::Specification.new do |gem|
gem.authors = [
"Adam Price",
"Adam Ruzicka",
"Andrew Kofink",
"Brad Buckingham",
"Bryan Kearney",
"Chris Duryee",
"Chris Roberts",
"Christine Fouant",
"Daniel Lobato García",
"David Davis",
"Dustin Tsang",
"Eric D. Helms",
"Ivan Nečas",
"Jason L Connor",
"Jason Montleon",
"John Mitsch",
"Justin Sherrill",
"Lucy Fu",
"Martin Bačovský",
"Michaux Kelley",
"Og Maciel",
"Partha Aji",
"Pavel Moravec",
"Quinn James",
"Roman Plevka",
"Stephen Benjamin",
"Tomas Strachota",
"Tom McKay",
"Walden Raines",
"Zach Huntington-Meath"
]
gem.email = ['katello@lists.fedorahosted.org']
gem.license = "GPL-3.0-or-later"
gem.description = 'Hammer-CLI-Katello is a plugin for Hammer to provide' \
' connectivity to a Katello server.'
gem.summary = 'Katello commands for Hammer'
gem.homepage = 'https://github.com/Katello/hammer-cli-katello'
gem.files = Dir['config/**/*', 'lib/**/*.rb', 'locale/**/**']
gem.test_files = `git ls-files -- {test,spec,features}/*`.split($ORS)
gem.name = 'hammer_cli_katello'
gem.require_paths = ['lib']
gem.version = HammerCLIKatello.version
gem.required_ruby_version = '>= 2.7', '< 4'
gem.add_development_dependency 'theforeman-rubocop', '~> 0.1.0'
gem.add_dependency 'hammer_cli_foreman', '~> 3.9'
gem.add_dependency 'hammer_cli_foreman_tasks', '~> 0.0.20'
end