phraseapp-ruby 1.1.1 → 1.1.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 +4 -4
- data/lib/phraseapp-ruby.rb +131 -1
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 950c9514932e26d986a5b5cde46e555678ee5832
|
|
4
|
+
data.tar.gz: 313a1bad5fad409eec001adedaa0fe1b3a6149dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51a488e9e5a872833098ebae2be192e31c31a28277c11d959b7ac1102a180abdbc1480a8ef8e65117ab3cb52e666df8afb96b25c82277b586568b5c47f353970
|
|
7
|
+
data.tar.gz: 60ef0c4cf9b6425f5e1a468e256d8c9594958178cc6e35c91d2f96525a9719d94e7bb0664c67841285d02889dcc13c48e519d67001c296c5cc08b0c7855fef25
|
data/lib/phraseapp-ruby.rb
CHANGED
|
@@ -319,6 +319,11 @@ module RequestParams
|
|
|
319
319
|
raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"note\" of \"AuthorizationParams\" not set")
|
|
320
320
|
end
|
|
321
321
|
end
|
|
322
|
+
|
|
323
|
+
def to_h
|
|
324
|
+
@table.dup
|
|
325
|
+
end
|
|
326
|
+
|
|
322
327
|
end
|
|
323
328
|
end
|
|
324
329
|
|
|
@@ -338,6 +343,11 @@ module RequestParams
|
|
|
338
343
|
raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"name\" of \"BlacklistedKeyParams\" not set")
|
|
339
344
|
end
|
|
340
345
|
end
|
|
346
|
+
|
|
347
|
+
def to_h
|
|
348
|
+
@table.dup
|
|
349
|
+
end
|
|
350
|
+
|
|
341
351
|
end
|
|
342
352
|
end
|
|
343
353
|
|
|
@@ -357,6 +367,11 @@ module RequestParams
|
|
|
357
367
|
raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"message\" of \"CommentParams\" not set")
|
|
358
368
|
end
|
|
359
369
|
end
|
|
370
|
+
|
|
371
|
+
def to_h
|
|
372
|
+
@table.dup
|
|
373
|
+
end
|
|
374
|
+
|
|
360
375
|
end
|
|
361
376
|
end
|
|
362
377
|
|
|
@@ -478,6 +493,11 @@ module RequestParams
|
|
|
478
493
|
raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"name\" of \"TranslationKeyParams\" not set")
|
|
479
494
|
end
|
|
480
495
|
end
|
|
496
|
+
|
|
497
|
+
def to_h
|
|
498
|
+
@table.dup
|
|
499
|
+
end
|
|
500
|
+
|
|
481
501
|
end
|
|
482
502
|
end
|
|
483
503
|
|
|
@@ -547,6 +567,11 @@ module RequestParams
|
|
|
547
567
|
raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"name\" of \"LocaleParams\" not set")
|
|
548
568
|
end
|
|
549
569
|
end
|
|
570
|
+
|
|
571
|
+
def to_h
|
|
572
|
+
@table.dup
|
|
573
|
+
end
|
|
574
|
+
|
|
550
575
|
end
|
|
551
576
|
end
|
|
552
577
|
|
|
@@ -676,6 +701,11 @@ module RequestParams
|
|
|
676
701
|
raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"translation_type\" of \"TranslationOrderParams\" not set")
|
|
677
702
|
end
|
|
678
703
|
end
|
|
704
|
+
|
|
705
|
+
def to_h
|
|
706
|
+
@table.dup
|
|
707
|
+
end
|
|
708
|
+
|
|
679
709
|
end
|
|
680
710
|
end
|
|
681
711
|
|
|
@@ -713,6 +743,11 @@ module RequestParams
|
|
|
713
743
|
raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"name\" of \"ProjectParams\" not set")
|
|
714
744
|
end
|
|
715
745
|
end
|
|
746
|
+
|
|
747
|
+
def to_h
|
|
748
|
+
@table.dup
|
|
749
|
+
end
|
|
750
|
+
|
|
716
751
|
end
|
|
717
752
|
end
|
|
718
753
|
|
|
@@ -804,6 +839,11 @@ module RequestParams
|
|
|
804
839
|
raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"title\" of \"StyleguideParams\" not set")
|
|
805
840
|
end
|
|
806
841
|
end
|
|
842
|
+
|
|
843
|
+
def to_h
|
|
844
|
+
@table.dup
|
|
845
|
+
end
|
|
846
|
+
|
|
807
847
|
end
|
|
808
848
|
end
|
|
809
849
|
|
|
@@ -823,6 +863,11 @@ module RequestParams
|
|
|
823
863
|
raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"name\" of \"TagParams\" not set")
|
|
824
864
|
end
|
|
825
865
|
end
|
|
866
|
+
|
|
867
|
+
def to_h
|
|
868
|
+
@table.dup
|
|
869
|
+
end
|
|
870
|
+
|
|
826
871
|
end
|
|
827
872
|
end
|
|
828
873
|
|
|
@@ -888,6 +933,11 @@ module RequestParams
|
|
|
888
933
|
raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"locale_id\" of \"TranslationParams\" not set")
|
|
889
934
|
end
|
|
890
935
|
end
|
|
936
|
+
|
|
937
|
+
def to_h
|
|
938
|
+
@table.dup
|
|
939
|
+
end
|
|
940
|
+
|
|
891
941
|
end
|
|
892
942
|
end
|
|
893
943
|
|
|
@@ -973,6 +1023,11 @@ module RequestParams
|
|
|
973
1023
|
raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"file\" of \"LocaleFileImportParams\" not set")
|
|
974
1024
|
end
|
|
975
1025
|
end
|
|
1026
|
+
|
|
1027
|
+
def to_h
|
|
1028
|
+
@table.dup
|
|
1029
|
+
end
|
|
1030
|
+
|
|
976
1031
|
end
|
|
977
1032
|
end
|
|
978
1033
|
|
|
@@ -1039,6 +1094,11 @@ module RequestParams
|
|
|
1039
1094
|
def validate
|
|
1040
1095
|
|
|
1041
1096
|
end
|
|
1097
|
+
|
|
1098
|
+
def to_h
|
|
1099
|
+
@table.dup
|
|
1100
|
+
end
|
|
1101
|
+
|
|
1042
1102
|
end
|
|
1043
1103
|
end
|
|
1044
1104
|
|
|
@@ -1074,6 +1134,11 @@ module RequestParams
|
|
|
1074
1134
|
def validate
|
|
1075
1135
|
|
|
1076
1136
|
end
|
|
1137
|
+
|
|
1138
|
+
def to_h
|
|
1139
|
+
@table.dup
|
|
1140
|
+
end
|
|
1141
|
+
|
|
1077
1142
|
end
|
|
1078
1143
|
end
|
|
1079
1144
|
|
|
@@ -1109,6 +1174,11 @@ module RequestParams
|
|
|
1109
1174
|
def validate
|
|
1110
1175
|
|
|
1111
1176
|
end
|
|
1177
|
+
|
|
1178
|
+
def to_h
|
|
1179
|
+
@table.dup
|
|
1180
|
+
end
|
|
1181
|
+
|
|
1112
1182
|
end
|
|
1113
1183
|
end
|
|
1114
1184
|
|
|
@@ -1140,6 +1210,11 @@ module RequestParams
|
|
|
1140
1210
|
raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"tags\" of \"keys_tagParams\" not set")
|
|
1141
1211
|
end
|
|
1142
1212
|
end
|
|
1213
|
+
|
|
1214
|
+
def to_h
|
|
1215
|
+
@table.dup
|
|
1216
|
+
end
|
|
1217
|
+
|
|
1143
1218
|
end
|
|
1144
1219
|
end
|
|
1145
1220
|
|
|
@@ -1171,6 +1246,11 @@ module RequestParams
|
|
|
1171
1246
|
raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"tags\" of \"keys_untagParams\" not set")
|
|
1172
1247
|
end
|
|
1173
1248
|
end
|
|
1249
|
+
|
|
1250
|
+
def to_h
|
|
1251
|
+
@table.dup
|
|
1252
|
+
end
|
|
1253
|
+
|
|
1174
1254
|
end
|
|
1175
1255
|
end
|
|
1176
1256
|
|
|
@@ -1256,6 +1336,11 @@ module RequestParams
|
|
|
1256
1336
|
raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"file_format\" of \"locale_downloadParams\" not set")
|
|
1257
1337
|
end
|
|
1258
1338
|
end
|
|
1339
|
+
|
|
1340
|
+
def to_h
|
|
1341
|
+
@table.dup
|
|
1342
|
+
end
|
|
1343
|
+
|
|
1259
1344
|
end
|
|
1260
1345
|
end
|
|
1261
1346
|
|
|
@@ -1305,6 +1390,11 @@ module RequestParams
|
|
|
1305
1390
|
raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"content\" of \"translation_updateParams\" not set")
|
|
1306
1391
|
end
|
|
1307
1392
|
end
|
|
1393
|
+
|
|
1394
|
+
def to_h
|
|
1395
|
+
@table.dup
|
|
1396
|
+
end
|
|
1397
|
+
|
|
1308
1398
|
end
|
|
1309
1399
|
end
|
|
1310
1400
|
|
|
@@ -1334,6 +1424,11 @@ module RequestParams
|
|
|
1334
1424
|
def validate
|
|
1335
1425
|
|
|
1336
1426
|
end
|
|
1427
|
+
|
|
1428
|
+
def to_h
|
|
1429
|
+
@table.dup
|
|
1430
|
+
end
|
|
1431
|
+
|
|
1337
1432
|
end
|
|
1338
1433
|
end
|
|
1339
1434
|
|
|
@@ -1363,6 +1458,11 @@ module RequestParams
|
|
|
1363
1458
|
def validate
|
|
1364
1459
|
|
|
1365
1460
|
end
|
|
1461
|
+
|
|
1462
|
+
def to_h
|
|
1463
|
+
@table.dup
|
|
1464
|
+
end
|
|
1465
|
+
|
|
1366
1466
|
end
|
|
1367
1467
|
end
|
|
1368
1468
|
|
|
@@ -1392,6 +1492,11 @@ module RequestParams
|
|
|
1392
1492
|
def validate
|
|
1393
1493
|
|
|
1394
1494
|
end
|
|
1495
|
+
|
|
1496
|
+
def to_h
|
|
1497
|
+
@table.dup
|
|
1498
|
+
end
|
|
1499
|
+
|
|
1395
1500
|
end
|
|
1396
1501
|
end
|
|
1397
1502
|
|
|
@@ -1421,6 +1526,11 @@ module RequestParams
|
|
|
1421
1526
|
def validate
|
|
1422
1527
|
|
|
1423
1528
|
end
|
|
1529
|
+
|
|
1530
|
+
def to_h
|
|
1531
|
+
@table.dup
|
|
1532
|
+
end
|
|
1533
|
+
|
|
1424
1534
|
end
|
|
1425
1535
|
end
|
|
1426
1536
|
|
|
@@ -1450,6 +1560,11 @@ module RequestParams
|
|
|
1450
1560
|
def validate
|
|
1451
1561
|
|
|
1452
1562
|
end
|
|
1563
|
+
|
|
1564
|
+
def to_h
|
|
1565
|
+
@table.dup
|
|
1566
|
+
end
|
|
1567
|
+
|
|
1453
1568
|
end
|
|
1454
1569
|
end
|
|
1455
1570
|
|
|
@@ -1479,6 +1594,11 @@ module RequestParams
|
|
|
1479
1594
|
def validate
|
|
1480
1595
|
|
|
1481
1596
|
end
|
|
1597
|
+
|
|
1598
|
+
def to_h
|
|
1599
|
+
@table.dup
|
|
1600
|
+
end
|
|
1601
|
+
|
|
1482
1602
|
end
|
|
1483
1603
|
end
|
|
1484
1604
|
|
|
@@ -1508,6 +1628,11 @@ module RequestParams
|
|
|
1508
1628
|
def validate
|
|
1509
1629
|
|
|
1510
1630
|
end
|
|
1631
|
+
|
|
1632
|
+
def to_h
|
|
1633
|
+
@table.dup
|
|
1634
|
+
end
|
|
1635
|
+
|
|
1511
1636
|
end
|
|
1512
1637
|
end
|
|
1513
1638
|
|
|
@@ -1537,6 +1662,11 @@ module RequestParams
|
|
|
1537
1662
|
def validate
|
|
1538
1663
|
|
|
1539
1664
|
end
|
|
1665
|
+
|
|
1666
|
+
def to_h
|
|
1667
|
+
@table.dup
|
|
1668
|
+
end
|
|
1669
|
+
|
|
1540
1670
|
end
|
|
1541
1671
|
end
|
|
1542
1672
|
|
|
@@ -1547,7 +1677,7 @@ end
|
|
|
1547
1677
|
# require 'phraseapp-ruby'
|
|
1548
1678
|
# Setup Credentials for Authentication
|
|
1549
1679
|
# credentials = PhraseApp::Auth::Credentials.new(token: "YOUR_ACCESS_TOKEN")
|
|
1550
|
-
# Create a client
|
|
1680
|
+
# Create a client
|
|
1551
1681
|
# client = PhraseApp::Client.new(credentials)
|
|
1552
1682
|
# List Projects
|
|
1553
1683
|
# rsp, err = client.projects_list(1, 10)
|
data/lib/version.rb
CHANGED
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.1.
|
|
4
|
+
version: 1.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- PhraseApp
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-09-
|
|
11
|
+
date: 2015-09-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: PhraseApp API client libary
|
|
14
14
|
email:
|
|
@@ -41,7 +41,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
41
41
|
version: '0'
|
|
42
42
|
requirements: []
|
|
43
43
|
rubyforge_project:
|
|
44
|
-
rubygems_version: 2.4.
|
|
44
|
+
rubygems_version: 2.4.8
|
|
45
45
|
signing_key:
|
|
46
46
|
specification_version: 4
|
|
47
47
|
summary: Interact with the PhraseApp API
|