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 +4 -4
- data/ChangeLog.md +4 -0
- data/lib/roqua/core_api/base.rb +2 -1
- data/lib/roqua/core_api/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92b680690007a76389c6f04c503089c4fbcfae58
|
4
|
+
data.tar.gz: 48857763265de4e5323be1add4ef9b3dadd1670f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2d0964d4a0dc01cd80bc89930ef79cc0e4af690d55abee9b2df47d977e8bf6d3d24dc4b68c301e724c3abb91827163aafc44d3e1ceac3ed6c354966093d5f5b
|
7
|
+
data.tar.gz: 1c65a3b817bca3d7ac01f6a53f46f1cbe87471837e85738c65244ff1cdefff946d5cbc89b430f560d6a8720f87d03dd945124982d27f48f48d1fb8baf79f6f3e
|
data/ChangeLog.md
CHANGED
data/lib/roqua/core_api/base.rb
CHANGED
@@ -9,7 +9,8 @@ module Roqua
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def errors_to_object(response, obj)
|
12
|
-
response['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
|
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.
|
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-
|
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.
|
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
|