cb-api 18.0.0 → 18.0.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: c59d3a9a5a0fee10ab40e6741aee75d33c70b766
4
- data.tar.gz: b09d9897455143d8b3b4698bbbb8befb31c28ff3
3
+ metadata.gz: 1e26c7f33f983e01b5bb7e6b5b99e3eaad867360
4
+ data.tar.gz: d82333e33fa7fbb8845f272135b53dfbf67a353c
5
5
  SHA512:
6
- metadata.gz: 7dc491a06ac82611e2628aace753c40c7587e82e992e1970cf0352c1c1305056bc82162c756ec60e026cf9298b8de61ff719dcb4bd584db03cb11fe46bfa89d2
7
- data.tar.gz: 3dad991e4cd88fdee027ae995f99f00537ba695e3ded7a5b0fb129564ff9a71a0131c79cc7d18743f28f19e76f77d2fa9ef6122f303dcbc3b7e19c56e437689b
6
+ metadata.gz: d3b3c70c1eb972c32d9a5642e9e082ae1af7b8a1793365db440c91e80f7ea0b16d4a56430555570c5e7d56e6a6e929cd67b4379bec2debe9a4e452dab01bd101
7
+ data.tar.gz: c525fcb319f481012478d506e4b9ff71d89297816a86fe022dddbdd545a76eec4bcc59c132fb3b2bfff9b9b02a4a6ce07a4026b5f382de2103d7d7324076cb8b
@@ -3,6 +3,7 @@ Version History
3
3
  * All Version bumps are required to update this file as well!!
4
4
  ----
5
5
 
6
+ * 18.0.1 Adding job search version 3 query parameters
6
7
  * 18.0.0 Drop support for older ruby (pre 1.93), also adding copyright notices to the files
7
8
  * 17.4.0 Adding job search version 3 as additional call
8
9
  * 17.3.0 Set `ENV['SIMULATE_AUTH_OUTAGE']` to true to throw a `Cb::ServiceUnavailableError` for all API calls.
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Code Climate](https://codeclimate.com/repos/54242d7ce30ba04b220066b1/badges/32deaad52cf116f360f3/gpa.svg)](https://codeclimate.com/repos/54242d7ce30ba04b220066b1/feed)[![Test Coverage](https://codeclimate.com/repos/54242d7ce30ba04b220066b1/badges/32deaad52cf116f360f3/coverage.svg)](https://codeclimate.com/repos/54242d7ce30ba04b220066b1/coverage)
2
+
1
3
  First things first. You're going to need to get a developer key from Careerbuilder. Developer keys are available to Partners. You can fill out the form at http://developer.careerbuilder.com/partner_messages/new to become a Partner.
2
4
 
3
5
  Now that you have a key, lets get to the good stuff.
@@ -5,7 +7,7 @@ Now that you have a key, lets get to the good stuff.
5
7
  You can find an example rails site that uses the gem here:
6
8
  https://github.com/cbdr/ruby-cb-api-demo
7
9
 
8
- If you are interested in helping out / contributing to this project please read [CONTRIBUTING guide](https://github.com/cbdr/ruby-cb-api/blob/master/CONTRIBUTING.md)
10
+ If you are interested in helping out / contributing to this project please read [CONTRIBUTING guide](https://github.com/careerbuilder/ruby-cb-api/blob/master/CONTRIBUTING.md)
9
11
 
10
12
  Installation
11
13
  ================
@@ -30,7 +32,7 @@ Set your dev key, and any other configuration settings in a place that will run
30
32
 
31
33
  Available Endpoints
32
34
  ================
33
- https://github.com/cbdr/ruby-cb-api/blob/master/lib/cb/config.rb
35
+ https://github.com/careerbuilder/ruby-cb-api/blob/master/lib/cb/config.rb
34
36
 
35
37
  Job Search
36
38
  ================
@@ -12,6 +12,13 @@ module Cb
12
12
  module Requests
13
13
  module JobSearch
14
14
  class Get < Base
15
+ attr_reader :token
16
+
17
+ def initialize(argument_hash, token)
18
+ super(argument_hash)
19
+ @token = token
20
+ end
21
+
15
22
  def endpoint_uri
16
23
  Cb.configuration.uri_job_search_v3
17
24
  end
@@ -22,11 +29,15 @@ module Cb
22
29
 
23
30
  def headers
24
31
  {
25
- 'Authorization' => args[:three_scale_token].nil? ? '' : "Bearer #{args[:three_scale_token]}",
26
32
  'HostSite' => args[:host_site] || Cb.configuration.host_site,
27
33
  'Accept' => 'applicatin/json;version=3.0'
28
- }
34
+ }.merge(token.headers)
35
+ end
36
+
37
+ def query
38
+ args
29
39
  end
40
+
30
41
  end
31
42
  end
32
43
  end
@@ -9,5 +9,5 @@
9
9
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
10
  # See the License for the specific language governing permissions and limitations under the License.
11
11
  module Cb
12
- VERSION = '18.0.0'
12
+ VERSION = '18.0.1'
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cb-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 18.0.0
4
+ version: 18.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The CareerBuilder.com Niche and Consumer Development teams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-27 00:00:00.000000000 Z
11
+ date: 2015-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -184,6 +184,20 @@ dependencies:
184
184
  - - ~>
185
185
  - !ruby/object:Gem::Version
186
186
  version: 0.5.0
187
+ - !ruby/object:Gem::Dependency
188
+ name: codeclimate-test-reporter
189
+ requirement: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - '>='
192
+ - !ruby/object:Gem::Version
193
+ version: '0'
194
+ type: :development
195
+ prerelease: false
196
+ version_requirements: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - '>='
199
+ - !ruby/object:Gem::Version
200
+ version: '0'
187
201
  description: Ruby wrapper for Careerbuilder Public API.
188
202
  email: ConsumerDevelopment@careerbuilder.com
189
203
  executables: []