mr_clean 0.1.1 → 0.1.2
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.
- checksums.yaml +4 -4
- data/README.md +39 -0
- data/lib/mr_clean/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd7d36f963b96d66204e9a3be636393c123f0fa4
|
4
|
+
data.tar.gz: e58da933f3c60e1a0e9f76d03dfb6a4fcd3b7daa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ac4ec944ae1e506454c83041db964c98c0c8b7fcc98118d1faa9f0f8730255e8f3a5cad81314343af7f57fff1ab6f8080f581634bd3d7f88795b6c156beaf22
|
7
|
+
data.tar.gz: 7cdc2c3f3a583b28fb2c972e61f20331bd433c054e0a09b9684fd67b7b3c91f473f95cd0a0b2bb3351a32d9fb484413b98b309ac6be4a001125e9346d705856d
|
data/README.md
CHANGED
@@ -2,3 +2,42 @@ Mr Clean
|
|
2
2
|
========
|
3
3
|
|
4
4
|
A plain ruby library for filtering profanity, spam and such based on black listed words
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
### Gemfile
|
9
|
+
|
10
|
+
Add `mr_clean` to your Gemfile:
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
gem 'mr_clean'
|
14
|
+
```
|
15
|
+
|
16
|
+
And run Bundler:
|
17
|
+
|
18
|
+
```sh
|
19
|
+
$ bundle install
|
20
|
+
```
|
21
|
+
|
22
|
+
### Manually:
|
23
|
+
|
24
|
+
Or install `mr_clean` manually:
|
25
|
+
|
26
|
+
```sh
|
27
|
+
$ gem install 'mr_clean'
|
28
|
+
```
|
29
|
+
|
30
|
+
And require the gem in your Ruby code:
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
require 'rubygems'
|
34
|
+
require 'mr_clean'
|
35
|
+
```
|
36
|
+
|
37
|
+
Usage
|
38
|
+
=====
|
39
|
+
|
40
|
+
To check if a string value contains profane or spam words:
|
41
|
+
```ruby
|
42
|
+
MrClean::Profanity.profane?(value)
|
43
|
+
```
|
data/lib/mr_clean/version.rb
CHANGED