phraseapp-ruby 1.0.18 → 1.0.20
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/lib/phraseapp-ruby.rb +78 -78
- data/lib/request_handler.rb +5 -1
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e8891c1e4dced691af6f2e3d5d483be7fbb1eac
|
4
|
+
data.tar.gz: 984339d9d4f56618cf12ec2aa24f5de0ab5c3d51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd16cc6137ec391e9eb1519be44e9454e0d3b4da730d03ac39e36f28cafada5bf32acbb59ff358dd79c6f24b72f1dab22e00b54c3cc5bbb4dab85052068c9216
|
7
|
+
data.tar.gz: c4ca5f51c8b54ef163ea2c06570e4bf27e2eb0a8d4d37e3c50c7bec3858d6f3742046f73692660331f75829170255afa1324bdb08ec55ba83a0e9c6732c8a276
|
data/lib/phraseapp-ruby.rb
CHANGED
@@ -434,9 +434,9 @@ module RequestParams
|
|
434
434
|
end
|
435
435
|
|
436
436
|
def plural=(val)
|
437
|
-
if val
|
437
|
+
if val.is_a?(TrueClass)
|
438
438
|
self.plural = true
|
439
|
-
elsif val
|
439
|
+
elsif val.is_a?(FalseClass) #ignore
|
440
440
|
self.plural = b
|
441
441
|
else
|
442
442
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -444,9 +444,9 @@ module RequestParams
|
|
444
444
|
end
|
445
445
|
|
446
446
|
def remove_screenshot=(val)
|
447
|
-
if val
|
447
|
+
if val.is_a?(TrueClass)
|
448
448
|
self.remove_screenshot = true
|
449
|
-
elsif val
|
449
|
+
elsif val.is_a?(FalseClass) #ignore
|
450
450
|
self.remove_screenshot = b
|
451
451
|
else
|
452
452
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -462,9 +462,9 @@ module RequestParams
|
|
462
462
|
end
|
463
463
|
|
464
464
|
def unformatted=(val)
|
465
|
-
if val
|
465
|
+
if val.is_a?(TrueClass)
|
466
466
|
self.unformatted = true
|
467
|
-
elsif val
|
467
|
+
elsif val.is_a?(FalseClass) #ignore
|
468
468
|
self.unformatted = b
|
469
469
|
else
|
470
470
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -472,9 +472,9 @@ module RequestParams
|
|
472
472
|
end
|
473
473
|
|
474
474
|
def xml_space_preserve=(val)
|
475
|
-
if val
|
475
|
+
if val.is_a?(TrueClass)
|
476
476
|
self.xml_space_preserve = true
|
477
|
-
elsif val
|
477
|
+
elsif val.is_a?(FalseClass) #ignore
|
478
478
|
self.xml_space_preserve = b
|
479
479
|
else
|
480
480
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -511,9 +511,9 @@ module RequestParams
|
|
511
511
|
end
|
512
512
|
|
513
513
|
def default=(val)
|
514
|
-
if val
|
514
|
+
if val.is_a?(TrueClass)
|
515
515
|
self.default = true
|
516
|
-
elsif val
|
516
|
+
elsif val.is_a?(FalseClass) #ignore
|
517
517
|
self.default = b
|
518
518
|
else
|
519
519
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -521,9 +521,9 @@ module RequestParams
|
|
521
521
|
end
|
522
522
|
|
523
523
|
def main=(val)
|
524
|
-
if val
|
524
|
+
if val.is_a?(TrueClass)
|
525
525
|
self.main = true
|
526
|
-
elsif val
|
526
|
+
elsif val.is_a?(FalseClass) #ignore
|
527
527
|
self.main = b
|
528
528
|
else
|
529
529
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -535,9 +535,9 @@ module RequestParams
|
|
535
535
|
end
|
536
536
|
|
537
537
|
def rtl=(val)
|
538
|
-
if val
|
538
|
+
if val.is_a?(TrueClass)
|
539
539
|
self.rtl = true
|
540
|
-
elsif val
|
540
|
+
elsif val.is_a?(FalseClass) #ignore
|
541
541
|
self.rtl = b
|
542
542
|
else
|
543
543
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -594,9 +594,9 @@ module RequestParams
|
|
594
594
|
end
|
595
595
|
|
596
596
|
def include_untranslated_keys=(val)
|
597
|
-
if val
|
597
|
+
if val.is_a?(TrueClass)
|
598
598
|
self.include_untranslated_keys = true
|
599
|
-
elsif val
|
599
|
+
elsif val.is_a?(FalseClass) #ignore
|
600
600
|
self.include_untranslated_keys = b
|
601
601
|
else
|
602
602
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -604,9 +604,9 @@ module RequestParams
|
|
604
604
|
end
|
605
605
|
|
606
606
|
def include_unverified_translations=(val)
|
607
|
-
if val
|
607
|
+
if val.is_a?(TrueClass)
|
608
608
|
self.include_unverified_translations = true
|
609
|
-
elsif val
|
609
|
+
elsif val.is_a?(FalseClass) #ignore
|
610
610
|
self.include_unverified_translations = b
|
611
611
|
else
|
612
612
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -622,9 +622,9 @@ module RequestParams
|
|
622
622
|
end
|
623
623
|
|
624
624
|
def priority=(val)
|
625
|
-
if val
|
625
|
+
if val.is_a?(TrueClass)
|
626
626
|
self.priority = true
|
627
|
-
elsif val
|
627
|
+
elsif val.is_a?(FalseClass) #ignore
|
628
628
|
self.priority = b
|
629
629
|
else
|
630
630
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -632,9 +632,9 @@ module RequestParams
|
|
632
632
|
end
|
633
633
|
|
634
634
|
def quality=(val)
|
635
|
-
if val
|
635
|
+
if val.is_a?(TrueClass)
|
636
636
|
self.quality = true
|
637
|
-
elsif val
|
637
|
+
elsif val.is_a?(FalseClass) #ignore
|
638
638
|
self.quality = b
|
639
639
|
else
|
640
640
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -662,9 +662,9 @@ module RequestParams
|
|
662
662
|
end
|
663
663
|
|
664
664
|
def unverify_translations_upon_delivery=(val)
|
665
|
-
if val
|
665
|
+
if val.is_a?(TrueClass)
|
666
666
|
self.unverify_translations_upon_delivery = true
|
667
|
-
elsif val
|
667
|
+
elsif val.is_a?(FalseClass) #ignore
|
668
668
|
self.unverify_translations_upon_delivery = b
|
669
669
|
else
|
670
670
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -701,9 +701,9 @@ module RequestParams
|
|
701
701
|
end
|
702
702
|
|
703
703
|
def shares_translation_memory=(val)
|
704
|
-
if val
|
704
|
+
if val.is_a?(TrueClass)
|
705
705
|
self.shares_translation_memory = true
|
706
|
-
elsif val
|
706
|
+
elsif val.is_a?(FalseClass) #ignore
|
707
707
|
self.shares_translation_memory = b
|
708
708
|
else
|
709
709
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -850,9 +850,9 @@ module RequestParams
|
|
850
850
|
end
|
851
851
|
|
852
852
|
def excluded=(val)
|
853
|
-
if val
|
853
|
+
if val.is_a?(TrueClass)
|
854
854
|
self.excluded = true
|
855
|
-
elsif val
|
855
|
+
elsif val.is_a?(FalseClass) #ignore
|
856
856
|
self.excluded = b
|
857
857
|
else
|
858
858
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -872,9 +872,9 @@ module RequestParams
|
|
872
872
|
end
|
873
873
|
|
874
874
|
def unverified=(val)
|
875
|
-
if val
|
875
|
+
if val.is_a?(TrueClass)
|
876
876
|
self.unverified = true
|
877
|
-
elsif val
|
877
|
+
elsif val.is_a?(FalseClass) #ignore
|
878
878
|
self.unverified = b
|
879
879
|
else
|
880
880
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -917,9 +917,9 @@ module RequestParams
|
|
917
917
|
# Indicates whether existing translations should be updated with the file content.
|
918
918
|
class LocaleFileImportParams < ::OpenStruct
|
919
919
|
def convert_emoji=(val)
|
920
|
-
if val
|
920
|
+
if val.is_a?(TrueClass)
|
921
921
|
self.convert_emoji = true
|
922
|
-
elsif val
|
922
|
+
elsif val.is_a?(FalseClass) #ignore
|
923
923
|
self.convert_emoji = b
|
924
924
|
else
|
925
925
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -943,9 +943,9 @@ module RequestParams
|
|
943
943
|
end
|
944
944
|
|
945
945
|
def skip_unverification=(val)
|
946
|
-
if val
|
946
|
+
if val.is_a?(TrueClass)
|
947
947
|
self.skip_unverification = true
|
948
|
-
elsif val
|
948
|
+
elsif val.is_a?(FalseClass) #ignore
|
949
949
|
self.skip_unverification = b
|
950
950
|
else
|
951
951
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -953,9 +953,9 @@ module RequestParams
|
|
953
953
|
end
|
954
954
|
|
955
955
|
def skip_upload_tags=(val)
|
956
|
-
if val
|
956
|
+
if val.is_a?(TrueClass)
|
957
957
|
self.skip_upload_tags = true
|
958
|
-
elsif val
|
958
|
+
elsif val.is_a?(FalseClass) #ignore
|
959
959
|
self.skip_upload_tags = b
|
960
960
|
else
|
961
961
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -967,9 +967,9 @@ module RequestParams
|
|
967
967
|
end
|
968
968
|
|
969
969
|
def update_translations=(val)
|
970
|
-
if val
|
970
|
+
if val.is_a?(TrueClass)
|
971
971
|
self.update_translations = true
|
972
|
-
elsif val
|
972
|
+
elsif val.is_a?(FalseClass) #ignore
|
973
973
|
self.update_translations = b
|
974
974
|
else
|
975
975
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -1200,9 +1200,9 @@ module RequestParams
|
|
1200
1200
|
# Limit result to keys tagged with the given tag (identified by its name).
|
1201
1201
|
class LocaleDownloadParams < ::OpenStruct
|
1202
1202
|
def convert_emoji=(val)
|
1203
|
-
if val
|
1203
|
+
if val.is_a?(TrueClass)
|
1204
1204
|
self.convert_emoji = true
|
1205
|
-
elsif val
|
1205
|
+
elsif val.is_a?(FalseClass) #ignore
|
1206
1206
|
self.convert_emoji = b
|
1207
1207
|
else
|
1208
1208
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -1218,9 +1218,9 @@ module RequestParams
|
|
1218
1218
|
end
|
1219
1219
|
|
1220
1220
|
def include_empty_translations=(val)
|
1221
|
-
if val
|
1221
|
+
if val.is_a?(TrueClass)
|
1222
1222
|
self.include_empty_translations = true
|
1223
|
-
elsif val
|
1223
|
+
elsif val.is_a?(FalseClass) #ignore
|
1224
1224
|
self.include_empty_translations = b
|
1225
1225
|
else
|
1226
1226
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -1228,9 +1228,9 @@ module RequestParams
|
|
1228
1228
|
end
|
1229
1229
|
|
1230
1230
|
def keep_notranslate_tags=(val)
|
1231
|
-
if val
|
1231
|
+
if val.is_a?(TrueClass)
|
1232
1232
|
self.keep_notranslate_tags = true
|
1233
|
-
elsif val
|
1233
|
+
elsif val.is_a?(FalseClass) #ignore
|
1234
1234
|
self.keep_notranslate_tags = b
|
1235
1235
|
else
|
1236
1236
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -1267,9 +1267,9 @@ module RequestParams
|
|
1267
1267
|
end
|
1268
1268
|
|
1269
1269
|
def excluded=(val)
|
1270
|
-
if val
|
1270
|
+
if val.is_a?(TrueClass)
|
1271
1271
|
self.excluded = true
|
1272
|
-
elsif val
|
1272
|
+
elsif val.is_a?(FalseClass) #ignore
|
1273
1273
|
self.excluded = b
|
1274
1274
|
else
|
1275
1275
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -1281,9 +1281,9 @@ module RequestParams
|
|
1281
1281
|
end
|
1282
1282
|
|
1283
1283
|
def unverified=(val)
|
1284
|
-
if val
|
1284
|
+
if val.is_a?(TrueClass)
|
1285
1285
|
self.unverified = true
|
1286
|
-
elsif val
|
1286
|
+
elsif val.is_a?(FalseClass) #ignore
|
1287
1287
|
self.unverified = b
|
1288
1288
|
else
|
1289
1289
|
PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
|
@@ -1553,7 +1553,7 @@ end
|
|
1553
1553
|
# API Path: /v2/authorizations
|
1554
1554
|
# == Parameters:
|
1555
1555
|
# params::
|
1556
|
-
# Parameters of type PhraseApp::RequestParams::
|
1556
|
+
# Parameters of type PhraseApp::RequestParams::AuthorizationParams
|
1557
1557
|
#
|
1558
1558
|
# == Returns:
|
1559
1559
|
# PhraseApp::ResponseObjects::AuthorizationWithToken
|
@@ -1634,7 +1634,7 @@ end
|
|
1634
1634
|
# id::
|
1635
1635
|
# id
|
1636
1636
|
# params::
|
1637
|
-
# Parameters of type PhraseApp::RequestParams::
|
1637
|
+
# Parameters of type PhraseApp::RequestParams::AuthorizationParams
|
1638
1638
|
#
|
1639
1639
|
# == Returns:
|
1640
1640
|
# PhraseApp::ResponseObjects::Authorization
|
@@ -1693,7 +1693,7 @@ end
|
|
1693
1693
|
# key_id::
|
1694
1694
|
# key_id
|
1695
1695
|
# params::
|
1696
|
-
# Parameters of type PhraseApp::RequestParams::
|
1696
|
+
# Parameters of type PhraseApp::RequestParams::CommentParams
|
1697
1697
|
#
|
1698
1698
|
# == Returns:
|
1699
1699
|
# PhraseApp::ResponseObjects::Comment
|
@@ -1864,7 +1864,7 @@ end
|
|
1864
1864
|
# id::
|
1865
1865
|
# id
|
1866
1866
|
# params::
|
1867
|
-
# Parameters of type PhraseApp::RequestParams::
|
1867
|
+
# Parameters of type PhraseApp::RequestParams::CommentParams
|
1868
1868
|
#
|
1869
1869
|
# == Returns:
|
1870
1870
|
# PhraseApp::ResponseObjects::Comment
|
@@ -1925,7 +1925,7 @@ end
|
|
1925
1925
|
# project_id::
|
1926
1926
|
# project_id
|
1927
1927
|
# params::
|
1928
|
-
# Parameters of type PhraseApp::RequestParams::
|
1928
|
+
# Parameters of type PhraseApp::RequestParams::ExcludeRuleParams
|
1929
1929
|
#
|
1930
1930
|
# == Returns:
|
1931
1931
|
# PhraseApp::ResponseObjects::BlacklistedKey
|
@@ -2012,7 +2012,7 @@ end
|
|
2012
2012
|
# id::
|
2013
2013
|
# id
|
2014
2014
|
# params::
|
2015
|
-
# Parameters of type PhraseApp::RequestParams::
|
2015
|
+
# Parameters of type PhraseApp::RequestParams::ExcludeRuleParams
|
2016
2016
|
#
|
2017
2017
|
# == Returns:
|
2018
2018
|
# PhraseApp::ResponseObjects::BlacklistedKey
|
@@ -2092,7 +2092,7 @@ end
|
|
2092
2092
|
# project_id::
|
2093
2093
|
# project_id
|
2094
2094
|
# params::
|
2095
|
-
# Parameters of type PhraseApp::RequestParams::
|
2095
|
+
# Parameters of type PhraseApp::RequestParams::TranslationKeyParams
|
2096
2096
|
#
|
2097
2097
|
# == Returns:
|
2098
2098
|
# PhraseApp::ResponseObjects::TranslationKeyDetails
|
@@ -2140,11 +2140,11 @@ end
|
|
2140
2140
|
end
|
2141
2141
|
|
2142
2142
|
if params.plural != nil
|
2143
|
-
data_hash["plural"] = (params.plural ==
|
2143
|
+
data_hash["plural"] = (params.plural == true)
|
2144
2144
|
end
|
2145
2145
|
|
2146
2146
|
if params.remove_screenshot != nil
|
2147
|
-
data_hash["remove_screenshot"] = (params.remove_screenshot ==
|
2147
|
+
data_hash["remove_screenshot"] = (params.remove_screenshot == true)
|
2148
2148
|
end
|
2149
2149
|
|
2150
2150
|
if params.screenshot != nil
|
@@ -2162,11 +2162,11 @@ end
|
|
2162
2162
|
end
|
2163
2163
|
|
2164
2164
|
if params.unformatted != nil
|
2165
|
-
data_hash["unformatted"] = (params.unformatted ==
|
2165
|
+
data_hash["unformatted"] = (params.unformatted == true)
|
2166
2166
|
end
|
2167
2167
|
|
2168
2168
|
if params.xml_space_preserve != nil
|
2169
|
-
data_hash["xml_space_preserve"] = (params.xml_space_preserve ==
|
2169
|
+
data_hash["xml_space_preserve"] = (params.xml_space_preserve == true)
|
2170
2170
|
end
|
2171
2171
|
|
2172
2172
|
|
@@ -2237,7 +2237,7 @@ end
|
|
2237
2237
|
# id::
|
2238
2238
|
# id
|
2239
2239
|
# params::
|
2240
|
-
# Parameters of type PhraseApp::RequestParams::
|
2240
|
+
# Parameters of type PhraseApp::RequestParams::TranslationKeyParams
|
2241
2241
|
#
|
2242
2242
|
# == Returns:
|
2243
2243
|
# PhraseApp::ResponseObjects::TranslationKeyDetails
|
@@ -2285,11 +2285,11 @@ end
|
|
2285
2285
|
end
|
2286
2286
|
|
2287
2287
|
if params.plural != nil
|
2288
|
-
data_hash["plural"] = (params.plural ==
|
2288
|
+
data_hash["plural"] = (params.plural == true)
|
2289
2289
|
end
|
2290
2290
|
|
2291
2291
|
if params.remove_screenshot != nil
|
2292
|
-
data_hash["remove_screenshot"] = (params.remove_screenshot ==
|
2292
|
+
data_hash["remove_screenshot"] = (params.remove_screenshot == true)
|
2293
2293
|
end
|
2294
2294
|
|
2295
2295
|
if params.screenshot != nil
|
@@ -2307,11 +2307,11 @@ end
|
|
2307
2307
|
end
|
2308
2308
|
|
2309
2309
|
if params.unformatted != nil
|
2310
|
-
data_hash["unformatted"] = (params.unformatted ==
|
2310
|
+
data_hash["unformatted"] = (params.unformatted == true)
|
2311
2311
|
end
|
2312
2312
|
|
2313
2313
|
if params.xml_space_preserve != nil
|
2314
|
-
data_hash["xml_space_preserve"] = (params.xml_space_preserve ==
|
2314
|
+
data_hash["xml_space_preserve"] = (params.xml_space_preserve == true)
|
2315
2315
|
end
|
2316
2316
|
|
2317
2317
|
|
@@ -2511,7 +2511,7 @@ end
|
|
2511
2511
|
# project_id::
|
2512
2512
|
# project_id
|
2513
2513
|
# params::
|
2514
|
-
# Parameters of type PhraseApp::RequestParams::
|
2514
|
+
# Parameters of type PhraseApp::RequestParams::LocaleParams
|
2515
2515
|
#
|
2516
2516
|
# == Returns:
|
2517
2517
|
# PhraseApp::ResponseObjects::LocaleDetails
|
@@ -2635,7 +2635,7 @@ end
|
|
2635
2635
|
# id::
|
2636
2636
|
# id
|
2637
2637
|
# params::
|
2638
|
-
# Parameters of type PhraseApp::RequestParams::
|
2638
|
+
# Parameters of type PhraseApp::RequestParams::LocaleParams
|
2639
2639
|
#
|
2640
2640
|
# == Returns:
|
2641
2641
|
# PhraseApp::ResponseObjects::LocaleDetails
|
@@ -2719,7 +2719,7 @@ end
|
|
2719
2719
|
# project_id::
|
2720
2720
|
# project_id
|
2721
2721
|
# params::
|
2722
|
-
# Parameters of type PhraseApp::RequestParams::
|
2722
|
+
# Parameters of type PhraseApp::RequestParams::TranslationOrderParams
|
2723
2723
|
#
|
2724
2724
|
# == Returns:
|
2725
2725
|
# PhraseApp::ResponseObjects::TranslationOrder
|
@@ -2825,7 +2825,7 @@ end
|
|
2825
2825
|
# API Path: /v2/projects
|
2826
2826
|
# == Parameters:
|
2827
2827
|
# params::
|
2828
|
-
# Parameters of type PhraseApp::RequestParams::
|
2828
|
+
# Parameters of type PhraseApp::RequestParams::ProjectParams
|
2829
2829
|
#
|
2830
2830
|
# == Returns:
|
2831
2831
|
# PhraseApp::ResponseObjects::ProjectDetails
|
@@ -2906,7 +2906,7 @@ end
|
|
2906
2906
|
# id::
|
2907
2907
|
# id
|
2908
2908
|
# params::
|
2909
|
-
# Parameters of type PhraseApp::RequestParams::
|
2909
|
+
# Parameters of type PhraseApp::RequestParams::ProjectParams
|
2910
2910
|
#
|
2911
2911
|
# == Returns:
|
2912
2912
|
# PhraseApp::ResponseObjects::ProjectDetails
|
@@ -2984,7 +2984,7 @@ end
|
|
2984
2984
|
# project_id::
|
2985
2985
|
# project_id
|
2986
2986
|
# params::
|
2987
|
-
# Parameters of type PhraseApp::RequestParams::
|
2987
|
+
# Parameters of type PhraseApp::RequestParams::StyleguideParams
|
2988
2988
|
#
|
2989
2989
|
# == Returns:
|
2990
2990
|
# PhraseApp::ResponseObjects::StyleguideDetails
|
@@ -3071,7 +3071,7 @@ end
|
|
3071
3071
|
# id::
|
3072
3072
|
# id
|
3073
3073
|
# params::
|
3074
|
-
# Parameters of type PhraseApp::RequestParams::
|
3074
|
+
# Parameters of type PhraseApp::RequestParams::StyleguideParams
|
3075
3075
|
#
|
3076
3076
|
# == Returns:
|
3077
3077
|
# PhraseApp::ResponseObjects::StyleguideDetails
|
@@ -3130,7 +3130,7 @@ end
|
|
3130
3130
|
# project_id::
|
3131
3131
|
# project_id
|
3132
3132
|
# params::
|
3133
|
-
# Parameters of type PhraseApp::RequestParams::
|
3133
|
+
# Parameters of type PhraseApp::RequestParams::TagParams
|
3134
3134
|
#
|
3135
3135
|
# == Returns:
|
3136
3136
|
# PhraseApp::ResponseObjects::TagWithStats
|
@@ -3238,7 +3238,7 @@ end
|
|
3238
3238
|
# project_id::
|
3239
3239
|
# project_id
|
3240
3240
|
# params::
|
3241
|
-
# Parameters of type PhraseApp::RequestParams::
|
3241
|
+
# Parameters of type PhraseApp::RequestParams::TranslationParams
|
3242
3242
|
#
|
3243
3243
|
# == Returns:
|
3244
3244
|
# PhraseApp::ResponseObjects::TranslationDetails
|
@@ -3629,7 +3629,7 @@ end
|
|
3629
3629
|
# project_id::
|
3630
3630
|
# project_id
|
3631
3631
|
# params::
|
3632
|
-
# Parameters of type PhraseApp::RequestParams::
|
3632
|
+
# Parameters of type PhraseApp::RequestParams::LocaleFileImportParams
|
3633
3633
|
#
|
3634
3634
|
# == Returns:
|
3635
3635
|
# PhraseApp::ResponseObjects::LocaleFileImportWithSummary
|
@@ -3645,7 +3645,7 @@ end
|
|
3645
3645
|
end
|
3646
3646
|
end
|
3647
3647
|
if params.convert_emoji != nil
|
3648
|
-
data_hash["convert_emoji"] = (params.convert_emoji ==
|
3648
|
+
data_hash["convert_emoji"] = (params.convert_emoji == true)
|
3649
3649
|
end
|
3650
3650
|
|
3651
3651
|
if params.file != nil
|
@@ -3673,11 +3673,11 @@ end
|
|
3673
3673
|
end
|
3674
3674
|
|
3675
3675
|
if params.skip_unverification != nil
|
3676
|
-
data_hash["skip_unverification"] = (params.skip_unverification ==
|
3676
|
+
data_hash["skip_unverification"] = (params.skip_unverification == true)
|
3677
3677
|
end
|
3678
3678
|
|
3679
3679
|
if params.skip_upload_tags != nil
|
3680
|
-
data_hash["skip_upload_tags"] = (params.skip_upload_tags ==
|
3680
|
+
data_hash["skip_upload_tags"] = (params.skip_upload_tags == true)
|
3681
3681
|
end
|
3682
3682
|
|
3683
3683
|
if params.tags != nil
|
@@ -3685,7 +3685,7 @@ end
|
|
3685
3685
|
end
|
3686
3686
|
|
3687
3687
|
if params.update_translations != nil
|
3688
|
-
data_hash["update_translations"] = (params.update_translations ==
|
3688
|
+
data_hash["update_translations"] = (params.update_translations == true)
|
3689
3689
|
end
|
3690
3690
|
|
3691
3691
|
|
data/lib/request_handler.rb
CHANGED
@@ -59,7 +59,11 @@ module PhraseApp
|
|
59
59
|
def self.multipart(hash)
|
60
60
|
hash.inject("") do |res, (k, v)|
|
61
61
|
res << "--#{PhraseApp::MULTIPART_BOUNDARY}\r\n"
|
62
|
-
|
62
|
+
if v.is_a?(Array)
|
63
|
+
res << "Content-Disposition: form-data; name=\"#{k}[]\"\r\n"
|
64
|
+
else
|
65
|
+
res << "Content-Disposition: form-data; name=\"#{k}\"\r\n"
|
66
|
+
end
|
63
67
|
# res << "Content-Type: #{headers["Content-Type"]}\r\n" if headers["Content-Type"]
|
64
68
|
res << "\r\n"
|
65
69
|
res << "#{v}\r\n"
|
data/lib/version.rb
CHANGED