cb-api 0.2.6 → 0.2.7

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
+ MGVhODFiODExODNjOGNkODQxMjNjY2VhYWQ3MmY5NTI3MDY4NjFmMw==
5
+ data.tar.gz: !binary |-
6
+ NjU4MTkyNzljMzg1ZGI2ZDBhN2ExNzRlZGRiMmQwMzJiMzk5MmE4Yw==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ YzM1NjUxMjgwNDJjYjAzMDgxODcxNzdmN2QxNWJiODgxMmI0ZGVkODc1YmVl
10
+ ZmYzMTcyNmRmMmRlYzQzMjBiYzMyODc4MDI3NjVhMWM5N2U5N2NmNzgzZmU4
11
+ ODMzYThmMTFjYzEwZDM2OTA5NTlkNTczNmYxYzA1YjhlOTA2NjI=
12
+ data.tar.gz: !binary |-
13
+ ZDYyM2NkYjVhNDY0Nzk5YTg1M2FlNzRkNWM3MWU0ODc3NjE3NjkzY2RmYmQy
14
+ ZjY0MGIyYmY4ODI3NDllYzBjNzU3YTBhMDFhNjZhOGNjZWQwMDFkODc2NTkz
15
+ N2IwNTFjNThlMjExNWMxNGRkYmFiZWVhY2VjMzAwNGVjYjg0ZWE=
@@ -89,15 +89,16 @@ module Cb
89
89
  my_api = Cb::Utils::Api.new
90
90
  cb_response = my_api.cb_get Cb.configuration.uri_saved_search_list, :query => {:developerkey=>developer_key, :ExternalUserId=>external_user_id}
91
91
  json_hash = JSON.parse cb_response.response.body
92
+ saved_search_hash = json_hash['SavedJobSearches']['SavedSearches']
92
93
 
93
94
  saved_searches = []
94
- unless json_hash.empty?
95
- if json_hash['SavedJobSearches']['SavedSearches']['SavedSearch'].is_a?(Array)
96
- json_hash['SavedJobSearches']['SavedSearches']['SavedSearch'].each do |saved_search|
95
+ if saved_search_hash.present?
96
+ if saved_search_hash['SavedSearch'].is_a?(Array)
97
+ saved_search_hash['SavedSearch'].each do |saved_search|
97
98
  saved_searches << CbSavedSearch.new(saved_search)
98
99
  end
99
- elsif json_hash['SavedJobSearches']['SavedSearches']['SavedSearch'].is_a?(Hash) && json_hash.length < 2
100
- saved_searches << CbSavedSearch.new(json_hash['SavedJobSearches']['SavedSearches']['SavedSearch'])
100
+ elsif saved_search_hash['SavedSearch'].is_a?(Hash) && json_hash.length < 2
101
+ saved_searches << CbSavedSearch.new(saved_search_hash['SavedSearch'])
101
102
  end
102
103
  end
103
104
 
data/lib/cb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cb
2
- VERSION = '0.2.6'
2
+ VERSION = '0.2.7'
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.2.6
5
- prerelease:
4
+ version: 0.2.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jesse Retchko
@@ -16,12 +15,11 @@ authors:
16
15
  autorequire:
17
16
  bindir: bin
18
17
  cert_chain: []
19
- date: 2013-08-09 00:00:00.000000000 Z
18
+ date: 2013-08-13 00:00:00.000000000 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: httparty
23
22
  requirement: !ruby/object:Gem::Requirement
24
- none: false
25
23
  requirements:
26
24
  - - ~>
27
25
  - !ruby/object:Gem::Version
@@ -29,7 +27,6 @@ dependencies:
29
27
  type: :runtime
30
28
  prerelease: false
31
29
  version_requirements: !ruby/object:Gem::Requirement
32
- none: false
33
30
  requirements:
34
31
  - - ~>
35
32
  - !ruby/object:Gem::Version
@@ -37,7 +34,6 @@ dependencies:
37
34
  - !ruby/object:Gem::Dependency
38
35
  name: json
39
36
  requirement: !ruby/object:Gem::Requirement
40
- none: false
41
37
  requirements:
42
38
  - - ~>
43
39
  - !ruby/object:Gem::Version
@@ -45,7 +41,6 @@ dependencies:
45
41
  type: :runtime
46
42
  prerelease: false
47
43
  version_requirements: !ruby/object:Gem::Requirement
48
- none: false
49
44
  requirements:
50
45
  - - ~>
51
46
  - !ruby/object:Gem::Version
@@ -53,7 +48,6 @@ dependencies:
53
48
  - !ruby/object:Gem::Dependency
54
49
  name: nori
55
50
  requirement: !ruby/object:Gem::Requirement
56
- none: false
57
51
  requirements:
58
52
  - - ~>
59
53
  - !ruby/object:Gem::Version
@@ -61,7 +55,6 @@ dependencies:
61
55
  type: :runtime
62
56
  prerelease: false
63
57
  version_requirements: !ruby/object:Gem::Requirement
64
- none: false
65
58
  requirements:
66
59
  - - ~>
67
60
  - !ruby/object:Gem::Version
@@ -133,26 +126,25 @@ files:
133
126
  - README.md
134
127
  homepage: http://api.careerbuilder.com
135
128
  licenses: []
129
+ metadata: {}
136
130
  post_install_message:
137
131
  rdoc_options: []
138
132
  require_paths:
139
133
  - lib
140
134
  required_ruby_version: !ruby/object:Gem::Requirement
141
- none: false
142
135
  requirements:
143
136
  - - ! '>='
144
137
  - !ruby/object:Gem::Version
145
138
  version: '0'
146
139
  required_rubygems_version: !ruby/object:Gem::Requirement
147
- none: false
148
140
  requirements:
149
141
  - - ! '>='
150
142
  - !ruby/object:Gem::Version
151
143
  version: '0'
152
144
  requirements: []
153
145
  rubyforge_project:
154
- rubygems_version: 1.8.25
146
+ rubygems_version: 2.0.5
155
147
  signing_key:
156
- specification_version: 3
148
+ specification_version: 4
157
149
  summary: Ruby wrapper around Careerbuilder Public API.
158
150
  test_files: []