Permalink
Browse files

Release v 0.0.2

  • Loading branch information...
Orion Henry
Orion Henry committed Oct 23, 2010
1 parent e9fe25c commit 459c97b00c616ee1d70b3f9970b3e21887fab1ae
Showing with 5 additions and 4 deletions.
  1. +0 −1 Rakefile
  2. +1 −1 VERSION
  3. +4 −2 lib/json2env.rb
View
@@ -7,7 +7,6 @@ Jeweler::Tasks.new do |s|
s.author = "Orion Henry"
s.email = "orion@heroku.com"
s.homepage = "http://github.com/orionz/json2env"
- s.rubyforge_project = "json2env"
s.files = FileList["[A-Z]*", "{bin,default,lib,spec}/**/*"]
s.executables = %w(json2env)
s.add_dependency "json"
View
@@ -1 +1 @@
-0.0.1
+0.0.2
View
@@ -18,8 +18,10 @@ def create
end
Dir.mkdir(dir)
@env.each do |key, value|
- File.open("#{dir}/#{key}", "w") do |file|
- file.write(value.gsub(/\r\n|\r|\n/, "\0"))
+ if value
+ File.open("#{dir}/#{key}", "w") do |file|
+ file.write(value.gsub(/\r\n|\r|\n/, "\0"))
+ end
end
end
end

0 comments on commit 459c97b

Please sign in to comment.