forked from jruby/jruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding Jv/RbYAML code and docs to cnutter_work1
git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@2057 961051c9-f516-0410-bf72-c9f7e237a7b7
- Loading branch information
Showing
10 changed files
with
457 additions
and
3,550 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Oops, something went wrong.