apirunner 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/apirunner.gemspec +1 -1
- data/lib/result.rb +7 -5
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/apirunner.gemspec
CHANGED
data/lib/result.rb
CHANGED
@@ -70,11 +70,13 @@ class Result
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def color_print(message, color)
|
73
|
-
|
74
|
-
"<span style='color:#{color}'>#{message}</span>"
|
75
|
-
|
76
|
-
|
77
|
-
|
73
|
+
case ENV['FORMAT']
|
74
|
+
when 'html' then "<span style='color:#{color}'>#{message}</span>"
|
75
|
+
when 'plain' then message
|
76
|
+
else
|
77
|
+
prefix, suffix = ansi_colors(color)
|
78
|
+
"#{prefix}#{message}#{suffix}"
|
79
|
+
end
|
78
80
|
end
|
79
81
|
end
|
80
82
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 1
|
9
|
+
version: 0.3.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- jan@moviepilot.com
|
@@ -262,7 +262,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
262
262
|
requirements:
|
263
263
|
- - ">="
|
264
264
|
- !ruby/object:Gem::Version
|
265
|
-
hash:
|
265
|
+
hash: 3290101045436285880
|
266
266
|
segments:
|
267
267
|
- 0
|
268
268
|
version: "0"
|