cfoundry 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,13 +39,27 @@ module CFoundry
39
39
  end
40
40
 
41
41
  def system_services
42
- @rest.system_services
42
+ services = {}
43
+
44
+ @rest.system_services.each do |type, vendors|
45
+ vendors.each do |vendor, versions|
46
+ services[vendor] =
47
+ { :type => type,
48
+ :versions => versions.keys,
49
+ :description => versions.values[0]["description"],
50
+ :vendor => vendor
51
+ }
52
+ end
53
+ end
54
+
55
+ services
43
56
  end
44
57
 
45
58
  def system_runtimes
46
59
  @rest.system_runtimes
47
60
  end
48
61
 
62
+
49
63
  # Users
50
64
  def users
51
65
  @rest.users.collect do |json|
@@ -1,3 +1,3 @@
1
1
  module CFoundry
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfoundry
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
9
8
  - 2
10
- version: 0.1.2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-23 00:00:00 Z
18
+ date: 2012-05-31 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rest-client
@@ -105,18 +105,18 @@ extra_rdoc_files: []
105
105
  files:
106
106
  - LICENSE
107
107
  - Rakefile
108
+ - lib/cfoundry/app.rb
109
+ - lib/cfoundry/client.rb
108
110
  - lib/cfoundry/errors.rb
109
111
  - lib/cfoundry/restclient.rb
110
- - lib/cfoundry/client.rb
111
- - lib/cfoundry/zip.rb
112
- - lib/cfoundry/app.rb
113
112
  - lib/cfoundry/service.rb
114
- - lib/cfoundry/version.rb
115
113
  - lib/cfoundry/user.rb
114
+ - lib/cfoundry/version.rb
115
+ - lib/cfoundry/zip.rb
116
116
  - lib/cfoundry.rb
117
117
  - spec/client_spec.rb
118
- - spec/Rakefile
119
118
  - spec/helpers.rb
119
+ - spec/Rakefile
120
120
  homepage: http://cloudfoundry.com/
121
121
  licenses: []
122
122
 
@@ -146,11 +146,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  requirements: []
147
147
 
148
148
  rubyforge_project: cfoundry
149
- rubygems_version: 1.8.24
149
+ rubygems_version: 1.8.23
150
150
  signing_key:
151
151
  specification_version: 3
152
152
  summary: High-level library for working with the Cloud Foundry API.
153
153
  test_files:
154
154
  - spec/client_spec.rb
155
- - spec/Rakefile
156
155
  - spec/helpers.rb
156
+ - spec/Rakefile