ey_services_api 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -1
- data/lib/ey_services_api/connection.rb +5 -1
- data/lib/ey_services_api/version.rb +1 -1
- data/spec/provisioned_service_creation_spec.rb +16 -1
- data/spec/service_spec.rb +0 -1
- metadata +45 -73
- data/EYIntegratedGemfile.lock +0 -196
data/.gitignore
CHANGED
@@ -31,7 +31,7 @@ module EY
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def get_service(url)
|
34
|
-
|
34
|
+
get(url) do |json_body, response_location|
|
35
35
|
service = Service.new(json_body["service"])
|
36
36
|
service.connection = self
|
37
37
|
service.url = url
|
@@ -51,6 +51,10 @@ module EY
|
|
51
51
|
put(url, :service_account => params)
|
52
52
|
end
|
53
53
|
|
54
|
+
def update_provisioned_service(url, params)
|
55
|
+
put(url, :provisioned_service => params)
|
56
|
+
end
|
57
|
+
|
54
58
|
def send_message(url, message)
|
55
59
|
post(url, :message => message.to_hash)
|
56
60
|
end
|
@@ -24,7 +24,22 @@ describe EY::ServicesAPI::ProvisionedServiceCreation do
|
|
24
24
|
status_message[:subject].should eq "some provisioned service messages"
|
25
25
|
end
|
26
26
|
|
27
|
-
|
27
|
+
describe "updating a provisioned service" do
|
28
|
+
before do
|
29
|
+
@connection = EY::ServicesAPI.connection
|
30
|
+
provisioned_service = @tresfiestas.provisioned_service
|
31
|
+
@connection.update_provisioned_service(provisioned_service[:url],
|
32
|
+
:configuration_required => true,
|
33
|
+
:configuration_url => "something else")
|
34
|
+
end
|
35
|
+
|
36
|
+
it "works" do
|
37
|
+
pushed = @tresfiestas.provisioned_service[:pushed_provisioned_service]
|
38
|
+
pushed[:configuration_url].should eq "something else"
|
39
|
+
pushed[:configuration_required].should eq true
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
28
43
|
end
|
29
44
|
end
|
30
45
|
|
data/spec/service_spec.rb
CHANGED
metadata
CHANGED
@@ -1,79 +1,60 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ey_services_api
|
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 & Thorben & David & mkb & Josh & Others
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-11-03 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: rspec
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &2153193780 !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: :development
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: json
|
36
23
|
prerelease: false
|
37
|
-
|
24
|
+
version_requirements: *2153193780
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: json
|
27
|
+
requirement: &2153193160 !ruby/object:Gem::Requirement
|
38
28
|
none: false
|
39
|
-
requirements:
|
40
|
-
- -
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
|
43
|
-
segments:
|
44
|
-
- 0
|
45
|
-
version: "0"
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
46
33
|
type: :runtime
|
47
|
-
version_requirements: *id002
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: ey_api_hmac
|
50
34
|
prerelease: false
|
51
|
-
|
35
|
+
version_requirements: *2153193160
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: ey_api_hmac
|
38
|
+
requirement: &2153192660 !ruby/object:Gem::Requirement
|
52
39
|
none: false
|
53
|
-
requirements:
|
54
|
-
- -
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
|
57
|
-
segments:
|
58
|
-
- 0
|
59
|
-
version: "0"
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
60
44
|
type: :runtime
|
61
|
-
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *2153192660
|
62
47
|
description: API for Partner Services (talks to services.engineyard.com)
|
63
|
-
email:
|
48
|
+
email:
|
64
49
|
- jacob@engineyard.com
|
65
50
|
executables: []
|
66
|
-
|
67
51
|
extensions: []
|
68
|
-
|
69
52
|
extra_rdoc_files: []
|
70
|
-
|
71
|
-
files:
|
53
|
+
files:
|
72
54
|
- .gitignore
|
73
55
|
- .rspec
|
74
56
|
- CHANGELOG
|
75
57
|
- EYIntegratedGemfile
|
76
|
-
- EYIntegratedGemfile.lock
|
77
58
|
- Gemfile
|
78
59
|
- Guardfile
|
79
60
|
- README.md
|
@@ -98,40 +79,31 @@ files:
|
|
98
79
|
- spec/service_account_creation_spec.rb
|
99
80
|
- spec/service_spec.rb
|
100
81
|
- spec/spec_helper.rb
|
101
|
-
homepage:
|
82
|
+
homepage: ''
|
102
83
|
licenses: []
|
103
|
-
|
104
84
|
post_install_message:
|
105
85
|
rdoc_options: []
|
106
|
-
|
107
|
-
require_paths:
|
86
|
+
require_paths:
|
108
87
|
- lib
|
109
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
110
89
|
none: false
|
111
|
-
requirements:
|
112
|
-
- -
|
113
|
-
- !ruby/object:Gem::Version
|
114
|
-
|
115
|
-
|
116
|
-
- 0
|
117
|
-
version: "0"
|
118
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
95
|
none: false
|
120
|
-
requirements:
|
121
|
-
- -
|
122
|
-
- !ruby/object:Gem::Version
|
123
|
-
|
124
|
-
segments:
|
125
|
-
- 0
|
126
|
-
version: "0"
|
96
|
+
requirements:
|
97
|
+
- - ! '>='
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
127
100
|
requirements: []
|
128
|
-
|
129
101
|
rubyforge_project: ey_services_api
|
130
102
|
rubygems_version: 1.8.10
|
131
103
|
signing_key:
|
132
104
|
specification_version: 3
|
133
105
|
summary: API for Partner Services (talks to services.engineyard.com)
|
134
|
-
test_files:
|
106
|
+
test_files:
|
135
107
|
- spec/invoice_spec.rb
|
136
108
|
- spec/message_spec.rb
|
137
109
|
- spec/provisioned_service_creation_spec.rb
|
data/EYIntegratedGemfile.lock
DELETED
@@ -1,196 +0,0 @@
|
|
1
|
-
GIT
|
2
|
-
remote: git@github.com:engineyard/ey_services_api_internal.git
|
3
|
-
revision: ff77fe459747aa039aa1df384ce10674e0293e90
|
4
|
-
specs:
|
5
|
-
ey_services_api_internal (0.1.0)
|
6
|
-
ey_api_hmac
|
7
|
-
|
8
|
-
GIT
|
9
|
-
remote: git@github.com:engineyard/ey_sso.git
|
10
|
-
revision: ff38d25dd74174d284f469058d63918877304b5d
|
11
|
-
specs:
|
12
|
-
ey_sso (0.9.17.pre)
|
13
|
-
ZenTest (~> 4.5.0)
|
14
|
-
addressable (~> 2.2.2)
|
15
|
-
artifice (~> 0.6)
|
16
|
-
halorgium-auth-hmac (~> 1.1.0)
|
17
|
-
json (~> 1.1)
|
18
|
-
mechanize (~> 0.9.3)
|
19
|
-
rack (~> 1.1)
|
20
|
-
randexp (~> 0.1.4)
|
21
|
-
rest-client (~> 1.6.0)
|
22
|
-
ruby-openid (~> 2.1.7)
|
23
|
-
sinatra (~> 1.0)
|
24
|
-
uuid (~> 2.3.1)
|
25
|
-
|
26
|
-
GIT
|
27
|
-
remote: git@github.com:engineyard/fake_awsm.git
|
28
|
-
revision: fa49845a6eaed4da3f7e5008509804f2ccdd32c4
|
29
|
-
specs:
|
30
|
-
fake_awsm (0.0)
|
31
|
-
activerecord (= 3.0.9)
|
32
|
-
ey_services_api_internal
|
33
|
-
ey_sso
|
34
|
-
haml
|
35
|
-
sinatra
|
36
|
-
sqlite3
|
37
|
-
|
38
|
-
GIT
|
39
|
-
remote: git@github.com:engineyard/tresfiestas.git
|
40
|
-
revision: e35bb600384684a3aaf50d2c0831a44cabba1d5b
|
41
|
-
specs:
|
42
|
-
tresfiestas (0.1.TODO)
|
43
|
-
RedCloth
|
44
|
-
airbrake
|
45
|
-
ey_api_hmac
|
46
|
-
ey_sso
|
47
|
-
haml
|
48
|
-
rails (= 3.0.9)
|
49
|
-
sqlite3
|
50
|
-
|
51
|
-
PATH
|
52
|
-
remote: ../ey_services_api
|
53
|
-
specs:
|
54
|
-
ey_services_api (0.1.0)
|
55
|
-
ey_api_hmac
|
56
|
-
json
|
57
|
-
|
58
|
-
GEM
|
59
|
-
remote: http://rubygems.org/
|
60
|
-
specs:
|
61
|
-
ParseTree (3.0.8)
|
62
|
-
RubyInline (>= 3.7.0)
|
63
|
-
sexp_processor (>= 3.0.0)
|
64
|
-
RedCloth (4.2.8)
|
65
|
-
RubyInline (3.11.0)
|
66
|
-
ZenTest (~> 4.3)
|
67
|
-
ZenTest (4.5.0)
|
68
|
-
abstract (1.0.0)
|
69
|
-
actionmailer (3.0.9)
|
70
|
-
actionpack (= 3.0.9)
|
71
|
-
mail (~> 2.2.19)
|
72
|
-
actionpack (3.0.9)
|
73
|
-
activemodel (= 3.0.9)
|
74
|
-
activesupport (= 3.0.9)
|
75
|
-
builder (~> 2.1.2)
|
76
|
-
erubis (~> 2.6.6)
|
77
|
-
i18n (~> 0.5.0)
|
78
|
-
rack (~> 1.2.1)
|
79
|
-
rack-mount (~> 0.6.14)
|
80
|
-
rack-test (~> 0.5.7)
|
81
|
-
tzinfo (~> 0.3.23)
|
82
|
-
activemodel (3.0.9)
|
83
|
-
activesupport (= 3.0.9)
|
84
|
-
builder (~> 2.1.2)
|
85
|
-
i18n (~> 0.5.0)
|
86
|
-
activerecord (3.0.9)
|
87
|
-
activemodel (= 3.0.9)
|
88
|
-
activesupport (= 3.0.9)
|
89
|
-
arel (~> 2.0.10)
|
90
|
-
tzinfo (~> 0.3.23)
|
91
|
-
activeresource (3.0.9)
|
92
|
-
activemodel (= 3.0.9)
|
93
|
-
activesupport (= 3.0.9)
|
94
|
-
activesupport (3.0.9)
|
95
|
-
addressable (2.2.6)
|
96
|
-
airbrake (3.0.4)
|
97
|
-
activesupport
|
98
|
-
builder
|
99
|
-
arel (2.0.10)
|
100
|
-
artifice (0.6)
|
101
|
-
rack-test
|
102
|
-
builder (2.1.2)
|
103
|
-
cubbyhole (0.2.0)
|
104
|
-
diff-lcs (1.1.3)
|
105
|
-
erubis (2.6.6)
|
106
|
-
abstract (>= 1.0.0)
|
107
|
-
ey_api_hmac (0.0.15)
|
108
|
-
json
|
109
|
-
rack-client
|
110
|
-
ey_services_fake (0.0.1)
|
111
|
-
cubbyhole (>= 0.2.0)
|
112
|
-
sinatra
|
113
|
-
guard (0.8.4)
|
114
|
-
thor (~> 0.14.6)
|
115
|
-
guard-rspec (0.4.5)
|
116
|
-
guard (>= 0.4.0)
|
117
|
-
halorgium-auth-hmac (1.1.1.2010100601)
|
118
|
-
haml (3.1.3)
|
119
|
-
i18n (0.5.0)
|
120
|
-
json (1.6.1)
|
121
|
-
macaddr (1.4.0)
|
122
|
-
systemu (~> 2.2.0)
|
123
|
-
mail (2.2.19)
|
124
|
-
activesupport (>= 2.3.6)
|
125
|
-
i18n (>= 0.4.0)
|
126
|
-
mime-types (~> 1.16)
|
127
|
-
treetop (~> 1.4.8)
|
128
|
-
mechanize (0.9.3)
|
129
|
-
nokogiri (>= 1.2.1)
|
130
|
-
mime-types (1.16)
|
131
|
-
nokogiri (1.5.0)
|
132
|
-
polyglot (0.3.2)
|
133
|
-
rack (1.2.4)
|
134
|
-
rack-client (0.4.0)
|
135
|
-
rack (>= 1.0.0)
|
136
|
-
rack-mount (0.6.14)
|
137
|
-
rack (>= 1.0.0)
|
138
|
-
rack-test (0.5.7)
|
139
|
-
rack (>= 1.0)
|
140
|
-
rails (3.0.9)
|
141
|
-
actionmailer (= 3.0.9)
|
142
|
-
actionpack (= 3.0.9)
|
143
|
-
activerecord (= 3.0.9)
|
144
|
-
activeresource (= 3.0.9)
|
145
|
-
activesupport (= 3.0.9)
|
146
|
-
bundler (~> 1.0)
|
147
|
-
railties (= 3.0.9)
|
148
|
-
railties (3.0.9)
|
149
|
-
actionpack (= 3.0.9)
|
150
|
-
activesupport (= 3.0.9)
|
151
|
-
rake (>= 0.8.7)
|
152
|
-
rdoc (~> 3.4)
|
153
|
-
thor (~> 0.14.4)
|
154
|
-
rake (0.9.2)
|
155
|
-
randexp (0.1.5)
|
156
|
-
ParseTree
|
157
|
-
rdoc (3.9.4)
|
158
|
-
rest-client (1.6.7)
|
159
|
-
mime-types (>= 1.16)
|
160
|
-
rspec (2.6.0)
|
161
|
-
rspec-core (~> 2.6.0)
|
162
|
-
rspec-expectations (~> 2.6.0)
|
163
|
-
rspec-mocks (~> 2.6.0)
|
164
|
-
rspec-core (2.6.4)
|
165
|
-
rspec-expectations (2.6.0)
|
166
|
-
diff-lcs (~> 1.1.2)
|
167
|
-
rspec-mocks (2.6.0)
|
168
|
-
ruby-openid (2.1.8)
|
169
|
-
sexp_processor (3.0.7)
|
170
|
-
sinatra (1.2.7)
|
171
|
-
rack (~> 1.1)
|
172
|
-
tilt (< 2.0, >= 1.2.2)
|
173
|
-
sqlite3 (1.3.4)
|
174
|
-
systemu (2.2.0)
|
175
|
-
thor (0.14.6)
|
176
|
-
tilt (1.3.3)
|
177
|
-
treetop (1.4.10)
|
178
|
-
polyglot
|
179
|
-
polyglot (>= 0.3.1)
|
180
|
-
tzinfo (0.3.30)
|
181
|
-
uuid (2.3.4)
|
182
|
-
macaddr (~> 1.0)
|
183
|
-
|
184
|
-
PLATFORMS
|
185
|
-
ruby
|
186
|
-
|
187
|
-
DEPENDENCIES
|
188
|
-
ey_services_api!
|
189
|
-
ey_services_api_internal!
|
190
|
-
ey_services_fake
|
191
|
-
ey_sso!
|
192
|
-
fake_awsm!
|
193
|
-
guard-rspec
|
194
|
-
rake
|
195
|
-
rspec
|
196
|
-
tresfiestas!
|