cfoundry 2.3.6.rc2 → 2.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cfoundry/client.rb +5 -0
- data/lib/cfoundry/version.rb +1 -1
- data/spec/cfoundry/client_spec.rb +1 -1
- metadata +10 -4
data/lib/cfoundry/client.rb
CHANGED
@@ -23,6 +23,11 @@ require "cfoundry/v2/client"
|
|
23
23
|
module CFoundry
|
24
24
|
class Client < BaseClient
|
25
25
|
def self.new(*args)
|
26
|
+
puts "DEPRECATION WARNING: Please use CFoundry::Client.get instead of CFoundry::Client.new"
|
27
|
+
get(*args)
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.get(*args)
|
26
31
|
CFoundry::V2::Client.new(*args).tap { |client| client.info }
|
27
32
|
end
|
28
33
|
end
|
data/lib/cfoundry/version.rb
CHANGED
@@ -5,7 +5,7 @@ describe CFoundry::Client do
|
|
5
5
|
CFoundry::V2::Client.any_instance.stub(:info)
|
6
6
|
end
|
7
7
|
|
8
|
-
subject { CFoundry::Client.
|
8
|
+
subject { CFoundry::Client.get('http://example.com') }
|
9
9
|
|
10
10
|
it "returns a v2 client" do
|
11
11
|
subject.should be_a(CFoundry::V2::Client)
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfoundry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.6
|
5
|
-
prerelease:
|
4
|
+
version: 2.3.6
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Cloud Foundry Team
|
@@ -414,12 +414,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
414
414
|
- - ! '>='
|
415
415
|
- !ruby/object:Gem::Version
|
416
416
|
version: '0'
|
417
|
+
segments:
|
418
|
+
- 0
|
419
|
+
hash: 1225094362336232528
|
417
420
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
418
421
|
none: false
|
419
422
|
requirements:
|
420
|
-
- - ! '
|
423
|
+
- - ! '>='
|
421
424
|
- !ruby/object:Gem::Version
|
422
|
-
version:
|
425
|
+
version: '0'
|
426
|
+
segments:
|
427
|
+
- 0
|
428
|
+
hash: 1225094362336232528
|
423
429
|
requirements: []
|
424
430
|
rubyforge_project: cfoundry
|
425
431
|
rubygems_version: 1.8.25
|