simhilarity 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -98,11 +98,11 @@ simhash 7 9s 10,000 (this is the default)
98
98
  simhash 8 12s 25,000
99
99
  simhash 9 13s 60,000
100
100
 
101
- ngrams 5 46s 1,000,000
102
- ngrams 4 44s 1,500,000
103
- ngrams 3 40s 2,100,000
101
+ ngrams 5 45s 1,000,000
102
+ ngrams 4 45s 1,500,000
103
+ ngrams 3 40s 2,000,000
104
104
 
105
- all 3.9s 5,000,000
105
+ all 4s 5,000,000
106
106
  ```
107
107
 
108
108
  #### Matching
@@ -111,10 +111,9 @@ Once candidates are identified, the string pairs are scored and winners are pick
111
111
 
112
112
  ```
113
113
  candidates time
114
- 25,000 1s
115
- 60,000 2s
114
+ 50,000 1s
116
115
  1,000,000 35s
117
- 5,000,000 190s
116
+ 5,000,000 140s
118
117
  ```
119
118
 
120
119
 
data/Rakefile CHANGED
@@ -1,16 +1,40 @@
1
- require "bundler/gem_tasks"
1
+ require "bundler"
2
+ require "bundler/setup"
2
3
  require "rake/testtask"
3
4
  require "rdoc/task"
4
5
 
5
- Bundler::GemHelper.install_tasks
6
+ #
7
+ # gem
8
+ #
9
+
10
+ task gem: :build
11
+ task :build do
12
+ system "gem build --quiet simhilarity.gemspec"
13
+ end
14
+
15
+ task install: :build do
16
+ system "sudo gem install --quiet simhilarity-#{Simhilarity::VERSION}.gem"
17
+ end
18
+
19
+ task release: :build do
20
+ system "git tag -a #{Simhilarity::VERSION} -m 'Tagging #{Simhilarity::VERSION}'"
21
+ system "git push --tags"
22
+ system "gem push simhilarity-#{Simhilarity::VERSION}.gem"
23
+ end
24
+
25
+ #
26
+ # test
27
+ #
6
28
 
7
- # testing
8
29
  Rake::TestTask.new(:test) do |test|
9
30
  test.libs << "test"
10
31
  end
11
32
  task default: :test
12
33
 
34
+ #
13
35
  # rdoc
36
+ #
37
+
14
38
  RDoc::Task.new do |rdoc|
15
39
  rdoc.rdoc_dir = "rdoc"
16
40
  rdoc.title = "simhilarity #{Simhilarity::VERSION}"
@@ -1,4 +1,4 @@
1
1
  module Simhilarity
2
2
  # Gem version
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
data/simhilarity.gemspec CHANGED
@@ -1,3 +1,5 @@
1
+ $LOAD_PATH << File.expand_path("../lib", __FILE__)
2
+
1
3
  require "simhilarity/version"
2
4
 
3
5
  Gem::Specification.new do |s|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simhilarity
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  segments:
142
142
  - 0
143
- hash: -2275181007329764325
143
+ hash: -1024001634221116929
144
144
  requirements: []
145
145
  rubyforge_project: simhilarity
146
146
  rubygems_version: 1.8.24