proz 0.0.12 → 0.0.13

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: 5ca2fb229e5bb3905b705336ddd679586b82a1d4
4
- data.tar.gz: e0b7e780978a8893a83db563b45583972c609feb
3
+ metadata.gz: 9180e66a0356202b74f7348c355850a7174f04c6
4
+ data.tar.gz: 2739db2c51513f1e852e894a8552b795e24db159
5
5
  SHA512:
6
- metadata.gz: ef93eb11d1338fe96485177ceb7c9550c3c506de964a483a7eead7f214f47ab92d42801ad2545bb66a99458d3695df91dd8df9536778ce8bf12d94f0fdf5a358
7
- data.tar.gz: 54994c2a8a9d3f7eb9285b5048b6ef178079b8c8b737e45f9b2fe546420418ddac619e9727fce95d9b1ca881ef8fb64033100211ba0572ffcebe15e680f9aeac
6
+ metadata.gz: ef81a28449775e3b928f7bfd2366480157cfeb10a95ce05eed2107c5be1b9a59e26c5716f5c23baf97244457a5a7a2d210ad76b806618372b5777cedce23ce96
7
+ data.tar.gz: f0efe0279efff799f6fc02f3c13711e8884c0c81f24c8b08746205424a9380db408b00d19dfbc9265a006b6ac281f19bda695c8cb0b1ae83330a8ec4fabf4abd
data/lib/proz/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Proz
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
@@ -3,10 +3,14 @@ require 'httparty'
3
3
  module Proz
4
4
  class WiwoEntries
5
5
  include HTTParty
6
- base_uri "https://api.proz.com/v2"
6
+ base_uri "https://api.proz.com/v2"
7
+ attr_reader :token
8
+ def initialize(token:)
9
+ @token = token
10
+ end
7
11
 
8
12
  def entries
9
- self.class.get("/workstatus/search")
13
+ self.class.get("/workstatus/search", headers: { 'Authorization' => "Bearer #{token}" })
10
14
  end
11
15
  end
12
16
  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.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin S. Dias