raspell 1.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.
- data/CHANGELOG +4 -2
- data/README +18 -4
- data/lib/raspell_stub.rb +1 -1
- data/raspell.gemspec +37 -0
- metadata +8 -9
- data/Manifest +0 -10
- data/Rakefile +0 -13
data/CHANGELOG
CHANGED
data/README
CHANGED
@@ -1,17 +1,27 @@
|
|
1
1
|
|
2
2
|
raspell
|
3
3
|
|
4
|
-
An interface binding for Aspell.
|
4
|
+
An interface binding for the Aspell spelling checker.
|
5
5
|
|
6
6
|
== License
|
7
7
|
|
8
|
-
Copyright 2007 Cloudburst, LLC. Portions copyright 2005 Matthias Veit, Biro Eszter
|
8
|
+
Copyright 2007 Cloudburst, LLC. Portions copyright 2005 Matthias Veit, Biro Eszter and used with permission. Licensed under the GPL 2.0. See included LICENSE file.
|
9
9
|
|
10
10
|
== Requirements
|
11
11
|
|
12
|
-
|
12
|
+
Raspell requires Aspell version 0.6 (http://www.aspell.net) and at least one Aspell dictionary.
|
13
13
|
|
14
|
-
|
14
|
+
Mac:
|
15
|
+
sudo port install aspell aspell-dict-en
|
16
|
+
|
17
|
+
Ubuntu:
|
18
|
+
sudo apt-get install aspell libaspell-dev aspell-en
|
19
|
+
|
20
|
+
== Installation
|
21
|
+
|
22
|
+
sudo gem install raspell
|
23
|
+
|
24
|
+
== Usage
|
15
25
|
|
16
26
|
Aspell lets you <tt>check</tt> words and <tt>suggest</tt> corrections. For example:
|
17
27
|
|
@@ -48,3 +58,7 @@ The most useful options are <tt>suggestion_mode</tt>, and the passthrough option
|
|
48
58
|
|
49
59
|
See http://aspell.net/man-html/The-Options.html for a list of the passthrough options.
|
50
60
|
|
61
|
+
== Futher resources
|
62
|
+
|
63
|
+
* http://blog.evanweaver.com/pages/code#raspell
|
64
|
+
* http://rubyforge.org/forum/forum.php?forum_id=13988
|
data/lib/raspell_stub.rb
CHANGED
@@ -6,7 +6,7 @@ raise "This file is only for documentation purposes. Require #{File.dirname(__FI
|
|
6
6
|
class ::Aspell
|
7
7
|
|
8
8
|
# Creates an Aspell instance. All parameters are optional and have default values. In most situations it is enough to create an Aspell-instance with only a language.
|
9
|
-
# * <tt>language</tt> - ISO639 language code plus optional ISO 3166 counry code as string (eg: "de" or "
|
9
|
+
# * <tt>language</tt> - ISO639 language code plus optional ISO 3166 counry code as string (eg: "de" or "en_US").
|
10
10
|
# * <tt>jargon</tt> - A special jargon of the selected language.
|
11
11
|
# * <tt>size</tt> - The size of the dictionary to chose (if there are options).
|
12
12
|
# * <tt>encoding</tt> - The encoding to use.
|
data/raspell.gemspec
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
|
2
|
+
# Gem::Specification for Raspell-1.1
|
3
|
+
# Originally generated by Echoe
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = %q{raspell}
|
7
|
+
s.version = "1.1"
|
8
|
+
s.date = %q{2007-08-12}
|
9
|
+
s.summary = %q{An interface binding for the Aspell spelling checker.}
|
10
|
+
s.require_paths = ["lib", "ext"]
|
11
|
+
s.email = %q{}
|
12
|
+
s.homepage = %q{http://blog.evanweaver.com/pages/code#raspell}
|
13
|
+
s.rubyforge_project = %q{fauna}
|
14
|
+
s.description = %q{An interface binding for the Aspell spelling checker.}
|
15
|
+
s.authors = [""]
|
16
|
+
s.files = ["test/simple_test.rb", "lib/raspell_stub.rb", "ext/raspell.h", "ext/raspell.c", "ext/extconf.rb", "README", "LICENSE", "CHANGELOG", "raspell.gemspec"]
|
17
|
+
s.extensions = ["ext/extconf.rb"]
|
18
|
+
end
|
19
|
+
|
20
|
+
|
21
|
+
# # Original Rakefile source (requires the Echoe gem):
|
22
|
+
#
|
23
|
+
#
|
24
|
+
# require 'rubygems'
|
25
|
+
# gem 'echoe', '>=2.3'
|
26
|
+
# require 'echoe'
|
27
|
+
#
|
28
|
+
# Echoe.new("raspell") do |p|
|
29
|
+
# p.rubyforge_name = "fauna"
|
30
|
+
# p.summary = "An interface binding for the Aspell spelling checker."
|
31
|
+
# p.url = "http://blog.evanweaver.com/pages/code#raspell"
|
32
|
+
# p.docs_host = "blog.evanweaver.com:~/www/snax/public/files/doc/"
|
33
|
+
#
|
34
|
+
# p.has_rdoc = false # avoids warnings on gem install
|
35
|
+
# p.rdoc_pattern = /CHANGELOG|EXAMPLE|LICENSE|README|lib/
|
36
|
+
# p.rdoc_options = [] # don't want to include the stubbed out source
|
37
|
+
# end
|
metadata
CHANGED
@@ -3,20 +3,20 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: raspell
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: "1.
|
7
|
-
date: 2007-08-
|
8
|
-
summary: An interface binding for Aspell.
|
6
|
+
version: "1.1"
|
7
|
+
date: 2007-08-12 00:00:00 -04:00
|
8
|
+
summary: An interface binding for the Aspell spelling checker.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
11
|
- ext
|
12
12
|
email: ""
|
13
13
|
homepage: http://blog.evanweaver.com/pages/code#raspell
|
14
14
|
rubyforge_project: fauna
|
15
|
-
description: An interface binding for Aspell.
|
15
|
+
description: An interface binding for the Aspell spelling checker.
|
16
16
|
autorequire:
|
17
17
|
default_executable:
|
18
18
|
bindir: bin
|
19
|
-
has_rdoc:
|
19
|
+
has_rdoc: false
|
20
20
|
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
21
21
|
requirements:
|
22
22
|
- - ">"
|
@@ -35,11 +35,10 @@ files:
|
|
35
35
|
- ext/raspell.h
|
36
36
|
- ext/raspell.c
|
37
37
|
- ext/extconf.rb
|
38
|
-
- Rakefile
|
39
38
|
- README
|
40
|
-
- Manifest
|
41
39
|
- LICENSE
|
42
40
|
- CHANGELOG
|
41
|
+
- raspell.gemspec
|
43
42
|
test_files: []
|
44
43
|
|
45
44
|
rdoc_options: []
|
@@ -48,8 +47,8 @@ extra_rdoc_files: []
|
|
48
47
|
|
49
48
|
executables: []
|
50
49
|
|
51
|
-
extensions:
|
52
|
-
|
50
|
+
extensions:
|
51
|
+
- ext/extconf.rb
|
53
52
|
requirements: []
|
54
53
|
|
55
54
|
dependencies: []
|
data/Manifest
DELETED
data/Rakefile
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
|
2
|
-
require 'rubygems'
|
3
|
-
require 'echoe'
|
4
|
-
|
5
|
-
Echoe.new("raspell") do |p|
|
6
|
-
p.rubyforge_name = "fauna"
|
7
|
-
p.description = p.summary = "An interface binding for Aspell."
|
8
|
-
p.url = "http://blog.evanweaver.com/pages/code#raspell"
|
9
|
-
p.docs_host = "blog.evanweaver.com:~/www/snax/public/files/doc/"
|
10
|
-
|
11
|
-
p.rdoc_pattern = /CHANGELOG|EXAMPLE|LICENSE|README|lib/
|
12
|
-
p.rdoc_options = [] # don't want to include the stubbed out source
|
13
|
-
end
|