unswear 3.0 → 3.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/lib/unswear.rb +35 -18
- 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: ea8b9aa5f5ad2dbf50425f1812d672889498ccba
|
4
|
+
data.tar.gz: d1be79413f7d8cd0fdb16a82aaa30ee75ffca180
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5761413725efe48e660b5acf5fc7dbc95fadb7946a349b505853bd0f375b04a3997cc76d0bf7e728c6520003c52e68237186d803f30f7b762673776a627682a
|
7
|
+
data.tar.gz: 1cb494274aeebb72619114369927c49fd2832cf6b9ad32fe669731f6311b01dffef7a42493154789ef89f1cd0282b990d47206215f68b2c95315a38c965ade29
|
data/lib/unswear.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
VERSION = '3.
|
1
|
+
VERSION = '3.2'
|
2
2
|
|
3
3
|
$curses = %w(
|
4
4
|
fuck fucking fucker fuckin nigger nigga cunt shit
|
@@ -58,24 +58,41 @@ class String
|
|
58
58
|
#finally return new
|
59
59
|
puts new
|
60
60
|
end
|
61
|
-
end
|
62
61
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
$curses.count.times do |m|
|
70
|
-
if $curses[m][0] == x
|
71
|
-
puts $curses[m]
|
72
|
-
end
|
73
|
-
end
|
62
|
+
def swear?
|
63
|
+
new = self
|
64
|
+
$swear = false
|
65
|
+
$curses.each do |c|
|
66
|
+
if new.include?(c)
|
67
|
+
$swear = true
|
74
68
|
end
|
75
69
|
end
|
76
|
-
|
77
|
-
|
78
|
-
|
70
|
+
if $swear == false
|
71
|
+
return false
|
72
|
+
else
|
73
|
+
return true
|
79
74
|
end
|
80
|
-
|
81
|
-
|
75
|
+
end
|
76
|
+
|
77
|
+
# fix this shit later.
|
78
|
+
# i don't care anymore
|
79
|
+
|
80
|
+
# class Unswear
|
81
|
+
#
|
82
|
+
# def self.list(x=0)
|
83
|
+
# unless x != 0
|
84
|
+
# puts $curses.sort_by(&:downcase).uniq
|
85
|
+
# else
|
86
|
+
# $curses.count.times do |m|
|
87
|
+
# if $curses[m][0] == x
|
88
|
+
# puts $curses[m]
|
89
|
+
# end
|
90
|
+
# end
|
91
|
+
# end
|
92
|
+
# end
|
93
|
+
#
|
94
|
+
# def self.version
|
95
|
+
# puts "unswear v#{VERSION}"
|
96
|
+
# end
|
97
|
+
# end
|
98
|
+
# end
|
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.2'
|
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-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Censor swear words in a string
|
14
14
|
email: joshception@icloud.com
|