copy_tuner_client 0.16.2 → 0.16.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/copy_tuner_client/client.rb +6 -1
- data/lib/copy_tuner_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ec2291128893fab1a165cd4566605c86006fb0180ceaa4bf647d27a868aa838
|
4
|
+
data.tar.gz: 8d6b910e1f7c3bf72c5a51ed13f45757a05cf33e068518f9959973576b742128
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3273fb00eb37001abe028d8e1d16ce6f44270d70411fe6c9b33fb07a77a3f256ee4b9d4f406403ae01a0e1050094a9191d461e389ef8dd778e8288d9c72752f2
|
7
|
+
data.tar.gz: 07ebfbb46b756142eb846359b4597c43bdeaee36089bfa070a6dd3162e8bdfeffd42fe5388f02a96ce01a34ef8c7f8b36818b239856a034349f8c79e696669fc
|
@@ -54,7 +54,12 @@ module CopyTunerClient
|
|
54
54
|
response = http.request(request)
|
55
55
|
t_ms = ((Time.now - t) * 1000).to_i
|
56
56
|
if check response
|
57
|
-
|
57
|
+
bytesize = response.body.bytesize
|
58
|
+
kb = bytesize / 1024.0
|
59
|
+
mb = kb / 1024.0
|
60
|
+
t_s = t_ms / 1000.0
|
61
|
+
kbs = kb / t_s
|
62
|
+
log "Downloaded translations (#{t_ms}ms, #{mb.round(1)}MB, #{kbs.round(1)}KB/s)"
|
58
63
|
yield JSON.parse(response.body)
|
59
64
|
else
|
60
65
|
log "No new translations (#{t_ms}ms)"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: copy_tuner_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.16.
|
4
|
+
version: 0.16.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SonicGarden
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|