cfoundry 4.3.7 → 4.3.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZjBmNGMzMDM1NTMwMzVmZGY2MjIyMzA5NDBkZDdiODEzZjY4OGM5MA==
5
+ data.tar.gz: !binary |-
6
+ NDM3ZWQ1MmJhZjIwN2M2ZjIwZTVkYWM1Zjc4ZmVhYmVhNWZlMzBlMQ==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ ZGI3N2Y4YjY4NTAwZWExMDZlYmQwNGI3YjI4Y2E4NGMxNzIzOWMzZTY5YzQ0
10
+ NzQ4NWVhMjg3NDE5MjVkNzNhN2FmNGI0ZWMyNjVmYTE0MThlYzJlYzUxMDA3
11
+ ZDA2YjQ1ZGE5YTRlZmRiZmI3ZjY4NmFkZGEzNzMzZGFmYWFiNTM=
12
+ data.tar.gz: !binary |-
13
+ YzkyN2JmMDRmNWQxZDVhMmZlMzJmNzVlODM0ZTM2NGFkN2FhNzlmNDQ1YmM5
14
+ ZTJlMjcxNWZkNmY5YzE1M2IyZmU2M2U3MDYyYWNiN2IxMWU5NjdmZDBmMzYx
15
+ MjM5MTFiZGMyODMxM2RhNzgyMTQ0ODQ0ZjMwMDQ4ODM0N2U5MDc=
@@ -3,6 +3,7 @@ require "cc_api_stub/organizations"
3
3
  require "cc_api_stub/login"
4
4
  require "cc_api_stub/applications"
5
5
  require "cc_api_stub/domains"
6
+ require "cc_api_stub/events"
6
7
  require "cc_api_stub/frameworks"
7
8
  require "cc_api_stub/organization_users"
8
9
  require "cc_api_stub/routes"
@@ -14,4 +15,4 @@ require "cc_api_stub/spaces"
14
15
  require "cc_api_stub/users"
15
16
 
16
17
  module CcApiStub
17
- end
18
+ end
@@ -0,0 +1,11 @@
1
+ module CcApiStub
2
+ module Events
3
+ extend Helper
4
+
5
+ private
6
+
7
+ def self.collection_endpoint
8
+ %r{/v2/events}
9
+ end
10
+ end
11
+ end
@@ -19,6 +19,7 @@ require "cfoundry/v2/route"
19
19
  require "cfoundry/v2/stack"
20
20
  require "cfoundry/v2/quota_definition"
21
21
  require "cfoundry/v2/app_event"
22
+ require "cfoundry/v2/event"
22
23
  require "cfoundry/v2/service_broker"
23
24
 
24
25
  require "cfoundry/v2/base"
@@ -0,0 +1,17 @@
1
+ require "cfoundry/v2/model"
2
+
3
+ module CFoundry::V2
4
+ class Event < Model
5
+ attribute :actee, :string
6
+ attribute :actee_type, :string
7
+ attribute :actor, :string
8
+ attribute :actor_type, :string
9
+ attribute :organization_guid, :string
10
+ attribute :space_guid, :string
11
+ attribute :timestamp, :string
12
+ attribute :type, :string
13
+ attribute :metadata, Hash
14
+
15
+ queryable_by :type, :timestamp
16
+ end
17
+ end
@@ -5,6 +5,7 @@ require "cfoundry/v2/model_magic/attribute"
5
5
  require "cfoundry/v2/model_magic/to_one"
6
6
  require "cfoundry/v2/model_magic/to_many"
7
7
  require "cfoundry/v2/model_magic/queryable_by"
8
+ require "cfoundry/v2/model_magic/query_value_helper"
8
9
 
9
10
  module CFoundry::V2
10
11
  # object name -> module containing query methods
@@ -27,6 +28,7 @@ module CFoundry::V2
27
28
  include ModelMagic::ToOne
28
29
  include ModelMagic::ToMany
29
30
  include ModelMagic::QueryableBy
31
+ include ModelMagic::QueryValueHelper
30
32
 
31
33
  attr_reader :scoped_organization, :scoped_space
32
34
 
@@ -70,6 +72,22 @@ module CFoundry::V2
70
72
  @scoped_space = relation
71
73
  end
72
74
 
