-
Notifications
You must be signed in to change notification settings - Fork 27
/
snappy.gemspec
37 lines (31 loc) · 1.27 KB
/
snappy.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
# frozen_string_literal: true
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "snappy/version"
Gem::Specification.new do |spec|
spec.name = "snappy"
spec.version = Snappy::VERSION
spec.authors = ["miyucy"]
spec.email = ["[email protected]"]
spec.description = "libsnappy binding for Ruby"
spec.summary = "libsnappy binding for Ruby"
spec.homepage = "http://github.com/miyucy/snappy"
spec.license = "MIT"
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
spec.test_files = `git ls-files -z -- test`.split("\x0")
spec.files = `git ls-files -z`.split("\x0")
spec.files -= spec.test_files
spec.files -= ["vendor/snappy"]
spec.files += Dir["vendor/snappy/**/*"].reject { |e| e.start_with? "vendor/snappy/testdata" }
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
if defined?(JRUBY_VERSION)
spec.files += %w[lib/snappy_ext.jar]
spec.platform = "java"
spec.add_dependency "snappy-jars", "~> 1.1.0"
else
spec.extensions = ["ext/extconf.rb"]
spec.metadata['msys2_mingw_dependencies'] = 'snappy'
end
end