forked from bookmate/simhash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimhash.gemspec
57 lines (52 loc) · 2.2 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
require 'rubygems'
require 'rake'
spec = Gem::Specification.new do |s|
s.name = "simhash"
s.version = "0.2.3"
s.author = "Alex Gusev"
s.email = "alex.gusev@bookmate.ru"
s.homepage = "http://github.com/wflanagan/simhash"
s.rubyforge_project = "simhash"
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 = [
"simhash.gemspec",
"README.rdoc",
"Rakefile",
"LICENSE",
"ext/string_hashing/extconf.rb",
"ext/string_hashing/string_hashing.c",
"lib/integer.rb",
"lib/simhash.rb",
"lib/string.rb",
"lib/simhash/stopwords.rb",
"lib/simhash/stopwords/en.rb",
"lib/simhash/stopwords/ru.rb",
"test/helper.rb",
"test/integer_test.rb",
"test/simhash_test.rb",
"test/string_test.rb" ]
s.require_paths = ["lib"]
s.test_files = ["test/helper.rb",
"test/integer_test.rb",
"test/simhash_test.rb",
"test/string_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
Rake::GemPackageTask.new(spec) do |pkg|
end
Rake::ExtensionTask.new('string_hashing', spec)