75
+ # To query a single attribute using equality,
76
+ # you can use :query => ["attribute", "value"]
77
+ #
78
+ # To query multiple attributes, you can specify
79
+ # a hash of attributes to values, where the values
80
+ # can be:
81
+ # A single value with equality
82
+ # :query => {attr1: 'value1', attr2: 'value2'}
83
+ # Multiple values for an attribute
84
+ # :query => {attr1: ['value1', 'value2']}
85
+ # Complex comparisons i.e ('<', '>', '<=', '>=')
86
+ # :query => {attr1: QueryValue.new(comparator: '>', value: 'VALUE')}
87
+ #
88
+ # QueryValue can be found in CFoundry::V2::ModelMagic::QueryValueHelper
89
+ # You can include this module in your class to access QueryValue directly
90
+ # priting is handled by #to_s
73
91
  def self.params_from(args)
74
92
  options, _ = args
75
93
  options ||= {}
@@ -81,7 +99,11 @@ module CFoundry::V2
81
99
  when :depth
82
100
  params[:"inline-relations-depth"] = v
83
101
  when :query
84
- params[:q] = v.join(":")
102
+ if v.is_a? Array
103
+ params[:q] = v.join(":")
104
+ else
105
+ params[:q] = query_from_hash(v)
106
+ end
85
107
  when :user_provided
86
108
  params[:"return_user_provided_service_instances"] = v
87
109
  end
@@ -89,5 +111,19 @@ module CFoundry::V2
89
111
 
90
112
  params
91
113
  end
114
+
115
+ def self.query_from_hash(query_params)
116
+ query_params.collect do |key, value|
117
+ case value
118
+ when Array
119
+ qv = QueryValue.new(:comp => 'IN', :value => value)
120
+ "#{key}#{qv}"
121
+ when QueryValue
122
+ "#{key}#{value}"
123
+ else
124
+ "#{key}:#{value}"
125
+ end
126
+ end.join(";")
127
+ end
92
128
  end
93
129
  end
@@ -0,0 +1,33 @@
1
+ module CFoundry::V2
2
+ module ModelMagic
3
+ module QueryValueHelper
4
+ class QueryValue
5
+ attr_accessor :comparator, :value
6
+ def initialize(params)
7
+ self.comparator = params[:comparator] || params[:comp] || ':'
8
+ self.value = params[:value]
9
+ end
10
+
11
+ def to_s
12
+ "#{comparator_string}#{value_string}"
13
+ end
14
+
15
+ def comparator_string
16
+ if comparator.downcase == 'in' || value.is_a?(Array)
17
+ " IN "
18
+ else
19
+ comparator
20
+ end
21
+ end
22
+
23
+ def value_string
24
+ if value.is_a? Array
25
+ value.join(",")
26
+ else
27
+ value
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -1,4 +1,4 @@
1
1
  module CFoundry # :nodoc:
2
2
  # CFoundry library version number.
3
- VERSION = "4.3.7".freeze
3
+ VERSION = "4.3.8".freeze
4
4
  end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+ require 'net/http'
