vmc 0.4.0.beta.73 → 0.4.0.beta.74

Sign up to get free protection for your applications and to get access to all the features.
@@ -72,7 +72,13 @@ module VMC
72
72
  end
73
73
 
74
74
  unless client.logged_in?
75
- fail "Please log in with 'vmc login'."
75
+ if force?
76
+ fail "Please log in with 'vmc login'."
77
+ else
78
+ line c("Please log in with 'vmc login'.", :warning)
79
+ line
80
+ invoke :login
81
+ end
76
82
  end
77
83
 
78
84
  return unless v2?
@@ -174,6 +180,13 @@ module VMC
174
180
 
175
181
  @user_colors = super.dup
176
182
 
183
+ # most terminal schemes are stupid, so use cyan instead
184
+ @user_colors.each do |k, v|
185
+ if v == :blue
186
+ @user_colors[k] = :cyan
187
+ end
188
+ end
189
+
177
190
  if File.exists?(colors)
178
191
  YAML.load_file(colors).each do |k, v|
179
192
  @user_colors[k.to_sym] = v.to_sym
@@ -1,3 +1,3 @@
1
1
  module VMC
2
- VERSION = "0.4.0.beta.73"
2
+ VERSION = "0.4.0.beta.74"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmc
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1596901731
4
+ hash: 163758855
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
9
  - 0
10
10
  - beta
11
- - 73
12
- version: 0.4.0.beta.73
11
+ - 74
12
+ version: 0.4.0.beta.74
13
13
  platform: ruby
14
14
  authors:
15
15
  - VMware
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-10-22 00:00:00 Z
20
+ date: 2012-10-25 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: json_pure
@@ -265,12 +265,12 @@ dependencies:
265
265
  requirements:
266
266
  - - ~>
267
267
  - !ruby/object:Gem::Version
268
- hash: 115
268
+ hash: 113
269
269
  segments:
270
270
  - 0
271
271
  - 3
272
- - 48
273
- version: 0.3.48
272
+ - 49
273
+ version: 0.3.49
274
274
  type: :runtime
275
275
  version_requirements: *id015
276
276
  - !ruby/object:Gem::Dependency