unswear 3.3.5 → 3.4
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 +3 -1
- 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: df62cab095cbbc286782b8d062ea04f78bb3b1f6
|
4
|
+
data.tar.gz: 806595015fcceda6cdf18b47933349ae23dfba30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0704822cab72391a3b4db50745c53c36e9d89d1b62e4236c9718957a704b66de68146318b67ba484d3866983a8446389083506407c8407de11ba84be2113bb7
|
7
|
+
data.tar.gz: 6cdf85758f7cbb48a3851be9c8b3466bb03d5eec924d15c01cc1764ae461a9c4ecb24fb5cbe0cebdb1154fa62d5e16db4f728ef510d001ea4cd241c8b9b7e379
|
data/lib/unswear.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Define VERSION variable for use with Unswear.version
|
2
|
-
VERSION = '3.
|
2
|
+
VERSION = '3.4'
|
3
3
|
|
4
4
|
# Create array of curse words
|
5
5
|
$curses = %w(
|
@@ -46,6 +46,7 @@ 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
|
49
50
|
$curses.count.times do |c|
|
50
51
|
if new[i] == $curses[c]
|
51
52
|
new[i].gsub! "a", "*"
|
@@ -59,6 +60,7 @@ class String
|
|
59
60
|
new = new.join(",")
|
60
61
|
new.gsub! ",", " "
|
61
62
|
#finally return new
|
63
|
+
new = new.capitalize
|
62
64
|
puts new
|
63
65
|
end
|
64
66
|
|
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: 3.
|
4
|
+
version: '3.4'
|
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-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Censor swear words in a string
|
14
14
|
email: joshception@icloud.com
|