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
@@ -1,4 +1,3 @@
1
- require 'bundler/gem_tasks'
2
1
  require 'rspec/core/rake_task'
3
2
 
4
3
  desc 'Default: run specs.'
@@ -15,7 +15,7 @@ module EY
15
15
  json_body.map do |json_item|
16
16
  service = Service.new(json_item["service"])
17
17
  service.connection = self
18
- service.url = url
18
+ service.url = json_item["service"]["url"]
19
19
  service
20
20
  end
21
21
  end
@@ -175,7 +175,11 @@ class TresfiestasFake
175
175
  disable :show_exceptions
176
176
 
177
177
  get '/api/1/register_a_new_service' do
178
- TresfiestasFake.services.values.map{|v| {"service" => v }}.to_json
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!
@@ -1,5 +1,5 @@
1
1
  module EY
2
2
  module ServicesAPI
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -84,11 +84,12 @@ describe EY::ServicesAPI::Service do
84
84
  }.should raise_error EY::ServicesAPI::Connection::NotFound
85
85
  end
86
86
 
87
- describe "with an AWSM account id" do
88
- before do
89
-
90
- end
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.3
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-21 00:00:00.000000000 Z
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: &2170005320 !ruby/object:Gem::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: *2170005320
24
+ version_requirements: *2179703440
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &2170004660 !ruby/object:Gem::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: *2170004660
35
+ version_requirements: *2179703020
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: ey_api_hmac
38
- requirement: &2170003780 !ruby/object:Gem::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: *2170003780
46
+ version_requirements: *2179718960
47
47
  description: API for Partner Services (talks to services.engineyard.com)
48
48
  email:
49
49
  - jacob@engineyard.com