twistage_stats_reports 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stats/breakdown_report.rb +4 -4
- data/lib/stats/publish_report.rb +10 -10
- data/lib/stats/source_report.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 644e736c7d0bf9a19af89d5a6a8d17b080348c17
|
4
|
+
data.tar.gz: 0d9308fafdce168a5869f7d077a2fecefbacf460
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb887a9cf0f7a8df07d88421eb1b0eaf02e59acf8a2862a7ff51cf92336d9ca30b4749216b7562cb956d61d60911511508b11fb69415032b688772fc93a1a448
|
7
|
+
data.tar.gz: 0adccf1491e10a67602763ab9489bacd988074968b2fee977dd17f71cc81ecd4180212765d57b3df50c10cb8ff60756e21a9abbb0eee1a7d30a4e9c1789f01e8
|
@@ -9,15 +9,15 @@ class Stats::BreakdownReport < Stats::EventReport
|
|
9
9
|
|
10
10
|
@container = options[:container]
|
11
11
|
|
12
|
-
@assets_uploaded = options[:assets_uploaded]
|
13
|
-
@assets_encoded = options[:assets_encoded]
|
12
|
+
@assets_uploaded = options[:assets_uploaded].to_i
|
13
|
+
@assets_encoded = options[:assets_encoded].to_i
|
14
14
|
|
15
15
|
@query_time = nil
|
16
16
|
|
17
|
-
@duration_uploaded = self.class.format_duration(options[:duration_uploaded].to_f
|
17
|
+
@duration_uploaded = self.class.format_duration(options[:duration_uploaded].to_f)
|
18
18
|
@duration_uploaded_min = self.class.format_duration(@duration_uploaded / 60.seconds.to_f)
|
19
19
|
|
20
|
-
@duration_encoded = self.class.format_duration(options[:duration_encoded].to_f
|
20
|
+
@duration_encoded = self.class.format_duration(options[:duration_encoded].to_f)
|
21
21
|
@duration_encoded_min = self.class.format_duration(@duration_encoded / 60.seconds.to_f)
|
22
22
|
end
|
23
23
|
|
data/lib/stats/publish_report.rb
CHANGED
@@ -15,22 +15,22 @@ class Stats::PublishReport < Stats::EventReport
|
|
15
15
|
|
16
16
|
@label = options[:label]
|
17
17
|
|
18
|
-
@assets_uploaded = options[:assets_uploaded]
|
19
|
-
@assets_encoded = options[:assets_encoded]
|
18
|
+
@assets_uploaded = options[:assets_uploaded].to_i
|
19
|
+
@assets_encoded = options[:assets_encoded].to_i
|
20
20
|
|
21
21
|
@query_time = nil
|
22
22
|
|
23
|
-
@bytes_uploaded = options[:bytes_uploaded]
|
24
|
-
@bytes_uploaded_gb = self.class.format_gb(options[:bytes_uploaded] / 1.gigabyte.to_f)
|
23
|
+
@bytes_uploaded = options[:bytes_uploaded].to_i
|
24
|
+
@bytes_uploaded_gb = self.class.format_gb(options[:bytes_uploaded].to_i / 1.gigabyte.to_f)
|
25
25
|
|
26
|
-
@bytes_encoded = options[:bytes_encoded]
|
27
|
-
@bytes_encoded_gb = self.class.format_gb(options[:bytes_encoded] / 1.gigabyte.to_f)
|
26
|
+
@bytes_encoded = options[:bytes_encoded].to_i
|
27
|
+
@bytes_encoded_gb = self.class.format_gb(options[:bytes_encoded].to_i / 1.gigabyte.to_f)
|
28
28
|
|
29
|
-
@duration_uploaded = self.class.format_duration(options[:duration_uploaded])
|
30
|
-
@duration_uploaded_min = self.class.format_duration(options[:duration_uploaded] / 60.seconds.to_f)
|
29
|
+
@duration_uploaded = self.class.format_duration(options[:duration_uploaded].to_f)
|
30
|
+
@duration_uploaded_min = self.class.format_duration(options[:duration_uploaded].to_f / 60.seconds.to_f)
|
31
31
|
|
32
|
-
@duration_encoded = self.class.format_duration(options[:duration_encoded])
|
33
|
-
@duration_encoded_min = self.class.format_duration(options[:duration_encoded] / 60.seconds.to_f)
|
32
|
+
@duration_encoded = self.class.format_duration(options[:duration_encoded].to_f)
|
33
|
+
@duration_encoded_min = self.class.format_duration(options[:duration_encoded].to_f / 60.seconds.to_f)
|
34
34
|
end
|
35
35
|
|
36
36
|
def self.csv_keys
|
data/lib/stats/source_report.rb
CHANGED
@@ -7,9 +7,9 @@ class Stats::SourceReport < Stats::EventReport
|
|
7
7
|
def initialize(options = {})
|
8
8
|
@label = options[:label]
|
9
9
|
@publish_type = options[:publish_type]
|
10
|
-
@publishes = options[:publishes]
|
10
|
+
@publishes = options[:publishes].to_i
|
11
11
|
@query_time = nil
|
12
|
-
@duration = self.class.format_duration(options[:duration]
|
12
|
+
@duration = self.class.format_duration(options[:duration].to_f)
|
13
13
|
@duration_min = self.class.format_duration(@duration / 60.seconds.to_f)
|
14
14
|
end
|
15
15
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twistage_stats_reports
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Wegman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Shared data structures and logic for interacting with the Twistage Stats
|
14
14
|
service
|