db-entropy 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/db-entropy.rb CHANGED
@@ -2,7 +2,7 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module DbEntropy
5
- VERSION = '0.3.0'
5
+ VERSION = '0.3.1'
6
6
  end
7
7
 
8
8
  require 'db-entropy/base'
@@ -17,7 +17,7 @@ class DbEntropy::Base
17
17
  end
18
18
 
19
19
  def write_to_yaml(db_config,path)
20
- File.open(path, 'w+') { |out| YAML.dump(db_config, out) }
20
+ File.open(path, File::WRONLY | File::TRUNC | File::CREAT) { |out| YAML.dump(db_config, out) }
21
21
  end
22
22
 
23
23
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db-entropy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jay Zeschin