dev 1.0.246 → 1.0.247

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/dev.rb CHANGED
@@ -8,13 +8,13 @@ if(RUBY_VERSION != "1.8.7")
8
8
  Encoding.default_internal=Encoding::UTF_8
9
9
  end
10
10
 
11
- if !RUBY_PLATFORM.include?("darwin")
12
- begin
13
- require 'rainbow' if(RUBY_VERSION != "1.8.7")
14
- rescue
15
- puts "require 'rainbow' threw an exception"
16
- end
17
- else
11
+ #if !RUBY_PLATFORM.include?("darwin")
12
+ # begin
13
+ #require 'rainbow' if(RUBY_VERSION != "1.8.7")
14
+ # rescue
15
+ #puts "require 'rainbow' threw an exception"
16
+ # end
17
+ #else
18
18
  puts "skipping rainbow on mac os"
19
19
  class String
20
20
  def foreground arg
@@ -24,7 +24,7 @@ else
24
24
  return self
25
25
  end
26
26
  end
27
- end
27
+ #end
28
28
 
29
29
  require 'semver'
30
30
 
data/lib/dev/Hash.rb CHANGED
@@ -73,14 +73,17 @@ class Hash
73
73
  elsif value.kind_of?(Array)
74
74
  value.each do |v|
75
75
  if v.kind_of?(Hash)
76
- puts Rainbow(prefix).foreground(:yellow).bright
76
+ #puts Rainbow(prefix).foreground(:yellow).bright
77
+ puts prefix
77
78
  print_hash( prefix + " ".rjust(max_length),v)
78
79
  end
79
- puts Rainbow(prefix).foreground(:yellow).bright + " " + Rainbow(v.to_s).foreground(:green) if v.kind_of?(String)
80
+ puts prefix + " " + v.to_s if v.kind_of?(String)
81
+ #puts Rainbow(prefix).foreground(:yellow).bright + " " + Rainbow(v.to_s).foreground(:green) if v.kind_of?(String)
80
82
  prefix = indent + " ".rjust(max_length-1)
81
83
  end
82
84
  else
83
- puts Rainbow(prefix).foreground(:yellow).bright + " " + Rainbow(value.to_s).foreground(:green)
85
+ puts prefix + " " + value.to_s
86
+ #puts Rainbow(prefix).foreground(:yellow).bright + " " + Rainbow(value.to_s).foreground(:green)
84
87
  end
85
88
  index+=1
86
89
  indent=" ".rjust(indent.length)
@@ -182,7 +182,8 @@ class SystemCall
182
182
  if(RUBY_VERSION == "1.8.7")
183
183
  summary = " [" + "X" + "]" + " " + @command + " has exit status of " + @status.to_s
184
184
  else
185
- summary = Rainbow(" [").foreground(:cyan) + Rainbow("X").foreground(:red).bright + Rainbow("]").foreground(:cyan) + " " + Rainbow(@command).foreground(:green) + " has exit status of " + @status.to_s
185
+ summary = " [" + "X" + "]" + " " + @command + " has exit status of " + @status.to_s
186
+ #summary = Rainbow(" [").foreground(:cyan) + Rainbow("X").foreground(:red).bright + Rainbow("]").foreground(:cyan) + " " + Rainbow(@command).foreground(:green) + " has exit status of " + @status.to_s
186
187
  end
187
188
  summary += " dir: " + @dir unless @dir.nil?
188
189
  summary += " cache: true" unless @cache.nil?
@@ -196,7 +197,8 @@ class SystemCall
196
197
  if(RUBY_VERSION == "1.8.7")
197
198
  summary = " [" + "+" + "]" + " " + @command + " " + elapsed_str
198
199
  else
199
- summary = Rainbow(" [").foreground(:cyan) + Rainbow("+").foreground(:green) + Rainbow("]").foreground(:cyan) + " " + Rainbow(@command).foreground(:green) + " " + Rainbow(elapsed_str).foreground(:cyan)
200
+ summary = " [" + "+" + "]" + " " + @command + " " + elapsed_str
201
+ #summary = Rainbow(" [").foreground(:cyan) + Rainbow("+").foreground(:green) + Rainbow("]").foreground(:cyan) + " " + Rainbow(@command).foreground(:green) + " " + Rainbow(elapsed_str).foreground(:cyan)
200
202
  end
201
203
  summary += " dir: " + @dir unless @dir.nil?
202
204
  summary += " cache: true" unless @cache.nil?
data/lib/dev/Tasks.rb CHANGED
@@ -12,7 +12,8 @@ def task_start(task_name)
12
12
  if(RUBY_VERSION == "1.8.7")
13
13
  puts "[:#{task_name}]" + " " + Dir.pwd
14
14
  else
15
- puts Rainbow("[:#{task_name}]").foreground(:yellow).bright + " " + Dir.pwd
15
+ puts "[:#{task_name}]" + " " + Dir.pwd
16
+ #puts Rainbow("[:#{task_name}]").foreground(:yellow).bright + " " + Dir.pwd
16
17
  end
17
18
  end
18
19
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.246
4
+ version: 1.0.247
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: