unswear 3.4 → 3.4.5
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 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e46b0b0b6032d00fffc720b4e206becfa9a745f
|
4
|
+
data.tar.gz: 8403a5ca8619a385165f5748eeb3a028bf2af8d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc81c6d021ba1221dff6d750a95d7178d41c2e62c297f5e7b9d4243798482192b3aebc21213b3a6bc44c95df2e7f8edc433195b6146b6f5e7aa03b6ecc4f6e74
|
7
|
+
data.tar.gz: 22543aa55f69a1a046c5fab47da3f53b452d35ba2b3da24e26fd94455688dfaaf3fec122c5cfba7e93489a9f793cdc9fe4fefd2282e5359b3868fe846ba27b23
|
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.5'
|
3
3
|
|
4
4
|
# Create array of curse words
|
5
5
|
$curses = %w(
|
@@ -46,9 +46,8 @@ class String
|
|
46
46
|
new = new.split " "
|
47
47
|
# do some magic
|
48
48
|
new.count.times do |i|
|
49
|
-
new[i] = new[i].downcase
|
50
49
|
$curses.count.times do |c|
|
51
|
-
if new[i] == $curses[c]
|
50
|
+
if new[i].downcase == $curses[c]
|
52
51
|
new[i].gsub! "a", "*"
|
53
52
|
new[i].gsub! "e", "*"
|
54
53
|
new[i].gsub! "i", "*"
|
@@ -60,7 +59,6 @@ class String
|
|
60
59
|
new = new.join(",")
|
61
60
|
new.gsub! ",", " "
|
62
61
|
#finally return new
|
63
|
-
new = new.capitalize
|
64
62
|
puts new
|
65
63
|
end
|
66
64
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unswear
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Censor swear words in a string
|
14
14
|
email: joshception@icloud.com
|