missing_translation 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1a151aecd35d65f11f3bddfd9446dc2313cd4e5e9adbc1bff580f18ad0369f5
4
- data.tar.gz: bc3e5294a08640a74d2c7db601e7cc81007b05e5e9ef7f97fc92afe82c7dc44a
3
+ metadata.gz: dba71d70e2fdfd447e9970d93b7df7fb48c15d1ebc0786faa42485ffb69fd2cd
4
+ data.tar.gz: 335d390b416fa5e6df1f69391d5c34a55740bef4f889705ff72083af2e4c6d9f
5
5
  SHA512:
6
- metadata.gz: ed75fa219082540942650895c32274aa05bead3250820f2363d9047f543b2875655654158fa4dc4e8cee8d6298edfea390593809e17132e9a556eb6075bfefd0
7
- data.tar.gz: 758eab57f048daa7b974f596a8cb89f2c7e5b1bf6f8cb20107cbb88ba0f7b89afd44d932a28724cee4532ae6d721c12674be62195d3c69e5fbb4c8b5b2fce767
6
+ metadata.gz: 3e932a04547c8e79061f6c85f8931b886f912ba455155c706a6cce5bb292bb528587c326440f370388115bac9b0aebccd6f2013faca13a5a7229706e35276d4d
7
+ data.tar.gz: d02468ccc06101f8a3259e7f253283e80b30612abc1f3604b9fa77a39b14c90295d4250d603ba71e383cfb0d51523b3c94a511924036f644d00f57c1060a4d7f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- missing_translation (0.4.0)
4
+ missing_translation (0.4.2)
5
5
  httparty (~> 0.18)
6
6
  thor (~> 1.1)
7
7
 
@@ -9,8 +9,10 @@ GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  ast (2.4.2)
12
+ csv (3.3.0)
12
13
  diff-lcs (1.5.0)
13
- httparty (0.21.0)
14
+ httparty (0.22.0)
15
+ csv
14
16
  mini_mime (>= 1.0.0)
15
17
  multi_xml (>= 0.5.2)
16
18
  json (2.6.2)
@@ -49,7 +51,7 @@ GEM
49
51
  rubocop-ast (1.22.0)
50
52
  parser (>= 3.1.1.0)
51
53
  ruby-progressbar (1.11.0)
52
- thor (1.2.2)
54
+ thor (1.3.1)
53
55
  unicode-display_width (2.3.0)
54
56
 
55
57
  PLATFORMS
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MissingTranslation
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.2"
5
5
  end
@@ -1,4 +1,5 @@
1
1
  require 'httparty'
2
+ require 'json'
2
3
 
3
4
  class MissingTranslationApi
4
5
  include HTTParty
@@ -19,6 +20,7 @@ class MissingTranslationApi
19
20
  end
20
21
 
21
22
  def upload(language, group, keys, content_type = "yaml")
23
+ p "Pushing #{keys.count} keys on #{group} for #{language}"
22
24
  self.class.post("/translations/import", @options.merge({
23
25
  body: {
24
26
  content_type: content_type,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: missing_translation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Clercin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-24 00:00:00.000000000 Z
11
+ date: 2024-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor