spellchecker 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,7 +28,7 @@ class Spellchecker
28
28
  response.each_with_index do |word_hash, index|
29
29
  if word_hash[:original] =~ /[a-zA-z]/
30
30
  if results[result_index] =~ ASPELL_WORD_DATA_REGEX
31
- response[index].merge!(:correct => false, :suggestions => results[result_index].split(',')[1..-1].collect(&:strip!))
31
+ response[index].merge!(:correct => false, :suggestions => results[result_index].split(':')[1].strip.split(',').map(&:strip))
32
32
  else
33
33
  response[index].merge!(:correct => true)
34
34
  end
@@ -1,3 +1,3 @@
1
1
  module Spellchecker #:nodoc
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spellchecker
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - RedBeard Tech
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-13 00:00:00 -05:00
18
+ date: 2010-12-23 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies: []
21
21