cb-api 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ OGE1OWY2NTViMDNiNjBjZTZlYzEyMDZiNTdhMDc5MWU3M2QzNWNiYw==
5
+ data.tar.gz: !binary |-
6
+ YjczODFjZWFmOTIyMjk1ODIyZmY1YTQwY2JmZTQ1ZmZkZWQ3YWNmNQ==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ NTE3YzA3ZjNhZTkyY2EyNGU2ZGNiOTU2YzdiMWJlMWUyYmFlN2I0NjQ5ODc4
10
+ MWQ5ODQyYzQ1NzU3ZThlNDQwNGVhMDU3NzI4NTZkYjk3YWUyYTJlNDIwMDZi
11
+ ZjhlMzQxMTgzMTM1YWIyZGVmZmFjMWVkMmZmYjg3Y2Y0ZWIyMmU=
12
+ data.tar.gz: !binary |-
13
+ ODIxMjlhZjU3ZGM4OTA5ODU3M2E2ZTk3NzYyMTE3ZDc2ZmUwNjg3NWQ3ZmM2
14
+ YTYxN2NkYmFmNWExMzhiYzQ3ZGQyODMwOTMxODNiMmU4MDgyNmIwN2YyYTM5
15
+ MDU3NjUzYzBmMWE1NDI4M2I5MDUxNDQxMjQ5OTkxYmYxMmFhZDA=
@@ -10,11 +10,12 @@ module Cb
10
10
  ## http://api.careerbuilder.com/ApplicationInfo.aspx
11
11
  #############################################################
12
12
  def self.for_job(job)
13
- did = job.did if job.is_a?(Cb::CbJob) else did = job
13
+ job.is_a?(Cb::CbJob) ? did = job.did : did = job
14
14
 
15
15
  my_api = Cb::Utils::Api.new()
16
16
  cb_response = my_api.cb_get(Cb.configuration.uri_application, :query => {:JobDID => did})
17
17
  json_hash = JSON.parse(cb_response.response.body)
18
+
18
19
  app = Cb::CbApplicationSchema.new(json_hash['ResponseBlankApplication']['BlankApplication'])
19
20
  my_api.append_api_responses(app, json_hash['ResponseBlankApplication'])
20
21
 
@@ -37,7 +37,7 @@ module Cb
37
37
  end
38
38
 
39
39
  "#{ret}</RequestApplication>"
40
- end
40
+ end # to_xml
41
41
  end # CbApplication
42
42
 
43
43
  ############################################################
@@ -45,8 +45,8 @@ module Cb
45
45
  attr_accessor :id, :text
46
46
 
47
47
  def initialize(id, text)
48
- @id = id
49
- @text = text
48
+ @id = id
49
+ @text = text
50
50
  end
51
51
 
52
52
  def to_xml
@@ -19,8 +19,8 @@ module Cb
19
19
 
20
20
  # Apply URL related
21
21
  @submit_service_url = args['ApplicationSubmitServiceURL'] || ''
22
- @apply_url = (args['ApplyURL'].downcase == 'true')
23
- @is_shared_apply = args['IsSharedApply'] || ''
22
+ @apply_url = args['ApplyURL'] || ''
23
+ @is_shared_apply = (args['IsSharedApply'].downcase == 'true')
24
24
 
25
25
  # Question related
26
26
  @total_questions = args['TotalQuestions'] || ''
data/lib/cb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cb
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cb-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jesse Retchko
@@ -11,12 +10,11 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2013-05-14 00:00:00.000000000 Z
13
+ date: 2013-05-16 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: httparty
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
19
  - - ~>
22
20
  - !ruby/object:Gem::Version
@@ -24,7 +22,6 @@ dependencies:
24
22
  type: :runtime
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
26
  - - ~>
30
27
  - !ruby/object:Gem::Version
@@ -32,7 +29,6 @@ dependencies:
32
29
  - !ruby/object:Gem::Dependency
33
30
  name: json
34
31
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
32
  requirements:
37
33
  - - ~>
38
34
  - !ruby/object:Gem::Version
@@ -40,7 +36,6 @@ dependencies:
40
36
  type: :runtime
41
37
  prerelease: false
42
38
  version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
39
  requirements:
45
40
  - - ~>
46
41
  - !ruby/object:Gem::Version
@@ -81,26 +76,25 @@ files:
81
76
  - README.md
82
77
  homepage: http://api.careerbuilder.com
83
78
  licenses: []
79
+ metadata: {}
84
80
  post_install_message:
85
81
  rdoc_options: []
86
82
  require_paths:
87
83
  - lib
88
84
  required_ruby_version: !ruby/object:Gem::Requirement
89
- none: false
90
85
  requirements:
91
86
  - - ! '>='
92
87
  - !ruby/object:Gem::Version
93
88
  version: '0'
94
89
  required_rubygems_version: !ruby/object:Gem::Requirement
95
- none: false
96
90
  requirements:
97
91
  - - ! '>='
98
92
  - !ruby/object:Gem::Version
99
93
  version: '0'
100
94
  requirements: []
101
95
  rubyforge_project:
102
- rubygems_version: 1.8.24
96
+ rubygems_version: 2.0.3
103
97
  signing_key:
104
- specification_version: 3
98
+ specification_version: 4
105
99
  summary: Ruby wrapper around Careerbuilder Public API.
106
100
  test_files: []