proz 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10a2865dae4f92b6df14cb04d88e337efadc18fb
4
- data.tar.gz: 91f4c2ff1b2cbe087e67a1c48121b0f20374eac5
3
+ metadata.gz: acbf04247cfcfd4bec2cac1dcff24be1b5680ed3
4
+ data.tar.gz: 6636a2aa6cda2551e729297e2035ae08b193fd42
5
5
  SHA512:
6
- metadata.gz: c4d5703d88560e6494e4e16b799d1df10b6c08ffd474d186516771d46265d8bd6076f9462170c487b0103da555df7a6a735e4ff25279c334af896eef97ae31e5
7
- data.tar.gz: e9b5be0aa8af8e4027386f6b4dd1aa94ddadde645fa2ce9b7db181cf44350d6545c5f2db68fb7413830a87dbdc0b0694645b0eaeefe39a95c0024d6c871414dc
6
+ metadata.gz: a034fef5f6aced9945152c179ab0f9cc7ee5a099ed61ad45d58c173d7fda8a8dd4b7ef52f9fcc8058e5166ea56b7c0fab5d8698ee718ebae5e12b3768e686b27
7
+ data.tar.gz: 568cb68005c5872e25b45e8fa32b524a843b3270ffc78f193259563d2a16bc6d9e3e79fec67ea19a1d27199c8e3d603a97903161f546d6520141af72f7eb717a
data/README.md CHANGED
@@ -100,6 +100,15 @@ Proz::GetWiwoEntry.new(
100
100
 
101
101
  ```
102
102
 
103
+ GET Single WIWO (OAuth2)
104
+
105
+ ```ruby
106
+ Proz::GetSingleWiwoEntry.new(
107
+ token: 'access_token',
108
+ wiwo_id: 'wiwo_id',
109
+ ).get
110
+ ```
111
+
103
112
  POST WIWO
104
113
 
105
114
  Uses OAuth2 with the `wiwo` default scope. Use the [omniauth-proz](https://github.com/diasks2/omniauth-proz) gem to easily authenticate.
@@ -10,4 +10,5 @@ require "proz/post_wiwo_reply"
10
10
  require "proz/delete_wiwo_entry"
11
11
  require "proz/delete_wiwo_reply"
12
12
  require "proz/patch_wiwo_entry"
13
- require "proz/patch_wiwo_reply"
13
+ require "proz/patch_wiwo_reply"
14
+ require "proz/get_single_wiwo_entry"
@@ -0,0 +1,17 @@
1
+ require 'httparty'
2
+
3
+ module Proz
4
+ class GetSingleWiwoEntry
5
+ include HTTParty
6
+ base_uri "https://api.proz.com/v2"
7
+ attr_reader :token, :wiwo_id
8
+ def initialize(token:, wiwo_id:)
9
+ @token = token
10
+ @wiwo_id = wiwo_id
11
+ end
12
+
13
+ def get
14
+ self.class.get("/wiwo/#{wiwo_id}", headers: { 'Authorization' => "Bearer #{token}" } )
15
+ end
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module Proz
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  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: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin S. Dias
@@ -142,6 +142,7 @@ files:
142
142
  - lib/proz/delete_wiwo_reply.rb
143
143
  - lib/proz/freelancer.rb
144
144
  - lib/proz/freelancer_matches.rb
145
+ - lib/proz/get_single_wiwo_entry.rb
145
146
  - lib/proz/get_wiwo_entry.rb
146
147
  - lib/proz/oauth.rb
147
148
  - lib/proz/patch_wiwo_entry.rb