linkage 0.0.6 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. data/.gitignore +10 -0
  2. data/Gemfile +15 -13
  3. data/Gemfile.lock +67 -37
  4. data/Guardfile +0 -2
  5. data/Rakefile +122 -25
  6. data/lib/linkage/comparator.rb +172 -0
  7. data/lib/linkage/comparators/binary.rb +12 -0
  8. data/lib/linkage/comparators/compare.rb +46 -0
  9. data/lib/linkage/comparators/within.rb +32 -0
  10. data/lib/linkage/configuration.rb +285 -153
  11. data/lib/linkage/data.rb +32 -7
  12. data/lib/linkage/dataset.rb +107 -32
  13. data/lib/linkage/decollation.rb +93 -0
  14. data/lib/linkage/expectation.rb +21 -0
  15. data/lib/linkage/expectations/exhaustive.rb +63 -0
  16. data/lib/linkage/expectations/simple.rb +168 -0
  17. data/lib/linkage/field.rb +30 -4
  18. data/lib/linkage/field_set.rb +6 -3
  19. data/lib/linkage/function.rb +50 -3
  20. data/lib/linkage/functions/binary.rb +30 -0
  21. data/lib/linkage/functions/cast.rb +54 -0
  22. data/lib/linkage/functions/length.rb +29 -0
  23. data/lib/linkage/functions/strftime.rb +12 -11
  24. data/lib/linkage/functions/trim.rb +8 -0
  25. data/lib/linkage/group.rb +20 -0
  26. data/lib/linkage/import_buffer.rb +5 -16
  27. data/lib/linkage/meta_object.rb +139 -0
  28. data/lib/linkage/result_set.rb +74 -17
  29. data/lib/linkage/runner/single_threaded.rb +125 -10
  30. data/lib/linkage/version.rb +3 -0
  31. data/lib/linkage.rb +11 -0
  32. data/linkage.gemspec +16 -121
  33. data/test/config.yml +5 -0
  34. data/test/helper.rb +73 -8
  35. data/test/integration/test_collation.rb +45 -0
  36. data/test/integration/test_configuration.rb +268 -0
  37. data/test/integration/test_cross_linkage.rb +4 -17
  38. data/test/integration/test_dataset.rb +45 -2
  39. data/test/integration/test_dual_linkage.rb +40 -24
  40. data/test/integration/test_functions.rb +22 -0
  41. data/test/integration/test_result_set.rb +85 -0
  42. data/test/integration/test_scoring.rb +84 -0
  43. data/test/integration/test_self_linkage.rb +5 -0
  44. data/test/integration/test_within_comparator.rb +100 -0
  45. data/test/unit/comparators/test_compare.rb +105 -0
  46. data/test/unit/comparators/test_within.rb +57 -0
  47. data/test/unit/expectations/test_exhaustive.rb +111 -0
  48. data/test/unit/expectations/test_simple.rb +303 -0
  49. data/test/unit/functions/test_binary.rb +54 -0
  50. data/test/unit/functions/test_cast.rb +98 -0
  51. data/test/unit/functions/test_length.rb +52 -0
  52. data/test/unit/functions/test_strftime.rb +17 -13
  53. data/test/unit/functions/test_trim.rb +11 -4
  54. data/test/unit/test_comparator.rb +124 -0
  55. data/test/unit/test_configuration.rb +137 -175
  56. data/test/unit/test_data.rb +44 -0
  57. data/test/unit/test_dataset.rb +73 -21
  58. data/test/unit/test_decollation.rb +201 -0
  59. data/test/unit/test_field.rb +38 -14
  60. data/test/unit/test_field_set.rb +12 -8
  61. data/test/unit/test_function.rb +83 -16
  62. data/test/unit/test_group.rb +28 -0
  63. data/test/unit/test_import_buffer.rb +13 -27
  64. data/test/unit/test_meta_object.rb +208 -0
  65. data/test/unit/test_result_set.rb +221 -3
  66. metadata +82 -190
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linkage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-08 00:00:00.000000000 Z
12
+ date: 2013-02-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sequel
@@ -28,190 +28,14 @@ dependencies:
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
30
  - !ruby/object:Gem::Dependency
31
- name: bundler
31
+ name: sequel-collation
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
35
  - - ! '>='
36
36
  - !ruby/object:Gem::Version
37
37
  version: '0'
