apirunner 0.3.0 → 0.3.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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/apirunner.gemspec +1 -1
  3. data/lib/result.rb +7 -5
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
data/apirunner.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{apirunner}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jan@moviepilot.com"]
data/lib/result.rb CHANGED
@@ -70,11 +70,13 @@ class Result
70
70
  end
71
71
 
72
72
  def color_print(message, color)
73
- if ENV['FORMAT'] == "html"
74
- "<span style='color:#{color}'>#{message}</span>"
75
- else
76
- prefix, suffix = ansi_colors(color)
77
- "#{prefix}#{message}#{suffix}"
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
- - 0
9
- version: 0.3.0
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: 2170684846549373543
265
+ hash: 3290101045436285880
266
266
  segments:
267
267
  - 0
268
268
  version: "0"