ispell 0.1.0 → 0.1.1

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.
Files changed (3) hide show
  1. data/History.txt +3 -0
  2. data/lib/ispell.rb +4 -4
  3. metadata +1 -1
@@ -1,3 +1,6 @@
1
+ === 0.1.1 / ?
2
+ * Change all Regexp to have no multibyte support, since ispell doesn't have it
3
+
1
4
  === 0.1.0 / 2008-11-13
2
5
 
3
6
  * Birthday!
@@ -1,5 +1,5 @@
1
1
  class Ispell
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
 
4
4
  class Result
5
5
  TYPES = { '*' => :ok, '+' => :root, '&' => :miss,
@@ -48,11 +48,11 @@ class Ispell
48
48
 
49
49
  # Spell check the provided line, returns an +Array+ of +Ispell::Result+
50
50
  def spellcheck(line)
51
- line.gsub!(/\r/,'')
52
- line.gsub!(/\s+/, ' ')
51
+ line.gsub!(/\r/n,'')
52
+ line.gsub!(/\s+/n, ' ')
53
53
  results = to_ispell(line)
54
54
  results.collect do |line|
55
- tokens = line.split(/,?:?\s+/)
55
+ tokens = line.split(/,?:?\s+/n)
56
56
  res = Result.new
57
57
  res.type = Result::TYPES[tokens.shift]
58
58
  case res.type
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ispell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Shterenzon