ey_services_fake 0.3.16 → 0.3.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -74,4 +74,9 @@ module EyServicesFake
74
74
  belongs_to :ProvisionedService, :provisioned_service, :provisioned_service_id
75
75
  end
76
76
  class Awsm < Model; end
77
+ class PartnerOrAwsm
78
+ def self.find_by_auth_id(auth_id)
79
+ Awsm.first(:auth_id => auth_id) || Partner.find_by_auth_id(auth_id)
80
+ end
81
+ end
77
82
  end
@@ -15,7 +15,7 @@ module EyServicesFake
15
15
  # External API #
16
16
  ################
17
17
 
18
- use EY::ApiHMAC::ApiAuth::Server, Partner
18
+ use EY::ApiHMAC::ApiAuth::Server, PartnerOrAwsm
19
19
 
20
20
  get '/api/1/partners/:partner_id/services' do |partner_id|
21
21
  partner = Partner.get!(partner_id)
@@ -1,3 +1,3 @@
1
1
  module EyServicesFake
2
- VERSION = "0.3.16"
2
+ VERSION = "0.3.17"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ey_services_fake
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 16
10
- version: 0.3.16
9
+ - 17
10
+ version: 0.3.17
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jacob Burkhart & Josh Lane
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-11-01 00:00:00 Z
18
+ date: 2012-12-04 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: sinatra