obfu_report 0.0.4.alpha → 0.0.5.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.4.alpha"
2
+ VERSION = "0.0.5.alpha"
3
3
  end
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
- # wcline = "Word count: "
42
- line = ""
43
- # return wcline
41
+ line = {}
44
42
  list.each do |word|
45
43
  test = string.split.count(word)
46
- line << (word + " => " + test.to_s + " ")
44
+ line[word] = test.to_s
47
45
  end
48
- string = ("Word count: " + line)
49
- return string
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
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.4.alpha
4
+ version: 0.0.5.alpha
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: