diff options
| author | Saku Ytti <saku@ytti.fi> | 2014-02-26 09:11:55 +0200 | 
|---|---|---|
| committer | Saku Ytti <saku@ytti.fi> | 2014-02-26 09:11:55 +0200 | 
| commit | 5316f643666399ed2309ae239d2fe7b393c9e419 (patch) | |
| tree | 271d41cc2e440f1d423c729a20f37a21821f7e30 | |
| parent | 6748aba0669da3d897f3647cf668a72e7eb85514 (diff) | |
Switch OpenStruct#to_h to #marshal_dump for 1.9
1.9 does not have #to_h, unnecessarily breaks compatibility downwards
| -rw-r--r-- | Gemfile.lock | 2 | ||||
| -rw-r--r-- | lib/oxidized/config/core.rb | 2 | ||||
| -rw-r--r-- | oxidized.gemspec | 2 | 
3 files changed, 3 insertions, 3 deletions
| diff --git a/Gemfile.lock b/Gemfile.lock index 883b2a5..ce4c8cf 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@  PATH    remote: .    specs: -    oxidized (0.0.23) +    oxidized (0.0.25)        grit        haml        net-ssh diff --git a/lib/oxidized/config/core.rb b/lib/oxidized/config/core.rb index 9b93d91..ec08dab 100644 --- a/lib/oxidized/config/core.rb +++ b/lib/oxidized/config/core.rb @@ -12,7 +12,7 @@ module Oxidized      def load        if File.exists? @file          cfg = YAML.load_file @file -        marshal_load self.to_h.merge(cfg) +        marshal_load marshal_dump.merge(cfg)        else          save        end diff --git a/oxidized.gemspec b/oxidized.gemspec index 9cb6ba6..2824969 100644 --- a/oxidized.gemspec +++ b/oxidized.gemspec @@ -1,6 +1,6 @@  Gem::Specification.new do |s|    s.name              = 'oxidized' -  s.version           = '0.0.24' +  s.version           = '0.0.25'    s.platform          = Gem::Platform::RUBY    s.authors           = [ 'Saku Ytti' ]    s.email             = %w( saku@ytti.fi ) | 
