cb-api 0.1.5 → 0.1.6

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.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Yjk3ZTE1ZmVhMzA2OWQ2OGM1NjI1ZTBlOGMwY2NjMDcxNmRhMGNjZg==
5
+ data.tar.gz: !binary |-
6
+ NzBhODQ3ZWQ0OTBhZjNhNThkMzhiNmI4MWJlOTdhZTcyZDMxOWE5NA==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ NmVjNmM5ZDJiZTQzMzBlZjRkODEzZGQwZmFkZTU3NThiMzBlMjc3ZGZiNjlh
10
+ NDBjZjgyMTQyOTA2Y2ZmNjk1ODIyYTJlYzEwOTEyOGM1MzhlMmNjZGQ0MjVi
11
+ MjZkY2FmODc2ZWIzYWUyMmM0MzhiNjFmODYxZDZhM2E5ZGIwNDk=
12
+ data.tar.gz: !binary |-
13
+ OGVhZjAyYTRkYTg4ZmI0MjA4MzEyMzUyN2RhM2U5MTY5NDNiMWUzMmRlZDRl
14
+ Y2I4ZjdlNjRhMmQyNGYzODU5OTU2ODVkZmI0N2IyMzZjNjEyOGM2NzRjMzdk
15
+ MDgyMTM5MGIxZjM1MTg3ZjUzNTY4N2ViYTZiODFhMzhjNGEyMWM=
@@ -40,13 +40,17 @@ module Cb
40
40
  end
41
41
 
42
42
  def custom_value custom_value_key
43
- custom_value_value = nil
44
-
45
- @custom_values['CustomValue'].each do |custom_value|
46
- custom_value_value = custom_value['Value'] if custom_value['Key'] == custom_value_key
47
- end
43
+ custom_value = nil
48
44
 
49
- return custom_value_value
45
+ if @custom_values['CustomValue'].is_a? Array
46
+ @custom_values['CustomValue'].each do |cv|
47
+ custom_value = cv['Value'] if cv['Key'] == custom_value_key
48
+ end
49
+ elsif @custom_values['CustomValue'].is_a? Hash
50
+ custom_value = @custom_values['CustomValue']['Value'] if @custom_values['CustomValue']['Key'] == custom_value_key
51
+ end
52
+
53
+ return custom_value
50
54
  end
51
55
  end
52
56
  end
@@ -1,3 +1,3 @@
1
1
  module Cb
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
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.5
5
- prerelease:
4
+ version: 0.1.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jesse Retchko
@@ -14,12 +13,11 @@ authors:
14
13
  autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
- date: 2013-06-04 00:00:00.000000000 Z
16
+ date: 2013-06-05 00:00:00.000000000 Z
18
17
  dependencies:
19
18
  - !ruby/object:Gem::Dependency
20
19
  name: httparty
21
20
  requirement: !ruby/object:Gem::Requirement
22
- none: false
23
21
  requirements:
24
22
  - - ~>
25
23
  - !ruby/object:Gem::Version
@@ -27,7 +25,6 @@ dependencies:
27
25
  type: :runtime
28
26
  prerelease: false
29
27
  version_requirements: !ruby/object:Gem::Requirement
30
- none: false
31
28
  requirements:
32
29
  - - ~>
33
30
  - !ruby/object:Gem::Version
@@ -35,7 +32,6 @@ dependencies:
35
32
  - !ruby/object:Gem::Dependency
36
33
  name: json
37
34
  requirement: !ruby/object:Gem::Requirement
38
- none: false
39
35
  requirements:
40
36
  - - ~>
41
37
  - !ruby/object:Gem::Version
@@ -43,7 +39,6 @@ dependencies:
43
39
  type: :runtime
44
40
  prerelease: false
45
41
  version_requirements: !ruby/object:Gem::Requirement
46
- none: false
47
42
  requirements:
48
43
  - - ~>
49
44
  - !ruby/object:Gem::Version
@@ -89,26 +84,25 @@ files:
89
84
  - README.md
90
85
  homepage: http://api.careerbuilder.com
91
86
  licenses: []
87
+ metadata: {}
92
88
  post_install_message:
93
89
  rdoc_options: []
94
90
  require_paths:
95
91
  - lib
96
92
  required_ruby_version: !ruby/object:Gem::Requirement
97
- none: false
98
93
  requirements:
99
94
  - - ! '>='
100
95
  - !ruby/object:Gem::Version
101
96
  version: '0'
102
97
  required_rubygems_version: !ruby/object:Gem::Requirement
103
- none: false
104
98
  requirements:
105
99
  - - ! '>='
106
100
  - !ruby/object:Gem::Version
107
101
  version: '0'
108
102
  requirements: []
109
103
  rubyforge_project:
110
- rubygems_version: 1.8.24
104
+ rubygems_version: 2.0.3
111
105
  signing_key:
112
- specification_version: 3
106
+ specification_version: 4
113
107
  summary: Ruby wrapper around Careerbuilder Public API.
114
108
  test_files: []