aigu 0.4.1 → 0.4.2

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
  SHA1:
3
- metadata.gz: 8ad319cbb6d09c6c0490394a5157c75c31068b0e
4
- data.tar.gz: 7a3e850cb6f8e81296b1507402de29ca42352e6c
3
+ metadata.gz: 1df8fa29f2c2d4944edec253d55c2487878ed074
4
+ data.tar.gz: b6a98ebf9faedfe1ccc062647c556241d9eed539
5
5
  SHA512:
6
- metadata.gz: f45211629474a502134398a2872e655bf44e77144b55971f24bd948d1657197de46e4de3be14788d34d7ebbc7321eb0bafae57db87ec20490d77aba3e54babe0
7
- data.tar.gz: 888a73ce5a37e850a981f62bcd2c8d8d937a696d8948002ab5b6d157cce406899ad85192aabee2f6aae9d335ee4691442a6b450cc9c9cf79875a39a0896cdbc1
6
+ metadata.gz: f0c6543b338326308b654c2c947cf6902f4ccf9a7183b6dd43247a66b47d3c361002fcddc0c7f66ebcbe859fb361707d0d483c89608b0a8a1f83702f06438c1c
7
+ data.tar.gz: f5c31a55e98835fe503dcd68162ff2fd05a51f5df571af60b655bed95117f7f9610939e1058abca51588ff07b1f834b09d1cbfdea27c8b031d1f50a9fdcef561
@@ -77,7 +77,7 @@ module Aigu
77
77
  # To make it work with objects, we need to convert all %s to %@.
78
78
  # Example: 'Android interpolation %s or %1$s' => 'iOS interpolation %@ or %1$@'.
79
79
  def replace_string_interpolations(string)
80
- string.gsub(/%([0-9]+\$)?s/, '%\\1@')
80
+ string.gsub(/%([0-9]+\$)?@/, '%\\1s')
81
81
  end
82
82
 
83
83
  # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity, Metrics/MethodLength, Metrics/BlockNesting
data/lib/aigu/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Aigu
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
@@ -10,10 +10,10 @@ describe Aigu::IosExporter do
10
10
  "STRING_1" = "Value of string #1";
11
11
  "STRING_2" = "Value of string #2";
12
12
  "STRING_3" = "Value with special chars (%ld) %@\\n = abc";
13
- "STRING_4" = "Value with an interpolation %s.";
14
- "STRING_5" = "Value with %s interpolations %s.";
15
- "STRING_6" = "Value with an interpolation with an identifier %1$s.";
16
- "STRING_7" = "Value with %1$s interpolations with an identifier %2$s.";
13
+ "STRING_4" = "Value with an interpolation %@.";
14
+ "STRING_5" = "Value with %@ interpolations %@.";
15
+ "STRING_6" = "Value with an interpolation with an identifier %1$@.";
16
+ "STRING_7" = "Value with %1$@ interpolations with an identifier %2$@.";
17
17
  EOS
18
18
  end
19
19
 
@@ -21,11 +21,11 @@ describe Aigu::IosExporter do
21
21
  {
22
22
  'STRING_1' => 'Value of string #1',
23
23
  'STRING_2' => 'Value of string #2',
24
- 'STRING_3' => 'Value with special chars (%ld) %@\n = abc',
25
- 'STRING_4' => 'Value with an interpolation %@.',
26
- 'STRING_5' => 'Value with %@ interpolations %@.',
27
- 'STRING_6' => 'Value with an interpolation with an identifier %1$@.',
28
- 'STRING_7' => 'Value with %1$@ interpolations with an identifier %2$@.'
24
+ 'STRING_3' => 'Value with special chars (%ld) %s\n = abc',
25
+ 'STRING_4' => 'Value with an interpolation %s.',
26
+ 'STRING_5' => 'Value with %s interpolations %s.',
27
+ 'STRING_6' => 'Value with an interpolation with an identifier %1$s.',
28
+ 'STRING_7' => 'Value with %1$s interpolations with an identifier %2$s.'
29
29
  }
30
30
  end
31
31
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aigu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rémi Prévost