amatch 0.2.11 → 0.3.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: cb10a4b272e6f2e89cc6f4c977abce874a4a6928
4
+ data.tar.gz: d930f2f6cab0e80f90713debdf62bbb3c2b09c93
5
+ SHA512:
6
+ metadata.gz: 340b43efe94c76b98c4b68a5feb182a114c1a93576a5704a2af758f6ba867798d391d34e7ed4f7b0f4b22c931e2f763da124ddc4c75acdb1c13da218d5a1047f
7
+ data.tar.gz: d48f7d50cd00ab6b81145e7b419580c486ea852072687d10448f117775756993ff7ae62c85209ad616f2141a74006cec3b3737699130e479c05c04dd917c44a2
data/.gitignore CHANGED
@@ -1,4 +1,6 @@
1
1
  .*.sw[pon]
2
2
  .AppleDouble
3
+ .bundle
4
+ .rbx
3
5
  Gemfile.lock
4
6
  pkg
@@ -1,7 +1,10 @@
1
1
  rvm:
2
- - 1.8.7
3
- - 1.9.2
4
- - 1.9.3
2
+ - 2.0.0
3
+ - 2.1.0
5
4
  - ruby-head
6
- - ree
7
- - rbx
5
+ - rbx-18mode
6
+ - rbx-19mode
7
+ matrix:
8
+ allow_failures:
9
+ - rvm: rbx-18mode
10
+ - rvm: rbx-19mode
data/CHANGES CHANGED
@@ -1,3 +1,5 @@
1
+ 2013-10-14 (0.2.12)
2
+ * Include test fix from Juanito Fatas <katehuang0320@gmail.com>. Thx!
1
3
  2013-01-16 (0.2.11)
2
4
  * Include some fixes from Jason Colburne <jason@redbeardenterprises.com>.
3
5
  Thx!
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  # vim: set filetype=ruby et sw=2 ts=2:
2
2
 
3
- source :rubygems
3
+ source 'https://rubygems.org'
4
4
 
5
5
  gemspec
data/Rakefile CHANGED
@@ -16,13 +16,14 @@ EOT
16
16
  executables << 'agrep.rb'
17
17
  bindir 'bin'
18
18
  test_dir 'tests'
19
- ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', '.AppleDouble'
19
+ ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', '.AppleDouble', '.rbx', '.bundle'
20
20
  title "#{name.camelize} - Approximate Matching"
21
21
  readme 'README.rdoc'
22
22
  require_paths %w[lib ext]
23
- dependency 'tins', '~>0.3'
23
+ dependency 'tins', '~>1.0'
24
24
  development_dependency 'test-unit', '~>2.3'
25
25
  development_dependency 'utils'
26
+ development_dependency 'rake', '~>10', '<11.0'
26
27
 
27
28
  install_library do
28
29
  libdir = CONFIG["sitelibdir"]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.11
1
+ 0.3.0
Binary file
@@ -12,10 +12,3 @@ else
12
12
  $CFLAGS << ' -O3'
13
13
  end
14
14
  create_makefile 'amatch_ext'
15
-
16
- # WTF, is this really the only way to get a decent output out of mkmf?
17
- mf = File.read 'Makefile'
18
- if mf.sub!(/V = 0/, 'V = 1')
19
- warn "Rewriting the generated Makefile to get my compiler output displayed..."
20
- File.open('Makefile', 'w') { |f| f.write mf }
21
- end
@@ -1,7 +1,7 @@
1
1
  module Amatch
2
2
  # Amatch version
3
- VERSION = '0.2.11'
4
- VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
3
+ VERSION = '0.3.0'
4
+ VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
7
7
  VERSION_BUILD = VERSION_ARRAY[2] # :nodoc:
@@ -18,7 +18,6 @@ class TestLevenshtein < Test::Unit::TestCase
18
18
  def test_match
19
19
  assert_equal 4, @simple.match('')
20
20
  assert_equal 0, @simple.match('test')
21
- assert_equal 0, @simple.match('test')
22
21
  assert_equal 1, @simple.match('testa')
23
22
  assert_equal 1, @simple.match('atest')
24
23
  assert_equal 1, @simple.match('teast')
metadata CHANGED
@@ -1,93 +1,101 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: amatch
3
- version: !ruby/object:Gem::Version
4
- hash: 1
5
- prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 11
10
- version: 0.2.11
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Florian Frank
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2013-01-16 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2014-03-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: gem_hadar
22
- version_requirements: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
- requirements:
25
- - - ~>
26
- - !ruby/object:Gem::Version
27
- hash: 11
28
- segments:
29
- - 0
30
- - 1
31
- - 8
32
- version: 0.1.8
33
- prerelease: false
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.0.0
34
20
  type: :development
35
- requirement: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: test-unit
38
- version_requirements: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 5
44
- segments:
45
- - 2
46
- - 3
47
- version: "2.3"
48
21
  prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: test-unit
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.3'
49
34
  type: :development
50
- requirement: *id002
51
- - !ruby/object:Gem::Dependency
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.3'
41
+ - !ruby/object:Gem::Dependency
52
42
  name: utils
53
- version_requirements: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
56
45
  - - ">="
57
- - !ruby/object:Gem::Version
58
- hash: 3
59
- segments:
60
- - 0
61
- version: "0"
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
62
49
  prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10'
62
+ - - "<"
63
+ - !ruby/object:Gem::Version
64
+ version: '11.0'
63
65
  type: :development
64
- requirement: *id003
65
- - !ruby/object:Gem::Dependency
66
- name: tins
67
- version_requirements: &id004 !ruby/object:Gem::Requirement
68
- none: false
69
- requirements:
70
- - - ~>
71
- - !ruby/object:Gem::Version
72
- hash: 13
73
- segments:
74
- - 0
75
- - 3
76
- version: "0.3"
77
66
  prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: '10'
72
+ - - "<"
73
+ - !ruby/object:Gem::Version
74
+ version: '11.0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: tins
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '1.0'
78
82
  type: :runtime
79
- requirement: *id004
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '1.0'
80
89
  description: |
81
90
  Amatch is a library for approximate string matching and searching in strings.
82
91
  Several algorithms can be used to do this, and it's also possible to compute a
83
92
  similarity metric number between 0.0 and 1.0 for two given strings.
84
-
85
93
  email: flori@ping.de
86
- executables:
94
+ executables:
87
95
  - agrep.rb
88
- extensions:
96
+ extensions:
89
97
  - ext/extconf.rb
90
- extra_rdoc_files:
98
+ extra_rdoc_files:
91
99
  - README.rdoc
92
100
  - lib/amatch.rb
93
101
  - lib/amatch/polite.rb
@@ -95,9 +103,9 @@ extra_rdoc_files:
95
103
  - lib/amatch/version.rb
96
104
  - ext/amatch_ext.c
97
105
  - ext/pair.c
98
- files:
99
- - .gitignore
100
- - .travis.yml
106
+ files:
107
+ - ".gitignore"
108
+ - ".travis.yml"
101
109
  - CHANGES
102
110
  - COPYING
103
111
  - Gemfile
@@ -127,42 +135,33 @@ files:
127
135
  - tests/test_sellers.rb
128
136
  homepage: http://github.com/flori/amatch
129
137
  licenses: []
130
-
138
+ metadata: {}
131
139
  post_install_message:
132
- rdoc_options:
133
- - --title
140
+ rdoc_options:
141
+ - "--title"
134
142
  - Amatch - Approximate Matching
135
- - --main
143
+ - "--main"
136
144
  - README.rdoc
137
- require_paths:
145
+ require_paths:
138
146
  - lib
139
147
  - ext
140
- required_ruby_version: !ruby/object:Gem::Requirement
141
- none: false
142
- requirements:
148
+ required_ruby_version: !ruby/object:Gem::Requirement
149
+ requirements:
143
150
  - - ">="
144
- - !ruby/object:Gem::Version
145
- hash: 3
146
- segments:
147
- - 0
148
- version: "0"
149
- required_rubygems_version: !ruby/object:Gem::Requirement
150
- none: false
151
- requirements:
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ required_rubygems_version: !ruby/object:Gem::Requirement
154
+ requirements:
152
155
  - - ">="
153
- - !ruby/object:Gem::Version
154
- hash: 3
155
- segments:
156
- - 0
157
- version: "0"
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
158
  requirements: []
159
-
160
159
  rubyforge_project:
161
- rubygems_version: 1.8.24
160
+ rubygems_version: 2.2.2
162
161
  signing_key:
163
- specification_version: 3
162
+ specification_version: 4
164
163
  summary: Approximate String Matching library
165
- test_files:
164
+ test_files:
166
165
  - tests/test_hamming.rb
167
166
  - tests/test_jaro.rb
168
167
  - tests/test_jaro_winkler.rb