yaxml 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/README +14 -6
- data/Rakefile +1 -1
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/CHANGELOG.html +1 -1
- data/doc/rdoc/files/LICENSE.html +1 -1
- data/doc/rdoc/files/README.html +24 -8
- data/doc/rdoc/files/lib/yaxml_rb.html +1 -1
- metadata +2 -2
data/README
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
= YAXML Module
|
2
|
+
|
3
|
+
YAXML Parser allows to convert YAXML files to YAML files or JSON expressions. It also permits reverse conversion, from YAML files and JSON expressions to YAXML files. This parser is based on the XML Binding for YAML proposed by YAML.org http://yaml.org/xml.html
|
2
4
|
|
3
|
-
This code is released under LGPL. YAXML module
|
5
|
+
This code is released under LGPL. YAXML module makes the following conversions:
|
4
6
|
|
5
7
|
* YAML -> YAXML
|
6
8
|
* JSON -> YAXML
|
7
9
|
* YAXML -> YAML
|
8
10
|
* YAXML -> JSON
|
9
11
|
|
10
|
-
|
12
|
+
And everywhere you can use a file or a string as source.
|
11
13
|
|
12
|
-
|
14
|
+
The module can be used in two ways:
|
13
15
|
|
14
16
|
1) Creating a Yaxml object
|
15
17
|
xml = Yaxml.new 'file.yml'
|
@@ -21,12 +23,12 @@ You can use this module in two ways:
|
|
21
23
|
xml = Yaxml::yaml2yaxml( 'file.yml' )
|
22
24
|
xml.write( $stdout, 2)
|
23
25
|
|
24
|
-
|
26
|
+
Furthermore, you can use:
|
25
27
|
xml = Yaxml::json2yaxml( { numbers: [ 1, 2, 3 ]} )
|
26
28
|
yaml = Yaxml::yaxml2yaml( 'file.yaxml' )
|
27
29
|
json = Yaxml::yaxml2json( 'file.yaxml' )
|
28
30
|
|
29
|
-
YAXML is <b>standalone library</b>. It requires no other libraries. Just Ruby!
|
31
|
+
YAXML is a <b>standalone library</b>. It requires no other libraries. Just Ruby!
|
30
32
|
|
31
33
|
Author:: Diego Moreno (dmoreno AT dit.upm.es)
|
32
34
|
License:: GNU Lesser General Public License (aka LGPL)
|
@@ -39,7 +41,7 @@ You may get the latest stable version from Rubyforge.
|
|
39
41
|
|
40
42
|
== Loading YAXML
|
41
43
|
|
42
|
-
You have probably got the gem, right? To load YAXML:
|
44
|
+
You do have probably got the gem, right? To load YAXML:
|
43
45
|
|
44
46
|
require 'rubygems'
|
45
47
|
require 'yaxml'
|
@@ -50,3 +52,9 @@ You can see the documentation in the project home page:
|
|
50
52
|
|
51
53
|
{YAXML Gem Homepage}[http://yaxml.rubyforge.org]
|
52
54
|
|
55
|
+
== Source Code
|
56
|
+
|
57
|
+
You can clone the repository from GitHub (http://github.com/dmoreno/yaxml/tree/master):
|
58
|
+
|
59
|
+
# git clone git@github.com:dmoreno/yaxml.git
|
60
|
+
|
data/Rakefile
CHANGED
@@ -8,7 +8,7 @@ include FileUtils
|
|
8
8
|
|
9
9
|
NAME = "yaxml"
|
10
10
|
REV = `svn info`[/Revision: (\d+)/, 1] rescue nil
|
11
|
-
VERS = ENV['VERSION'] || "0.0.
|
11
|
+
VERS = ENV['VERSION'] || "0.0.9" + (REV ? ".#{REV}" : "")
|
12
12
|
PKG = "#{NAME}-#{VERS}"
|
13
13
|
RDOC_OPTS = ['--quiet', '--title', 'The YAXML Module Reference', '--main', 'README', '--inline-source']
|
14
14
|
PKG_FILES = %w(CHANGELOG LICENSE README Rakefile) + Dir.glob("{doc,test,lib}/**/*")
|
data/doc/rdoc/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Thu, 02 Apr 2009 12:04:53 +0200
|
data/doc/rdoc/files/LICENSE.html
CHANGED
data/doc/rdoc/files/README.html
CHANGED
@@ -56,7 +56,7 @@
|
|
56
56
|
</tr>
|
57
57
|
<tr class="top-aligned-row">
|
58
58
|
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>
|
59
|
+
<td>Thu Apr 02 12:04:45 +0200 2009</td>
|
60
60
|
</tr>
|
61
61
|
</table>
|
62
62
|
</div>
|
@@ -71,8 +71,16 @@
|
|
71
71
|
<div id="description">
|
72
72
|
<h1><a href="../classes/YAXML.html">YAXML</a> Module</h1>
|
73
73
|
<p>
|
74
|
+
<a href="../classes/YAXML.html">YAXML</a> Parser allows to convert <a
|
75
|
+
href="../classes/YAXML.html">YAXML</a> files to YAML files or JSON
|
76
|
+
expressions. It also permits reverse conversion, from YAML files and JSON
|
77
|
+
expressions to <a href="../classes/YAXML.html">YAXML</a> files. This parser
|
78
|
+
is based on the XML Binding for YAML proposed by YAML.org <a
|
79
|
+
href="http://yaml.org/xml.html">yaml.org/xml.html</a>
|
80
|
+
</p>
|
81
|
+
<p>
|
74
82
|
This code is released under LGPL. <a href="../classes/YAXML.html">YAXML</a>
|
75
|
-
module
|
83
|
+
module makes the following conversions:
|
76
84
|
</p>
|
77
85
|
<pre>
|
78
86
|
* YAML -> YAXML
|
@@ -81,10 +89,10 @@ module make the next conversions:
|
|
81
89
|
* YAXML -> JSON
|
82
90
|
</pre>
|
83
91
|
<p>
|
84
|
-
|
92
|
+
And everywhere you can use a file or a string as source.
|
85
93
|
</p>
|
86
94
|
<p>
|
87
|
-
|
95
|
+
The module can be used in two ways:
|
88
96
|
</p>
|
89
97
|
<p>
|
90
98
|
1) Creating a Yaxml object
|
@@ -102,14 +110,14 @@ You can use this module in two ways:
|
|
102
110
|
xml = Yaxml::yaml2yaxml( 'file.yml' )
|
103
111
|
xml.write( $stdout, 2)
|
104
112
|
|
105
|
-
|
113
|
+
Furthermore, you can use:
|
106
114
|
xml = Yaxml::json2yaxml( { numbers: [ 1, 2, 3 ]} )
|
107
115
|
yaml = Yaxml::yaxml2yaml( 'file.yaxml' )
|
108
116
|
json = Yaxml::yaxml2json( 'file.yaxml' )
|
109
117
|
</pre>
|
110
118
|
<p>
|
111
|
-
<a href="../classes/YAXML.html">YAXML</a> is <b>standalone library</b>.
|
112
|
-
requires no other libraries. Just Ruby!
|
119
|
+
<a href="../classes/YAXML.html">YAXML</a> is a <b>standalone library</b>.
|
120
|
+
It requires no other libraries. Just Ruby!
|
113
121
|
</p>
|
114
122
|
<table>
|
115
123
|
<tr><td valign="top">Author:</td><td>Diego Moreno (dmoreno AT dit.upm.es)
|
@@ -128,7 +136,7 @@ You may get the latest stable version from Rubyforge.
|
|
128
136
|
</pre>
|
129
137
|
<h2>Loading <a href="../classes/YAXML.html">YAXML</a></h2>
|
130
138
|
<p>
|
131
|
-
You have probably got the gem, right? To load <a
|
139
|
+
You do have probably got the gem, right? To load <a
|
132
140
|
href="../classes/YAXML.html">YAXML</a>:
|
133
141
|
</p>
|
134
142
|
<pre>
|
@@ -142,6 +150,14 @@ You can see the documentation in the project home page:
|
|
142
150
|
<p>
|
143
151
|
<a href="http://yaxml.rubyforge.org">YAXML Gem Homepage</a>
|
144
152
|
</p>
|
153
|
+
<h2>Source Code</h2>
|
154
|
+
<p>
|
155
|
+
You can clone the repository from GitHub (<a
|
156
|
+
href="http://github.com/dmoreno/yaxml/tree/master">github.com/dmoreno/yaxml/tree/master</a>):
|
157
|
+
</p>
|
158
|
+
<pre>
|
159
|
+
# git clone git@github.com:dmoreno/yaxml.git
|
160
|
+
</pre>
|
145
161
|
|
146
162
|
</div>
|
147
163
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yaxml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Diego Moreno
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-04-
|
12
|
+
date: 2009-04-02 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|