phraseapp-ruby 2.0.0 → 2.1.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
  SHA256:
3
- metadata.gz: d0d6e777bf8ba68f8697661617bab8eec04124a60e703ee9acd811f1da836507
4
- data.tar.gz: f160717245c31cbd7a46a25ac834b51eaa877ba0cd7c928bf2301e5619b9d196
3
+ metadata.gz: fc5b77fe57f98e8ed50a520def16687268d50def816e37b6c98e230ead9544b3
4
+ data.tar.gz: f4dee57379997cd0836a7d8d69a4e7161c599670f0e98097a950a922d40d5cae
5
5
  SHA512:
6
- metadata.gz: 226bcc449ad14e906a385473c44d983e74df9361a467299ba224fd2d70966b8cb0188b53c1c6c7a9478fb6b21aa9346e743094e0c837dd79514eab829ffc8cdc
7
- data.tar.gz: 8c0caa9f5b4d68cc9e682acbca822d3bff654c7027111f41abd431c54180ee20632293cd900cf34aeccae6deea206511328754cf12babe143de9c197b111e574
6
+ metadata.gz: 8b08e7795a9767cde99ca3d28640141d08c5b142a35772b26e61cda08a99e4d103ff5a61b8b5217ecba7175ddda3aa81d95bbc44110657e530c39716428d542d
7
+ data.tar.gz: e789c9941d6347d2946fb3b7c8f1ae0cfca39510b1455c73dad14713ee07eb7efe95eb41dd77e17f3132822ede411e9a33c60c8d1542e46fcf4eb715b60aa51d
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
- # revision_docs:af8c8e121b03fbb27f30326738fd1c3ac086b0a2
4
- # revision_generator:HEAD/2018-08-10T154308/soenke
3
+ # revision_docs:a8c95b4c514a6d9bb2e4001492204945431a2b0d
4
+ # revision_generator:HEAD/2018-09-04T150608/soenke
5
5
  require 'ostruct'
6
6
  require 'net/https'
7
7
  require 'uri'
@@ -1983,12 +1983,18 @@ module RequestParams
1983
1983
  # Additional formatting and render options. See the <a href="http://phraseapp.com/docs/guides/formats">format guide</a> for a list of options available for each format. Specify format options like this: <code>...&format_options[foo]=bar</code>
1984
1984
  # include_empty_translations::
1985
1985
  # Indicates whether keys without translations should be included in the output as well.
1986
+ # include_translated_keys::
1987
+ # Include translated keys in the locale file. Use in combination with include_empty_translations to obtain only untranslated keys.
1988
+ # include_unverified_translations::
1989
+ # if set to false unverified translations are excluded
1986
1990
  # keep_notranslate_tags::
1987
1991
  # Indicates whether [NOTRANSLATE] tags should be kept.
1988
1992
  # skip_unverified_translations::
1989
- # Indicates whether the locale file should skip all unverified translations.
1993
+ # Indicates whether the locale file should skip all unverified translations. This parameter is depricated can be replaced with innclude_unverified_translations.
1990
1994
  # tag::
1991
- # Limit result to keys tagged with the given tag (identified by its name).
1995
+ # This parameter is deprecated. Please use the "tags" parameter instead
1996
+ # tags::
1997
+ # Limit results to keys tagged with a list of comma separated tag names.
1992
1998
  class LocaleDownloadParams < ::OpenStruct
1993
1999
 
1994
2000
  def branch=(val)
@@ -2031,6 +2037,26 @@ module RequestParams
2031
2037
  end
2032
2038
  end
2033
2039
 
2040
+ def include_translated_keys=(val)
2041
+ if val.is_a?(TrueClass)
2042
+ super(true)
2043
+ elsif val.is_a?(FalseClass)
2044
+ return
2045
+ else
2046
+ PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
2047
+ end
2048
+ end
2049
+
2050
+ def include_unverified_translations=(val)
2051
+ if val.is_a?(TrueClass)
2052
+ super(true)
2053
+ elsif val.is_a?(FalseClass)
2054
+ return
2055
+ else
2056
+ PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
2057
+ end
2058
+ end
2059
+
2034
2060
  def keep_notranslate_tags=(val)
2035
2061
  if val.is_a?(TrueClass)
2036
2062
  super(true)
@@ -2055,6 +2081,10 @@ module RequestParams
2055
2081
  super(val)
2056
2082
  end
2057
2083
 
2084
+ def tags=(val)
2085
+ super(val)
2086
+ end
2087
+
2058
2088
  def validate
2059
2089
 
2060
2090
  if file_format == nil || file_format == ""
@@ -1,3 +1,3 @@
1
1
  module PhraseApp
2
- VERSION = '2.0.0'
2
+ VERSION = '2.1.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: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PhraseApp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-14 00:00:00.000000000 Z
11
+ date: 2018-09-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: PhraseApp API client libary
14
14
  email: