unswear 3.0 → 3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/unswear.rb +35 -18
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7794dbde85b47f403e7201f21871b47e68cee3b0
4
- data.tar.gz: bb2bef63faf7004bb7b6ee8624afd008565e7e9d
3
+ metadata.gz: ea8b9aa5f5ad2dbf50425f1812d672889498ccba
4
+ data.tar.gz: d1be79413f7d8cd0fdb16a82aaa30ee75ffca180
5
5
  SHA512:
6
- metadata.gz: c13bf59b4d0930d8094b8a48c0b1deb2e56c174052ae306207d8a51f9b51d526d7d2c26de7086fb35ab8be3d280e07273935f5022e56eb7057d4c969fdb343ab
7
- data.tar.gz: 9d37e82dd991bb948fc78a5cbe2fc2677bcf997cfec30f75cd53fd8acbb02f7a8f352d23b3cb5763464151df0015754372bb4d656e5cff4f8a934ea996a183f7
6
+ metadata.gz: c5761413725efe48e660b5acf5fc7dbc95fadb7946a349b505853bd0f375b04a3997cc76d0bf7e728c6520003c52e68237186d803f30f7b762673776a627682a
7
+ data.tar.gz: 1cb494274aeebb72619114369927c49fd2832cf6b9ad32fe669731f6311b01dffef7a42493154789ef89f1cd0282b990d47206215f68b2c95315a38c965ade29
data/lib/unswear.rb CHANGED
@@ -1,4 +1,4 @@
1
- VERSION = '3.0'
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
- class Unswear
64
-
65
- def self.list(x=0)
66
- unless x != 0
67
- puts $curses.sort_by(&:downcase).uniq
68
- else
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
- def self.version
78
- puts "unswear v#{VERSION}"
70
+ if $swear == false
71
+ return false
72
+ else
73
+ return true
79
74
  end
80
-
81
- end
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.0'
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-04 00:00:00.000000000 Z
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