obfu_report 0.0.2.alpha → 0.0.3.alpha

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module ObfuReport
2
- VERSION = "0.0.2.alpha"
2
+ VERSION = "0.0.3.alpha"
3
3
  end
data/lib/obfu_report.rb CHANGED
@@ -10,9 +10,16 @@ module ObfuReport
10
10
  # check that input is a string and an array
11
11
  if (string.is_a? String)&&(list.is_a? Array)
12
12
  # iterate each item in the list
13
+ numb = 0
14
+ x = ""
13
15
  list.each do |wrd|
14
16
  # look for this word in the string
15
- string = string.gsub(/\b#{wrd}\b/, "*")
17
+ numb = wrd.length
18
+ numb.times do
19
+ x << "*"
20
+ end
21
+ string = string.gsub(/\b#{wrd}\b/, x)
22
+ x = ""
16
23
  end
17
24
  puts "Obfuscated: #{string}"
18
25
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: obfu_report
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.alpha
4
+ version: 0.0.3.alpha
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: