colortail 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ ### colortail 0.1.5 2010-04-21
2
+
3
+ * BUGFIX: Fixed crash on non-existant config file (#2)
4
+
1
5
  ### colortail 0.1.4 2010-04-21
2
6
 
3
7
  * CTRL-C now properly caught
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{colortail}
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Eric Lubow"]
@@ -25,12 +25,18 @@ module ColorTail
25
25
  @match_group = config.load_opts(options[:group])
26
26
  else
27
27
  # Create this to ensure we always have a value for this array
28
- @match_group = Array.push( 'default' => [] )
28
+ @match_group = Array.new
29
+ @match_group.push( 'default' => [] )
29
30
  end
30
31
 
31
32
  # Display the list of available groups and exit
32
33
  if options[:list]
33
- config.display_match_groups()
34
+ puts "The following match groups are available through your config files:"
35
+ if config
36
+ config.display_match_groups()
37
+ else
38
+ puts " * default"
39
+ end
34
40
  return 1
35
41
  end
36
42
 
@@ -35,7 +35,6 @@ module ColorTail
35
35
  end
36
36
 
37
37
  def display_match_groups()
38
- puts "The following match groups are available through your config files:"
39
38
  Groupings.each_key do |group|
40
39
  puts " * #{group}"
41
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: colortail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Lubow