ruby-json 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. data/README +3 -1
  2. data/{lib/json → json}/lexer.rb +4 -1
  3. data/{lib/json → json}/objects.rb +4 -4
  4. data/rakefile +61 -0
  5. data/test/objtest.rb +162 -1
  6. metadata +31 -102
  7. data/doc/classes/Array.html +0 -162
  8. data/doc/classes/Array.src/M000011.html +0 -27
  9. data/doc/classes/Array.src/M000012.html +0 -32
  10. data/doc/classes/ArrayTest.html +0 -129
  11. data/doc/classes/ArrayTest.src/M000014.html +0 -28
  12. data/doc/classes/FalseClass.html +0 -131
  13. data/doc/classes/FalseClass.src/M000013.html +0 -18
  14. data/doc/classes/Hash.html +0 -156
  15. data/doc/classes/Hash.src/M000009.html +0 -29
  16. data/doc/classes/Hash.src/M000010.html +0 -45
  17. data/doc/classes/JSON.html +0 -103
  18. data/doc/classes/JSON/Lexer.html +0 -411
  19. data/doc/classes/JSON/Lexer.src/M000022.html +0 -19
  20. data/doc/classes/JSON/Lexer.src/M000023.html +0 -18
  21. data/doc/classes/JSON/Lexer.src/M000024.html +0 -18
  22. data/doc/classes/JSON/Lexer.src/M000025.html +0 -20
  23. data/doc/classes/JSON/Lexer.src/M000026.html +0 -20
  24. data/doc/classes/JSON/Lexer.src/M000027.html +0 -21
  25. data/doc/classes/JSON/Lexer.src/M000028.html +0 -43
  26. data/doc/classes/JSON/Lexer.src/M000029.html +0 -67
  27. data/doc/classes/JSON/Lexer.src/M000030.html +0 -46
  28. data/doc/classes/JSON/Lexer.src/M000031.html +0 -26
  29. data/doc/classes/JSON/Lexer.src/M000032.html +0 -61
  30. data/doc/classes/JSON/Lexer.src/M000033.html +0 -29
  31. data/doc/classes/JSON/Lexer.src/M000034.html +0 -18
  32. data/doc/classes/JSON/Lexer.src/M000035.html +0 -19
  33. data/doc/classes/JSON/Lexer.src/M000036.html +0 -20
  34. data/doc/classes/LexerTest.html +0 -219
  35. data/doc/classes/LexerTest.src/M000002.html +0 -24
  36. data/doc/classes/LexerTest.src/M000003.html +0 -22
  37. data/doc/classes/LexerTest.src/M000004.html +0 -26
  38. data/doc/classes/LexerTest.src/M000005.html +0 -23
  39. data/doc/classes/LexerTest.src/M000006.html +0 -31
  40. data/doc/classes/LexerTest.src/M000007.html +0 -27
  41. data/doc/classes/LexerTest.src/M000008.html +0 -58
  42. data/doc/classes/NilClass.html +0 -131
  43. data/doc/classes/NilClass.src/M000017.html +0 -18
  44. data/doc/classes/Numeric.html +0 -131
  45. data/doc/classes/Numeric.src/M000016.html +0 -18
  46. data/doc/classes/Object.html +0 -176
  47. data/doc/classes/Object.src/M000018.html +0 -18
  48. data/doc/classes/ObjectTest.html +0 -129
  49. data/doc/classes/ObjectTest.src/M000015.html +0 -28
  50. data/doc/classes/String.html +0 -151
  51. data/doc/classes/String.src/M000019.html +0 -18
  52. data/doc/classes/String.src/M000020.html +0 -46
  53. data/doc/classes/TrueClass.html +0 -131
  54. data/doc/classes/TrueClass.src/M000021.html +0 -18
  55. data/doc/created.rid +0 -1
  56. data/doc/files/install_rb.html +0 -194
  57. data/doc/files/install_rb.src/M000001.html +0 -43
  58. data/doc/files/json/lexer_rb.html +0 -156
  59. data/doc/files/json/objects_rb.html +0 -154
  60. data/doc/files/test/arraytest_rb.html +0 -150
  61. data/doc/files/test/lexertest_rb.html +0 -150
  62. data/doc/files/test/objtest_rb.html +0 -150
  63. data/doc/fr_class_index.html +0 -39
  64. data/doc/fr_file_index.html +0 -32
  65. data/doc/fr_method_index.html +0 -62
  66. data/doc/index.html +0 -24
  67. data/doc/rdoc-style.css +0 -175
  68. data/ruby-json.gemspec +0 -25
