obfu_report 0.0.4.alpha → 0.0.5.alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/obfu_report/version.rb +1 -1
- data/lib/obfu_report.rb +4 -6
- metadata +1 -1
data/lib/obfu_report/version.rb
CHANGED
data/lib/obfu_report.rb
CHANGED
@@ -38,15 +38,13 @@ module ObfuReport
|
|
38
38
|
# ==> {"big" => 2, "words" => 1}
|
39
39
|
def report(string,list)
|
40
40
|
if (string.is_a? String)&&(list.is_a? Array)
|
41
|
-
|
42
|
-
line = ""
|
43
|
-
# return wcline
|
41
|
+
line = {}
|
44
42
|
list.each do |word|
|
45
43
|
test = string.split.count(word)
|
46
|
-
line
|
44
|
+
line[word] = test.to_s
|
47
45
|
end
|
48
|
-
string = ("Word count: " + line)
|
49
|
-
return
|
46
|
+
# string = ("Word count: " + line)
|
47
|
+
return line
|
50
48
|
else
|
51
49
|
line = "bad input, try again. \n #{string} #{list}"
|
52
50
|
return line
|