38
- type: :development
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: jeweler
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
63
- name: test-unit
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :development
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- - !ruby/object:Gem::Dependency
79
- name: mocha
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ! '>='
84
- - !ruby/object:Gem::Version
85
- version: '0'
86
- type: :development
87
- prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
94
- - !ruby/object:Gem::Dependency
95
- name: sqlite3
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: '0'
102
- type: :development
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- - !ruby/object:Gem::Dependency
111
- name: yard
112
- requirement: !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
115
- - - ! '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ! '>='
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
- - !ruby/object:Gem::Dependency
127
- name: rake
128
- requirement: !ruby/object:Gem::Requirement
129
- none: false
130
- requirements:
131
- - - ! '>='
132
- - !ruby/object:Gem::Version
133
- version: '0'
134
- type: :development
135
- prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ! '>='
140
- - !ruby/object:Gem::Version
141
- version: '0'
142
- - !ruby/object:Gem::Dependency
143
- name: versionomy
144
- requirement: !ruby/object:Gem::Requirement
145
- none: false
146
- requirements:
147
- - - ! '>='
148
- - !ruby/object:Gem::Version
149
- version: '0'
150
- type: :development
151
- prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
- requirements:
155
- - - ! '>='
156
- - !ruby/object:Gem::Version
157
- version: '0'
158
- - !ruby/object:Gem::Dependency
159
- name: mysql2
160
- requirement: !ruby/object:Gem::Requirement
161
- none: false
162
- requirements:
163
- - - ! '>='
164
- - !ruby/object:Gem::Version
165
- version: '0'
166
- type: :development
167
- prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
- requirements:
171
- - - ! '>='
172
- - !ruby/object:Gem::Version
173
- version: '0'
174
- - !ruby/object:Gem::Dependency
175
- name: pry
176
- requirement: !ruby/object:Gem::Requirement
177
- none: false
178
- requirements:
179
- - - ! '>='
180
- - !ruby/object:Gem::Version
181
- version: '0'
182
- type: :development
183
- prerelease: false
184
- version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
- requirements:
187
- - - ! '>='
188
- - !ruby/object:Gem::Version
189
- version: '0'
190
- - !ruby/object:Gem::Dependency
191
- name: rdiscount
192
- requirement: !ruby/object:Gem::Requirement
193
- none: false
194
- requirements:
195
- - - ! '>='
196
- - !ruby/object:Gem::Version
197
- version: '0'
198
- type: :development
199
- prerelease: false
200
- version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
- requirements:
203
- - - ! '>='
204
- - !ruby/object:Gem::Version
205
- version: '0'
206
- - !ruby/object:Gem::Dependency
207
- name: guard-test
208
- requirement: !ruby/object:Gem::Requirement
209
- none: false
210
- requirements:
211
- - - ! '>='
212
- - !ruby/object:Gem::Version
213
- version: '0'
214
- type: :development
38
+ type: :runtime
215
39
  prerelease: false
216
40
  version_requirements: !ruby/object:Gem::Requirement
217
41
  none: false
@@ -220,14 +44,14 @@ dependencies:
220
44
  - !ruby/object:Gem::Version
221
45
  version: '0'
222
46
  - !ruby/object:Gem::Dependency
223
- name: guard-yard
47
+ name: hashery
224
48
  requirement: !ruby/object:Gem::Requirement
225
49
  none: false
226
50
  requirements:
227
51
  - - ! '>='
228
52
  - !ruby/object:Gem::Version
229
53
  version: '0'
230
- type: :development
54
+ type: :runtime
231
55
  prerelease: false
232
56
  version_requirements: !ruby/object:Gem::Requirement
233
57
  none: false
@@ -237,14 +61,14 @@ dependencies:
237
61
  version: '0'
238
62
  description: Performs record linkage between one or two datasets, using Sequel on
239
63
  the backend
240
- email: jeremy.f.stephens@vanderbilt.edu
64
+ email:
65
+ - jeremy.f.stephens@vanderbilt.edu
241
66
  executables: []
242
67
  extensions: []
243
- extra_rdoc_files:
244
- - LICENSE.txt
245
- - README.markdown
68
+ extra_rdoc_files: []
246
69
  files:
247
70
  - .document
71
+ - .gitignore
248
72
  - .vimrc
249
73
  - Gemfile
250
74
  - Gemfile.lock
@@ -254,47 +78,74 @@ files:
254
78
  - Rakefile
255
79
  - VERSION
256
80
  - lib/linkage.rb
81
+ - lib/linkage/comparator.rb
82
+ - lib/linkage/comparators/binary.rb
83
+ - lib/linkage/comparators/compare.rb
84
+ - lib/linkage/comparators/within.rb
257
85
  - lib/linkage/configuration.rb
258
86
  - lib/linkage/data.rb
259
87
  - lib/linkage/dataset.rb
88
+ - lib/linkage/decollation.rb
89
+ - lib/linkage/expectation.rb
90
+ - lib/linkage/expectations/exhaustive.rb
91
+ - lib/linkage/expectations/simple.rb
260
92
  - lib/linkage/field.rb
261
93
  - lib/linkage/field_set.rb
262
94
  - lib/linkage/function.rb
95
+ - lib/linkage/functions/binary.rb
96
+ - lib/linkage/functions/cast.rb
97
+ - lib/linkage/functions/length.rb
263
98
  - lib/linkage/functions/strftime.rb
264
99
  - lib/linkage/functions/trim.rb
265
100
  - lib/linkage/group.rb
266
101
  - lib/linkage/import_buffer.rb
102
+ - lib/linkage/meta_object.rb
267
103
  - lib/linkage/result_set.rb
