16watts-fluently 0.3.0 → 0.3.1
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.
- data/VERSION.yml +1 -1
- data/fluently.gemspec +1 -1
- data/lib/fluently/cocoa_marshal.rb +2 -0
- data/lib/fluently/rails_marshal.rb +2 -0
- metadata +1 -1
data/VERSION.yml
CHANGED
data/fluently.gemspec
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'fileutils'
|
1
2
|
require 'iconv'
|
2
3
|
# cocoa string files are assumed to be UTF-16. the cmess gem
|
3
4
|
# can guess at encoding, which might be helpful.
|
@@ -21,6 +22,7 @@ module Fluently
|
|
21
22
|
end
|
22
23
|
|
23
24
|
def self.write(filename, hash)
|
25
|
+
FileUtils.rm_f(filename)
|
24
26
|
File.open(filename, 'w') do |f|
|
25
27
|
f.puts("/* DO NOT EDIT THIS FILE - YOUR CHANGES WILL BE LOST */\n")
|
26
28
|
lines = hash.map do |key, value|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'fileutils'
|
1
2
|
require 'yaml'
|
2
3
|
|
3
4
|
module Fluently
|
@@ -7,6 +8,7 @@ module Fluently
|
|
7
8
|
end
|
8
9
|
|
9
10
|
def self.write(filename, hash)
|
11
|
+
FileUtils.rm_f(filename)
|
10
12
|
File.open(filename, 'w') do |f|
|
11
13
|
f.puts("# DO NOT EDIT THIS FILE - YOUR CHANGES WILL BE LOST #\n")
|
12
14
|
YAML.dump(hash, f)
|