ad_localize 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -6
- data/Gemfile.lock +8 -4
- data/lib/ad_localize/mappers/android_translation_mapper.rb +1 -1
- data/lib/ad_localize/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62c6349d3a9f83d2c431e93485ee9f34760162b74ed83ed3cc19393f15fd333b
|
4
|
+
data.tar.gz: 8c270d4d06df0f8d8bbc4699702d6c27a23730578d9c3d196de607369a358539
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f4db75c29aec05862c0e51b6a080c5a6e11dd487819942da9c8dad1ce066844e0b9a9311cb463d276fdbdb643649e4f94fe68b4fd3556c22dcf167ccba67b67
|
7
|
+
data.tar.gz: 7b9fb85b7b3b076715b55d01cf65e6dd37d5b62103d1a46320f972a4e852797448d10dce9eaf18a38e5bad8288f5fa4e5192c44e9797493d7da73b665d08cde3
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [4.0.2] - 2020-10-26
|
8
|
+
### Fixed
|
9
|
+
- Use percent HTML char for escaping '%' on android. [#49](https://github.com/applidium/ad_localize/pull/49) by [flolom](https://github.com/flolom)
|
10
|
+
|
7
11
|
## [4.0.1] - 2020-10-19
|
8
12
|
### Fixed
|
9
13
|
- delete downloaded files even when any of them is a CSV file
|
@@ -13,7 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
13
17
|
- Precedence to csv files. Only CSV files will be exported if both csv file and google spreadsheet are provided
|
14
18
|
- In case of multiple CSVs or sheet ids, you should be aware that all sources will be merged. By default the merge policy to keep the first wording translation for each key
|
15
19
|
- New architecture. Separate export process responsibilities in dedicated classes. Fixes [#48](https://github.com/applidium/ad_localize/issues/48), [#20](https://github.com/applidium/ad_localize/issues/20)
|
16
|
-
|
20
|
+
|
17
21
|
### Changed
|
18
22
|
- it is now possible to provide an output path path that does not exist
|
19
23
|
- if a service account configuration is provided, there won't be any files downloaded
|
@@ -24,8 +28,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
24
28
|
- tests for ad_localize class are restricted to the minimum
|
25
29
|
- No more file generated when there are no data to export
|
26
30
|
- Less verbose logs. Now, they only describe the different steps of the export process
|
27
|
-
- do not add `InfoPlist` translations to android `strings.xml`
|
28
|
-
|
31
|
+
- do not add `InfoPlist` translations to android `strings.xml`
|
32
|
+
|
29
33
|
### Added
|
30
34
|
- -e, -export_all_sheets option export all sheets from a spreadsheet by [@sjcqs](https://github.com/sjcqs)
|
31
35
|
- -m, --merge-option to select the merge policy (`keep` or `replace`) by [@sjcqs](https://github.com/sjcqs)
|
@@ -37,7 +41,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
37
41
|
- dedicated folder for fixture files
|
38
42
|
- add ability to use AdLocalize in a Ruby program
|
39
43
|
- add documentation for JSON and YAML support. Fixes [#23](https://github.com/applidium/ad_localize/issues/23)
|
40
|
-
|
44
|
+
|
41
45
|
### Fixed
|
42
46
|
- comments will now be added to iOS and Android plural files
|
43
47
|
- do not remove existing files in export output folder. Fixes [#40](https://github.com/applidium/ad_localize/issues/40)
|
@@ -46,8 +50,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
46
50
|
- no more option -a option to indicate that a service account configuration will be provided. If set, the environment variable `GCLOUD_CLIENT_SECRET` content will be used
|
47
51
|
- no more substitution of empty wording with by "Missing Translation" when using the option -d
|
48
52
|
- no more Makefile, the Rakefile is sufficient. Use `bundle exec rake -T` to display the available commands
|
49
|
-
- no more check for ordered interpolation variables in translations
|
50
|
-
|
53
|
+
- no more check for ordered interpolation variables in translations
|
54
|
+
|
51
55
|
## [3.6.0] - 2020-06-23
|
52
56
|
### Added
|
53
57
|
- add documentation for service account usage by [@sjcqs](https://github.com/sjcqs)
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ad_localize (4.0.
|
4
|
+
ad_localize (4.0.2)
|
5
5
|
activesupport (>= 5.2, < 7.0)
|
6
6
|
colorize (~> 0.8)
|
7
7
|
google-api-client (~> 0.34)
|
@@ -28,17 +28,19 @@ GEM
|
|
28
28
|
declarative (0.0.20)
|
29
29
|
declarative-option (0.1.0)
|
30
30
|
diffy (3.3.0)
|
31
|
-
faraday (1.0
|
31
|
+
faraday (1.1.0)
|
32
32
|
multipart-post (>= 1.2, < 3)
|
33
|
-
|
33
|
+
ruby2_keywords
|
34
|
+
google-api-client (0.46.2)
|
34
35
|
addressable (~> 2.5, >= 2.5.1)
|
35
36
|
googleauth (~> 0.9)
|
36
37
|
httpclient (>= 2.8.1, < 3.0)
|
37
38
|
mini_mime (~> 1.0)
|
38
39
|
representable (~> 3.0)
|
39
40
|
retriable (>= 2.0, < 4.0)
|
41
|
+
rexml
|
40
42
|
signet (~> 0.12)
|
41
|
-
googleauth (0.
|
43
|
+
googleauth (0.14.0)
|
42
44
|
faraday (>= 0.17.3, < 2.0)
|
43
45
|
jwt (>= 1.4, < 3.0)
|
44
46
|
memoist (~> 0.16)
|
@@ -73,7 +75,9 @@ GEM
|
|
73
75
|
declarative-option (< 0.2.0)
|
74
76
|
uber (< 0.2.0)
|
75
77
|
retriable (3.1.2)
|
78
|
+
rexml (3.2.4)
|
76
79
|
ruby-progressbar (1.10.1)
|
80
|
+
ruby2_keywords (0.0.2)
|
77
81
|
signet (0.14.0)
|
78
82
|
addressable (~> 2.3)
|
79
83
|
faraday (>= 0.17.3, < 2.0)
|
@@ -9,7 +9,7 @@ module AdLocalize
|
|
9
9
|
processedValue = processedValue.gsub(/(?<!\\)\"/, "\\\"") # match " unless there is a \ before
|
10
10
|
processedValue = processedValue.gsub(/(%(\d+\$)?@)/, '%\2s') # should match values like %1$s and %s
|
11
11
|
processedValue = processedValue.gsub(/(%((\d+\$)?(\d+)?)i)/, '%\2d') # should match values like %i, %3$i, %01i, %1$02i
|
12
|
-
processedValue = processedValue.gsub(/%(?!((\d+\$)?(s|(\d+)?d)))/, '
|
12
|
+
processedValue = processedValue.gsub(/%(?!((\d+\$)?(s|(\d+)?d)))/, '%') # negative lookahead: identifies when user really wants to display a %
|
13
13
|
processedValue = processedValue.gsub("\\U", "\\u")
|
14
14
|
"\"#{processedValue}\""
|
15
15
|
end
|
data/lib/ad_localize/version.rb
CHANGED