cfoundry 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66,7 +66,8 @@ module CFoundry::V1
66
66
  @base.system_services.each do |type, vendors|
67
67
  vendors.each do |vendor, versions|
68
68
  versions.each do |num, meta|
69
- services << Service.new(vendor, meta[:description], num)
69
+ services <<
70
+ Service.new(vendor.to_s, num, meta[:description], type)
70
71
  end
71
72
  end
72
73
  end
@@ -79,7 +80,8 @@ module CFoundry::V1
79
80
  runtimes = []
80
81
 
81
82
  @base.system_runtimes.each do |name, meta|
82
- runtimes << Runtime.new(name.to_s, meta[:version])
83
+ runtimes <<
84
+ Runtime.new(name.to_s, meta[:version], meta[:debug_modes])
83
85
  end
84
86
 
85
87
  runtimes
@@ -189,7 +191,7 @@ module CFoundry::V1
189
191
  # Retrieve all of the current user's services.
190
192
  def service_instances
191
193
  @base.services.collect do |json|
192
- Service.new(json[:name], self, json)
194
+ ServiceInstance.new(json[:name], self, json)
193
195
  end
194
196
  end
195
197
 
@@ -1,10 +1,11 @@
1
1
  module CFoundry::V1
2
2
  class Runtime
3
- attr_accessor :name, :description
3
+ attr_accessor :name, :description, :debug_modes
4
4
 
5
- def initialize(name, description = nil)
5
+ def initialize(name, description = nil, debug_modes = nil)
6
6
  @name = name
7
7
  @description = description
8
+ @debug_modes = debug_modes
8
9
  end
9
10
 
10
11
  def apps
@@ -1,11 +1,12 @@
1
1
  module CFoundry::V1
2
2
  class Service
3
- attr_accessor :label, :description, :version
3
+ attr_accessor :label, :version, :description, :type
4
4
 
5
- def initialize(label, description = nil, version = nil)
5
+ def initialize(label, version = nil, description = nil, type = nil)
6
6
  @label = label
7
7
  @description = description
8
8
  @version = version
9
+ @type = nil
9
10
  end
10
11
 
11
12
  def provider
@@ -7,7 +7,7 @@ module CFoundry::V1
7
7
  # changes.
8
8
  class ServiceInstance
9
9
  # Service name.
10
- attr_reader :name
10
+ attr_accessor :name
11
11
 
12
12
  # Service type (e.g. key-value).
13
13
  attr_accessor :type
@@ -176,9 +176,5 @@ module CFoundry::V2
176
176
 
177
177
  alias :spaces :app_spaces
178
178
  alias :space :app_space
179
-
180
- alias :system_frameworks :frameworks
181
- alias :system_runtimes :runtimes
182
- alias :system_services :services
183
179
  end
184
180
  end
@@ -1,4 +1,4 @@
1
1
  module CFoundry # :nodoc:
2
2
  # CFoundry library version number.
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci