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.
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 3
4
- :patch: 0
4
+ :patch: 1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{fluently}
5
- s.version = "0.3.0"
5
+ s.version = "0.3.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Bob Zoller"]
@@ -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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: 16watts-fluently
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Zoller