cb-api 6.3.2 → 6.3.3

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.
@@ -1,13 +1,15 @@
1
1
  module Cb
2
2
  module Models
3
3
  class ApplicationExternal
4
+
5
+ IPATH_LENGTH = 10
4
6
  attr_accessor :job_did, :email, :site_id, :ipath, :apply_url, :is_external_link_apply
5
7
 
6
8
  def initialize(args = {})
7
9
  @job_did = args[:job_did] || ''
8
10
  @email = args[:email] || ''
9
11
  @site_id = args[:site_id] || 'cbnsv'
10
- @ipath = args[:ipath] || ''
12
+ @ipath = args[:ipath].slice(0,IPATH_LENGTH) || ''
11
13
  @is_external_link_apply = args[:is_external_link_apply] || false
12
14
  @apply_url = ''
13
15
  end
@@ -18,7 +20,7 @@ module Cb
18
20
  ret += "<EmailAddress>#{@email}</EmailAddress>"
19
21
  ret += "<JobDID>#{@job_did}</JobDID>"
20
22
  ret += "<SiteID>#{@site_id}</SiteID>"
21
- ret += "<IPath>#{@ipath[0..9]}</IPath>"
23
+ ret += "<IPath>#{@ipath}</IPath>"
22
24
  ret += "<IsExternalLinkApply>#{@is_external_link_apply}</IsExternalLinkApply>"
23
25
  ret += "<HostSite>#{Cb.configuration.host_site}</HostSite>"
24
26
  ret += "</Request>"
@@ -69,9 +69,8 @@ module Cb
69
69
 
70
70
  def temp_password?
71
71
  value = response[root_node][response_temp_password_node]
72
- value.downcase == 'true'
72
+ value.to_s.downcase == 'true'
73
73
  end
74
-
75
74
  end
76
75
 
77
76
  end
data/lib/cb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cb
2
- VERSION = '6.3.2'
2
+ VERSION = '6.3.3'
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: 6.3.2
4
+ version: 6.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-06 00:00:00.000000000 Z
12
+ date: 2014-05-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty