tf-idf-similarity 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/mkrf_conf.rb +15 -0
- data/lib/tf-idf-similarity/version.rb +1 -1
- data/td-idf-similarity.gemspec +2 -1
- metadata +5 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59bb7c78425275cc205d8da70ada7473b276aea3
|
4
|
+
data.tar.gz: fb65fe27a97bd1221de635692ff01e2b94e18dd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6c7283d07da50c2c1240028158b0b58a59294eeec9c64c9dceca2f3327d0b6c50b7f0864ddc1b2a52e3579ae1fe83ee28b67a323a853c734a16ff9762f47715
|
7
|
+
data.tar.gz: fc93e16980c65dff125d8692948bb6d8141adcb78b2e1cad3d6aa09907b049698a6e40692496cfa6635b66baf026e5aa14dda8913929e9ab111158315eebd64d
|
data/ext/mkrf_conf.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# @see http://www.programmersparadox.com/2012/05/21/gemspec-loading-dependent-gems-based-on-the-users-system/
|
2
|
+
require 'rubygems/dependency_installer.rb'
|
3
|
+
|
4
|
+
installer = Gem::DependencyInstaller.new
|
5
|
+
begin
|
6
|
+
unless RUBY_VERSION < '1.9'
|
7
|
+
installer.install('unicode_utils', '>=0')
|
8
|
+
end
|
9
|
+
rescue
|
10
|
+
exit(1)
|
11
|
+
end
|
12
|
+
|
13
|
+
f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w")
|
14
|
+
f.write("task :default\n")
|
15
|
+
f.close
|
data/td-idf-similarity.gemspec
CHANGED
@@ -16,9 +16,10 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
|
19
|
-
s.add_runtime_dependency('unicode_utils') unless RUBY_VERSION < '1.9'
|
20
19
|
s.add_development_dependency('rspec', '~> 2.10')
|
21
20
|
s.add_development_dependency('rake')
|
22
21
|
s.add_development_dependency('coveralls')
|
23
22
|
s.add_development_dependency('mime-types', '~> 1.25') # 2.0 requires Ruby 1.9.2
|
23
|
+
|
24
|
+
s.extensions = ['ext/mkrf_conf.rb']
|
24
25
|
end
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tf-idf-similarity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Open North
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: unicode_utils
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: rspec
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,7 +70,8 @@ description:
|
|
84
70
|
email:
|
85
71
|
- info@opennorth.ca
|
86
72
|
executables: []
|
87
|
-
extensions:
|
73
|
+
extensions:
|
74
|
+
- ext/mkrf_conf.rb
|
88
75
|
extra_rdoc_files: []
|
89
76
|
files:
|
90
77
|
- ".gitignore"
|
@@ -95,6 +82,7 @@ files:
|
|
95
82
|
- README.md
|
96
83
|
- Rakefile
|
97
84
|
- USAGE
|
85
|
+
- ext/mkrf_conf.rb
|
98
86
|
- lib/tf-idf-similarity.rb
|
99
87
|
- lib/tf-idf-similarity/bm25_model.rb
|
100
88
|
- lib/tf-idf-similarity/document.rb
|