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: 3457b7a9fc6910bbe26fa50975203b0123eee0e6
4
- data.tar.gz: b3229be480bad757b65a987add58e1d78ddec955
3
+ metadata.gz: 7ee2141ffe85e3b014a6daa85aabad4e5af114db
4
+ data.tar.gz: f85975570218c0524741c6e2e5e07bb5aee1d81a
5
5
  SHA512:
6
- metadata.gz: e609a974ebca9b84cef071a7661a4d4ba85738432baba7a8c52de3538062ddc3ecd8fd6ca4632b8f88a428f3d201d7d9db49540b372a6140836af1908ecdeb0c
7
- data.tar.gz: '091fe8391851921111298102ad2670f39f82c3b4e50db072f28350a9424a477dadb34c40f462780cd0bd107f38a9501971074eaf38a4e962786238c28bd00409'
6
+ metadata.gz: 56a8b905a23cf89f4769b16d19fde1dd8af53fbc35c964a64a5aacce7de0e7cecc2adbce6dbfcafed6aaa31bb24b79248dcec67ba3f2e7de00efdff67cc8adc0
7
+ data.tar.gz: 822cac3ce1638e3eb539c0517989711e218c6773b4570891cee26fc57d2e2f08c5c9d58e3b5fba2a18f9b10c10eaf47808e80e380f67fdb03d410dca371f3640
data/Rakefile CHANGED
@@ -18,7 +18,7 @@ Hoe.spec 'hubba-reports' do
18
18
  self.history_file = 'CHANGELOG.md'
19
19
 
20
20
  self.extra_deps = [
21
- ['hubba', '>= 0.7.0']
21
+ ['hubba', '>= 1.0.0']
22
22
  ]
23
23
 
24
24
  self.licenses = ['Public Domain']
@@ -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
- uniques = lines.reduce(0) {|sum,line| sum+line['uniques']}
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
- uniques = lines.reduce(0) {|sum,line| sum+line['uniques']}
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 !!
@@ -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
@@ -1,6 +1,6 @@
1
1
  module HubbaReports
2
- MAJOR = 0 ## todo: namespace inside version or something - why? why not??
3
- MINOR = 1
2
+ MAJOR = 1 ## todo: namespace inside version or something - why? why not??
3
+ MINOR = 0
4
4
  PATCH = 0
5
5
  VERSION = [MAJOR,MINOR,PATCH].join('.')
6
6
 
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: 0.1.0
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-14 00:00:00.000000000 Z
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.7.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.7.0
26
+ version: 1.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rdoc
29
29
  requirement: !ruby/object:Gem::Requirement