wordcloud 0.0.5 → 0.0.6

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.
Files changed (2) hide show
  1. data/lib/wordcloud.rb +4 -2
  2. metadata +1 -1
@@ -12,7 +12,7 @@ class WordCloud
12
12
  docnum = 0
13
13
  @input.each do |i|
14
14
  i.each do |j|
15
- if j[1] != nil
15
+ if j[1] != nil && j[1].is_a? String
16
16
  splitinput = j[1].split(" ")
17
17
  splitinput.each do |w|
18
18
  if w.include? "\\n"
@@ -27,8 +27,10 @@ class WordCloud
27
27
 
28
28
  @input.each do |i|
29
29
  i.each do |j|
30
- if j[1] != nil
30
+ if j[1] != nil && j[1].is_a? String
31
31
  @output = @output + "<b>" + j[0] + ": " + "</b>" + genOutput(j[1], docnum) + "<br />"
32
+ elsif j[1] != nil
33
+ @output = @output + "<b>" + j[0] + ": " + "</b>" + j[1] + "<br />"
32
34
  end
33
35
  end
34
36
  @output = @output + "<br />"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: