cb-api 0.1.18 → 0.1.19

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTBjZjg4Njg1MWJiZjJlOGYyMzk2OTAzNzAwODIzYTQ1MzE2NWNkZQ==
4
+ MTlkZTMzNzVkMGMzYTNiY2M3OTNmMGY4ZjE4MTJjNjJlMjA3YjViMQ==
5
5
  data.tar.gz: !binary |-
6
- OTIwMzU4Y2Y4NDQ5NTdmZjk5NmFkM2M3ODM5YjJiYTAxMzc1YTYxZA==
6
+ Mjc3MWVkODkwZGQzNWFiYzRmNGM4ZGU2ODYzZmEyYWYxNzRiN2IwMw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NzJlMzMwODNiZDk2ZTlhYThhNGQyMDI4ZTBiZDEyNWEwMzBhNTUyOWIxMTUy
10
- OTA5Yjk3YmY1MjMyNjhlMDc1NGE4N2Y5ZTEyZmIwODE2YzBiMDc2NWM4MTQ5
11
- ZWFmY2IwNGE3YTgzODc1OWUwZGU2YmNmOTNiNzk1MDM3NDhiYmY=
9
+ NjI4YjU1MTJkMzI2ZDM1NjIwY2ViZWE0YTU4OWJiZjRmMDkyMWRkZmI1YzM4
10
+ ZDE3YjdjZTNlMTg3OWVhMmE1MDUzODJiZTk5ZTkzYTdjY2I0MjAzMzk2NDE4
11
+ NDIyYjc0OTQyYzE2N2UyOTM2MGMzNzU2YjE5YzliNTU5MDE0N2Y=
12
12
  data.tar.gz: !binary |-
13
- OGVkNzY2MGJjZGMyMDdiNDIwMDE1OTUzMjgzNjFiZDg4MGU4YzYwZWU0ZDA1
14
- ZTZjYTUwODg4NTM2YzZmZTg0NWE2NDMyOWQ2MjAyYmY0MGU0MjFiYjNiOGU1
15
- YWRiNTAwZTFiOTc5MzYxZmU2OGUwN2JhYmNkMTViYmIwZjFhMDc=
13
+ MzBlNzNjMDY4OTQ1NmI5NWEyNzFlZTdkZGE1MzZiNDliMjNjYmJjZTViMWI4
14
+ YzFiZWQ3Mzk3NjllNmMwNzdjMDQxMjdiMjVlYjc1NTNhYTQxNjllZTVkMTNh
15
+ ZWExNzFjODU4MzEyMmMxZDk2NDU5ZTE1NGZmNTcyMDE0YjFiYjk=
@@ -25,10 +25,16 @@ module Cb
25
25
  ## http://api.careerbuilder.com/usersubscriptionretrieve.aspx
26
26
  #############################################################
27
27
  def self.modify_subscription ext_id, career_resources, product_sponsor_info, applicant_survey_invites, job_recs, unsubscribe_all
28
- if unsubscribe_all
28
+ if unsubscribe_all && unsubscribe_all != 'false'
29
29
  career_resources = product_sponsor_info = applicant_survey_invites = job_recs = false.to_s
30
30
  end
31
31
 
32
+ career_resources = career_resources.nil? ? 'false' : career_resources
33
+ product_sponsor_info = product_sponsor_info.nil? ? 'false' : product_sponsor_info
34
+ applicant_survey_invites = applicant_survey_invites.nil? ? 'false' : applicant_survey_invites
35
+ job_recs = job_recs.nil? ? 'false' : job_recs
36
+ unsubscribe_all = unsubscribe_all.nil? ? 'false' : unsubscribe_all
37
+
32
38
  my_api = Cb::Utils::Api.new()
33
39
 
34
40
  xml_body = "<Request>"
data/lib/cb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cb
2
- VERSION = '0.1.18'
2
+ VERSION = '0.1.19'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cb-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Retchko