support stdlib yaml/store
-------------------------

                 Key: JRUBY-1881
                 URL: http://jira.codehaus.org/browse/JRUBY-1881
             Project: JRuby
          Issue Type: Improvement
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1b1
         Environment: jruby 1.x / any / ruby stdlib
            Reporter: skaar
            Priority: Minor


add yaml/store.rb from stdlib - it uses PStore and works unmodified with JRuby 
except that it needs YAML::DEFAULTS which is defined
in yaml/constants.rb:

{code}
        DEFAULTS = {
                :Indent => 2, :UseHeader => false, :UseVersion => false, 
:Version => '1.0',
                :SortKeys => false, :AnchorFormat => 'id%03d', :ExplicitTypes 
=> false,
                :WidthType => 'absolute', :BestWidth => 80,
                :UseBlock => false, :UseFold => false, :Encoding => :None
        }
{code}

The defaults are used in dump:

{code}
  def initialize
    @opt = YAML::DEFAULTS.dup
    ...
  end
  def dump(table)
    @table.to_yaml(@opt)
  end
{code}

I guess the question is if YAML::DEFAULTS should be defined in java fro JRuby

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to