ey_services_fake 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -8,11 +8,19 @@ module EyServicesFake
|
|
8
8
|
disable :show_exceptions
|
9
9
|
|
10
10
|
delete '/api/1/some_provisioned_service' do
|
11
|
-
|
11
|
+
if MockingBirdService.service_deprovisioning_handler
|
12
|
+
instance_eval(&MockingBirdService.service_deprovisioning_handler)
|
13
|
+
else
|
14
|
+
{}.to_json
|
15
|
+
end
|
12
16
|
end
|
13
17
|
|
14
18
|
delete '/api/1/some_service_account' do
|
15
|
-
|
19
|
+
if MockingBirdService.service_account_cancel_handler
|
20
|
+
instance_eval(&MockingBirdService.service_account_cancel_handler)
|
21
|
+
else
|
22
|
+
{}.to_json
|
23
|
+
end
|
16
24
|
end
|
17
25
|
|
18
26
|
post '/api/1/service_accounts_callback' do
|
@@ -59,11 +67,15 @@ module EyServicesFake
|
|
59
67
|
class << self
|
60
68
|
attr_accessor :service_account_creation_handler
|
61
69
|
attr_accessor :service_provisioning_handler
|
70
|
+
attr_accessor :service_deprovisioning_handler
|
71
|
+
attr_accessor :service_account_cancel_handler
|
62
72
|
end
|
63
73
|
|
64
74
|
def reset!
|
65
75
|
MockingBirdService.service_account_creation_handler = nil
|
66
76
|
MockingBirdService.service_provisioning_handler = nil
|
77
|
+
MockingBirdService.service_deprovisioning_handler = nil
|
78
|
+
MockingBirdService.service_account_cancel_handler = nil
|
67
79
|
end
|
68
80
|
|
69
81
|
def app
|
metadata
CHANGED
@@ -1,62 +1,45 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ey_services_fake
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 2
|
10
|
-
version: 0.1.2
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Jacob Burkhart & Josh Lane
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-01-13 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: sinatra
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70130686425680 !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
32
22
|
type: :runtime
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: cubbyhole
|
36
23
|
prerelease: false
|
37
|
-
|
24
|
+
version_requirements: *70130686425680
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: cubbyhole
|
27
|
+
requirement: &70130686424880 !ruby/object:Gem::Requirement
|
38
28
|
none: false
|
39
|
-
requirements:
|
40
|
-
- -
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
hash: 23
|
43
|
-
segments:
|
44
|
-
- 0
|
45
|
-
- 2
|
46
|
-
- 0
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
47
32
|
version: 0.2.0
|
48
33
|
type: :runtime
|
49
|
-
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70130686424880
|
50
36
|
description: A fake for use when writting tests against the ey_services_api
|
51
|
-
email:
|
37
|
+
email:
|
52
38
|
- jacob@engineyard.com
|
53
39
|
executables: []
|
54
|
-
|
55
40
|
extensions: []
|
56
|
-
|
57
41
|
extra_rdoc_files: []
|
58
|
-
|
59
|
-
files:
|
42
|
+
files:
|
60
43
|
- .gitignore
|
61
44
|
- ey_services_fake.gemspec
|
62
45
|
- lib/ey_services_fake/mock_backend.rb
|
@@ -67,38 +50,28 @@ files:
|
|
67
50
|
- lib/ey_services_fake/tresfiestas_fake_rack_app.rb
|
68
51
|
- lib/ey_services_fake/url_generator.rb
|
69
52
|
- lib/ey_services_fake/version.rb
|
70
|
-
homepage:
|
53
|
+
homepage: ''
|
71
54
|
licenses: []
|
72
|
-
|
73
55
|
post_install_message:
|
74
56
|
rdoc_options: []
|
75
|
-
|
76
|
-
require_paths:
|
57
|
+
require_paths:
|
77
58
|
- lib
|
78
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
79
60
|
none: false
|
80
|
-
requirements:
|
81
|
-
- -
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
|
84
|
-
|
85
|
-
- 0
|
86
|
-
version: "0"
|
87
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ! '>='
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '0'
|
65
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
66
|
none: false
|
89
|
-
requirements:
|
90
|
-
- -
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
|
93
|
-
segments:
|
94
|
-
- 0
|
95
|
-
version: "0"
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
96
71
|
requirements: []
|
97
|
-
|
98
72
|
rubyforge_project: ey_services_fake
|
99
|
-
rubygems_version: 1.8.
|
73
|
+
rubygems_version: 1.8.12
|
100
74
|
signing_key:
|
101
75
|
specification_version: 3
|
102
76
|
summary: A fake for use when writting tests against the ey_services_api
|
103
77
|
test_files: []
|
104
|
-
|