fastlane-plugin-csv_translation 1.2.0 → 1.2.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 883e0573fdcc3b3923504ef23547d0eebbea677a1d9f9372e4768014dd7d1780
|
4
|
+
data.tar.gz: 156764d6b54bae70722ef2f5a31bd8b3a3355edaa6dbdb81986a42fb70a966a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ee82fd160f9ce14b5b0730a4a97006b90d156fdfa999727c51b41929a5c6226ece25f1440bc3c0e2a6991597d904300f3cc65d8d1ec2d8a80d52c85f973bbd4
|
7
|
+
data.tar.gz: 455b0e810d17e9658149afa3b52a79ab71bd3fd3019f6a5216c92300cbbf11871e5bb0a66b8253c285c7f83ed490aea87acc5284614df1fe62f0b60de9721d5c
|
@@ -56,6 +56,7 @@ module Fastlane
|
|
56
56
|
|
57
57
|
def self.perform_rebase(params, csv_file_path, feature_branch_translation_requests)
|
58
58
|
csv_row_identifier = params[:identifier]
|
59
|
+
csv_row_identifier_header = params[:identifier_header]
|
59
60
|
|
60
61
|
# Step2: Commit csv file so rebase can be performed
|
61
62
|
git_message = "Rebase translation request: identifier:\n#{csv_row_identifier}"
|
@@ -68,7 +69,10 @@ module Fastlane
|
|
68
69
|
Helper::CsvTranslationHelper.append_missing_eof(csv_file_path)
|
69
70
|
|
70
71
|
# Step5: Append back feature branch translation_requests
|
71
|
-
all_translation_requests = CSV.
|
72
|
+
all_translation_requests = CSV.foreach(csv_file_path, headers: true).map { |row| row.to_h }
|
73
|
+
all_translation_requests.delete_if do |translation_request|
|
74
|
+
translation_request[csv_row_identifier_header].eql?(csv_row_identifier)
|
75
|
+
end
|
72
76
|
|
73
77
|
headers = CSV.open(csv_file_path, &:readline)
|
74
78
|
CSV.open(csv_file_path, "w", write_headers: true, headers: headers, force_quotes: true) do |csv|
|