proz 0.0.9 → 0.0.10

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: e201b055055180e58ff27234a3e3ab6805fd2e75
4
- data.tar.gz: f400394ad9229807751beb099de697ce7b1c9a4b
3
+ metadata.gz: ee549bfd5fb9bc9e77e90b5277b82db59033e4b8
4
+ data.tar.gz: da4f7b1551bf1aa35939605db536db56e1622fed
5
5
  SHA512:
6
- metadata.gz: 80ee3935aa49c7f538927230b6fe28488ad429842b453fdf0cb435ddb8d4b765b0a1232d50d63d9aa448559eadd61f3c061e7cb5cf81519e6f276957c039c25a
7
- data.tar.gz: ce0678b850dcb80e3b3015b82aebf5a388d9d23ea4013834ddf491383b487b4f7164e8a54aba6cf4014df45bbe0a0ea82768501e807f765d5d643705083fffb9
6
+ metadata.gz: 903349e19292d2a6bb41727c0121cb65b6c2b71495a6b89513583b8ca6eb86a97bb603109402039e20d04600985874b668402141421d578d3b76b404be57d73c
7
+ data.tar.gz: bb7eb0c00c205ccc48c4da014a963a9d687380f003470ef1f451c8deff2473d76771fc6bc00310517cffdf2a7c904601317351fee69e63790e41b863f9839d9e
@@ -1,3 +1,3 @@
1
1
  module Proz
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
@@ -4,17 +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
8
- def initialize(token:)
7
+ attr_reader :token, :message
8
+ def initialize(token:, message:)
9
9
  @token = token
10
+ @message = message
10
11
  end
11
12
 
12
13
  def post
13
- puts self.class.post("/workstatus",
14
- body: { message: 'This is a test from TMT',
14
+ self.class.post("/workstatus",
15
+ body: { message: message,
15
16
  source_language: "eng",
16
17
  target_language: "spa",
17
- wordcount: "234" }.to_json,
18
+ wordcount: "234" },
18
19
  headers: { 'Authorization' => "Bearer #{token}" } )
19
20
  end
20
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.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin S. Dias