phraseapp-ruby 1.0.20 → 1.0.21

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e8891c1e4dced691af6f2e3d5d483be7fbb1eac
4
- data.tar.gz: 984339d9d4f56618cf12ec2aa24f5de0ab5c3d51
3
+ metadata.gz: b3487e16b4afe3dd5b2f6026b1d57a000f30db2b
4
+ data.tar.gz: 4d16074811c653844466ca081db5a935db305443
5
5
  SHA512:
6
- metadata.gz: dd16cc6137ec391e9eb1519be44e9454e0d3b4da730d03ac39e36f28cafada5bf32acbb59ff358dd79c6f24b72f1dab22e00b54c3cc5bbb4dab85052068c9216
7
- data.tar.gz: c4ca5f51c8b54ef163ea2c06570e4bf27e2eb0a8d4d37e3c50c7bec3858d6f3742046f73692660331f75829170255afa1324bdb08ec55ba83a0e9c6732c8a276
6
+ metadata.gz: 38bef50daa4f254ca90a74761c818727feb886461d02cef1239b5fcbc21dff4750a8f1cd190d4ca18d1a6011f763b3fdc395bc2b6e6952833399e310b4fc866d
7
+ data.tar.gz: a3eaa8fa580fd8be29693bb5928b5977a7af4f4b611ed5d91cb246e7e96d7e95dd173ecf7db99814dc53d51356f263fe652daae4fb254cf1f715a87bf5bb45c1
@@ -395,7 +395,7 @@ module RequestParams
395
395
  # screenshot::
396
396
  # Screenshot/image for the key.
397
397
  # tags::
398
- # List of tags (identified by their name) to be associated with the key.
398
+ # List of tags separated by comma to be associated with the key.
399
399
  # unformatted::
400
400
  # Indicates whether the key should be exported as "unformatted". Supported by Android XML and other formats.
401
401
  # xml_space_preserve::
@@ -903,8 +903,6 @@ module RequestParams
903
903
  # File to be imported
904
904
  # file_format::
905
905
  # File format. Auto-detected when possible and not specified.
906
- # format_options::
907
- # Additional options available for specific formats. See our format guide for complete list.
908
906
  # locale_id::
909
907
  # Locale of the file's content. Can be the name or public id of the locale. Preferred is the public id.
910
908
  # skip_unverification::
@@ -912,7 +910,7 @@ module RequestParams
912
910
  # skip_upload_tags::
913
911
  # Indicates whether the upload should not create upload tags.
914
912
  # tags::
915
- # Tags to be assigned to the new keys, contained in the upload.
913
+ # List of tags separated by comma to be associated with the new keys contained in the upload.
916
914
  # update_translations::
917
915
  # Indicates whether existing translations should be updated with the file content.
918
916
  class LocaleFileImportParams < ::OpenStruct
@@ -934,10 +932,6 @@ module RequestParams
934
932
  self.file_format = val
935
933
  end
936
934
 
937
- def format_options=(val)
938
- self.format_options = JSON.load(val)
939
- end
940
-
941
935
  def locale_id=(val)
942
936
  self.locale_id = val
943
937
  end
@@ -963,7 +957,7 @@ module RequestParams
963
957
  end
964
958
 
965
959
  def tags=(val)
966
- self.tags = val.split(',')
960
+ self.tags = val
967
961
  end
968
962
 
969
963
  def update_translations=(val)
@@ -1191,7 +1185,7 @@ module RequestParams
1191
1185
  # file_format::
1192
1186
  # File format name. See the format guide for all supported file formats.
1193
1187
  # format_options::
1194
- # Additional options available for specific formats. See our format guide for complete list. [EXAMPLE]
1188
+ # Additional options available for specific formats. Currently only supports option escape_single_quotes: true/false for properties format.
1195
1189
  # include_empty_translations::
1196
1190
  # Indicates whether keys without translations should be included in the output as well.
1197
1191
  # keep_notranslate_tags::
@@ -2397,7 +2391,7 @@ end
2397
2391
  return JSON.load(rc.body).map { |item| PhraseApp::ResponseObjects::TranslationKey.new(item) }, err
2398
2392
  end
2399
2393
 
2400
- # List all keys for the given project matching query.
2394
+ # Search keys for the given project matching query.
2401
2395
  # API Path: /v2/projects/:project_id/keys/search
2402
2396
  # == Parameters:
2403
2397
  # project_id::
@@ -3662,12 +3656,6 @@ end
3662
3656
  data_hash["file_format"] = params.file_format
3663
3657
  end
3664
3658
 
3665
- if params.format_options != nil
3666
- params.format_options.each do |key, value|
3667
- data_hash["format_options"][key] = value
3668
- end
3669
- end
3670
-
3671
3659
  if params.locale_id != nil
3672
3660
  data_hash["locale_id"] = params.locale_id
3673
3661
  end
@@ -59,14 +59,17 @@ 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
+ res << "Content-Disposition: form-data; name=\"#{k}\"\r\n"
63
+ # res << "Content-Type: #{headers["Content-Type"]}\r\n" if headers["Content-Type"]
64
+ res << "\r\n"
62
65
  if v.is_a?(Array)
63
- res << "Content-Disposition: form-data; name=\"#{k}[]\"\r\n"
66
+ v.each do |vv|
67
+ res << vv+","
68
+ end
69
+ res << "\r\n"
64
70
  else
65
- res << "Content-Disposition: form-data; name=\"#{k}\"\r\n"
71
+ res << "#{v}\r\n"
66
72
  end
67
- # res << "Content-Type: #{headers["Content-Type"]}\r\n" if headers["Content-Type"]
68
- res << "\r\n"
69
- res << "#{v}\r\n"
70
73
  res
71
74
  end
72
75
  end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module PhraseApp
2
- VERSION = '1.0.20'
2
+ VERSION = '1.0.21'
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.0.20
4
+ version: 1.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - PhraseApp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-10 00:00:00.000000000 Z
11
+ date: 2015-08-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: PhraseApp API client libary
14
14
  email: