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: 4392df749838b50cb325f57e8287579d2217dcf9902dd67f672bdbd184837988
4
- data.tar.gz: e5a694a107d0095a266579a27a9d3c42675996580ad05e4839234ea861482ea0
3
+ metadata.gz: c9c933ca38119ae195157a317a8936ce02ec8f0675bcc99b6fb68a47c46cbf99
4
+ data.tar.gz: b534c5d248203cd7e603d4c7f74e7d42d8f0090925e9f1c938455e8babac910c
5
5
  SHA512:
6
- metadata.gz: b3fd2c4cf9c6146dcbdc0dd80be714c816863834556395dacf0fb79f945d8659fd1c864c08eb08e5a1b07cc67f284fb0a57141719c0f9a2074eace0bad0bad79
7
- data.tar.gz: 7dbee32637c576bc6bbd9cf26adc64cce95cc1bde7013f7abd5770e13eb6d272633ef59d27148c26534fcd07b32e6c80ee44cb172a678dde8b1d4486c1fdc3e0
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
- ProjectDocumentList.new(@connection, project_identifier: @identifier)
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
- @connection.get("/projects/#{@options[:project_identifier]}/documents", params: { per_page: 100 })
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
@@ -1,3 +1,3 @@
1
1
  module Toptranslation
2
- VERSION = '2.5.0'.freeze
2
+ VERSION = '2.5.1'.freeze
3
3
  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.0
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-08-15 00:00:00.000000000 Z
11
+ date: 2019-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json