unswear 4.1.1 → 4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/unswear/string.rb +6 -0
- data/lib/unswear/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: 3acc3c24564cd9be05c1b1c9f8422403e9645efb
|
4
|
+
data.tar.gz: 40464417fbfd908828de1195f8cb753166ab719b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88650cd870912c010da0a0d17a5f5324415cf3ef7cf1441782b2e6de56210e43432fc3e5606e5cb5338ab3287dde61f91f2dee02d32e2462311b9979f208f43c
|
7
|
+
data.tar.gz: c1c852ea1bc8af20fcb43918207a654d217d9488df62e02caf579c6a22bb3bd6a383a9c0ea3687f4205f5e971347d72b0578f9355df3c7211bb35f0034968226
|
data/README.md
CHANGED
@@ -44,11 +44,11 @@ Unswear.list # => ["arse", "arsehole", "ass", "ass-fucker", "ass-hat" ...
|
|
44
44
|
And if you'd like to check the version, there's a method for that as well
|
45
45
|
|
46
46
|
```ruby
|
47
|
-
Unswear.version # => "4.
|
47
|
+
Unswear.version # => "4.2"
|
48
48
|
```
|
49
49
|
|
50
50
|
## To Do
|
51
|
-
- [
|
51
|
+
- [x] Create dangerous version of `censor` method
|
52
52
|
- [x] Fix all of the damn global variables
|
53
53
|
|
54
54
|
## License
|
data/lib/unswear/string.rb
CHANGED
@@ -21,6 +21,11 @@ class String
|
|
21
21
|
return input
|
22
22
|
end
|
23
23
|
|
24
|
+
# Dangerous censor method
|
25
|
+
def censor!
|
26
|
+
replace(censor)
|
27
|
+
end
|
28
|
+
|
24
29
|
# Method to check if string contains swear
|
25
30
|
def swear?
|
26
31
|
isSwear = false
|
@@ -31,6 +36,7 @@ class String
|
|
31
36
|
return isSwear
|
32
37
|
end
|
33
38
|
|
39
|
+
# Alias swear? with curse?
|
34
40
|
alias :curse? :swear?
|
35
41
|
|
36
42
|
end
|
data/lib/unswear/version.rb
CHANGED