3
+ require 'uri'
4
+
5
+ describe CcApiStub::Events do
6
+ describe ".succeed_to_load_many" do
7
+ let(:url) { "http://example.com/v2/events" }
8
+ subject { CcApiStub::Events.succeed_to_load_many }
9
+
10
+ it_behaves_like "a stubbed get request"
11
+ end
12
+ end
@@ -0,0 +1,15 @@
1
+ require "spec_helper"
2
+
3
+ module CFoundry
4
+ module V2
5
+ describe Event do
6
+ let(:event) { build(:event, :app_update, changes: ['STARTED', 'STOPPED']) }
7
+
8
+ describe "#metadata" do
9
+ it "contains the changes" do
10
+ expect(event.metadata[:changes]).to eq(['STARTED', 'STOPPED'])
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,31 @@
1
+ require "spec_helper"
2
+
3
+ module CFoundry
4
+ module V2
5
+ describe ModelMagic do
6
+ describe "params_from" do
7
+ describe "query" do
8
+ it "filters by a single key and value" do
9
+ params = ModelMagic.params_from({query: ['key', 'value']})
10
+ expect(params[:q]).to eq("key:value")
11
+ end
12
+
13
+ it "filters by a list of values for a key" do
14
+ params = ModelMagic.params_from({query: {key: ['value1', 'value2']}})
15
+ expect(params[:q]).to eq("key IN value1,value2")
16
+ end
17
+
18
+ it "filters by complex QueryValue" do
19
+ params = ModelMagic.params_from({query: {key: ModelMagic::QueryValue.new(comparator: '>', value:'value1')}})
20
+ expect(params[:q]).to eq("key>value1")
21
+ end
22
+
23
+ it "filters by multiple fields" do
24
+ params = ModelMagic.params_from({query: {key1: ModelMagic::QueryValue.new(comparator: '>=', value:'value1'), key2: 'value2', key3: ['value3a', 'value3b']}})
25
+ expect(params[:q]).to eq("key1>=value1;key2:value2;key3 IN value3a,value3b")
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,52 @@
1
+ FactoryGirl.define do
2
+ factory :event, :class => CFoundry::V2::Event do
3
+ sequence(:guid) { |n| "event-guid-#{n}" }
4
+ timestamp '2013-01-01T12:00:00+00:00'
5
+ actee 'app-guid-1'
6
+ actee_type 'app'
7
+ actor 'actor-guid-1'
8
+ actor_type 'user'
9
+ organization_guid 'organization-guid-1'
10
+ space_guid 'space-guid-1'
11
+ type ''
12
+ metadata {}
13
+
14
+ initialize_with do
15
+ new(guid, build(:client), {
16
+ entity: {
17
+ type: type,
18
+ actee: actee,
19
+ actee_type: actee_type,
20
+ actor: actor,
21
+ actor_type: actor_type,
22
+ organization_guid: organization_guid,
23
+ space_guid: space_guid,
24
+ timestamp: timestamp,
25
+ metadata: metadata
26
+ }
27
+ })
28
+ end
29
+
30
+ trait :app_update do
31
+ type 'audit.app.update'
32
+
33
+ changes do
34
+ {state: ['STOPPED', 'STARTED']}
35
+ end
36
+
37
+ metadata do
38
+ {
39
+ changes: changes,
40
+ footprints: {
41
+ memory: 128,
42
+ instances: 1
43
+ }
44
+ }
45
+ end
46
+ end
47
+
48
+ trait :app_delete do
49
+ type 'audit.app.delete'
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,279 @@
1
+ {
2
+ "total_results": 11,
3
+ "total_pages": 1,
4
+ "prev_url": null,
5
+ "next_url": null,
6
+ "resources": [
7
+ {
8
+ "metadata": {
9
+ "guid": "event-1"
10
+ },
11
+ "entity": {
12
+ "organization_guid": "organization-id-1",
13
+ "type": "audit.app.update",
14
+ "actor": "user-id",
15
+ "actor_type": "user",
16
+ "actee": "application-id-1",
17
+ "actee_type": "app",
18
+ "timestamp": "2012-11-01T12:00:00+00:00",
19
+ "metadata": {
20
+ "changes": {
21
+ "state": [
22
+ "STOPPED",
23
+ "STARTED"
24
+ ]
25
+ },
26
+ "footprints": {
27
+ "memory": 1024,
28
+ "instances": 2
29
+ }
30
+ },
31
+ "space_guid": "space-id-1"
32
+ }
33
+ },
34
+ {
35
+ "metadata": {
36
+ "guid": "event-2"
37
+ },
38
+ "entity": {
39
+ "organization_guid": "organization-id-2",
40
+ "type": "audit.app.update",
41
+ "actor": "user-id",
42
+ "actor_type": "user",
43
+ "actee": "application-id-2",
44
+ "actee_type": "app",
45
+ "timestamp": "2012-11-01T12:01:22+00:00",
46
+ "metadata": {
47
+ "changes": {
48
+ "state": [
49
+ "STOPPED",
50
+ "STARTED"
51
+ ]
52
+ },
53
+ "footprints": {
54
+ "memory": 2048,
55
+ "instances": 1
56
+ }
57
+ },
58
+ "space_guid": "space-id-2"
59
+ }
60
+ },
61
+ {
62
+ "metadata": {
63
+ "guid": "event-3"
64
+ },
65
+ "entity": {
66
+ "organization_guid": "organization-id-1",
67
+ "type": "audit.app.update",
68
+ "actor": "user-id",
69
+ "actor_type": "user",
70
+ "actee": "application-id-1",
71
+ "actee_type": "app",
72
+ "timestamp": "2012-11-01T12:03:00+00:00",
73
+ "metadata": {
74
+ "changes": {
75
+ },
76
+ "footprints": {
77
+ "memory": 1024,
78
+ "instances": 2
79
+ }
80
+ },
81
+ "space_guid": "space-id-1"
82
+ }
83
+ },
84
+ {
85
+ "metadata": {
86
+ "guid": "event-4"
87
+ },
88
+ "entity": {
89
+ "organization_guid": "organization-id-1",
90
+ "type": "audit.app.update",
91
+ "actor": "user-id",
92
+ "actor_type": "user",
93
+ "actee": "application-id-1",
94
+ "actee_type": "app",
95
+ "timestamp": "2012-11-01T12:04:00+00:00",
96
+ "metadata": {
97
+ "changes": {
98
+ "state": [
99
+ "STARTED",
100
+ "STOPPED"
101
+ ]
102
+ },
103
+ "footprints": {
104
+ "memory": 1024,
105
+ "instances": 2
106
+ }
107
+ },
108
+ "space_guid": "space-id-1"
109
+ }
110
+ },
111
+ {
112
+ "metadata": {
113
+ "guid": "event-6"
114
+ },
115
+ "entity": {
116
+ "organization_guid": "organization-id-1",
117
+ "type": "audit.app.update",
118
+ "actor": "user-id",
119
+ "actor_type": "user",
120
+ "actee": "application-id-1",
121
+ "actee_type": "app",
122
+ "timestamp": "2012-11-01T12:05:00+00:00",
123
+ "metadata": {
124
+ "changes": {
125
+ "state": [
126
+ "STOPPED",
127
+ "STARTED"
128
+ ]
129
+ },
130
+ "footprints": {
131
+ "memory": 1024,
132
+ "instances": 2
133
+ }
134
+ },
135
+ "space_guid": "space-id-1"
136
+ }
137
+ },
138
+ {
139
+ "metadata": {
140
+ "guid": "event-7"
141
+ },
142
+ "entity": {
143
+ "organization_guid": "organization-id-1",
144
+ "type": "audit.app.update",
145
+ "actor": "user-id",
146
+ "actor_type": "user",
147
+ "actee": "application-id-1",
148
+ "actee_type": "app",
149
+ "timestamp": "2012-11-01T12:06:00+00:00",
150
+ "metadata": {
151
+ "changes": {
152
+ "state": [
153
+ "STARTED",
154
+ "STOPPED"
155
+ ]
156
+ },
157
+ "footprints": {
158
+ "memory": 1024,
159
+ "instances": 2
160
+ }
161
+ },
162
+ "space_guid": "space-id-1"
163
+ }
164
+ },
165
+ {
166
+ "metadata": {
167
+ "guid": "event-8"
168
+ },
169
+ "entity": {
170
+ "organization_guid": "organization-id-3",
171
+ "type": "audit.app.update",
172
+ "actor": "user-id",
173
+ "actor_type": "user",
174
+ "actee": "application-id-3",
175
+ "actee_type": "app",
176
+ "timestamp": "2012-11-01T12:07:00+00:00",
177
+ "metadata": {
178
+ "changes": {
179
+ "state": [
180
+ "STOPPED",
181
+ "STARTED"
182
+ ]
183
+ },
184
+ "footprints": {
185
+ "memory": 1024,
186
+ "instances": 2
187
+ }
188
+ },
189
+ "space_guid": "space-id-3"
190
+ }
191
+ },
192
+ {
193
+ "metadata": {
194
+ "guid": "event-9"
195
+ },
196
+ "entity": {
197
+ "organization_guid": "organization-id-3",
198
+ "type": "audit.app.update",
199
+ "actor": "user-id",
200
+ "actor_type": "user",
201
+ "actee": "application-id-3",
202
+ "actee_type": "app",
203
+ "timestamp": "2012-11-01T12:07:30+00:00",
204
+ "metadata": {
205
+ "changes": {
206
+ "state": [
207
+ "STARTED",
208
+ "STOPPED"
209
+ ]
210
+ },
211
+ "footprints": {
212
+ "memory": 1024,
213
+ "instances": 2
214
+ }
215
+ },
216
+ "space_guid": "space-id-3"
217
+ }
218
+ },
219
+ {
220
+ "metadata": {
221
+ "guid": "event-10"
222
+ },
223
+ "entity": {
224
+ "organization_guid": "organization-id-3",
225
+ "type": "audit.app.delete",
226
+ "actor": "user-id",
227
+ "actor_type": "user",
228
+ "actee": "application-id-3",
229
+ "actee_type": "app",
230
+ "timestamp": "2012-11-01T12:08:00+00:00",
231
+ "metadata": {},
232
+ "space_guid": "space-id-3"
233
+ }
234
+ },
235
+ {
236
+ "metadata": {
237
+ "guid": "event-11"
238
+ },
239
+ "entity": {
240
+ "organization_guid": "organization-id-4",
241
+ "type": "audit.app.update",
242
+ "actor": "user-id",
243
+ "actor_type": "user",
244
+ "actee": "application-id-4",
245
+ "actee_type": "app",
246
+ "timestamp": "2012-11-01T12:09:00+00:00",
247
+ "metadata": {
248
+ "changes": {
249
+ "state": [
250
+ "STOPPED",
251
+ "STARTED"
252
+ ]
253
+ },
254
+ "footprints": {
255
+ "memory": 1024,
256
+ "instances": 2
257
+ }
258
+ },
259
+ "space_guid": "space-id-4"
260
+ }
261
+ },
262
+ {
263
+ "metadata": {
264
+ "guid": "event-12"
265
+ },
266
+ "entity": {
267
+ "organization_guid": "organization-id-4",
268
+ "type": "audit.app.delete",
269
+ "actor": "user-id",
270
+ "actor_type": "user",
271
+ "actee": "application-id-4",
272
+ "actee_type": "app",
273
+ "timestamp": "2012-11-01T12:10:00+00:00",
274
+ "metadata": {},
275
+ "space_guid": "space-id-4"
276
+ }
277
+ }
278
+ ]
279
+ }
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfoundry
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.7
5
- prerelease:
4
+ version: 4.3.8
6
5
  platform: ruby
7
6
  authors:
8
7
  - Cloud Foundry Team
@@ -10,12 +9,11 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-09-12 00:00:00.000000000 Z
12
+ date: 2013-09-18 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: activemodel
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - <
21
19
  - !ruby/object:Gem::Version
@@ -26,7 +24,6 @@ dependencies:
26
24
  type: :runtime
27
25
  prerelease: false
28
26
  version_requirements: !ruby/object:Gem::Requirement
29
- none: false
30
27
  requirements:
31
28
  - - <
32
29
  - !ruby/object:Gem::Version
@@ -37,7 +34,6 @@ dependencies:
37
34
  - !ruby/object:Gem::Dependency
38
35
  name: cf-uaa-lib
39
36
  requirement: !ruby/object:Gem::Requirement
40
- none: false
41
37
  requirements:
42
38
  - - ~>
43
39
  - !ruby/object:Gem::Version
@@ -45,7 +41,6 @@ dependencies:
45
41
  type: :runtime
46
42
  prerelease: false
47
43
  version_requirements: !ruby/object:Gem::Requirement
48
- none: false
49
44
  requirements:
50
45
  - - ~>
51
46
  - !ruby/object:Gem::Version
@@ -53,7 +48,6 @@ dependencies:
53
48
  - !ruby/object:Gem::Dependency
54
49
  name: multi_json
55
50
  requirement: !ruby/object:Gem::Requirement
56
- none: false
57
51
  requirements:
58
52
  - - ~>
59
53
  - !ruby/object:Gem::Version
@@ -61,7 +55,6 @@ dependencies:
61
55
  type: :runtime
62
56
  prerelease: false
63
57
  version_requirements: !ruby/object:Gem::Requirement
64
- none: false
65
58
  requirements:
66
59
  - - ~>
67
60
  - !ruby/object:Gem::Version
@@ -69,7 +62,6 @@ dependencies:
69
62
  - !ruby/object:Gem::Dependency
70
63
  name: multipart-post
71
64
  requirement: !ruby/object:Gem::Requirement
72
- none: false
73
65
  requirements:
74
66
  - - ~>
75
67
  - !ruby/object:Gem::Version
@@ -77,7 +69,6 @@ dependencies:
77
69
  type: :runtime
78
70
  prerelease: false
79
71
  version_requirements: !ruby/object:Gem::Requirement
80
- none: false
81
72
  requirements:
82
73
  - - ~>
83
74
  - !ruby/object:Gem::Version
@@ -85,7 +76,6 @@ dependencies:
85
76
  - !ruby/object:Gem::Dependency
86
77
  name: rubyzip
87
78
  requirement: !ruby/object:Gem::Requirement
88
- none: false
89
79
  requirements:
90
80
  - - ~>
91
81
  - !ruby/object:Gem::Version
@@ -93,7 +83,6 @@ dependencies:
93
83
  type: :runtime
94
84
  prerelease: false
95
85
  version_requirements: !ruby/object:Gem::Requirement
96
- none: false
97
86
  requirements:
98
87
  - - ~>
99
88
  - !ruby/object:Gem::Version
@@ -101,7 +90,6 @@ dependencies:
101
90
  - !ruby/object:Gem::Dependency
102
91
  name: anchorman
