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
data/test/yaml/gems2.yml
ADDED
@@ -0,0 +1,113 @@
|
|
1
|
+
--- !ruby/object:Gem::Cache
|
2
|
+
gems:
|
3
|
+
jabber4r-0.7.0: !ruby/object:Gem::Specification
|
4
|
+
rubygems_version: 0.8.11
|
5
|
+
specification_version: -1
|
6
|
+
name: jabber4r
|
7
|
+
version: !ruby/object:Gem::Version
|
8
|
+
version: 0.7.0
|
9
|
+
date: 2004-03-13 08:39:42.381129 -05:00
|
10
|
+
summary: Jabber4r is a pure-Ruby Jabber client library
|
11
|
+
require_paths:
|
12
|
+
- lib
|
13
|
+
email: rich@infoether.com
|
14
|
+
homepage: http://jabber4r.rubyforge.org
|
15
|
+
rubyforge_project: jabber4r
|
16
|
+
description:
|
17
|
+
autorequire: jabber4r/jabber4r
|
18
|
+
default_executable:
|
19
|
+
bindir:
|
20
|
+
has_rdoc: true
|
21
|
+
required_ruby_version:
|
22
|
+
platform:
|
23
|
+
signing_key:
|
24
|
+
cert_chain: []
|
25
|
+
|
26
|
+
authors:
|
27
|
+
files: []
|
28
|
+
|
29
|
+
test_files: []
|
30
|
+
|
31
|
+
rdoc_options: []
|
32
|
+
|
33
|
+
extra_rdoc_files: []
|
34
|
+
|
35
|
+
executables:
|
36
|
+
extensions:
|
37
|
+
requirements:
|
38
|
+
- Jabber server
|
39
|
+
dependencies:
|
40
|
+
|
41
|
+
cgikit-1.1.0: !ruby/object:Gem::Specification
|
42
|
+
rubygems_version: 0.8.11
|
43
|
+
specification_version: -1
|
44
|
+
name: cgikit
|
45
|
+
version: !ruby/object:Gem::Version
|
46
|
+
version: 1.1.0
|
47
|
+
date: 2004-03-13 09:24:59.162981 -05:00
|
48
|
+
summary: "CGIKit is a componented-oriented web application framework like Apple Computers WebObjects. This framework services Model-View-Controller architecture programming by components based on a HTML file, a definition file and a Ruby source. "
|
49
|
+
require_paths:
|
50
|
+
- lib
|
51
|
+
email: info@spice-of-life.net
|
52
|
+
homepage: http://www.spice-of-life.net/download/cgikit/
|
53
|
+
rubyforge_project:
|
54
|
+
description:
|
55
|
+
autorequire: cgikit
|
56
|
+
default_executable:
|
57
|
+
bindir:
|
58
|
+
has_rdoc:
|
59
|
+
required_ruby_version:
|
60
|
+
platform:
|
61
|
+
signing_key:
|
62
|
+
cert_chain: []
|
63
|
+
|
64
|
+
authors:
|
65
|
+
files: []
|
66
|
+
|
67
|
+
test_files: []
|
68
|
+
|
69
|
+
rdoc_options: []
|
70
|
+
|
71
|
+
extra_rdoc_files: []
|
72
|
+
|
73
|
+
executables:
|
74
|
+
extensions:
|
75
|
+
requirements:
|
76
|
+
dependencies:
|
77
|
+
|
78
|
+
progressbar-0.0.3: !ruby/object:Gem::Specification
|
79
|
+
rubygems_version: 0.8.11
|
80
|
+
specification_version: -1
|
81
|
+
name: progressbar
|
82
|
+
version: !ruby/object:Gem::Version
|
83
|
+
version: 0.0.3
|
84
|
+
date: 2004-03-13 08:56:48.508436 -05:00
|
85
|
+
summary: Ruby/ProgressBar is a text progress bar library for Ruby. It can indicate progress with percentage, a progress bar, and estimated remaining time.
|
86
|
+
require_paths:
|
87
|
+
- lib
|
88
|
+
email: satoru@namazu.org
|
89
|
+
homepage: http://namazu.org/~satoru/ruby-progressbar/
|
90
|
+
rubyforge_project:
|
91
|
+
description:
|
92
|
+
autorequire: progressbar
|
93
|
+
default_executable:
|
94
|
+
bindir:
|
95
|
+
has_rdoc:
|
96
|
+
required_ruby_version:
|
97
|
+
platform:
|
98
|
+
signing_key:
|
99
|
+
cert_chain: []
|
100
|
+
|
101
|
+
authors:
|
102
|
+
files: []
|
103
|
+
|
104
|
+
test_files: []
|
105
|
+
|
106
|
+
rdoc_options: []
|
107
|
+
|
108
|
+
extra_rdoc_files: []
|
109
|
+
|
110
|
+
executables:
|
111
|
+
extensions:
|
112
|
+
requirements:
|
113
|
+
dependencies:
|
data/test/yaml/test1.yml
ADDED
data/test/yaml/test2.yml
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
---
|
2
|
+
not-date: !!str 2002-04-28
|
3
|
+
|
4
|
+
picture: !!binary |
|
5
|
+
R0lGODlhDAAMAIQAAP//9/X
|
6
|
+
17unp5WZmZgAAAOfn515eXv
|
7
|
+
Pz7Y6OjuDg4J+fn5OTk6enp
|
8
|
+
56enmleECcgggoBADs=
|
9
|
+
|
10
|
+
application specific tag: !something |
|
11
|
+
The semantics of the tag
|
12
|
+
above may be different for
|
13
|
+
different documents.
|
@@ -0,0 +1,14 @@
|
|
1
|
+
%TAG ! tag:clarkevans.com,2002:
|
2
|
+
--- !shape
|
3
|
+
# Use the ! handle for presenting
|
4
|
+
# tag:clarkevans.com,2002:circle
|
5
|
+
- !circle
|
6
|
+
center: &ORIGIN {x: 73, y: 129}
|
7
|
+
radius: 7
|
8
|
+
- !line
|
9
|
+
start: *ORIGIN
|
10
|
+
finish: { x: 89, y: 102 }
|
11
|
+
- !label
|
12
|
+
start: *ORIGIN
|
13
|
+
color: 0xFFEEBB
|
14
|
+
text: Pretty vector drawing.
|
@@ -0,0 +1,29 @@
|
|
1
|
+
--- !<tag:clarkevans.com,2002:invoice>
|
2
|
+
invoice: 34843
|
3
|
+
date : 2001-01-23
|
4
|
+
bill-to: &id001
|
5
|
+
given : Chris
|
6
|
+
family : Dumars
|
7
|
+
address:
|
8
|
+
lines: |
|
9
|
+
458 Walkman Dr.
|
10
|
+
Suite #292
|
11
|
+
city : Royal Oak
|
12
|
+
state : MI
|
13
|
+
postal : 48046
|
14
|
+
ship-to: *id001
|
15
|
+
product:
|
16
|
+
- sku : BL394D
|
17
|
+
quantity : 4
|
18
|
+
description : Basketball
|
19
|
+
price : 450.00
|
20
|
+
- sku : BL4438H
|
21
|
+
quantity : 1
|
22
|
+
description : Super Hoop
|
23
|
+
price : 2392.00
|
24
|
+
tax : 251.42
|
25
|
+
total: 4443.52
|
26
|
+
comments:
|
27
|
+
Late afternoon is best.
|
28
|
+
Backup contact is Nancy
|
29
|
+
Billsmer @ 338-4338.
|
@@ -0,0 +1,26 @@
|
|
1
|
+
---
|
2
|
+
Time: 2001-11-23 15:01:42 -5
|
3
|
+
User: ed
|
4
|
+
Warning:
|
5
|
+
This is an error message
|
6
|
+
for the log file
|
7
|
+
---
|
8
|
+
Time: 2001-11-23 15:02:31 -5
|
9
|
+
User: ed
|
10
|
+
Warning:
|
11
|
+
A slightly different error
|
12
|
+
message.
|
13
|
+
---
|
14
|
+
Date: 2001-11-23 15:03:17 -5
|
15
|
+
User: ed
|
16
|
+
Fatal:
|
17
|
+
Unknown variable "bar"
|
18
|
+
Stack:
|
19
|
+
- file: TopClass.py
|
20
|
+
line: 23
|
21
|
+
code: |
|
22
|
+
x = MoreObject("345\n")
|
23
|
+
- file: MoreClass.py
|
24
|
+
line: 58
|
25
|
+
code: |-
|
26
|
+
foo = bar
|
data/test/yaml/test3.yml
ADDED
data/test/yaml/test4.yml
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# Leading comment line spaces are
|
2
|
+
# neither content nor indentation.
|
3
|
+
|
4
|
+
Not indented:
|
5
|
+
By one space: |
|
6
|
+
By four
|
7
|
+
spaces
|
8
|
+
Flow style: [ # Leading spaces
|
9
|
+
By two, # in flow style
|
10
|
+
Also by two, # are neither
|
11
|
+
?Still by two # content nor
|
12
|
+
] # indentation.
|