ru_bee 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +52 -0
- data/Rakefile +2 -0
- data/lib/dictionaries/english +235887 -0
- data/lib/ru_bee/version.rb +3 -0
- data/lib/ru_bee.rb +5 -0
- data/lib/scanner.rb +69 -0
- data/ru_bee-0.0.2.gem +0 -0
- data/ru_bee.gemspec +24 -0
- data/ru_bee_string.rb +34 -0
- data/spec/scanner_spec.rb +70 -0
- metadata +100 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
OWU0ODlkMjljZDgzZTEwYTVkYjI2MmVhMzRkZTk4MGYyN2E0YTQwNg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MGNiZWJkNzk2OTFiOTliMDEwMjBkZWVhYmYwMTFkN2Q3ZjdlMzNjNg==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NjRkYWQ2NWQzOGM3YmUzMWRlYzI5Y2EzYjZlZDRhMDc3YWI3ZDljNDU2Mjc5
|
10
|
+
Y2NjZmE1ZTA5YWQzMTZmZDViOGViZTA2ZDFmZGQ3N2MwNWE1ZTc5NTYxODlk
|
11
|
+
MDgwZmNmOWY1Y2MxNGZjMDdkMTFjNTUyNTAxMDY2ZDljYjE0MGM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YjUyNDdmYjcwY2MxNmNiMzUwNjY0N2JhMmI4MjE5MjYzNjhkYzJiMzE4MTUx
|
14
|
+
ZTI1ZDY4ZmYyMmYwZWMzMjExNmY3NGUwZWRiZDFiZDAzM2E4N2RiOTYwY2Zk
|
15
|
+
NzJjZTNlZTJhZTI5MjA1MjRhZGFkZGVkMzkwM2NkZGE3ZjdjZjk=
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 dan
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
# RuBee
|
2
|
+
|
3
|
+
Spellcheck for Ruby String.
|
4
|
+
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'ru_bee'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
|
20
|
+
$ gem install ru_bee
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
`#correct?`
|
25
|
+
|
26
|
+
######boolean
|
27
|
+
|
28
|
+
Does the string contain a misspelling?
|
29
|
+
|
30
|
+
######arguments
|
31
|
+
|
32
|
+
`#correct? language: 'english'`
|
33
|
+
|
34
|
+
Other languages coming...
|
35
|
+
|
36
|
+
|
37
|
+
`"This is a correct sentence. It works well and is pretty cool. You can also use numbers 123!".correct?`
|
38
|
+
|
39
|
+
##### `=> true`
|
40
|
+
|
41
|
+
`"This santence contains a typo.".correct?`
|
42
|
+
|
43
|
+
##### `=> false`
|
44
|
+
|
45
|
+
|
46
|
+
## Contributing
|
47
|
+
|
48
|
+
#### Dictionaries
|
49
|
+
Add issue or submit pull request to add different languages or make additions to the library.
|
50
|
+
Each dictionary is in lib/dictionaries
|
51
|
+
|
52
|
+
|
data/Rakefile
ADDED