ad_localize 4.0.3 → 4.0.4

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: b482ce9a7080380dfef2db59f93af1752fa1b570764393bfc163a10bec1fa81c
4
- data.tar.gz: d1a1a841fba380486a618627541d9a50ce1c322a9695ce3ac904faf259458950
3
+ metadata.gz: 515020b2b995ed9340abcfa24de7d350fbdfd1acbd1409c9903030576407986a
4
+ data.tar.gz: a701252ef123e03e9db1ddd1c7dc9c3820808caff7e20ebc57c4c464403172c3
5
5
  SHA512:
6
- metadata.gz: 717d03d8cacc640e384cd1cf7c961a8e52ca8e9bc4545ee2ba6d92e4f9f698112b491640bf53b99dbe159b659c037e4a6154caf632e4fe7f908394a0115ff238
7
- data.tar.gz: 0703ee04049d0a12c6b111ea623759dc1da8d9a820aec1f0ed992fffdb967a014337a4b5cda92d74b2b600bd0d8200e7c1f4264ab3a1f90e0946d1f154e5be5e
6
+ metadata.gz: 328ff4485ee3547e20e3104049488064b1c025ccc4abe53da0b3299a2e80ab3725f74387b02855ecbc3a54507ba39aaf50f9363aa6df6b5cf26ba8f7dcf95a2d
7
+ data.tar.gz: 43eec4a6488919704184ea6fe3e8694bf1eb452b2eeb554b8ed0d67905ad97239edc78b169c80a768c88f1753a8cd242dd0504bad06465b12853b02f86fabc05
@@ -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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ad_localize (4.0.3)
4
+ ad_localize (4.0.4)
5
5
  activesupport (>= 5.2, < 7.0)
6
6
  colorize (~> 0.8)
7
7
  google-api-client (~> 0.34)
@@ -18,7 +18,7 @@ module AdLocalize
18
18
  end
19
19
 
20
20
  def debug(text)
21
- log(level: Logger::DEBUG, text: text.black)
21
+ log(level: Logger::DEBUG, text: text)
22
22
  end
23
23
 
24
24
  def info!
@@ -5,12 +5,16 @@ module AdLocalize
5
5
 
6
6
  def sanitize_value(value:)
7
7
  return if value.blank?
8
- processedValue = value.gsub(/(?<!\\)'/, "\\\\'") # match ' unless there is a \ before
9
- processedValue = processedValue.gsub(/(?<!\\)\"/, "\\\"") # match " unless there is a \ before
8
+ processedValue = value.gsub(/(?<!\\)'/, '&#39;') # match ' unless there is a \ before
9
+ processedValue = processedValue.gsub(/(?<!\\)\"/, '&#34;') # match " unless there is a \ before
10
+ processedValue = processedValue.gsub(">", '&gt;')
11
+ processedValue = processedValue.gsub("<", '&lt;')
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)))/, '&#37;') # negative lookahead: identifies when user really wants to display a %
13
15
  processedValue = processedValue.gsub("\\U", "\\u")
16
+ processedValue = processedValue.gsub(/&(?!((#\d+)|(\w+));)/, '&#38;')
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
- platform_codes: options[:only],
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'],
@@ -1,3 +1,3 @@
1
1
  module AdLocalize
2
- VERSION = "4.0.3"
2
+ VERSION = "4.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ad_localize
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.3
4
+ version: 4.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edouard Siegel