-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsimhash.gemspec
40 lines (36 loc) · 1.55 KB
/
simhash.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
$LOAD_PATH << File.join(File.dirname(__FILE__), 'lib')
include_files = ["README*", "LICENSE", "Rakefile", "init.rb", "{lib,rails,ext}/**/*"].map do |glob|
Dir[glob]
end.flatten
exclude_files = ["**/*.o", "**/*.bundle", "**/Makefile", "*.bundle" ].map do |glob|
Dir[glob]
end.flatten
spec = Gem::Specification.new do |s|
s.name = "simhash"
s.version = "0.2.5"
s.author = "Alex Gusev"
s.email = "[email protected]"
s.homepage = "http://github.com/bookmate/simhash"
s.rubyforge_project = "simhash"
s.description = "Implementation of Charikar simhashes in Ruby"
s.platform = Gem::Platform::RUBY
s.summary = "Gives you possbility to convert string into simhashes to futher use: finding near-duplicates, similar strings, etc."
s.files = include_files - exclude_files
s.require_path = "lib"
s.test_files = Dir["test/**/test_*.rb"]
s.extensions = ["ext/string_hashing/extconf.rb"]
if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<unicode>, [">= 0.3.1"])
s.add_runtime_dependency(%q<activesupport>)
else
s.add_dependency(%q<unicode>, [">= 0.3.1"])
s.add_dependency(%q<activesupport>)
end
else
s.add_dependency(%q<unicode>, [">= 0.3.1"])
s.add_dependency(%q<activesupport>)
end
end