cb-api 21.2.0 → 21.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8d6c8cd5371bb92bc95d9588421ac36a0663b7e
4
- data.tar.gz: 57eba3174d391f7d34d86ef521def7100474ab0e
3
+ metadata.gz: 337194ed62c482aacea998dec31275f464f505be
4
+ data.tar.gz: df491cb5f2290907a7ae6c60cee0f726cf4788c3
5
5
  SHA512:
6
- metadata.gz: 0e2fb4ee47ca18334459a8eb33156ce8358961e3cb5f760cedbacd9566b942e644d8de68f9729287a09bcb531021e5e0c713d47f8cd4d33d91a9fcdd78c1272f
7
- data.tar.gz: 12b6c2f38b5a53fe37cd929c6d1fc7ecb70c0d19a467e028e435854d133843a66ee5d3de813b8e9af197ecb543f5640bdb5842e006fc7ae8490ac5cc985bdb60
6
+ metadata.gz: 2896f88c36001e8164740f936418e9d6889fda2557d30c713355d455be2ce81d0603b3c633870ba145c4eb8135cc29bc714b6b88027c1d779eed557a9a0b623a
7
+ data.tar.gz: 0fe64e6ee869ff8c7bc0a37424ee825134131a2e09f9205df04164af15698ec886cd60fe94261a2b7123c1dbb1078024333a52dd09bc247864d013d32f2ca7bf
data/CHANGELOG.md CHANGED
@@ -2,6 +2,7 @@ Version History
2
2
  ====
3
3
  * All Version bumps are required to update this file as well!!
4
4
  ----
5
+ * 21.3.0 Add better error message to MissingRequiredField error in api_response
5
6
  * 21.2.0 Add User Profile API (/consumer/user-profile)
6
7
  * 21.1.0 Add expired job API (/v1/job/expired)
7
8
  * 21.0.1 JobSearch calls gets the args[:HostSite] in addition to args[:host_site]
@@ -49,7 +49,7 @@ module Cb
49
49
  def required_response_field(field_name, parent_hash)
50
50
  fail ArgumentError.new("field_name can't be nil!") if field_name.nil?
51
51
  fail ArgumentError.new("parent_hash can't be nil!") if parent_hash.nil?
52
- fail ExpectedResponseFieldMissing.new(field_name) unless parent_hash.key?(field_name)
52
+ fail ExpectedResponseFieldMissing.new("Response field missing '#{ field_name }' for #{ self.class.name }") unless parent_hash.key?(field_name)
53
53
  end
54
54
 
55
55
  private
data/lib/cb/version.rb CHANGED
@@ -9,5 +9,5 @@
9
9
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
10
  # See the License for the specific language governing permissions and limitations under the License.
11
11
  module Cb
12
- VERSION = '21.2.0'
12
+ VERSION = '21.3.0'
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cb-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 21.2.0
4
+ version: 21.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The CareerBuilder.com Niche and Consumer Development teams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-21 00:00:00.000000000 Z
11
+ date: 2016-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty