ey_services_api 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile
CHANGED
@@ -175,7 +175,11 @@ class TresfiestasFake
|
|
175
175
|
disable :show_exceptions
|
176
176
|
|
177
177
|
get '/api/1/register_a_new_service' do
|
178
|
-
|
178
|
+
to_return = []
|
179
|
+
TresfiestasFake.services.each do |k, v|
|
180
|
+
to_return << {"service" => v.merge('url' => "#{BASE_URL}/api/1/services/#{k}") }
|
181
|
+
end
|
182
|
+
to_return.to_json
|
179
183
|
end
|
180
184
|
|
181
185
|
#TODO: auth!
|
data/spec/service_spec.rb
CHANGED
@@ -84,11 +84,12 @@ describe EY::ServicesAPI::Service do
|
|
84
84
|
}.should raise_error EY::ServicesAPI::Connection::NotFound
|
85
85
|
end
|
86
86
|
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
87
|
+
it "can update and delete a service from the listing" do
|
88
|
+
services = @connection.list_services(@registration_url)
|
89
|
+
services.first.update(:name => "so brand new")
|
90
|
+
services.first.destroy
|
91
91
|
end
|
92
|
+
|
92
93
|
end
|
93
94
|
end
|
94
95
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ey_services_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-09-
|
12
|
+
date: 2011-09-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &2179703440 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2179703440
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: json
|
27
|
-
requirement: &
|
27
|
+
requirement: &2179703020 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2179703020
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: ey_api_hmac
|
38
|
-
requirement: &
|
38
|
+
requirement: &2179718960 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2179718960
|
47
47
|
description: API for Partner Services (talks to services.engineyard.com)
|
48
48
|
email:
|
49
49
|
- jacob@engineyard.com
|