pagoda 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pagoda/cli/helpers.rb +9 -5
- data/lib/pagoda/cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc94611a3f7274ca55f382eac24d5046d8bf95a8
|
4
|
+
data.tar.gz: 7544372284da6c61088bbd753ee1ea952cb29561
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2383112bd5c4a4e6a7f4e99d0976e0790d8ac2118ddad9c40d50fa2b960c2d5a1ac6716e08e4342352f4452f458ade1eb9a57ce1daf7e3170fc84e1612feb8d1
|
7
|
+
data.tar.gz: 6511198ef920ac81aaf9b0eb2a3e955e67eb1fef3a4746a75c80144e83fae9f650b1078bf2a2b5626442e296b12de402ceaa56c58d7ee6eb40eaf74126f2b631
|
data/lib/pagoda/cli/helpers.rb
CHANGED
@@ -41,11 +41,15 @@ module Pagoda
|
|
41
41
|
|
42
42
|
def error(msg, exit=true, level=1)
|
43
43
|
STDERR.puts
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
44
|
+
begin
|
45
|
+
case msg
|
46
|
+
when Array
|
47
|
+
say("<%= color('#{msg.join("\n")}', :red)%>")
|
48
|
+
when String
|
49
|
+
say("<%= color(msg, :red)%>")
|
50
|
+
end
|
51
|
+
rescue
|
52
|
+
puts msg
|
49
53
|
end
|
50
54
|
STDERR.puts
|
51
55
|
exit 1 if exit
|
data/lib/pagoda/cli/version.rb
CHANGED