mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Use Dir.glob and base keyword arg for the installer of Ruby package
This commit is contained in:
parent
05443bb7e9
commit
5ee6315704
2 changed files with 3 additions and 3 deletions
|
@ -44,8 +44,7 @@ spec = Gem::Specification.new do |s|
|
||||||
"LEGAL",
|
"LEGAL",
|
||||||
"README.md",
|
"README.md",
|
||||||
"json.gemspec",
|
"json.gemspec",
|
||||||
*Dir["lib/**/*.rb"],
|
] + Dir.glob("lib/**/*.rb", base: File.expand_path("..", __FILE__))
|
||||||
]
|
|
||||||
|
|
||||||
if java_ext
|
if java_ext
|
||||||
s.platform = 'java'
|
s.platform = 'java'
|
||||||
|
|
|
@ -13,7 +13,8 @@ Gem::Specification.new do |spec|
|
||||||
spec.files = []
|
spec.files = []
|
||||||
spec.add_runtime_dependency('jruby-openssl', '~> 0.14')
|
spec.add_runtime_dependency('jruby-openssl', '~> 0.14')
|
||||||
else
|
else
|
||||||
spec.files = Dir["lib/**/*.rb", "ext/**/*.{c,h,rb}", "*.md", "BSDL", "COPYING"]
|
spec.files = Dir.glob(["lib/**/*.rb", "ext/**/*.{c,h,rb}", "*.md"], base: File.expand_path("..", __FILE__)) +
|
||||||
|
["BSDL", "COPYING"]
|
||||||
spec.require_paths = ["lib"]
|
spec.require_paths = ["lib"]
|
||||||
spec.extensions = ["ext/openssl/extconf.rb"]
|
spec.extensions = ["ext/openssl/extconf.rb"]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue