cfoundry 4.5.1 → 4.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cfoundry/v2/base.rb +1 -0
- data/lib/cfoundry/version.rb +1 -1
- data/spec/cfoundry/v2/model_spec.rb +9 -8
- metadata +5 -5
data/lib/cfoundry/v2/base.rb
CHANGED
data/lib/cfoundry/version.rb
CHANGED
@@ -398,16 +398,17 @@ module CFoundry
|
|
398
398
|
describe "for_each" do
|
399
399
|
|
400
400
|
before do
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
401
|
+
|
402
|
+
WebMock.stub_request(:get, /v2\/test_models\?inline-relations-depth=1/).to_return(:body => {
|
403
|
+
"prev_url" => nil,
|
404
|
+
"next_url" => "/v2/test_models?page=2&q=timestamp>2012-11-01T12:00:00Z&results-per-page=50",
|
405
|
+
"resources" => [{:metadata => {:guid => '1'}}, {:metadata => {:guid => '2'}}]
|
405
406
|
}.to_json).times(1)
|
406
407
|
|
407
|
-
WebMock.stub_request(:get, /v2\/test_models\?page=2&results-per-page=50/).to_return(:body => {
|
408
|
-
|
409
|
-
|
410
|
-
|
408
|
+
WebMock.stub_request(:get, /v2\/test_models\?page=2&q=timestamp%3E2012-11-01T12:00:00Z&results-per-page=50/).to_return(:body => {
|
409
|
+
"prev_url" => nil,
|
410
|
+
"next_url" => nil,
|
411
|
+
"resources" => [{:metadata => {:guid => '3'}}]
|
411
412
|
}.to_json).times(1)
|
412
413
|
end
|
413
414
|
|
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.5.
|
4
|
+
version: 4.5.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-10-
|
13
|
+
date: 2013-10-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activemodel
|
@@ -462,7 +462,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
462
462
|
version: '0'
|
463
463
|
segments:
|
464
464
|
- 0
|
465
|
-
hash:
|
465
|
+
hash: 2988206602408192095
|
466
466
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
467
467
|
none: false
|
468
468
|
requirements:
|
@@ -471,10 +471,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
471
471
|
version: '0'
|
472
472
|
segments:
|
473
473
|
- 0
|
474
|
-
hash:
|
474
|
+
hash: 2988206602408192095
|
475
475
|
requirements: []
|
476
476
|
rubyforge_project: cfoundry
|
477
|
-
rubygems_version: 1.8.
|
477
|
+
rubygems_version: 1.8.25
|
478
478
|
signing_key:
|
479
479
|
specification_version: 3
|
480
480
|
summary: High-level library for working with the Cloud Foundry API.
|