103
92
  requirement: !ruby/object:Gem::Requirement
104
- none: false
105
93
  requirements:
106
94
  - - ! '>='
107
95
  - !ruby/object:Gem::Version
@@ -109,7 +97,6 @@ dependencies:
109
97
  type: :development
110
98
  prerelease: false
111
99
  version_requirements: !ruby/object:Gem::Requirement
112
- none: false
113
100
  requirements:
114
101
  - - ! '>='
115
102
  - !ruby/object:Gem::Version
@@ -117,7 +104,6 @@ dependencies:
117
104
  - !ruby/object:Gem::Dependency
118
105
  name: factory_girl
119
106
  requirement: !ruby/object:Gem::Requirement
120
- none: false
121
107
  requirements:
122
108
  - - ! '>='
123
109
  - !ruby/object:Gem::Version
@@ -125,7 +111,6 @@ dependencies:
125
111
  type: :development
126
112
  prerelease: false
127
113
  version_requirements: !ruby/object:Gem::Requirement
128
- none: false
129
114
  requirements:
130
115
  - - ! '>='
131
116
  - !ruby/object:Gem::Version
@@ -133,7 +118,6 @@ dependencies:
133
118
  - !ruby/object:Gem::Dependency
134
119
  name: gem-release
135
120
  requirement: !ruby/object:Gem::Requirement
136
- none: false
137
121
  requirements:
138
122
  - - ! '>='
139
123
  - !ruby/object:Gem::Version
@@ -141,7 +125,6 @@ dependencies:
141
125
  type: :development
142
126
  prerelease: false
143
127
  version_requirements: !ruby/object:Gem::Requirement
144
- none: false
145
128
  requirements:
146
129
  - - ! '>='
147
130
  - !ruby/object:Gem::Version
@@ -149,7 +132,6 @@ dependencies:
149
132
  - !ruby/object:Gem::Dependency
150
133
  name: json_pure
151
134
  requirement: !ruby/object:Gem::Requirement
152
- none: false
153
135
  requirements:
154
136
  - - ~>
155
137
  - !ruby/object:Gem::Version
@@ -157,7 +139,6 @@ dependencies:
157
139
  type: :development
158
140
  prerelease: false
159
141
  version_requirements: !ruby/object:Gem::Requirement
160
- none: false
161
142
  requirements:
162
143
  - - ~>
163
144
  - !ruby/object:Gem::Version
@@ -165,7 +146,6 @@ dependencies:
165
146
  - !ruby/object:Gem::Dependency
166
147
  name: rake
167
148
  requirement: !ruby/object:Gem::Requirement
168
- none: false
169
149
  requirements:
170
150
  - - ! '>='
171
151
  - !ruby/object:Gem::Version
@@ -173,7 +153,6 @@ dependencies:
173
153
  type: :development
174
154
  prerelease: false
175
155
  version_requirements: !ruby/object:Gem::Requirement
176
- none: false
177
156
  requirements:
178
157
  - - ! '>='
179
158
  - !ruby/object:Gem::Version
@@ -181,7 +160,6 @@ dependencies:
181
160
  - !ruby/object:Gem::Dependency
182
161
  name: rspec
183
162
  requirement: !ruby/object:Gem::Requirement
184
- none: false
185
163
  requirements:
186
164
  - - ~>
187
165
  - !ruby/object:Gem::Version
@@ -189,7 +167,6 @@ dependencies:
189
167
  type: :development
190
168
  prerelease: false
191
169
  version_requirements: !ruby/object:Gem::Requirement
192
- none: false
193
170
  requirements:
194
171
  - - ~>
195
172
  - !ruby/object:Gem::Version
@@ -197,7 +174,6 @@ dependencies:
197
174
  - !ruby/object:Gem::Dependency
198
175
  name: shoulda-matchers
199
176
  requirement: !ruby/object:Gem::Requirement
200
- none: false
201
177
  requirements:
202
178
  - - ~>
203
179
  - !ruby/object:Gem::Version
@@ -205,7 +181,6 @@ dependencies:
205
181
  type: :development
206
182
  prerelease: false
207
183
  version_requirements: !ruby/object:Gem::Requirement
208
- none: false
209
184
  requirements:
210
185
  - - ~>
211
186
  - !ruby/object:Gem::Version
@@ -213,7 +188,6 @@ dependencies:
213
188
  - !ruby/object:Gem::Dependency
214
189
  name: timecop
215
190
  requirement: !ruby/object:Gem::Requirement
