restpack_core_service 0.0.9 → 0.0.10
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c467348e3e91b7a334c8b6395bbf0f9ece4eaa6
|
4
|
+
data.tar.gz: e324bb1a482ce12b3cdda1c1e859bcba2ccdbc0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae5463db0dc91a0e57b4d3552efbc7f226859e449da3491ef63102a562087d58faa1ea7e03c4053000f770d519c38dd7e682a8cb4bbfd2bb68708bcad28320dc
|
7
|
+
data.tar.gz: 3b15476dbb5dbbe8fe05eb6facea0b88d46c875a9fd694caadd130206c31e88f2bc71368bc290b213409a87baa8299dfa5a0ec7db0665f492b30c960c6c4c296
|
@@ -5,12 +5,6 @@ module RestPack::Core::Service::Serializers
|
|
5
5
|
self.model_class = RestPack::Core::Service::Models::Application
|
6
6
|
self.key = :applications
|
7
7
|
|
8
|
-
attributes :id
|
8
|
+
attributes :id, :name, :account_id
|
9
9
|
end
|
10
10
|
end
|
11
|
-
|
12
|
-
#TODO: GJ: remove once this has been addressed:
|
13
|
-
# https://github.com/RestPack/restpack_serializer/issues/41
|
14
|
-
class ApplicationSerializer < RestPack::Core::Service::Serializers::ApplicationSerializer
|
15
|
-
|
16
|
-
end
|
@@ -13,7 +13,7 @@ describe Core::Commands::Domain::ByIdentifier do
|
|
13
13
|
context 'with valid params' do
|
14
14
|
let(:params) { {
|
15
15
|
identifier: @domain.identifier,
|
16
|
-
includes: '
|
16
|
+
includes: 'applications'
|
17
17
|
} }
|
18
18
|
|
19
19
|
it 'is valid' do
|
@@ -27,6 +27,7 @@ describe Core::Commands::Domain::ByIdentifier do
|
|
27
27
|
|
28
28
|
it 'includes related application' do
|
29
29
|
response.result[:applications].length.should == 1
|
30
|
+
response.result[:applications].first[:id].should == @domain.application_id.to_s
|
30
31
|
end
|
31
32
|
end
|
32
33
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: restpack_core_service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin Joyce
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: restpack_service
|