RbYAML 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +19 -0
- data/README +31 -0
- data/lib/rbyaml.rb +378 -0
- data/lib/rbyaml/composer.rb +189 -0
- data/lib/rbyaml/constructor.rb +374 -0
- data/lib/rbyaml/detector.rb +44 -0
- data/lib/rbyaml/dumper.rb +40 -0
- data/lib/rbyaml/emitter.rb +1116 -0
- data/lib/rbyaml/error.rb +81 -0
- data/lib/rbyaml/events.rb +92 -0
- data/lib/rbyaml/loader.rb +49 -0
- data/lib/rbyaml/nodes.rb +69 -0
- data/lib/rbyaml/parser.rb +488 -0
- data/lib/rbyaml/reader.rb +127 -0
- data/lib/rbyaml/representer.rb +183 -0
- data/lib/rbyaml/scanner.rb +1258 -0
- data/lib/rbyaml/serializer.rb +120 -0
- data/lib/rbyaml/test.rb +56 -0
- data/lib/rbyaml/tokens.rb +163 -0
- data/lib/rbyaml/yaml.rb +143 -0
- data/test/test_rbyaml.rb +18 -0
- data/test/yaml/gems.yml +130951 -0
- data/test/yaml/gems2.yml +113 -0
- data/test/yaml/test1.yml +3 -0
- data/test/yaml/test10.yml +8 -0
- data/test/yaml/test12.yml +8 -0
- data/test/yaml/test13.yml +4 -0
- data/test/yaml/test14.yml +4 -0
- data/test/yaml/test15.yml +8 -0
- data/test/yaml/test16.yml +7 -0
- data/test/yaml/test18.yml +6 -0
- data/test/yaml/test19.yml +5 -0
- data/test/yaml/test2.yml +3 -0
- data/test/yaml/test20.yml +6 -0
- data/test/yaml/test21.yml +4 -0
- data/test/yaml/test22.yml +4 -0
- data/test/yaml/test23.yml +13 -0
- data/test/yaml/test24.yml +14 -0
- data/test/yaml/test25.yml +7 -0
- data/test/yaml/test26.yml +7 -0
- data/test/yaml/test27.yml +29 -0
- data/test/yaml/test28.yml +26 -0
- data/test/yaml/test29.yml +13 -0
- data/test/yaml/test3.yml +8 -0
- data/test/yaml/test30.yml +7 -0
- data/test/yaml/test31.yml +2 -0
- data/test/yaml/test32.yml +13 -0
- data/test/yaml/test33.yml +2 -0
- data/test/yaml/test34.yml +8 -0
- data/test/yaml/test35.yml +4 -0
- data/test/yaml/test36.yml +8 -0
- data/test/yaml/test37.yml +2 -0
- data/test/yaml/test38.yml +8 -0
- data/test/yaml/test39.yml +2 -0
- data/test/yaml/test4.yml +8 -0
- data/test/yaml/test40.yml +3 -0
- data/test/yaml/test41.yml +5 -0
- data/test/yaml/test42.yml +12 -0
- data/test/yaml/test43.yml +15 -0
- data/test/yaml/test44.yml +23 -0
- data/test/yaml/test5.yml +3 -0
- data/test/yaml/test6.yml +5 -0
- data/test/yaml/test7.yml +10 -0
- data/test/yaml/test8.yml +10 -0
- data/test/yaml/test9.yml +8 -0
- metadata +111 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
%YAML 1.1
|
2
|
+
---
|
3
|
+
!!map {
|
4
|
+
? !!str "block styles" : !!map {
|
5
|
+
? !!str "scalars" : !!map {
|
6
|
+
? !!str "literal"
|
7
|
+
: !!str "#!!/usr/bin/perl\n\
|
8
|
+
print \"Hello,
|
9
|
+
world!!\\n\";\n",
|
10
|
+
? !!str "folded"
|
11
|
+
: !!str "This sentence
|
12
|
+
is false.\n"
|
13
|
+
},
|
14
|
+
? !!str "collections" : !!map {
|
15
|
+
? !!str "sequence" : !!seq [
|
16
|
+
!!str "entry",
|
17
|
+
!!map {
|
18
|
+
? !!str "key" : !!str "value"
|
19
|
+
}
|
20
|
+
],
|
21
|
+
? !!str "mapping" : !!map {
|
22
|
+
? !!str "key" : !!str "value"
|
23
|
+
} } } }
|
data/test/yaml/test5.yml
ADDED
data/test/yaml/test6.yml
ADDED
data/test/yaml/test7.yml
ADDED
data/test/yaml/test8.yml
ADDED
data/test/yaml/test9.yml
ADDED
metadata
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.8.11
|
3
|
+
specification_version: 1
|
4
|
+
name: RbYAML
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 0.0.1
|
7
|
+
date: 2006-05-09 00:00:00 +02:00
|
8
|
+
summary: A pure Ruby YAML parser and emitter, mostly supporting YAML 1.1.
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email: ola@ologix.com
|
12
|
+
homepage: http://rbyaml.rubyforge.org
|
13
|
+
rubyforge_project:
|
14
|
+
description:
|
15
|
+
autorequire: rbyaml
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: true
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
24
|
+
version:
|
25
|
+
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
authors:
|
29
|
+
- Ola Bini
|
30
|
+
files:
|
31
|
+
- lib/rbyaml
|
32
|
+
- lib/rbyaml.rb
|
33
|
+
- lib/rbyaml/composer.rb
|
34
|
+
- lib/rbyaml/constructor.rb
|
35
|
+
- lib/rbyaml/detector.rb
|
36
|
+
- lib/rbyaml/dumper.rb
|
37
|
+
- lib/rbyaml/emitter.rb
|
38
|
+
- lib/rbyaml/error.rb
|
39
|
+
- lib/rbyaml/events.rb
|
40
|
+
- lib/rbyaml/loader.rb
|
41
|
+
- lib/rbyaml/nodes.rb
|
42
|
+
- lib/rbyaml/parser.rb
|
43
|
+
- lib/rbyaml/reader.rb
|
44
|
+
- lib/rbyaml/representer.rb
|
45
|
+
- lib/rbyaml/scanner.rb
|
46
|
+
- lib/rbyaml/serializer.rb
|
47
|
+
- lib/rbyaml/test.rb
|
48
|
+
- lib/rbyaml/tokens.rb
|
49
|
+
- lib/rbyaml/yaml.rb
|
50
|
+
- test/test_rbyaml.rb
|
51
|
+
- test/yaml
|
52
|
+
- test/yaml/gems.yml
|
53
|
+
- test/yaml/gems2.yml
|
54
|
+
- test/yaml/test1.yml
|
55
|
+
- test/yaml/test10.yml
|
56
|
+
- test/yaml/test12.yml
|
57
|
+
- test/yaml/test13.yml
|
58
|
+
- test/yaml/test14.yml
|
59
|
+
- test/yaml/test15.yml
|
60
|
+
- test/yaml/test16.yml
|
61
|
+
- test/yaml/test18.yml
|
62
|
+
- test/yaml/test19.yml
|
63
|
+
- test/yaml/test2.yml
|
64
|
+
- test/yaml/test20.yml
|
65
|
+
- test/yaml/test21.yml
|
66
|
+
- test/yaml/test22.yml
|
67
|
+
- test/yaml/test23.yml
|
68
|
+
- test/yaml/test24.yml
|
69
|
+
- test/yaml/test25.yml
|
70
|
+
- test/yaml/test26.yml
|
71
|
+
- test/yaml/test27.yml
|
72
|
+
- test/yaml/test28.yml
|
73
|
+
- test/yaml/test29.yml
|
74
|
+
- test/yaml/test3.yml
|
75
|
+
- test/yaml/test30.yml
|
76
|
+
- test/yaml/test31.yml
|
77
|
+
- test/yaml/test32.yml
|
78
|
+
- test/yaml/test33.yml
|
79
|
+
- test/yaml/test34.yml
|
80
|
+
- test/yaml/test35.yml
|
81
|
+
- test/yaml/test36.yml
|
82
|
+
- test/yaml/test37.yml
|
83
|
+
- test/yaml/test38.yml
|
84
|
+
- test/yaml/test39.yml
|
85
|
+
- test/yaml/test4.yml
|
86
|
+
- test/yaml/test40.yml
|
87
|
+
- test/yaml/test41.yml
|
88
|
+
- test/yaml/test42.yml
|
89
|
+
- test/yaml/test43.yml
|
90
|
+
- test/yaml/test44.yml
|
91
|
+
- test/yaml/test5.yml
|
92
|
+
- test/yaml/test6.yml
|
93
|
+
- test/yaml/test7.yml
|
94
|
+
- test/yaml/test8.yml
|
95
|
+
- test/yaml/test9.yml
|
96
|
+
- LICENSE
|
97
|
+
- README
|
98
|
+
test_files:
|
99
|
+
- test/test_rbyaml.rb
|
100
|
+
rdoc_options: []
|
101
|
+
|
102
|
+
extra_rdoc_files:
|
103
|
+
- README
|
104
|
+
executables: []
|
105
|
+
|
106
|
+
extensions: []
|
107
|
+
|
108
|
+
requirements: []
|
109
|
+
|
110
|
+
dependencies: []
|
111
|
+
|