Skip to content

Commit

Permalink
adding Jv/RbYAML code and docs to cnutter_work1
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@2057 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information
headius committed Jun 8, 2006
1 parent a926866 commit dbac74b
Show file tree
Hide file tree
Showing 10 changed files with 457 additions and 3,550 deletions.
1 change: 1 addition & 0 deletions .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
<classpathentry kind="lib" path="lib/bsf.jar"/>
<classpathentry kind="lib" path="lib/junit.jar"/>
<classpathentry kind="lib" path="lib/ant.jar"/>
<classpathentry kind="lib" path="lib/jvyaml.jar"/>
<classpathentry kind="output" path="build/classes/jruby"/>
</classpath>
4 changes: 4 additions & 0 deletions docs/jvyaml/CREDITS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Credits
-------

Kirill Simonov <[email protected]> - for writing the original Python code.
19 changes: 19 additions & 0 deletions docs/jvyaml/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2006 Ola Bini

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
31 changes: 31 additions & 0 deletions docs/jvyaml/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
= RbYAML - A pure Ruby YAML 1.1 loader and dumper

Project Contact: Ola Bini <[email protected]>

The code is based mostly on the Python code written by Kirill Simonov <[email protected]> for PyYAML3000.

RbYAML is a project originating in the JRuby project (http://jruby.sourceforge.net), to create a pure Ruby
YAML parser for use in JRuby and SYCK cannot be used in this case.
Since the effort of writing a new one from scratch seemed like a major undertaking it seemed easier to
port an existing one.

The current functionality is more or less 1.1-compliant. What's missing is the Unicode-support. The idea
is to have the interface resemble SYCK as much as possible, but this is still work in progress, since some
of the major architectural choices are quite different.

== Use

Just require 'rbyaml' and use it as you would use YAML, but in module RbYAML instead:

require 'rbyaml'

RbYAML.load("--- \n- A\n- b\n- c\n") ----> ["A","b","c"]
"foo".to_yaml ----> "foo\n"

== More information

Visit http://rbyaml.rubyforge.org for more information and updated versions

== License

RbYAML is distributed with a MIT license, which can be found in the file LICENSE.
19 changes: 19 additions & 0 deletions docs/rbyaml/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2006 Ola Bini

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
31 changes: 31 additions & 0 deletions docs/rbyaml/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
= RbYAML - A pure Ruby YAML 1.1 loader and dumper

Project Contact: Ola Bini <[email protected]>

The code is based mostly on the Python code written by Kirill Simonov <[email protected]> for PyYAML3000.

RbYAML is a project originating in the JRuby project (http://jruby.sourceforge.net), to create a pure Ruby
YAML parser for use in JRuby and SYCK cannot be used in this case.
Since the effort of writing a new one from scratch seemed like a major undertaking it seemed easier to
port an existing one.

The current functionality is more or less 1.1-compliant. What's missing is the Unicode-support. The idea
is to have the interface resemble SYCK as much as possible, but this is still work in progress, since some
of the major architectural choices are quite different.

== Use

Just require 'rbyaml' and use it as you would use YAML, but in module RbYAML instead:

require 'rbyaml'

RbYAML.load("--- \n- A\n- b\n- c\n") ----> ["A","b","c"]
"foo".to_yaml ----> "foo\n"

== More information

Visit http://rbyaml.rubyforge.org for more information and updated versions

== License

RbYAML is distributed with a MIT license, which can be found in the file LICENSE.
Binary file added lib/jvyaml.jar
Binary file not shown.
Loading

0 comments on commit dbac74b

Please sign in to comment.