json2env 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/json2env.rb +2 -4
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
data/lib/json2env.rb CHANGED
@@ -18,10 +18,8 @@ class JSON2Env
18
18
  end
19
19
  Dir.mkdir(dir)
20
20
  @env.each do |key, value|
21
- if value
22
- File.open("#{dir}/#{key}", "w") do |file|
23
- file.write(value.gsub(/\r\n|\r|\n/, "\0"))
24
- end
21
+ File.open("#{dir}/#{key}", "w") do |file|
22
+ file.write(value.to_s.gsub(/\r\n|\r|\n/, "\0"))
25
23
  end
26
24
  end
27
25
  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: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
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-23 00:00:00 -07:00
18
+ date: 2010-10-25 00:00:00 -07:00
19
19
  default_executable: json2env
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency