cfoundry 4.7.1 → 4.7.2.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -107,7 +107,14 @@ module CFoundry
107
107
  :http_proxy => @http_proxy,
108
108
  :https_proxy => @https_proxy
109
109
  )
110
- @token_issuer.logger.level = @trace ? Logger::Severity::TRACE : 1
110
+
111
+ if @trace
112
+ @token_issuer.logger = CF::UAA::Util.default_logger(:trace, STDERR)
113
+ CF::UAA::Util.default_logger(nil, STDOUT)
114
+ else
115
+ @token_issuer.logger.level = Logger::INFO
116
+ end
117
+
111
118
  @token_issuer
112
119
  end
113
120
 
@@ -1,4 +1,4 @@
1
1
  module CFoundry # :nodoc:
2
2
  # CFoundry library version number.
3
- VERSION = "4.7.1".freeze
3
+ VERSION = "4.7.2.rc1".freeze
4
4
  end
@@ -375,6 +375,16 @@ EOF
375
375
  expect(uaa.send(:token_issuer).logger.level).to eq -1
376
376
  end
377
377
 
378
+ it "sets the log device to STDERR if #trace is true" do
379
+ uaa.trace = true
380
+ expect(uaa.send(:token_issuer).logger.send(:instance_variable_get, :@logdev).dev).to eq STDERR
381
+ end
382
+
383
+ it "sets the log device to STDOUT if #trace is false" do
384
+ uaa.trace = false
385
+ expect(uaa.send(:token_issuer).logger.send(:instance_variable_get, :@logdev).dev).to eq STDOUT
386
+ end
387
+
378
388
  it "has logging level 1 if #trace is false" do
379
389
  uaa.trace = false
380
390
  expect(uaa.send(:token_issuer).logger.level).to eq 1
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: 4.7.1
5
- prerelease:
4
+ version: 4.7.2.rc1
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Cloud Foundry Team
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-12-31 00:00:00.000000000 Z
13
+ date: 2014-01-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel
@@ -41,7 +41,7 @@ dependencies:
41
41
  requirements:
42
42
  - - ~>
43
43
  - !ruby/object:Gem::Version
44
- version: 2.0.0
44
+ version: 2.0.1
45
45
  type: :runtime
46
46
  prerelease: false
47
47
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  requirements:
50
50
  - - ~>
51
51
  - !ruby/object:Gem::Version
52
- version: 2.0.0
52
+ version: 2.0.1
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: multi_json
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -475,9 +475,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
475
475
  required_rubygems_version: !ruby/object:Gem::Requirement
476
476
  none: false
477
477
  requirements:
478
- - - ! '>='
478
+ - - ! '>'
479
479
  - !ruby/object:Gem::Version
480
- version: '0'
480
+ version: 1.3.1
481
481
  requirements: []
482
482
  rubyforge_project: cfoundry
483
483
  rubygems_version: 1.8.23