[logaling-commit] logaling/logaling-command [master] Change how to dump data

Back to archive index

SHIMADA Koji null+****@clear*****
Wed Sep 19 18:09:46 JST 2012


SHIMADA Koji	2012-09-19 18:09:46 +0900 (Wed, 19 Sep 2012)

  New Revision: e7c6e3ba16a352771f32096a5f5908bdf50952c1
  https://github.com/logaling/logaling-command/commit/e7c6e3ba16a352771f32096a5f5908bdf50952c1

  Log:
    Change how to dump data
    
    because YAML.dump(data, io) doesn't work when default internal encoding is setted :-<
    (only in Ruby 1.9.3)

  Modified files:
    lib/logaling/glossary_sources/glossary_yaml_source.rb

  Modified: lib/logaling/glossary_sources/glossary_yaml_source.rb (+1 -1)
===================================================================
--- lib/logaling/glossary_sources/glossary_yaml_source.rb    2012-08-30 11:47:28 +0900 (07ca46b)
+++ lib/logaling/glossary_sources/glossary_yaml_source.rb    2012-09-19 18:09:46 +0900 (e4c5d5f)
@@ -122,7 +122,7 @@ module Logaling::GlossarySources
 
     def dump_glossary_source(glossary_source)
       File.open(source_path, "w") do |f|
-        YAML.dump(glossary_source, f)
+        f << YAML.dump(glossary_source)
       end
     end
   end
-------------- next part --------------
An HTML attachment was scrubbed...
Download 



More information about the logaling-commit mailing list
Back to archive index