unswear 3.4.5 → 3.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/unswear.rb +2 -2
- 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: 7728c649a0dabb1f2c5408e14d65c5bdc35a5595
|
4
|
+
data.tar.gz: 52dbc6c57143785f08ec6755c70a7cb6e003a1f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7db2668fe29269149f193a8887914b6b318005c79a7fb0eb48e9d55a423cf6bef346000f2351490cdcb0b0808fa675d4d456bfa2a62f61f76292d9c3fba0c0c1
|
7
|
+
data.tar.gz: aed6311ab6e3e4d00a5cc0dda247271d6bf3fb735360e7314f60200b4b2e01e23042758f10d0c487f2c14559ea44666268ddcc268550cb80adc7baff25b75875
|
data/lib/unswear.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Define VERSION variable for use with Unswear.version
|
2
|
-
VERSION = '3.4.
|
2
|
+
VERSION = '3.4.6'
|
3
3
|
|
4
4
|
# Create array of curse words
|
5
5
|
$curses = %w(
|
@@ -67,7 +67,7 @@ class String
|
|
67
67
|
new = self
|
68
68
|
$swear = false
|
69
69
|
$curses.each do |c|
|
70
|
-
if new.include?(c)
|
70
|
+
if new.downcase.include?(c)
|
71
71
|
$swear = true
|
72
72
|
end
|
73
73
|
end
|