cfoundry 4.0.2.rc3 → 4.0.2.rc4

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,9 @@ require "cfoundry/v2/model"
3
3
  module CFoundry::V2
4
4
  class Organization < Model
5
5
  attribute :name, :string
6
+ attribute :billing_enabled, :boolean
7
+ attribute :status, :string
8
+
6
9
  to_many :spaces
7
10
  to_many :domains
8
11
  to_many :users
@@ -11,7 +14,6 @@ module CFoundry::V2
11
14
  to_many :auditors, :as => :user
12
15
 
13
16
  to_one :quota_definition
14
- attribute :billing_enabled, :boolean
15
17
 
16
18
  queryable_by :name, :space_guid, :user_guid, :manager_guid,
17
19
  :billing_manager_guid, :auditor_guid
@@ -1,4 +1,4 @@
1
1
  module CFoundry # :nodoc:
2
2
  # CFoundry library version number.
3
- VERSION = "4.0.2.rc3".freeze
3
+ VERSION = "4.0.2.rc4".freeze
4
4
  end
@@ -1,6 +1,7 @@
1
1
  FactoryGirl.define do
2
2
  factory :organization, :class => CFoundry::V2::Organization do
3
3
  sequence(:guid) { |n| "organization-guid-#{n}" }
4
+ status "active"
4
5
 
5
6
  ignore do
6
7
  client { FactoryGirl.build(:client) }
@@ -8,4 +9,4 @@ FactoryGirl.define do
8
9
 
9
10
  initialize_with { new(guid, client) }
10
11
  end
11
- end
12
+ end
@@ -7,6 +7,7 @@
7
7
  },
8
8
  "entity": {
9
9
  "name": "organization-name-1",
10
+ "status": "active",
10
11
  "spaces_url": "/v2/organizations/organization-id-1/spaces",
11
12
  "spaces": [
12
13
  {
@@ -13,6 +13,7 @@
13
13
  },
14
14
  "entity": {
15
15
  "name": "organization-name-1",
16
+ "status": "active",
16
17
  "spaces": [
17
18
  {
18
19
  "metadata": {
@@ -70,6 +71,7 @@
70
71
  },
71
72
  "entity": {
72
73
  "name": "organization-name-2",
74
+ "status": "active",
73
75
  "spaces": [
74
76
  {
75
77
  "metadata": {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfoundry
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.2.rc3
4
+ version: 4.0.2.rc4
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -422,7 +422,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
422
422
  version: '0'
423
423
  segments:
424
424
  - 0
425
- hash: 4033835208179729457
425
+ hash: 1435326454035257909
426
426
  required_rubygems_version: !ruby/object:Gem::Requirement
427
427
  none: false
428
428
  requirements: