cfoundry 4.5.1 → 4.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -92,6 +92,7 @@ module CFoundry::V2
92
92
  paginated[:resources].each &block
93
93
 
94
94
  while next_page = paginated[:next_url]
95
+ next_page = URI.escape(paginated[:next_url])
95
96
  paginated = get(next_page, :accept => :json)
96
97
  paginated[:resources].each &block
97
98
  end
@@ -1,4 +1,4 @@
1
1
  module CFoundry # :nodoc:
2
2
  # CFoundry library version number.
3
- VERSION = "4.5.1".freeze
3
+ VERSION = "4.5.2".freeze
4
4
  end
@@ -398,16 +398,17 @@ module CFoundry
398
398
  describe "for_each" do
399
399
 
400
400
  before do
401
- WebMock.stub_request(:get, /v2\/test_models/).to_return(:body => {
402
- "prev_url" => nil,
403
- "next_url" => "/v2/test_models?&page=2&results-per-page=50",
404
- "resources" => [{:metadata => {:guid => '1'}}, {:metadata => {:guid => '2'}}]
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
- "prev_url" => nil,
409
- "next_url" => nil,
410
- "resources" => [{:metadata => {:guid => '3'}}]
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.1
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-03 00:00:00.000000000 Z
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: 3284865621256970382
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: 3284865621256970382
474
+ hash: 2988206602408192095
475
475
  requirements: []
476
476
  rubyforge_project: cfoundry
477
- rubygems_version: 1.8.23
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.