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.
- checksums.yaml +4 -4
- data/CHANGELOG +2 -1
- data/lib/Core.rb +3 -0
- data/lib/Version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d596a4f1473dd943d9f5c236938f92bcad74f1c
|
4
|
+
data.tar.gz: c362fe03e1bc74703fdb32ff06e7abe4905aba4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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].
|
data/lib/Core.rb
CHANGED
@@ -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
|
|
data/lib/Version.rb
CHANGED
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
|
+
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-
|
12
|
+
date: 2019-08-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: colorize
|