-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibmagic.gemspec
More file actions
44 lines (40 loc) · 1.63 KB
/
libmagic.gemspec
File metadata and controls
44 lines (40 loc) · 1.63 KB
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
Gem::Specification.new do |s|
s.name = "libmagic"
s.version = "0.5.11"
s.specification_version = 2 if s.respond_to? :specification_version=
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["CDD Development Staff <info@collaborativedrug.com>"]
s.date = "2010-02-04"
s.description = "Wrapper for libmagic's magic_file and magic_buffer methods"
s.email = ""
s.files = ["test/test_magic.rb",
"test/files/utf-8.txt",
"test/files/iso-8859-1.txt",
"test/files/windows-1252.txt",
"test/files/us-ascii.txt",
"test/files/macintosh.txt",
"test/files/huge_file_with_one_special_character.csv",
"test/files/huge_file_with_one_special_character_at_the_end.csv",
"test/files/part_of_ki_file.csv",
"lib/libmagic.rb",
"lib/custom-magic",
"lib/custom-magic.mime",
"libmagic.gemspec"]
s.has_rdoc = false
s.homepage = "https://github.com/cdd/libmagic"
s.require_paths = ["lib"]
s.rubygems_version = "3.1.6"
s.summary = "Wrapper for libmagic's magic_file and magic_buffer methods, plus extra goodness"
s.test_files = ["test/test_magic.rb"]
if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 2
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency("ffi", "1.15.1")
else
s.add_dependency("ffi", "1.15.1")
end
else
s.add_dependency("ffi", "1.15.1")
end
end