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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bcd5811852a4ec0e65c55ac09854024c1256483b
4
- data.tar.gz: 9978891aa4e76e8badec85da898b575ed91098cc
3
+ metadata.gz: 59bb7c78425275cc205d8da70ada7473b276aea3
4
+ data.tar.gz: fb65fe27a97bd1221de635692ff01e2b94e18dd7
5
5
  SHA512:
6
- metadata.gz: 3219126f9ea91f3d2bfb8db0954d6637f090d4c75bf5f7c57c8208b0a812c1d8e2fd488d438cedd5e188a6a169ff7b9bf1470e82146085bc2bdf7298de1572fb
7
- data.tar.gz: d523d3e77ab1cfd31ddc4e6b7f429726b4d6b3520377e3504d8b0c2bc7a51b11dcaa55991ed19ff497ae75e993ce49aef34dcef619f066e7a7c6ac9e7ee1aa35
6
+ metadata.gz: f6c7283d07da50c2c1240028158b0b58a59294eeec9c64c9dceca2f3327d0b6c50b7f0864ddc1b2a52e3579ae1fe83ee28b67a323a853c734a16ff9762f47715
7
+ data.tar.gz: fc93e16980c65dff125d8692948bb6d8141adcb78b2e1cad3d6aa09907b049698a6e40692496cfa6635b66baf026e5aa14dda8913929e9ab111158315eebd64d
@@ -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
@@ -1,3 +1,3 @@
1
1
  module TfIdfSimilarity
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -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.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-28 00:00:00.000000000 Z
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