toptranslation_api 2.5.0 → 2.5.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9c933ca38119ae195157a317a8936ce02ec8f0675bcc99b6fb68a47c46cbf99
|
4
|
+
data.tar.gz: b534c5d248203cd7e603d4c7f74e7d42d8f0090925e9f1c938455e8babac910c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b59f466315b59fce39022b2456347b04976e85f49fe947398bb923efad31b57d60b637cafbc05d1c8576864073888a4ea1bf165ef35095a850a86b78c8009b3
|
7
|
+
data.tar.gz: 4d837be4accace42ffc05bbf1d4718c30c62ce52a8e60db174a7ea19818b468df44975c01ace9638e223a67583b94bba7beb081048dccdde04a94e7de3159295
|
@@ -28,8 +28,9 @@ module Toptranslation::Resource
|
|
28
28
|
Document.new(@connection, response)
|
29
29
|
end
|
30
30
|
|
31
|
-
def documents
|
32
|
-
|
31
|
+
def documents(options = {})
|
32
|
+
options.merge!(project_identifier: @identifier)
|
33
|
+
ProjectDocumentList.new(@connection, options)
|
33
34
|
end
|
34
35
|
|
35
36
|
def strings
|
@@ -14,7 +14,10 @@ module Toptranslation::Resource
|
|
14
14
|
private
|
15
15
|
|
16
16
|
def documents
|
17
|
-
|
17
|
+
params = { per_page: 100 }
|
18
|
+
params[:type] = @options[:type] if @options[:type]
|
19
|
+
|
20
|
+
@connection.get("/projects/#{@options[:project_identifier]}/documents", params: params)
|
18
21
|
end
|
19
22
|
end
|
20
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toptranslation_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toptranslation GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|