proz 2.1.1 → 2.1.2

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: acbf04247cfcfd4bec2cac1dcff24be1b5680ed3
4
- data.tar.gz: 6636a2aa6cda2551e729297e2035ae08b193fd42
3
+ metadata.gz: 2dfdcb398c2117e3f6d4eb2dc1e51995786d5b04
4
+ data.tar.gz: e5967ef23c75c7aef5cfccdcd39da55210c2f18f
5
5
  SHA512:
6
- metadata.gz: a034fef5f6aced9945152c179ab0f9cc7ee5a099ed61ad45d58c173d7fda8a8dd4b7ef52f9fcc8058e5166ea56b7c0fab5d8698ee718ebae5e12b3768e686b27
7
- data.tar.gz: 568cb68005c5872e25b45e8fa32b524a843b3270ffc78f193259563d2a16bc6d9e3e79fec67ea19a1d27199c8e3d603a97903161f546d6520141af72f7eb717a
6
+ metadata.gz: a59e4348ea0b9f4c41b619b973a572171fe51872d1b55a10d51a366ece3716732cb4b88a6a8d3b7871ba26c3b9560c968045ee346cf6849a3d4bd02ae749db0e
7
+ data.tar.gz: b9496756ff7876acaec8a97a9f62943821623ad542f9bc2ed3dbd6df93bd03e3bbb51c8ef67fcc575b3a5bb0c758275ccaf0bfa55d657b5cef4390e0c00438f4
data/README.md CHANGED
@@ -109,6 +109,15 @@ Proz::GetSingleWiwoEntry.new(
109
109
  ).get
110
110
  ```
111
111
 
112
+ GET Single Public WIWO (API Key)
113
+
114
+ ```ruby
115
+ Proz::GetSinglePublicWiwoEntry.new(
116
+ key: 'key',
117
+ wiwo_id: 'wiwo_id',
118
+ ).get
119
+ ```
120
+
112
121
  POST WIWO
113
122
 
114
123
  Uses OAuth2 with the `wiwo` default scope. Use the [omniauth-proz](https://github.com/diasks2/omniauth-proz) gem to easily authenticate.
@@ -11,4 +11,5 @@ require "proz/delete_wiwo_entry"
11
11
  require "proz/delete_wiwo_reply"
12
12
  require "proz/patch_wiwo_entry"
13
13
  require "proz/patch_wiwo_reply"
14
- require "proz/get_single_wiwo_entry"
14
+ require "proz/get_single_wiwo_entry"
15
+ require "proz/get_single_public_wiwo_entry"
@@ -0,0 +1,17 @@
1
+ require 'httparty'
2
+
3
+ module Proz
4
+ class GetSinglePublicWiwoEntry
5
+ include HTTParty
6
+ base_uri "https://api.proz.com/v2"
7
+ attr_reader :key, :wiwo_id
8
+ def initialize(key:, wiwo_id:)
9
+ @key = key
10
+ @wiwo_id = wiwo_id
11
+ end
12
+
13
+ def get
14
+ self.class.get("/wiwo/#{wiwo_id}", headers: { 'X-Proz-API-Key' => "#{key}" } )
15
+ end
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module Proz
2
- VERSION = "2.1.1"
2
+ VERSION = "2.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proz
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin S. Dias
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-20 00:00:00.000000000 Z
11
+ date: 2016-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -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_public_wiwo_entry.rb
145
146
  - lib/proz/get_single_wiwo_entry.rb
146
147
  - lib/proz/get_wiwo_entry.rb
147
148
  - lib/proz/oauth.rb