suiteview 2.0.1 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/suiteview.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d356f59f9bdf8d487f9ca66f68d57d427a3bf167fe70b5747830f89f795f843
|
4
|
+
data.tar.gz: 1c2f8d308166f27e6bbb8693b46fcb688feb6ca2a7981b707ebf6afaa9023c36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '094e329d4a113e89db20d068057600a2a498058508bf9bb43a047cd4ee009df4b2b97ea129ce7a7b31762358eb9c84b41cc837ae9e9052cb8df38698ab5f770e'
|
7
|
+
data.tar.gz: 6c2884c43863302966b7457d8c821bc9d8111f36b2077efe55612e8323f43074d79cf27dbf0dddcffc0b11e3b2640de4b7eb22ee2e27ce0f32149ecd78156a72
|
data/lib/suiteview.rb
CHANGED
@@ -32,6 +32,15 @@ class SuiteView
|
|
32
32
|
self
|
33
33
|
end
|
34
34
|
|
35
|
+
def total_tags_count
|
36
|
+
output = [%w(tag count)]
|
37
|
+
self.include_tags.split(',').each do |tag|
|
38
|
+
output << [tag, total_tag_count(tag).render.to_s]
|
39
|
+
end
|
40
|
+
self.output = output
|
41
|
+
self
|
42
|
+
end
|
43
|
+
|
35
44
|
def percentages
|
36
45
|
output = [%w(tag percent)]
|
37
46
|
total_count = 0
|