cf 1.0.0 → 1.0.1.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,7 @@ module CF::Organization
27
27
  end
28
28
  end
29
29
 
30
- if client.organizations.size == 1
30
+ if client.organizations(:depth => 0).size == 1
31
31
  return unless input[:warn]
32
32
 
33
33
  line
@@ -47,7 +47,7 @@ module CF::Organization
47
47
  private
48
48
 
49
49
  def ask_organization
50
- orgs = client.organizations
50
+ orgs = client.organizations(:depth => 0)
51
51
  fail "No organizations." if orgs.empty?
52
52
 
53
53
  ask("Which organization", :choices => orgs.sort_by(&:name),
@@ -26,7 +26,7 @@ module CF::Organization
26
26
  end
27
27
 
28
28
  def ask_organization
29
- organizations = client.organizations
29
+ organizations = client.organizations(:depth => 0)
30
30
  fail "No organizations." if organizations.empty?
31
31
 
32
32
  ask("Rename which organization?", :choices => organizations.sort_by(&:name),
data/lib/cf/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module CF
2
- VERSION = "1.0.0".freeze
2
+ VERSION = "1.0.1.rc1".freeze
3
3
  end
@@ -38,9 +38,9 @@ if ENV['CF_V2_RUN_INTEGRATION']
38
38
  it "registers a new account and deletes it" do
39
39
  email = Faker::Internet.email
40
40
 
41
- BlueShell::Runner.run("#{cf_bin} register #{email} --password p") do |runner|
41
+ BlueShell::Runner.run("#{cf_bin} register #{email} --password #{password}") do |runner|
42
42
  expect(runner).to say "Confirm Password>"
43
- runner.send_keys 'p'
43
+ runner.send_keys password
44
44
  expect(runner).to say "Your password strength is: good"
45
45
  expect(runner).to say "Creating user... OK"
46
46
  expect(runner).to say "Authenticating... OK"
@@ -56,14 +56,14 @@ if ENV['CF_V2_RUN_INTEGRATION']
56
56
  #end
57
57
 
58
58
  # TODO: not this.
59
- client.login(email, "p")
59
+ client.login(email, password)
60
60
  user = client.current_user
61
61
  guid = user.guid
62
62
  client.login(username, password)
63
63
  user.delete!
64
64
  client.base.uaa.delete_user(guid)
65
65
 
66
- BlueShell::Runner.run("#{cf_bin} login #{email} --password p") do |runner|
66
+ BlueShell::Runner.run("#{cf_bin} login #{email} --password #{password}") do |runner|
67
67
  expect(runner).to say "Authenticating... FAILED"
68
68
 
69
69
  expect(runner).to say "Password>"
@@ -39,7 +39,7 @@ if ENV['CF_V2_RUN_INTEGRATION']
39
39
  #end
40
40
 
41
41
  # TODO: not this.
42
- client.login(new_user, "p")
42
+ client.login(new_user, password)
43
43
  user = client.current_user
44
44
  guid = user.guid
45
45
  client.login(username, password)
@@ -56,16 +56,16 @@ if ENV['CF_V2_RUN_INTEGRATION']
56
56
  runner.send_keys new_user
57
57
 
58
58
  expect(runner).to say "Password>"
59
- runner.send_keys "p"
59
+ runner.send_keys password
60
60
 
61
61
  expect(runner).to say "Verify Password>"
62
- runner.send_keys "p"
62
+ runner.send_keys password
63
63
 
64
64
  expect(runner).to say "Creating user... OK"
65
65
  expect(runner).to say "Adding user to #{organization}... OK"
66
66
  end
67
67
 
68
- BlueShell::Runner.run("#{cf_bin} login #{new_user} --password p") do |runner|
68
+ BlueShell::Runner.run("#{cf_bin} login #{new_user} --password #{password}") do |runner|
69
69
  expect(runner).to say "Authenticating... OK"
70
70
 
71
71
  expect(runner).to say "Space>"
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
5
- prerelease:
4
+ version: 1.0.1.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-05-06 00:00:00.000000000 Z
13
+ date: 2013-05-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: addressable
@@ -51,10 +51,10 @@ dependencies:
51
51
  requirements:
52
52
  - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
- version: 1.0.0
54
+ version: 1.1.0.rc2
55
55
  - - <
56
56
  - !ruby/object:Gem::Version
57
- version: '1.1'
57
+ version: '1.2'
58
58
  type: :runtime
59
59
  prerelease: false
60
60
  version_requirements: !ruby/object:Gem::Requirement
@@ -62,10 +62,10 @@ dependencies:
62
62
  requirements:
63
63
  - - ! '>='
64
64
  - !ruby/object:Gem::Version
65
- version: 1.0.0
65
+ version: 1.1.0.rc2
66
66
  - - <
67
67
  - !ruby/object:Gem::Version
68
- version: '1.1'
68
+ version: '1.2'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: interact
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -534,13 +534,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
534
534
  version: '0'
535
535
  segments:
536
536
  - 0
537
- hash: -2367281425600669650
537
+ hash: 1616370664200184088
538
538
  required_rubygems_version: !ruby/object:Gem::Requirement
539
539
  none: false
540
540
  requirements:
541
- - - ! '>='
541
+ - - ! '>'
542
542
  - !ruby/object:Gem::Version
543
- version: '0'
543
+ version: 1.3.1
544
544
  requirements: []
545
545
  rubyforge_project: cf
546
546
  rubygems_version: 1.8.24