proz 0.0.10 → 0.0.11

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
  SHA1:
3
- metadata.gz: ee549bfd5fb9bc9e77e90b5277b82db59033e4b8
4
- data.tar.gz: da4f7b1551bf1aa35939605db536db56e1622fed
3
+ metadata.gz: a5377f16f43daab2d38f4ad15579a3ce0ce02a2b
4
+ data.tar.gz: 2a61ffa54091fbe23dd4fb0de5d754bd4c28ebce
5
5
  SHA512:
6
- metadata.gz: 903349e19292d2a6bb41727c0121cb65b6c2b71495a6b89513583b8ca6eb86a97bb603109402039e20d04600985874b668402141421d578d3b76b404be57d73c
7
- data.tar.gz: bb7eb0c00c205ccc48c4da014a963a9d687380f003470ef1f451c8deff2473d76771fc6bc00310517cffdf2a7c904601317351fee69e63790e41b863f9839d9e
6
+ metadata.gz: 9524940ad779fa3e90c05ecc098d6ef0049604845802b87322e87e013af4ae71608b914c6fe48e320cd4baa6041bf82c741f39553ea54e31c3fe8c87468c529a
7
+ data.tar.gz: 4cd865ddcdd8f0ce00b977ec40bdb806a80a11bafd2be68351e6c4b8d1179ee182cd5506fa179e589c84cb15ea2199b3a2a444f2ade45fa150a0f1fe579e5677
@@ -1,3 +1,3 @@
1
1
  module Proz
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
@@ -4,19 +4,18 @@ module Proz
4
4
  class WiwoEntry
5
5
  include HTTParty
6
6
  base_uri "https://api.proz.com/v2"
7
- attr_reader :token, :message
8
- def initialize(token:, message:)
7
+ attr_reader :token, :message, :options
8
+ def initialize(token:, message:, **options)
9
9
  @token = token
10
- @message = message
10
+ @message = { message: message }
11
+ @options = options
11
12
  end
12
13
 
13
14
  def post
15
+ body = message.merge!(options)
14
16
  self.class.post("/workstatus",
15
- body: { message: message,
16
- source_language: "eng",
17
- target_language: "spa",
18
- wordcount: "234" },
17
+ body: body,
19
18
  headers: { 'Authorization' => "Bearer #{token}" } )
20
19
  end
21
20
  end
22
- end
21
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin S. Dias