@@ -1,18 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>to_json (NilClass)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File json/objects.rb, line 37</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>
15
- <span class="ruby-value str">&quot;null&quot;</span>
16
- <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
@@ -1,131 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Numeric</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <h1>Numeric <sup class="type-note">(Class)</sup></h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>In:</strong></td>
54
- <td>
55
- <a href="../files/json/objects_rb.html">
56
- json/objects.rb
57
- </a>
58
- <br />
59
- </td>
60
- </tr>
61
-
62
- <tr class="top-aligned-row">
63
- <td><strong>Parent:</strong></td>
64
- <td>
65
- <a href="Object.html">
66
- Object
67
- </a>
68
- </td>
69
- </tr>
70
- </table>
71
- </div>
72
- <!-- banner header -->
73
-
74
- <div id="bodyContent">
75
-
76
-
77
- <div id="contextContent">
78
-
79
-
80
-
81
- <div id="method-list">
82
- <h2 class="section-bar">Methods</h2>
83
-
84
- <div class="name-list">
85
- <a href="#M000016">to_json</a>&nbsp;&nbsp;
86
- </div>
87
- </div>
88
-
89
-
90
-
91
-
92
-
93
-
94
- </div>
95
-
96
-
97
-
98
- <!-- if includes -->
99
-
100
-
101
- <!-- if method_list -->
102
- <div id="methods">
103
- <h2 class="section-bar">Public Instance methods</h2>
104
-
105
- <div id="method-M000016" class="method-detail">
106
- <a name="M000016"></a>
107
-
108
- <div class="method-heading">
109
- <a href="Numeric.src/M000016.html" target="Code" class="method-signature"
110
- onclick="popupCode('Numeric.src/M000016.html');return false;">
111
- <span class="method-name">to_json</span><span class="method-args">()</span>
112
- </a>
113
- </div>
114
-
115
- <div class="method-description">
116
- </div>
117
- </div>
118
-
119
-
120
- </div>
121
-
122
-
123
- </div>
124
-
125
-
126
- <div id="validator-badges">
127
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
128
- </div>
129
-
130
- </body>
131
- </html>
@@ -1,18 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>to_json (Numeric)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File json/objects.rb, line 54</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>
15
- <span class="ruby-identifier">to_s</span>
16
- <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
@@ -1,176 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Object</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <h1>Object <sup class="type-note">(Class)</sup></h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>In:</strong></td>
54
- <td>
55
- <a href="../files/json/objects_rb.html">
56
- json/objects.rb
57
- </a>
58
- <br />
59
- </td>
60
- </tr>
61
-
62
- <tr class="top-aligned-row">
63
- <td><strong>Parent:</strong></td>
64
- <td>
65
- <a href="Object.html">
66
- Object
67
- </a>
68
- </td>
69
- </tr>
70
- </table>
71
- </div>
72
- <!-- banner header -->
73
-
74
- <div id="bodyContent">
75
-
76
-
77
- <div id="contextContent">
78
-
79
- <div id="description">
80
- <p>
81
- JSON Objects
82
- </p>
83
- <pre>
84
- Copyright (C) 2003,2005 Rafael R. Sevilla &lt;dido@imperium.ph&gt;
85
- This file is part of JSON for Ruby
86
-
87
- JSON for Ruby is free software; you can redistribute it and/or
88
- modify it under the terms of the GNU Lesser General Public License
89
- as published by the Free Software Foundation; either version 2.1 of
90
- the License, or (at your option) any later version.
91
-
92
- JSON for Ruby is distributed in the hope that it will be useful,
93
- but WITHOUT ANY WARRANTY; without even the implied warranty of
94
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
95
- Lesser General Public License for more details.
96
-
97
- You should have received a copy of the GNU Lesser General Public
98
- License along with JSON for Ruby; if not, write to the Free
99
- Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
100
- 02111-1307 USA.
101
- </pre>
102
- <table>
103
- <tr><td valign="top">Author:</td><td>Rafael R. Sevilla (<a href="mailto:dido@imperium.ph">dido@imperium.ph</a>)
104
-
105
- </td></tr>
106
- </table>
107
- <p>
108
- Heavily modified by Adam Kramer (<a
109
- href="mailto:adam@the-kramers.net">adam@the-kramers.net</a>)
110
- </p>
111
- <table>
112
- <tr><td valign="top">Copyright:</td><td>Copyright &#169; 2003,2005 Rafael R. Sevilla
113
-
114
- </td></tr>
115
- <tr><td valign="top">License:</td><td>GNU Lesser General Public License
116
-
117
- </td></tr>
118
- </table>
119
- <p>
120
- $Id: objects.rb,v 1.1 2005/01/28 02:08:45 didosevilla Exp $
121
- </p>
122
-
123
- </div>
124
-
125
-
126
- <div id="method-list">
127
- <h2 class="section-bar">Methods</h2>
128
-
129
- <div class="name-list">
130
- <a href="#M000018">to_json</a>&nbsp;&nbsp;
131
- </div>
132
- </div>
133
-
134
-
135
-
136
-
137
-
138
-
139
- </div>
140
-
141
-
142
-
143
- <!-- if includes -->
144
-
145
-
146
- <!-- if method_list -->
147
- <div id="methods">
148
- <h2 class="section-bar">Public Instance methods</h2>
149
-
150
- <div id="method-M000018" class="method-detail">
151
- <a name="M000018"></a>
152
-
153
- <div class="method-heading">
154
- <a href="Object.src/M000018.html" target="Code" class="method-signature"
155
- onclick="popupCode('Object.src/M000018.html');return false;">
156
- <span class="method-name">to_json</span><span class="method-args">(</span>
157
- </a>
158
- </div>
159
-
160
- <div class="method-description">
161
- </div>
162
- </div>
163
-
164
-
165
- </div>
166
-
167
-
168
- </div>
169
-
170
-
171
- <div id="validator-badges">
172
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
173
- </div>
174
-
175
- </body>
176
- </html>
@@ -1,18 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>to_json (Object)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File json/objects.rb, line 30</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span> <span class="ruby-comment cmt">#all strings in json need to have double quotes around them, treat random objects as strings</span>
15
- <span class="ruby-constant">String</span>.<span class="ruby-identifier">to_json</span>(<span class="ruby-identifier">to_s</span>)
16
- <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
@@ -1,129 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: ObjectTest</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <h1>ObjectTest <sup class="type-note">(Class)</sup></h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>In:</strong></td>
54
- <td>
55
- <a href="../files/test/objtest_rb.html">
56
- test/objtest.rb
57
- </a>
58
- <br />
59
- </td>
60
- </tr>
61
-
62
- <tr class="top-aligned-row">
63
- <td><strong>Parent:</strong></td>
64
- <td>
65
- Test::Unit::TestCase
66
- </td>
67
- </tr>
68
- </table>
69
- </div>
70
- <!-- banner header -->
71
-
72
- <div id="bodyContent">
73
-
74
-
75
- <div id="contextContent">
76
-
77
-
78
-
79
- <div id="method-list">
80
- <h2 class="section-bar">Methods</h2>
81
-
82
- <div class="name-list">
83
- <a href="#M000015">test_to_json</a>&nbsp;&nbsp;
84
- </div>
85
- </div>
86
-
87
-
88
-
89
-
90
-
91
-
92
- </div>
93
-
94
-
95
-
96
- <!-- if includes -->
97
-
98
-
99
- <!-- if method_list -->
100
- <div id="methods">
101
- <h2 class="section-bar">Public Instance methods</h2>
102
-
103
- <div id="method-M000015" class="method-detail">
104
- <a name="M000015"></a>
105
-
106
- <div class="method-heading">
107
- <a href="ObjectTest.src/M000015.html" target="Code" class="method-signature"
108
- onclick="popupCode('ObjectTest.src/M000015.html');return false;">
109
- <span class="method-name">test_to_json</span><span class="method-args">()</span>
110
- </a>
111
- </div>
112
-
113
- <div class="method-description">
114
- </div>
115
- </div>
116
-
117
-
118
- </div>
119
-
120
-
121
- </div>
122
-
123
-
124
- <div id="validator-badges">
125
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
126
- </div>
127
-
128
- </body>
129
- </html>