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 +4 -4
- data/lib/phraseapp-ruby.rb +34 -4
- data/lib/phraseapp-ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc5b77fe57f98e8ed50a520def16687268d50def816e37b6c98e230ead9544b3
|
4
|
+
data.tar.gz: f4dee57379997cd0836a7d8d69a4e7161c599670f0e98097a950a922d40d5cae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b08e7795a9767cde99ca3d28640141d08c5b142a35772b26e61cda08a99e4d103ff5a61b8b5217ecba7175ddda3aa81d95bbc44110657e530c39716428d542d
|
7
|
+
data.tar.gz: e789c9941d6347d2946fb3b7c8f1ae0cfca39510b1455c73dad14713ee07eb7efe95eb41dd77e17f3132822ede411e9a33c60c8d1542e46fcf4eb715b60aa51d
|
data/lib/phraseapp-ruby.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
|
3
|
-
# revision_docs:
|
4
|
-
# revision_generator:HEAD/2018-
|
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
|
-
#
|
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 == ""
|
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.
|
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-
|
11
|
+
date: 2018-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: PhraseApp API client libary
|
14
14
|
email:
|