hubba-reports 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ee2141ffe85e3b014a6daa85aabad4e5af114db
|
4
|
+
data.tar.gz: f85975570218c0524741c6e2e5e07bb5aee1d81a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56a8b905a23cf89f4769b16d19fde1dd8af53fbc35c964a64a5aacce7de0e7cecc2adbce6dbfcafed6aaa31bb24b79248dcec67ba3f2e7de00efdff67cc8adc0
|
7
|
+
data.tar.gz: 822cac3ce1638e3eb539c0517989711e218c6773b4570891cee26fc57d2e2f08c5c9d58e3b5fba2a18f9b10c10eaf47808e80e380f67fdb03d410dca371f3640
|
data/Rakefile
CHANGED
@@ -87,8 +87,7 @@ lines_by_path = lines.group_by { |line|
|
|
87
87
|
|
88
88
|
lines_by_path.each_with_index do |(path, lines),i|
|
89
89
|
count = lines.reduce(0) {|sum,line| sum+line['count']}
|
90
|
-
|
91
|
-
buf << "#{i+1}. **#{path}** #{count} / #{uniques} _(#{lines.size})_"
|
90
|
+
buf << "#{i+1}. **#{path}** #{count} _(#{lines.size})_"
|
92
91
|
buf << "\n"
|
93
92
|
|
94
93
|
### todo - sort by count / uniques !!
|
@@ -78,8 +78,7 @@ lines_by_referrer = lines.group_by { |line| line['referrer'] }
|
|
78
78
|
|
79
79
|
lines_by_referrer.each_with_index do |(referrer, lines),i|
|
80
80
|
count = lines.reduce(0) {|sum,line| sum+line['count']}
|
81
|
-
|
82
|
-
buf << "#{i+1}. **#{referrer}** #{count} / #{uniques} _(#{lines.size})_"
|
81
|
+
buf << "#{i+1}. **#{referrer}** #{count} _(#{lines.size})_"
|
83
82
|
buf << "\n"
|
84
83
|
|
85
84
|
### todo - sort by count / uniques !!
|
data/lib/hubba/reports/stats.rb
CHANGED
@@ -13,7 +13,7 @@ module Hubba
|
|
13
13
|
alias_method :desc, :description
|
14
14
|
|
15
15
|
def topics() @data['topics'] || []; end ## todo/check: return nil if not found - why? why not?
|
16
|
-
|
16
|
+
def languages() @data['languages'] || {}; end ## todo/check: return nil if not found - why? why not?
|
17
17
|
|
18
18
|
## note: return datetime objects (NOT strings); if not present/available return nil/null
|
19
19
|
def created_at() @cache['created_at'] ||= parse_datetime( @data['created_at'] ); end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hubba-reports
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hubba
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 1.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 1.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rdoc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|