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: 811f02baff8b547e44266dbfd3db3c39f4e8c1eb
4
- data.tar.gz: 630bd99f4d18419b38ef2b9df44ca1a345d54e02
3
+ metadata.gz: 6c467348e3e91b7a334c8b6395bbf0f9ece4eaa6
4
+ data.tar.gz: e324bb1a482ce12b3cdda1c1e859bcba2ccdbc0d
5
5
  SHA512:
6
- metadata.gz: f10d070f27c3273c39bc10d347511ba50272fb71d87d144f55ed8f0d1ce14ba8bfe02334422027a6314d1e1e2997cd8fec30722580859d4f7cf1e0a77ec5b473
7
- data.tar.gz: e844c7bb67006f18cf36b71bc4fef5aef9eec76d472933e8c5ee83329b994c49fe23d6bac0b22db7fee4d5ede9f6dd73e0dae0f4aa50da351dd8c3e4d6bc36c4
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
@@ -8,6 +8,6 @@ module RestPack::Core::Service::Serializers
8
8
  attributes :id, :identifier, :application_id, :is_verified, :session_secret,
9
9
  :oauth_providers
10
10
 
11
- can_include :application
11
+ can_include :applications
12
12
  end
13
13
  end
@@ -1,7 +1,7 @@
1
1
  module RestPack
2
2
  module Core
3
3
  module Service
4
- VERSION = "0.0.9"
4
+ VERSION = "0.0.10"
5
5
  end
6
6
  end
7
7
  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: 'application'
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.9
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-08-26 00:00:00.000000000 Z
11
+ date: 2013-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: restpack_service