-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathsimp-compliance-engine.gemspec
39 lines (37 loc) · 1.26 KB
/
simp-compliance-engine.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
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
module Simp
class Helpers
def self.get_param(param, command)
file = "#{File.dirname(__FILE__)}/.gem_#{param}"
if (File.exist?(file))
info = File.read(file)
else
info = `#{command}`
File.open(file, "w") do |f|
f.write(info)
end
end
puts info
info
end
end
end
Gem::Specification.new do |s|
s.name = 'simp-compliance-engine'
ver = Simp::Helpers.get_param("version", "git describe --always --dirty")
date = Simp::Helpers.get_param("date", "git show -s --date=short --format=%cd HEAD")
s.date = date
s.version = ver
s.summary = 'SIMP Metadata Library'
s.description = 'A library for accessing the SIMP metadata format for the simp project'
s.authors = [
"SIMP Project"
]
s.executables = `git ls-files -- exe/*`.split("\n").map{ |f| File.basename(f) }
s.bindir = 'exe'
s.email = '[email protected]'
s.license = 'Apache-2.0'
s.homepage = 'https://github.com/simp/pupmod-simp-compliance_markup'
s.files = Dir['Rakefile', '{bin,lib}/**/*', 'README*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT', '.gem_version', '.gem_date']
s.add_runtime_dependency 'semantic_puppet'
end