216
- none: false
217
191
  requirements:
218
192
  - - ~>
219
193
  - !ruby/object:Gem::Version
@@ -221,7 +195,6 @@ dependencies:
221
195
  type: :development
222
196
  prerelease: false
223
197
  version_requirements: !ruby/object:Gem::Requirement
224
- none: false
225
198
  requirements:
226
199
  - - ~>
227
200
  - !ruby/object:Gem::Version
@@ -229,7 +202,6 @@ dependencies:
229
202
  - !ruby/object:Gem::Dependency
230
203
  name: webmock
231
204
  requirement: !ruby/object:Gem::Requirement
232
- none: false
233
205
  requirements:
234
206
  - - ~>
235
207
  - !ruby/object:Gem::Version
@@ -237,7 +209,6 @@ dependencies:
237
209
  type: :development
238
210
  prerelease: false
239
211
  version_requirements: !ruby/object:Gem::Requirement
240
- none: false
241
212
  requirements:
242
213
  - - ~>
243
214
  - !ruby/object:Gem::Version
@@ -245,7 +216,6 @@ dependencies:
245
216
  - !ruby/object:Gem::Dependency
246
217
  name: putsinator
247
218
  requirement: !ruby/object:Gem::Requirement
248
- none: false
249
219
  requirements:
250
220
  - - ! '>='
251
221
  - !ruby/object:Gem::Version
@@ -253,7 +223,6 @@ dependencies:
253
223
  type: :development
254
224
  prerelease: false
255
225
  version_requirements: !ruby/object:Gem::Requirement
256
- none: false
257
226
  requirements:
258
227
  - - ! '>='
259
228
  - !ruby/object:Gem::Version
@@ -269,6 +238,7 @@ files:
269
238
  - Rakefile
270
239
  - lib/cc_api_stub/applications.rb
271
240
  - lib/cc_api_stub/domains.rb
241
+ - lib/cc_api_stub/events.rb
272
242
  - lib/cc_api_stub/frameworks.rb
273
243
  - lib/cc_api_stub/helper.rb
274
244
  - lib/cc_api_stub/login.rb
@@ -299,11 +269,13 @@ files:
299
269
  - lib/cfoundry/v2/base.rb
300
270
  - lib/cfoundry/v2/client.rb
301
271
  - lib/cfoundry/v2/domain.rb
272
+ - lib/cfoundry/v2/event.rb
302
273
  - lib/cfoundry/v2/managed_service_instance.rb
303
274
  - lib/cfoundry/v2/model.rb
304
275
  - lib/cfoundry/v2/model_magic/attribute.rb
305
276
  - lib/cfoundry/v2/model_magic/client_extensions.rb
306
277
  - lib/cfoundry/v2/model_magic/has_summary.rb
278
+ - lib/cfoundry/v2/model_magic/query_value_helper.rb
307
279
  - lib/cfoundry/v2/model_magic/queryable_by.rb
308
280
  - lib/cfoundry/v2/model_magic/to_many.rb
309
281
  - lib/cfoundry/v2/model_magic/to_one.rb
@@ -331,6 +303,7 @@ files:
331
303
  - vendor/errors/v2.yml
332
304
  - spec/cc_api_stub/applications_spec.rb
333
305
  - spec/cc_api_stub/domains_spec.rb
306
+ - spec/cc_api_stub/events_spec.rb
334
307
  - spec/cc_api_stub/frameworks_spec.rb
335
308
  - spec/cc_api_stub/login_spec.rb
336
309
  - spec/cc_api_stub/organization_users_spec.rb
@@ -355,11 +328,13 @@ files:
355
328
  - spec/cfoundry/v2/base_spec.rb
356
329
  - spec/cfoundry/v2/client_spec.rb
357
330
  - spec/cfoundry/v2/domain_spec.rb
331
+ - spec/cfoundry/v2/event_spec.rb
358
332
  - spec/cfoundry/v2/managed_service_instance_spec.rb
359
333
  - spec/cfoundry/v2/model_magic/attribute_spec.rb
360
334
  - spec/cfoundry/v2/model_magic/has_summary_spec.rb
361
335
  - spec/cfoundry/v2/model_magic/to_many_spec.rb
362
336
  - spec/cfoundry/v2/model_magic/to_one_spec.rb
337
+ - spec/cfoundry/v2/model_magic_spec.rb
363
338
  - spec/cfoundry/v2/model_spec.rb
364
339
  - spec/cfoundry/v2/organization_spec.rb
