fastlane-plugin-ovo_poeditor 1.2.0 → 1.2.2
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: 601fd0a15b3925816c09a5dca253b13efa20bfe14ddbc144e4e5816d7bfc5c18
|
|
4
|
+
data.tar.gz: 565c5f54857237fde6618daef989b44777db9c8e8c22a63d936e9ab628054ba3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 11249a6960f9032f9cb5a4ffce4f33f6b6bf239dfb32182d1608622d02dcc310ccf32dd3b30a69f5d4c09c99cde8edbae34f6821fea6f5fb17df527a1cdc90a9
|
|
7
|
+
data.tar.gz: 323ebdd9f3e438cce1707ffb9d80a05e106d1c8a29129ca75298083a611f45a15a995dd535e9f6a1694e11222cb6f932f9c376b3c730702dc6675377f0d550b2
|
|
@@ -47,6 +47,8 @@ module Fastlane
|
|
|
47
47
|
strings_data = download_file(export_url, language)
|
|
48
48
|
next unless strings_data
|
|
49
49
|
|
|
50
|
+
strings_data = normalize_newlines(strings_data) if file_format == 'apple_strings'
|
|
51
|
+
|
|
50
52
|
output_path = build_output_path(output_dir, language, file_name, file_format, default_language, language_map, bypass_default_language)
|
|
51
53
|
|
|
52
54
|
begin
|
|
@@ -97,6 +99,12 @@ module Fastlane
|
|
|
97
99
|
nil
|
|
98
100
|
end
|
|
99
101
|
|
|
102
|
+
def self.normalize_newlines(content)
|
|
103
|
+
content.gsub(/= "((?:[^"\\]|\\.)*)"/) do
|
|
104
|
+
"= \"#{$1.gsub(/\\\\n/) { '\n' }}\""
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
100
108
|
def self.build_output_path(base_dir, language, file_name, format, default_language, language_map, bypass_default_language)
|
|
101
109
|
if format == 'xcstrings'
|
|
102
110
|
"#{base_dir}/#{file_name}"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fastlane-plugin-ovo_poeditor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alessio Arsuffi
|
|
@@ -39,7 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
41
|
requirements: []
|
|
42
|
-
rubygems_version:
|
|
42
|
+
rubygems_version: 4.0.8
|
|
43
43
|
specification_version: 4
|
|
44
44
|
summary: Fetch latest POEditor terms and download them as .xcstrings and .strings
|
|
45
45
|
file
|