json2env 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +0 -1
  2. data/VERSION +1 -1
  3. data/lib/json2env.rb +4 -2
  4. metadata +5 -5
data/Rakefile CHANGED
@@ -7,7 +7,6 @@ Jeweler::Tasks.new do |s|
7
7
  s.author = "Orion Henry"
8
8
  s.email = "orion@heroku.com"
9
9
  s.homepage = "http://github.com/orionz/json2env"
10
- s.rubyforge_project = "json2env"
11
10
  s.files = FileList["[A-Z]*", "{bin,default,lib,spec}/**/*"]
12
11
  s.executables = %w(json2env)
13
12
  s.add_dependency "json"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -18,8 +18,10 @@ class JSON2Env
18
18
  end
19
19
  Dir.mkdir(dir)
20
20
  @env.each do |key, value|
21
- File.open("#{dir}/#{key}", "w") do |file|
22
- file.write(value.gsub(/\r\n|\r|\n/, "\0"))
21
+ if value
22
+ File.open("#{dir}/#{key}", "w") do |file|
23
+ file.write(value.gsub(/\r\n|\r|\n/, "\0"))
24
+ end
23
25
  end
24
26
  end
25
27
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json2env
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Orion Henry
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-06 00:00:00 -07:00
18
+ date: 2010-10-23 00:00:00 -07:00
19
19
  default_executable: json2env
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: "0"
76
76
  requirements: []
77
77
 
78
- rubyforge_project: json2env
78
+ rubyforge_project:
79
79
  rubygems_version: 1.3.7
80
80
  signing_key:
81
81
  specification_version: 3