cb-api 22.7.0 → 22.8.0

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: bb40f7282560d60927512dbc3d1177955ac04acf
4
- data.tar.gz: a2773ecf3722d44459098f96243a3cac056f2e7e
3
+ metadata.gz: ff0d5833d7ff6276bcdd72467f778a4df4354bdc
4
+ data.tar.gz: 9160ab8cb4bce1070d1445a30fdd91a37ddae669
5
5
  SHA512:
6
- metadata.gz: 954cfb7ee3d6c86e8cd4edaf94997093d352fcdde3504c33b36dcab32afed5479382b6589a54c71ea9eb055b3828609b5372c4d067f7b2ea938dece1aa488294
7
- data.tar.gz: 6a8afcf4bb086d8ade277a89b5614cb29d030ef931fa660f4a286e09ce9fc061ab112b6a4d53c10fc8e7f364cd3ff2af141f5ad4434da20b65c9adbaee357738
6
+ metadata.gz: bd796903cf63bf635c10304111e0111b120a8fe5e1e43f98a2244635a05064e7aeb887bfed70cc892ba0daeff9f2bbe8ab172fd066ec552f5dbb9d946c5b0aca
7
+ data.tar.gz: 8dd2cce7f4d1f9285ba9bdc5fb0b50e54cef5f2cbcc4c820a061c93ffff9325d7610436de3162cdc97453b7a25b543c4dc7b50e42f2f0c39f690462feeead676
@@ -2,6 +2,7 @@ Version History
2
2
  ====
3
3
  * All Version bumps are required to update this file as well!!
4
4
  ----
5
+ * 22.8.0 Allow optional override of Accept header
5
6
  * 22.7.0 Option to add default params to httparty calls
6
7
  * 22.6.4 Added fields to the resume put object to allow replace resume
7
8
  * 22.6.3 Added fields to update resume api call to allow replace resume
@@ -16,9 +16,9 @@ module Cb
16
16
  @cb_client ||= Cb::Utils::Api.instance(headers: headers, use_default_params: use_default_params)
17
17
  end
18
18
 
19
- def headers(args)
19
+ def headers(args, accept_header: 'application/json')
20
20
  {
21
- 'Accept' => 'application/json',
21
+ 'Accept' => accept_header,
22
22
  'Authorization' => "Bearer #{ args[:oauth_token] }",
23
23
  'Content-Type' => 'application/json'
24
24
  }
@@ -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 = '22.7.0'
12
+ VERSION = '22.8.0'
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: 22.7.0
4
+ version: 22.8.0
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: 2017-08-08 00:00:00.000000000 Z
11
+ date: 2017-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -371,7 +371,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
371
371
  version: '0'
372
372
  requirements: []
373
373
  rubyforge_project:
374
- rubygems_version: 2.4.5
374
+ rubygems_version: 2.6.13
375
375
  signing_key:
376
376
  specification_version: 4
377
377
  summary: Ruby wrapper around Careerbuilder Public API.