phraseapp-ruby 1.5.0 → 1.6.0

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
  SHA1:
3
- metadata.gz: 64cc2033b2c5f73079cf4a180ef34fb06f502198
4
- data.tar.gz: 46cab52cbebff68a470554c97ef6701787ba38d4
3
+ metadata.gz: cb95d78fa26cd10cd443f2cb02ade6737275cfa0
4
+ data.tar.gz: 6e8b139b40460e6d8eab82d5d53b8932555c8b4b
5
5
  SHA512:
6
- metadata.gz: c56ea5b7075c1a8cf63141b386ed987a342cd12bb668a0b82f566f93def6728fc0e06a094a47fbf2ff40bd2d9b4757ff129e6c712e94c2a663a9a184ed507868
7
- data.tar.gz: 58521f7e4fc17a4b3778ecbb2bd2c80bc3b4ff3a6eb2911dbee2ac06b69832d67c432301dbbaf84f12e1c8b873e3c5220042dccac9158c32085ded51c7743c79
6
+ metadata.gz: 4ba23396f760e01b5a1c69b833efe5cf8bfd96a79c775dc38b13d31c60f0eb5a0e4e0e01f7c6fd1c997ce9f3b55f4e09c6d66a8821e0e5e45d9ad94c0c821fa2
7
+ data.tar.gz: 0b19bde4677f07746658d76142e7f42ee362e407ab1cdd1d2ad853c7349eb582e84def0e18010d0df0462bc7a9dafe58439212760a9795affa61dd60347c0544
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
- # revision_docs:03e0d595d106c8f672cb3ff9871d15eb7ab13905
4
- # revision_generator:HEAD/2017-09-19T104754/stefan
3
+ # revision_docs:3b286cc04ceb2623aa3ab353520a23e1e72d83c3
4
+ # revision_generator:e51df86b2d0cf519540791cefb4f6d24751d38b0
5
5
  require 'ostruct'
6
6
  require 'net/https'
7
7
  require 'uri'
@@ -1263,6 +1263,8 @@ module RequestParams
1263
1263
  # Additional options available for specific formats. See our format guide for complete list.
1264
1264
  # locale_id::
1265
1265
  # Locale of the file's content. Can be the name or public id of the locale. Preferred is the public id.
1266
+ # locale_mapping::
1267
+ # Optional, format specific mapping between locale names and the columns the translations to those locales are contained in.
1266
1268
  # skip_unverification::
1267
1269
  # Indicates whether the upload should unverify updated translations.
1268
1270
  # skip_upload_tags::
@@ -1305,6 +1307,10 @@ module RequestParams
1305
1307
  super(val)
1306
1308
  end
1307
1309
 
1310
+ def locale_mapping=(val)
1311
+ super(JSON.load(val))
1312
+ end
1313
+
1308
1314
  def skip_unverification=(val)
1309
1315
  if val.is_a?(TrueClass)
1310
1316
  super(true)
@@ -5592,6 +5598,12 @@ end
5592
5598
  data_hash["locale_id"] = params.locale_id
5593
5599
  end
5594
5600
 
5601
+ if params.locale_mapping != nil
5602
+ params.locale_mapping.each do |key, value|
5603
+ data_hash["locale_mapping"][key] = value
5604
+ end
5605
+ end
5606
+
5595
5607
  if params.skip_unverification != nil
5596
5608
  data_hash["skip_unverification"] = (params.skip_unverification == true)
5597
5609
  end
@@ -1,3 +1,3 @@
1
1
  module PhraseApp
2
- VERSION = '1.5.0'
2
+ VERSION = '1.6.0'
3
3
  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.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PhraseApp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-19 00:00:00.000000000 Z
11
+ date: 2017-11-14 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.6.12
44
+ rubygems_version: 2.5.2
45
45
  signing_key:
46
46
  specification_version: 4
47
47
  summary: Interact with the PhraseApp API