unswear 4.1.1 → 4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba967e55ba598ecbf215f5b01220a9cd250ba5c2
4
- data.tar.gz: f02edcd1a775370117ac87ba5691a4e731ce6911
3
+ metadata.gz: 3acc3c24564cd9be05c1b1c9f8422403e9645efb
4
+ data.tar.gz: 40464417fbfd908828de1195f8cb753166ab719b
5
5
  SHA512:
6
- metadata.gz: d22bfeb58e154a89e8afebfa13e88188d73b314893d3cdbe9d2ab30111b6bbb179906e2b89c7fec6d01fa782c5cf9e8cbe6e82ee03c0248de9f0f19ff3d314f8
7
- data.tar.gz: 7c06f5cf5a96abf76d5dfd7b5768fa903d7b2acffac61fbd7bf953d69b493849a0a64d01512bb3a4dbef227d325f25c0e82b34e6d490d944eadd6fc81a187d76
6
+ metadata.gz: 88650cd870912c010da0a0d17a5f5324415cf3ef7cf1441782b2e6de56210e43432fc3e5606e5cb5338ab3287dde61f91f2dee02d32e2462311b9979f208f43c
7
+ data.tar.gz: c1c852ea1bc8af20fcb43918207a654d217d9488df62e02caf579c6a22bb3bd6a383a9c0ea3687f4205f5e971347d72b0578f9355df3c7211bb35f0034968226
data/README.md CHANGED
@@ -44,11 +44,11 @@ Unswear.list # => ["arse", "arsehole", "ass", "ass-fucker", "ass-hat" ...
44
44
  And if you'd like to check the version, there's a method for that as well
45
45
 
46
46
  ```ruby
47
- Unswear.version # => "4.0.1"
47
+ Unswear.version # => "4.2"
48
48
  ```
49
49
 
50
50
  ## To Do
51
- - [ ] Create dangerous version of `censor` method
51
+ - [x] Create dangerous version of `censor` method
52
52
  - [x] Fix all of the damn global variables
53
53
 
54
54
  ## License
@@ -21,6 +21,11 @@ class String
21
21
  return input
22
22
  end
23
23
 
24
+ # Dangerous censor method
25
+ def censor!
26
+ replace(censor)
27
+ end
28
+
24
29
  # Method to check if string contains swear
25
30
  def swear?
26
31
  isSwear = false
@@ -31,6 +36,7 @@ class String
31
36
  return isSwear
32
37
  end
33
38
 
39
+ # Alias swear? with curse?
34
40
  alias :curse? :swear?
35
41
 
36
42
  end
@@ -1,3 +1,3 @@
1
1
  module Version
2
- VERSION = '4.1.1'
2
+ VERSION = '4.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unswear
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: '4.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh