phraseapp-ruby 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/phraseapp-ruby/version.rb +1 -1
- data/lib/phraseapp-ruby.rb +11 -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: 0e926755df0329c0d07c05742d15d836fd6d128d
|
4
|
+
data.tar.gz: ccc1a225517a8fcf61d3be85ab36673b68f2ffe2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0c0f3c17fbd1645d212e7e017fd890ba39954d2e9d511c0f1076800466d648f9561602b5faffa66bb8707a17efd8aa8f4a607dad20b7f62d6477f3b31a00aa1
|
7
|
+
data.tar.gz: 5f66c9c8410dc8a40bca5c2eab2626143efa223b4ddd154a79212d6c9a38d90e4cf266ff9fc3367c644435971c625100bd4f8c55ebd3bb67254c5d3b8397e229
|
data/lib/phraseapp-ruby.rb
CHANGED
@@ -951,6 +951,8 @@ module RequestParams
|
|
951
951
|
# Indicates whether the file contains Emoji symbols that should be converted. <a href="guides/working-with-phraseapp/emoji-support/">Working with Emojis</a>.
|
952
952
|
# file::
|
953
953
|
# File to be imported
|
954
|
+
# file_encoding::
|
955
|
+
# Enforced a specific encoding on the file contents. Valid options are "UTF-8", "UTF-16" and "ISO-8859-1".
|
954
956
|
# file_format::
|
955
957
|
# File format. Auto-detected when possible and not specified.
|
956
958
|
# locale_id::
|
@@ -978,6 +980,10 @@ module RequestParams
|
|
978
980
|
self.file = val
|
979
981
|
end
|
980
982
|
|
983
|
+
def file_encoding=(val)
|
984
|
+
self.file_encoding = val
|
985
|
+
end
|
986
|
+
|
981
987
|
def file_format=(val)
|
982
988
|
self.file_format = val
|
983
989
|
end
|
@@ -1315,7 +1321,7 @@ module RequestParams
|
|
1315
1321
|
# encoding::
|
1316
1322
|
# Specify an encoding for the locale file. See the <a href="guides/formats">format guide</a> for a list of supported encodings for each format.
|
1317
1323
|
# fallback_locale_id::
|
1318
|
-
# If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the public ID of the locale that should be used as the fallback.
|
1324
|
+
# If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the public ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to <code>true</code>.
|
1319
1325
|
# file_format::
|
1320
1326
|
# File format name. See the format guide for all supported file formats.
|
1321
1327
|
# format_options::
|
@@ -3859,6 +3865,10 @@ end
|
|
3859
3865
|
post_body << "\r\n"
|
3860
3866
|
end
|
3861
3867
|
|
3868
|
+
if params.file_encoding != nil
|
3869
|
+
data_hash["file_encoding"] = params.file_encoding
|
3870
|
+
end
|
3871
|
+
|
3862
3872
|
if params.file_format != nil
|
3863
3873
|
data_hash["file_format"] = params.file_format
|
3864
3874
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phraseapp-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PhraseApp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: PhraseApp API client libary
|
14
14
|
email:
|