-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathenterprise_script_service.gemspec
44 lines (37 loc) · 1.39 KB
/
enterprise_script_service.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
require "pathname"
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "enterprise_script_service/version"
Gem::Specification.new do |spec|
spec.name = "enterprise_script_service"
spec.version = EnterpriseScriptService::VERSION
spec.date = "2016-10-18"
spec.summary = "A service that evaluates ruby scripts in a secure way."
spec.authors = ["Simon Génier"]
spec.email = "[email protected]"
spec.files = begin
submodules =
%x(git submodule status --recursive).split("\n").map do |submodule|
submodule.split(/\(|\s+/)[2]
end.compact
list_tracked_files = lambda do |dir|
Dir.chdir(Pathname.new(__FILE__).dirname.join(dir)) do
%x(git ls-files -z).split("\x0").map do |file|
Pathname.new(dir).join(file).to_s
end
end
end
list_tracked_files.call(".") + submodules.flat_map do |submodule|
list_tracked_files.call(submodule)
end
end
spec.extensions = ["ext/enterprise_script_service/Rakefile"]
spec.homepage = "https://github.com/Shopify/enterprise-script-service"
spec.license = "MIT"
spec.required_ruby_version = '>= 3.1'
spec.add_dependency("msgpack", "~> 1.0")
spec.add_development_dependency("bundler")
spec.add_development_dependency("rake", "~> 13.2")
spec.add_development_dependency("rake-compiler", "~> 0.9")
spec.add_development_dependency("rspec", "~> 3.5")
end