ad_localize 4.0.3 → 4.0.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 515020b2b995ed9340abcfa24de7d350fbdfd1acbd1409c9903030576407986a
|
4
|
+
data.tar.gz: a701252ef123e03e9db1ddd1c7dc9c3820808caff7e20ebc57c4c464403172c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 328ff4485ee3547e20e3104049488064b1c025ccc4abe53da0b3299a2e80ab3725f74387b02855ecbc3a54507ba39aaf50f9363aa6df6b5cf26ba8f7dcf95a2d
|
7
|
+
data.tar.gz: 43eec4a6488919704184ea6fe3e8694bf1eb452b2eeb554b8ed0d67905ad97239edc78b169c80a768c88f1753a8cd242dd0504bad06465b12853b02f86fabc05
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,14 @@ 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.4] - 2020-11-09
|
8
|
+
### Fixed
|
9
|
+
- Fix android special character escaping [#56](https://github.com/applidium/ad_localize/issues/56)
|
10
|
+
- Fix platform filter on export [#55](https://github.com/applidium/ad_localize/issues/55)
|
11
|
+
|
12
|
+
### Changed
|
13
|
+
- Use default terminal color for debug log
|
14
|
+
|
7
15
|
## [4.0.3] - 2020-10-27
|
8
16
|
### Fixed
|
9
17
|
- Fix CSV detection and remove dependency to MimeType gem
|
data/Gemfile.lock
CHANGED
@@ -5,12 +5,16 @@ module AdLocalize
|
|
5
5
|
|
6
6
|
def sanitize_value(value:)
|
7
7
|
return if value.blank?
|
8
|
-
processedValue = value.gsub(/(?<!\\)'/,
|
9
|
-
processedValue = processedValue.gsub(/(?<!\\)\"/,
|
8
|
+
processedValue = value.gsub(/(?<!\\)'/, ''') # match ' unless there is a \ before
|
9
|
+
processedValue = processedValue.gsub(/(?<!\\)\"/, '"') # match " unless there is a \ before
|
10
|
+
processedValue = processedValue.gsub(">", '>')
|
11
|
+
processedValue = processedValue.gsub("<", '<')
|
10
12
|
processedValue = processedValue.gsub(/(%(\d+\$)?@)/, '%\2s') # should match values like %1$s and %s
|
11
13
|
processedValue = processedValue.gsub(/(%((\d+\$)?(\d+)?)i)/, '%\2d') # should match values like %i, %3$i, %01i, %1$02i
|
12
14
|
processedValue = processedValue.gsub(/%(?!((\d+\$)?(s|(\d+)?d)))/, '%') # negative lookahead: identifies when user really wants to display a %
|
13
15
|
processedValue = processedValue.gsub("\\U", "\\u")
|
16
|
+
processedValue = processedValue.gsub(/&(?!((#\d+)|(\w+));)/, '&')
|
17
|
+
processedValue = processedValue.gsub(/&/) { |match| match.replace('\&') }
|
14
18
|
"\"#{processedValue}\""
|
15
19
|
end
|
16
20
|
end
|
@@ -3,7 +3,7 @@ module AdLocalize
|
|
3
3
|
class OptionsToExportRequest
|
4
4
|
def map(options:)
|
5
5
|
Requests::ExportRequest.new(
|
6
|
-
|
6
|
+
platforms: options[:only],
|
7
7
|
g_spreadsheet_options: map_g_spreadsheet_options(options: options),
|
8
8
|
verbose: options[:debug],
|
9
9
|
output_path: options[:'target-dir'],
|
data/lib/ad_localize/version.rb
CHANGED