cf 4.1.0rc2 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/cf/version.rb
CHANGED
data/lib/tasks/gem_release.rake
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'active_support/core_ext'
|
2
|
+
|
1
3
|
namespace :gem do
|
2
4
|
desc "Bump gem version, push to RubyGems, push to Github, add release notes"
|
3
5
|
task :release, [:version] do |_, args|
|
@@ -5,10 +7,12 @@ namespace :gem do
|
|
5
7
|
old_version = gem_version
|
6
8
|
|
7
9
|
sh! "gem bump --version #{version} --no-commit"
|
10
|
+
|
11
|
+
print_with_purpose "Bumping to version #{gem_version}"
|
8
12
|
generate_release_notes(old_version)
|
9
13
|
sh!("git commit -m 'Bumping to version #{gem_version}.'")
|
10
|
-
|
11
|
-
|
14
|
+
sh!("git push")
|
15
|
+
sh!("gem release --tag")
|
12
16
|
end
|
13
17
|
|
14
18
|
private
|
@@ -29,6 +33,9 @@ namespace :gem do
|
|
29
33
|
end
|
30
34
|
|
31
35
|
def gem_version
|
36
|
+
silence_warnings do
|
37
|
+
load "lib/cf/version.rb"
|
38
|
+
end
|
32
39
|
Gem::Specification.load("cf.gemspec").version.to_s
|
33
40
|
end
|
34
41
|
end
|
@@ -51,7 +51,6 @@ if ENV['CF_V2_RUN_INTEGRATION']
|
|
51
51
|
guid = user.guid
|
52
52
|
client.login(username, password)
|
53
53
|
user.delete!
|
54
|
-
client.base.uaa.delete_user(guid)
|
55
54
|
|
56
55
|
BlueShell::Runner.run("#{cf_bin} login #{email} --password #{password}") do |runner|
|
57
56
|
expect(runner).to say "Authenticating... FAILED"
|
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: 4.1.
|
5
|
-
prerelease:
|
4
|
+
version: 4.1.1
|
5
|
+
prerelease:
|
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-07-
|
13
|
+
date: 2013-07-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: addressable
|
@@ -513,7 +513,6 @@ files:
|
|
513
513
|
- spec/cf/cli/app/delete_spec.rb
|
514
514
|
- spec/cf/cli/app/events_spec.rb
|
515
515
|
- spec/cf/cli/app/help_spec.rb
|
516
|
-
- spec/cf/cli/app/help_spec.rb~
|
517
516
|
- spec/cf/cli/app/instances_spec.rb
|
518
517
|
- spec/cf/cli/app/push/create_spec.rb
|
519
518
|
- spec/cf/cli/app/push/interactions_spec.rb
|
@@ -620,12 +619,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
620
619
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
621
620
|
none: false
|
622
621
|
requirements:
|
623
|
-
- - ! '
|
622
|
+
- - ! '>='
|
624
623
|
- !ruby/object:Gem::Version
|
625
|
-
version:
|
624
|
+
version: '0'
|
626
625
|
requirements: []
|
627
626
|
rubyforge_project: cf
|
628
|
-
rubygems_version: 1.8.
|
627
|
+
rubygems_version: 1.8.25
|
629
628
|
signing_key:
|
630
629
|
specification_version: 3
|
631
630
|
summary: Friendly command-line interface for Cloud Foundry.
|
@@ -690,7 +689,6 @@ test_files:
|
|
690
689
|
- spec/cf/cli/app/delete_spec.rb
|
691
690
|
- spec/cf/cli/app/events_spec.rb
|
692
691
|
- spec/cf/cli/app/help_spec.rb
|
693
|
-
- spec/cf/cli/app/help_spec.rb~
|
694
692
|
- spec/cf/cli/app/instances_spec.rb
|
695
693
|
- spec/cf/cli/app/push/create_spec.rb
|
696
694
|
- spec/cf/cli/app/push/interactions_spec.rb
|
@@ -1,72 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
module CF
|
4
|
-
module App
|
5
|
-
describe Events do
|
6
|
-
let(:global) { {} }
|
7
|
-
let(:given) { {} }
|
8
|
-
let(:inputs) { {:app => apps[0]} }
|
9
|
-
let(:apps) { [build(:app)] }
|
10
|
-
|
11
|
-
before do
|
12
|
-
inputs[:app].stub(:events) do
|
13
|
-
[double("AppEvent", {
|
14
|
-
:instance_guid => "some_guid",
|
15
|
-
:instance_index => 1,
|
16
|
-
:exit_status => -1,
|
17
|
-
:exit_description => "Something very interesting",
|
18
|
-
:timestamp => "2013-05-15 18:52:17 +0000" }),
|
19
|
-
double("AppEvent", {
|
20
|
-
:instance_guid => "some_other_guid",
|
21
|
-
:instance_index => 0,
|
22
|
-
:exit_status => 0,
|
23
|
-
:exit_description => "Something less interesting",
|
24
|
-
:timestamp => "2013-05-15 18:52:15 +0000" })]
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
subject do
|
29
|
-
capture_output { Mothership.new.invoke(:events, inputs, given, global) }
|
30
|
-
end
|
31
|
-
|
32
|
-
describe "metadata" do
|
33
|
-
let(:command) { Mothership.commands[:events] }
|
34
|
-
|
35
|
-
describe "command" do
|
36
|
-
subject { command }
|
37
|
-
its(:description) { should eq "Display application events" }
|
38
|
-
it { expect(Mothership::Help.group(:apps, :info)).to include(subject) }
|
39
|
-
end
|
40
|
-
|
41
|
-
include_examples "inputs must have descriptions"
|
42
|
-
|
43
|
-
describe "arguments" do
|
44
|
-
subject { command.arguments }
|
45
|
-
it "has arguments that are not needed with a manifest" do
|
46
|
-
should eq([:name => :app, :type => :optional, :value => nil])
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
it "prints out progress" do
|
52
|
-
subject
|
53
|
-
stdout.rewind
|
54
|
-
expect(stdout.readlines.first).to match /Getting events for #{apps.first.name}/
|
55
|
-
end
|
56
|
-
|
57
|
-
it "prints out headers" do
|
58
|
-
subject
|
59
|
-
stdout.rewind
|
60
|
-
expect(stdout.readlines[2]).to match /time\s+instance\s+index\s+description\s+exit\s+status/
|
61
|
-
end
|
62
|
-
|
63
|
-
it "prints out the events in order" do
|
64
|
-
subject
|
65
|
-
stdout.rewind
|
66
|
-
expect(stdout.readlines[3]).to match /.*2013-05-15 18:52:15 \+0000\s+0\s+Something less interesting\s+Success \(0\).*/
|
67
|
-
stdout.rewind
|
68
|
-
expect(stdout.readlines[4]).to match /.*2013-05-15 18:52:17 \+0000\s+1\s+Something very interesting\s+Failure \(-1\).*/
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|