365
340
  - spec/cfoundry/v2/quota_definition_spec.rb
@@ -374,6 +349,7 @@ files:
374
349
  - spec/factories/apps_factory.rb
375
350
  - spec/factories/clients_factory.rb
376
351
  - spec/factories/domains_factory.rb
352
+ - spec/factories/events_factory.rb
377
353
  - spec/factories/organizations_factory.rb
378
354
  - spec/factories/quota_definitions_factory.rb
379
355
  - spec/factories/routes_factory.rb
@@ -409,6 +385,7 @@ files:
409
385
  - spec/fixtures/fake_cc_domain.json
410
386
  - spec/fixtures/fake_cc_domain_spaces.json
411
387
  - spec/fixtures/fake_cc_empty_search.json
388
+ - spec/fixtures/fake_cc_events.json
412
389
  - spec/fixtures/fake_cc_frameworks.json
413
390
  - spec/fixtures/fake_cc_managed_service_instance.json
414
391
  - spec/fixtures/fake_cc_organization.json
@@ -442,31 +419,31 @@ files:
442
419
  homepage: http://github.com/cloudfoundry/cfoundry
443
420
  licenses:
444
421
  - Apache 2.0
422
+ metadata: {}
445
423
  post_install_message:
446
424
  rdoc_options: []
447
425
  require_paths:
448
426
  - lib
449
427
  required_ruby_version: !ruby/object:Gem::Requirement
450
- none: false
451
428
  requirements:
452
429
  - - ! '>='
453
430
  - !ruby/object:Gem::Version
454
431
  version: '0'
455
432
  required_rubygems_version: !ruby/object:Gem::Requirement
456
- none: false
457
433
  requirements:
458
434
  - - ! '>='
459
435
  - !ruby/object:Gem::Version
460
436
  version: '0'
461
437
  requirements: []
462
438
  rubyforge_project: cfoundry
463
- rubygems_version: 1.8.23
439
+ rubygems_version: 2.0.7
464
440
  signing_key:
465
- specification_version: 3
441
+ specification_version: 4
466
442
  summary: High-level library for working with the Cloud Foundry API.
467
443
  test_files:
468
444
  - spec/cc_api_stub/applications_spec.rb
469
445
  - spec/cc_api_stub/domains_spec.rb
446
+ - spec/cc_api_stub/events_spec.rb
470
447
  - spec/cc_api_stub/frameworks_spec.rb
471
448
  - spec/cc_api_stub/login_spec.rb
472
449
  - spec/cc_api_stub/organization_users_spec.rb
@@ -491,11 +468,13 @@ test_files:
491
468
  - spec/cfoundry/v2/base_spec.rb
492
469
  - spec/cfoundry/v2/client_spec.rb
493
470
  - spec/cfoundry/v2/domain_spec.rb
471
+ - spec/cfoundry/v2/event_spec.rb
494
472
  - spec/cfoundry/v2/managed_service_instance_spec.rb
495
473
  - spec/cfoundry/v2/model_magic/attribute_spec.rb
496
474
  - spec/cfoundry/v2/model_magic/has_summary_spec.rb
497
475
  - spec/cfoundry/v2/model_magic/to_many_spec.rb
498
476
  - spec/cfoundry/v2/model_magic/to_one_spec.rb
477
+ - spec/cfoundry/v2/model_magic_spec.rb
499
478
  - spec/cfoundry/v2/model_spec.rb
500
479
  - spec/cfoundry/v2/organization_spec.rb
501
480
  - spec/cfoundry/v2/quota_definition_spec.rb
@@ -510,6 +489,7 @@ test_files:
510
489
  - spec/factories/apps_factory.rb
511
490
  - spec/factories/clients_factory.rb
512
491
  - spec/factories/domains_factory.rb
492
+ - spec/factories/events_factory.rb
513
493
  - spec/factories/organizations_factory.rb
514
494
  - spec/factories/quota_definitions_factory.rb
515
495
  - spec/factories/routes_factory.rb
@@ -545,6 +525,7 @@ test_files:
545
525
  - spec/fixtures/fake_cc_domain.json
546
526
  - spec/fixtures/fake_cc_domain_spaces.json
547
527
  - spec/fixtures/fake_cc_empty_search.json
528
+ - spec/fixtures/fake_cc_events.json
548
529
  - spec/fixtures/fake_cc_frameworks.json
549
530
  - spec/fixtures/fake_cc_managed_service_instance.json
550
531
  - spec/fixtures/fake_cc_organization.json