268
104
  - lib/linkage/runner.rb
269
105
  - lib/linkage/runner/single_threaded.rb
270
106
  - lib/linkage/utils.rb
107
+ - lib/linkage/version.rb
271
108
  - lib/linkage/warnings.rb
272
109
  - linkage.gemspec
273
110
  - test/config.yml
274
111
  - test/helper.rb
112
+ - test/integration/test_collation.rb
113
+ - test/integration/test_configuration.rb
275
114
  - test/integration/test_cross_linkage.rb
276
115
  - test/integration/test_dataset.rb
277
116
  - test/integration/test_dual_linkage.rb
278
117
  - test/integration/test_functions.rb
118
+ - test/integration/test_result_set.rb
119
+ - test/integration/test_scoring.rb
279
120
  - test/integration/test_self_linkage.rb
121
+ - test/integration/test_within_comparator.rb
122
+ - test/unit/comparators/test_compare.rb
123
+ - test/unit/comparators/test_within.rb
124
+ - test/unit/expectations/test_exhaustive.rb
125
+ - test/unit/expectations/test_simple.rb
126
+ - test/unit/functions/test_binary.rb
127
+ - test/unit/functions/test_cast.rb
128
+ - test/unit/functions/test_length.rb
280
129
  - test/unit/functions/test_strftime.rb
281
130
  - test/unit/functions/test_trim.rb
282
131
  - test/unit/runner/test_single_threaded.rb
132
+ - test/unit/test_comparator.rb
283
133
  - test/unit/test_configuration.rb
284
134
  - test/unit/test_data.rb
285
135
  - test/unit/test_dataset.rb
136
+ - test/unit/test_decollation.rb
286
137
  - test/unit/test_field.rb
287
138
  - test/unit/test_field_set.rb
288
139
  - test/unit/test_function.rb
289
140
  - test/unit/test_group.rb
290
141
  - test/unit/test_import_buffer.rb
291
142
  - test/unit/test_linkage.rb
143
+ - test/unit/test_meta_object.rb
292
144
  - test/unit/test_result_set.rb
293
145
  - test/unit/test_runner.rb
294
146
  - test/unit/test_utils.rb
295
147
  homepage: http://github.com/coupler/linkage
296
- licenses:
297
- - MIT
148
+ licenses: []
298
149
  post_install_message:
299
150
  rdoc_options: []
300
151
  require_paths:
@@ -307,17 +158,58 @@ required_ruby_version: !ruby/object:Gem::Requirement
307
158
  version: '0'
308
159
  segments:
309
160
  - 0
310
- hash: -1901911346636016746
161
+ hash: -1649246308926950627
311
162
  required_rubygems_version: !ruby/object:Gem::Requirement
312
163
  none: false
313
164
  requirements:
314
165
  - - ! '>='
315
166
  - !ruby/object:Gem::Version
316
167
  version: '0'
168
+ segments:
169
+ - 0
170
+ hash: -1649246308926950627
317
171
  requirements: []
318
172
  rubyforge_project:
319
173
  rubygems_version: 1.8.23
320
174
  signing_key:
321
175
  specification_version: 3
322
176
  summary: Record linkage library
323
- test_files: []
177
+ test_files:
178
+ - test/config.yml
179
+ - test/helper.rb
180
+ - test/integration/test_collation.rb
181
+ - test/integration/test_configuration.rb
182
+ - test/integration/test_cross_linkage.rb
183
+ - test/integration/test_dataset.rb
184
+ - test/integration/test_dual_linkage.rb
185
+ - test/integration/test_functions.rb
186
+ - test/integration/test_result_set.rb
187
+ - test/integration/test_scoring.rb
188
+ - test/integration/test_self_linkage.rb
189
+ - test/integration/test_within_comparator.rb
190
+ - test/unit/comparators/test_compare.rb
191
+ - test/unit/comparators/test_within.rb
192
+ - test/unit/expectations/test_exhaustive.rb
193
+ - test/unit/expectations/test_simple.rb
194
+ - test/unit/functions/test_binary.rb
195
+ - test/unit/functions/test_cast.rb
196
+ - test/unit/functions/test_length.rb
197
+ - test/unit/functions/test_strftime.rb
198
+ - test/unit/functions/test_trim.rb
199
+ - test/unit/runner/test_single_threaded.rb
200
+ - test/unit/test_comparator.rb
201
+ - test/unit/test_configuration.rb
202
+ - test/unit/test_data.rb
203
+ - test/unit/test_dataset.rb
204
+ - test/unit/test_decollation.rb
205
+ - test/unit/test_field.rb
206
+ - test/unit/test_field_set.rb
207
+ - test/unit/test_function.rb
208
+ - test/unit/test_group.rb
209
+ - test/unit/test_import_buffer.rb
210
+ - test/unit/test_linkage.rb
211
+ - test/unit/test_meta_object.rb
212
+ - test/unit/test_result_set.rb
213
+ - test/unit/test_runner.rb
214
+ - test/unit/test_utils.rb
215
+ has_rdoc: