confparser 0.0.2 → 0.0.2.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 (2) hide show
  1. data/lib/confparser.rb +2 -2
  2. metadata +2 -1
data/lib/confparser.rb CHANGED
@@ -29,9 +29,9 @@ class ConfParser < Hash
29
29
  }
30
30
  end
31
31
 
32
- def to_s
32
+ def to_s (separator = ' = ')
33
33
  map {|key, value|
34
- value.is_a?(Hash) ? "[#{key}]\n#{value.to_s.gsub(/^/, ' ')}" : "#{key} = #{value.to_s}"
34
+ value.is_a?(Hash) ? "[#{key}]\n#{value.to_s(separator).gsub(/^/, ' ')}" : "#{key}#{separator}#{value.to_s}"
35
35
  }.join("\n")
36
36
  end
37
37
  }
metadata CHANGED
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 0
8
8
  - 2
9
- version: 0.0.2
9
+ - 1
10
+ version: 0.0.2.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - shura