xing-backend 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xing/mappers/base.rb +3 -2
- data/spec/xing/mappers/base_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 862c1da5f835e9cd13790d7bc67c4739d14bc4f8
|
4
|
+
data.tar.gz: b02e0ee68d0d8cffa10fc9ec4a203907ebfed41f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64f348a5ae8f9a76d14afbb4a23ad8fabe05bca393b49d21e7facbec9d7bb8ee2657d91b3816d17bd4d20e054e1dcabe651a1027761ad9fdaa7b7a8b9cfc577f
|
7
|
+
data.tar.gz: b29cbe4dec8c39c58d0cafb97103556ce9a9dcc9aa79a76c1631796b102f748f9e5a08fea5c429f3dd5036a70faaa2e67c32d3324f98cb5d43839647912aad3f
|
data/lib/xing/mappers/base.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# heavily on rails core extensions, so we are requiring them here.
|
3
3
|
require 'active_support'
|
4
4
|
require 'active_support/core_ext'
|
5
|
+
require 'xing/services/error_converter'
|
5
6
|
|
6
7
|
module Xing
|
7
8
|
module Mappers
|
@@ -54,7 +55,7 @@ module Xing
|
|
54
55
|
# component of a page route. We are here abusing recognize_path, which isn't
|
55
56
|
# supposed to be used outside of tests (see
|
56
57
|
# https://github.com/rails/rails/issues/2656), but we don't know what the
|
57
|
-
# alternative is.
|
58
|
+
# alternative is.e
|
58
59
|
def route_to(path)
|
59
60
|
path = "http://#{BACKEND_SUBDOMAIN}.example.com#{normalize_path(path)}";
|
60
61
|
router.recognize_path(path)
|
@@ -127,7 +128,7 @@ module Xing
|
|
127
128
|
end
|
128
129
|
|
129
130
|
def add_ar_arrors(object)
|
130
|
-
object_errors =
|
131
|
+
object_errors = Xing::Services::ErrorConverter.new(object).convert
|
131
132
|
error_data.deep_merge!(object_errors)
|
132
133
|
end
|
133
134
|
end
|
@@ -18,7 +18,7 @@ describe Xing::Mappers::Base do
|
|
18
18
|
end
|
19
19
|
|
20
20
|
before do
|
21
|
-
stub_const("
|
21
|
+
stub_const("Xing::Services::ErrorConverter", double('error converter')).tap do |stub|
|
22
22
|
allow(stub).to receive_message_chain(:new, :convert).and_return({})
|
23
23
|
end
|
24
24
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xing-backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Dorn
|
@@ -200,7 +200,7 @@ rdoc_options:
|
|
200
200
|
- "--main"
|
201
201
|
- doc/README
|
202
202
|
- "--title"
|
203
|
-
- xing-backend-0.0.
|
203
|
+
- xing-backend-0.0.11 Documentation
|
204
204
|
require_paths:
|
205
205
|
- lib/
|
206
206
|
required_ruby_version: !ruby/object:Gem::Requirement
|