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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f71a4d30fba150acdb6fcaf87bb23d1dac860938ed1ea49c4f66147b0c745f2d
4
- data.tar.gz: 7bf32e6a7d61f91f6963dd93d4a6cfd061bf7178e74eafbd7b750ab28c19a8d7
3
+ metadata.gz: 2ec2291128893fab1a165cd4566605c86006fb0180ceaa4bf647d27a868aa838
4
+ data.tar.gz: 8d6b910e1f7c3bf72c5a51ed13f45757a05cf33e068518f9959973576b742128
5
5
  SHA512:
6
- metadata.gz: 4e67f8c08453b08b0fbff07ff08adf949ba8738d71b7f79402c99a2c195def37a2b05ec9c642eeedb70bc6bc5ab7669df62b9f0bb6ef26a45ed0d3d5354475c2
7
- data.tar.gz: 82f76ec81af6b689f37fe692a04771ed23e0e1987c8bb83f925f00afa23f5e3c16fd769828ca50721389fe7c69def403c4c04826c5c0f6b0446581b3293b09a5
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
- log "Downloaded translations (#{t_ms}ms)"
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)"
@@ -1,6 +1,6 @@
1
1
  module CopyTunerClient
2
2
  # Client version
3
- VERSION = '0.16.2'.freeze
3
+ VERSION = '0.16.3'.freeze
4
4
 
5
5
  # API version being used to communicate with the server
6
6
  API_VERSION = '2.0'.freeze
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.2
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-05-08 00:00:00.000000000 Z
11
+ date: 2023-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n