-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathscript_core.gemspec
45 lines (36 loc) · 1.32 KB
/
script_core.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
# frozen_string_literal: true
require "pathname"
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "script_core/version"
Gem::Specification.new do |spec|
spec.name = "script_core"
spec.version = ScriptCore::VERSION
spec.summary = "A script engine powered by mruby sandboxie, It's a fork of Shopify's ESS."
spec.authors = ["jasl"]
spec.email = "[email protected]"
spec.files = begin
submodules =
`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
`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/rails-engine/script_core"
spec.license = "MIT"
spec.required_ruby_version = ">= 2.5"
spec.add_dependency("msgpack", "~> 1.0")
spec.add_dependency("rake-compiler", "~> 1.0")
spec.add_development_dependency("rake", "~> 13")
spec.add_development_dependency("rspec", "~> 3.5")
end