twords 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -3
- data/lib/twords.rb +1 -0
- data/lib/twords/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c61f756b270c5705f4c3ca17a75e6bed5c8e7af
|
4
|
+
data.tar.gz: 95137999f02c5f1b1193c66f6095362e68e42715
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b75f30b0d3a93ff8341d05e5a68c88f295a9f8cdf6bf32ff2b05399244896f83ded2afbae890556abed01d62562f097260aa09d50e285ab6dbeac121a0a973f6
|
7
|
+
data.tar.gz: '0805b16be099bbc59975105f02635d7dc052da1e0195957c847d5b0658f7a1bd019af42a13ffbc678bc2cf6a6023d8b7ded6f14dfff332656802d9cbd59969e5'
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
![twords](http://msimonborg.com/twords/twords.png)
|
2
2
|
|
3
3
|
## Twitter word clouds
|
4
4
|
|
@@ -36,13 +36,16 @@ Twords.config do |config|
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
twords = Twords.new 'user_one', 'user_two'
|
39
|
+
twords = Twords.new 'user_one', 'user_two' # A list of Twitter handles to include in the count.
|
40
40
|
|
41
41
|
twords.audit
|
42
42
|
# => true
|
43
43
|
|
44
44
|
twords.words
|
45
|
-
# => { "butts"=>
|
45
|
+
# => { "butts"=>32, "poo"=>28, "pups"=>36, ... }
|
46
|
+
|
47
|
+
twords.words_forward # Sort descending. Alias #sort_words
|
48
|
+
# => [["pups", 36], ["butts", 32], ["poo", 28], ...]
|
46
49
|
```
|
47
50
|
|
48
51
|
## Development
|
data/lib/twords.rb
CHANGED
data/lib/twords/version.rb
CHANGED