roqua-core-api 0.0.36 → 0.0.37

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: 8e95cfda01ffdeae42526802a4d7d815e26f1ee6
4
- data.tar.gz: b523ba91f08679812d8dac23d39b5088994dc082
3
+ metadata.gz: 92b680690007a76389c6f04c503089c4fbcfae58
4
+ data.tar.gz: 48857763265de4e5323be1add4ef9b3dadd1670f
5
5
  SHA512:
6
- metadata.gz: 04ccf107a9d5a32b3e3e35e82f93b78c0d6c821de86e7278dfaa46e127f7e3f646f94e8a7629a2a96405449ff3b86059afa8fa6da2f0c80c14d297bada3fa0c9
7
- data.tar.gz: 897547050541caa7cfcf9b7a4785a9eba203916f600684ff362bb78557f7f73c8584fb4aa227e2aeb34530b419661e46a2ebe8a421851e3996e5b0530b5e7451
6
+ metadata.gz: a2d0964d4a0dc01cd80bc89930ef79cc0e4af690d55abee9b2df47d977e8bf6d3d24dc4b68c301e724c3abb91827163aafc44d3e1ceac3ed6c354966093d5f5b
7
+ data.tar.gz: 1c65a3b817bca3d7ac01f6a53f46f1cbe87471837e85738c65244ff1cdefff946d5cbc89b430f560d6a8720f87d03dd945124982d27f48f48d1fb8baf79f6f3e
data/ChangeLog.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.0.37
2
+
3
+ Handling new 422 json format in addition to old (temporary hack)
4
+
1
5
  ### 0.0.36
2
6
 
3
7
  * Allow basic auth to be used as well for all actions.
@@ -9,7 +9,8 @@ module Roqua
9
9
  end
10
10
 
11
11
  def errors_to_object(response, obj)
12
- response['errors'].each do |attribute, errors|
12
+ (response['errors'][obj.class.name.demodulize.underscore] ||
13
+ response['errors']).each do |attribute, errors|
13
14
  errors.each do |error|
14
15
  obj.errors.add(attribute.to_sym, error.to_sym)
15
16
  end
@@ -1,5 +1,5 @@
1
1
  module Roqua
2
2
  module CoreApi
3
- VERSION = '0.0.36'
3
+ VERSION = '0.0.37'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roqua-core-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.36
4
+ version: 0.0.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marten Veldthuis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-08 00:00:00.000000000 Z
11
+ date: 2014-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
245
245
  version: '0'
246
246
  requirements: []
247
247
  rubyforge_project:
248
- rubygems_version: 2.2.2
248
+ rubygems_version: 2.3.0
249
249
  signing_key:
250
250
  specification_version: 4
251
251
  summary: API wrapper gem around Core's API