poeditor-pull 1.0.4 → 1.0.5

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +2 -1
  3. data/lib/Core.rb +3 -0
  4. data/lib/Version.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 442a05ff61a3c7845aa28f144c9a97d4430aee49
4
- data.tar.gz: 84376d58a5bd9ad35a12049d3edd2af85a11020b
3
+ metadata.gz: 6d596a4f1473dd943d9f5c236938f92bcad74f1c
4
+ data.tar.gz: c362fe03e1bc74703fdb32ff06e7abe4905aba4d
5
5
  SHA512:
6
- metadata.gz: 9ec2d8a6559a1be9bcabac2e63689365b927c35ff1e45ad782b39653470e608477ab30e2d5346ab473566a69612a04cd30c0a3773764f62fc118324a7d990e8d
7
- data.tar.gz: 5dd9a32a7ef4e6e24ef3c821b94decbe075357eca0239cbc2a2c829bd7d4524747f26770232272db581187cfffc71cbc675aed88144f8571bda6e9ceb6228cd6
6
+ metadata.gz: b4738eea180171476d85cf481d439858a92c03d7f94a03c8fc1b252e63b0606975e3244cce1817e1dd7b1ffffc6a53cc0fde36678e982cc696c6cca9a01911a9
7
+ data.tar.gz: 3695cf780e5f921d7bf8e7dfe0582f2b6909c1ccd522b0b145cb29f1aa17afc997f796b25c51e2800b0a471af043afad8955133eb33344ff18adbe1b47f12c68
data/CHANGELOG CHANGED
@@ -7,4 +7,5 @@ List of changes introduced to source codebase:
7
7
  3. Added: logic filtering out languages with no translations
8
8
  4. Added: support for project main dir definition and relative translations paths in config
9
9
  5. Added: formatting paths with target/flavor name based on {TARGET_NAME} as parameter.
10
- 6. Implemented language-region combination support [Android] and Chinese language coding support
10
+ 6. Implemented language-region combination support [Android] and Chinese language coding support
11
+ 7. Implemented additional `path_copy` (next to default `path_replace`) strategy to support having both Base and source-base language `.strings` files project simultaneously [since 1.0.4, iOS specific].
@@ -7,6 +7,7 @@ module POEditor
7
7
  class Core
8
8
 
9
9
  POEDITOR_BASE_URL = "https://api.poeditor.com/v2/"
10
+ DO_NOT_CHANGE_MANUALLY_MESSAGE = "Values below were pulled automatically from POEditor. DO NOT change them manually."
10
11
 
11
12
  # @return [POEditor::Configuration] The configuration for export
12
13
  attr_accessor :configuration
@@ -87,8 +88,10 @@ module POEditor
87
88
 
88
89
  case type
89
90
  when "apple_strings"
91
+ content.prepend("/* #{DO_NOT_CHANGE_MANUALLY_MESSAGE} */\n")
90
92
  content.gsub!(/(%(\d+\$)?)s/, '\1@') # %s -> %@
91
93
  when "android_strings"
94
+ content = content.gsub(/<resources>/, "<!-- #{DO_NOT_CHANGE_MANUALLY_MESSAGE} -->\n\\0")
92
95
  content.gsub!(/(%(\d+\$)?)@/, '\1s') # %@ -> %s
93
96
  end
94
97
 
@@ -1,3 +1,3 @@
1
1
  module POEditor
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poeditor-pull
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suyeol Jeon
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-07-16 00:00:00.000000000 Z
12
+ date: 2019-08-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colorize