unswear 3.3.5 → 3.4

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 +3 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7cca0091e3fba2a8357dbe6676724e4b362eba6
4
- data.tar.gz: 23029debaf4f94d9a6eb0812efac621c12bb7d36
3
+ metadata.gz: df62cab095cbbc286782b8d062ea04f78bb3b1f6
4
+ data.tar.gz: 806595015fcceda6cdf18b47933349ae23dfba30
5
5
  SHA512:
6
- metadata.gz: 90598ee6710448abd072178e0a24d2acef29db3f2a24204a1bca484e9ff66226568939f3efabcca2cccb0fb81422bbfe78e660cfea596db9758f1cff46664994
7
- data.tar.gz: 4801950a6ac260e2fed5f72c7a66615812f3d680f269b08d61f55808f21e6017392b9062469553fb4051836eaa651eaca1bdc6c72e07fae566c286975b5a95e0
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.3.5'
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.3.5
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-05 00:00:00.000000000 Z
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