simple-config 0.1.1 → 0.1.2

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/simple-config.rb +4 -1
  2. metadata +1 -1
data/lib/simple-config.rb CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env ruby[4~
1
+ #!/usr/bin/env ruby
2
2
 
3
3
  # file: simple-config.rb
4
4
 
@@ -22,4 +22,7 @@ class SimpleConfig
22
22
 
23
23
  Hash[a]
24
24
  end
25
+
26
+ def self.write(h) h.map{|key, value| "%s: %s" % [key, value]}.join("\n") end
27
+
25
28
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: simple-config
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors: []
8
8