ey_services_fake 0.3.16 → 0.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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,
|
|
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)
|
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:
|
|
4
|
+
hash: 49
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 3
|
|
9
|
-
-
|
|
10
|
-
version: 0.3.
|
|
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-
|
|
18
|
+
date: 2012-12-04 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: sinatra
|