wordcloud 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/wordcloud.rb +2 -6
  2. metadata +2 -2
data/lib/wordcloud.rb CHANGED
@@ -22,7 +22,7 @@ class WordCloud
22
22
 
23
23
  # Counts number of times a word shows up
24
24
  def wordCount(word)
25
- commonwords = ["the", "and", "of", "a", "to", "is", "in", "its", "The", "on", "as", "for", "has", "will", "As", "or", "have", "while", "While", "that", "out", "such", "also", "by", "said", "with", "than", "only", "into", "an", "one", "other", "but", "from", "<br />"]
25
+ commonwords = ["the", "and", "of", "a", "to", "is", "in", "its", "The", "on", "as", "for", "has", "will", "As", "or", "have", "while", "While", "that", "out", "such", "also", "by", "said", "with", "than", "only", "into", "an", "one", "other", "but", "from", "<br />", "I", "more"]
26
26
 
27
27
  if (@wordhash[word]) && (!commonwords.include? word)
28
28
  @wordhash[word] += 1
@@ -42,13 +42,9 @@ class WordCloud
42
42
 
43
43
  if @wordhash[w]
44
44
  size = 13 + @wordhash[w]
45
- @output = @output + " <span style=\"font-size:" + size.to_s + "\">" + w + "</span>"
45
+ @output = @output + " <span style=\"font-size:" + size.to_s + "px\">" + w + "</span>"
46
46
  end
47
47
  end
48
48
  end
49
49
  end
50
50
 
51
- # TODO:
52
- # Make gem
53
- # Add gem to TT
54
-
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.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-08 00:00:00.000000000 Z
12
+ date: 2014-01-09 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Takes input and outputs the same text with word size changed based on
15
15
  frequency.