unswear 1.0

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 +7 -0
  2. data/lib/unswear.rb +9 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e04bb1dae9d9503756edd255c66065aa13f12c28
4
+ data.tar.gz: 4db5d37eaa9df00eeb82a7aa902272e3b1b197fa
5
+ SHA512:
6
+ metadata.gz: ad2fe58f5ff99c98ca21399b62ad0f2f6599b86eba9ca94201abc57194fad873a3a145ceab5e294e583db9683fc742f21714cac481f4c1e59071edc4f273d4f5
7
+ data.tar.gz: b6f973d95bdcbfe70d6a6d9bc3a8f77419cf86147bebb357f43dad31b9de0e2aefa4c2a0615fa9af5e9d040c6dbaed32573c7231cc2e97aef7b38426dca2c98a
data/lib/unswear.rb ADDED
@@ -0,0 +1,9 @@
1
+ class Unswear
2
+ def self.remove(input)
3
+ new = input.gsub("fuck", "f*ck")
4
+ new.gsub!("cunt", "c*nt")
5
+ new.gsub!("shit", "sh*t")
6
+ new.gsub!("ass", "a*s")
7
+ puts new
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: unswear
3
+ version: !ruby/object:Gem::Version
4
+ version: '1.0'
5
+ platform: ruby
6
+ authors:
7
+ - Josh
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-04-25 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Remove swear words from text
14
+ email: joshception@icloud.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/unswear.rb
20
+ homepage: http://rubygems.org/gems/unswear
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.2.2
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Un-f*ck user input
44
+ test_files: []