simplemapper 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +16 -0
- data/README +0 -0
- data/Rakefile +78 -0
- data/doc/classes/Array.html +139 -0
- data/doc/classes/Array.src/M000001.html +34 -0
- data/doc/classes/Callbacks.html +161 -0
- data/doc/classes/Callbacks.src/M000037.html +18 -0
- data/doc/classes/Callbacks.src/M000038.html +18 -0
- data/doc/classes/Callbacks.src/M000039.html +19 -0
- data/doc/classes/Enumerable.html +131 -0
- data/doc/classes/Enumerable.src/M000040.html +21 -0
- data/doc/classes/Hash.html +154 -0
- data/doc/classes/Hash.src/M000002.html +18 -0
- data/doc/classes/Hash.src/M000003.html +34 -0
- data/doc/classes/Inflector/Inflections.html +323 -0
- data/doc/classes/Inflector/Inflections.src/M000031.html +18 -0
- data/doc/classes/Inflector/Inflections.src/M000032.html +18 -0
- data/doc/classes/Inflector/Inflections.src/M000033.html +18 -0
- data/doc/classes/Inflector/Inflections.src/M000034.html +19 -0
- data/doc/classes/Inflector/Inflections.src/M000035.html +18 -0
- data/doc/classes/Inflector/Inflections.src/M000036.html +23 -0
- data/doc/classes/Inflector.html +516 -0
- data/doc/classes/Inflector.src/M000017.html +22 -0
- data/doc/classes/Inflector.src/M000018.html +25 -0
- data/doc/classes/Inflector.src/M000019.html +25 -0
- data/doc/classes/Inflector.src/M000020.html +22 -0
- data/doc/classes/Inflector.src/M000021.html +18 -0
- data/doc/classes/Inflector.src/M000022.html +22 -0
- data/doc/classes/Inflector.src/M000023.html +18 -0
- data/doc/classes/Inflector.src/M000024.html +18 -0
- data/doc/classes/Inflector.src/M000025.html +18 -0
- data/doc/classes/Inflector.src/M000026.html +18 -0
- data/doc/classes/Inflector.src/M000027.html +19 -0
- data/doc/classes/Inflector.src/M000028.html +18 -0
- data/doc/classes/Inflector.src/M000029.html +22 -0
- data/doc/classes/Inflector.src/M000030.html +27 -0
- data/doc/classes/Merb/Request.html +139 -0
- data/doc/classes/Merb/Request.src/M000041.html +22 -0
- data/doc/classes/Merb.html +111 -0
- data/doc/classes/OAuth/RequestProxy/Base.html +139 -0
- data/doc/classes/OAuth/RequestProxy/Base.src/M000012.html +18 -0
- data/doc/classes/OAuth/RequestProxy.html +111 -0
- data/doc/classes/OAuth/Signature/Base.html +139 -0
- data/doc/classes/OAuth/Signature/Base.src/M000011.html +25 -0
- data/doc/classes/OAuth/Signature.html +111 -0
- data/doc/classes/OAuth.html +112 -0
- data/doc/classes/OAuthController.html +243 -0
- data/doc/classes/OAuthController.src/M000005.html +22 -0
- data/doc/classes/OAuthController.src/M000006.html +18 -0
- data/doc/classes/OAuthController.src/M000007.html +18 -0
- data/doc/classes/OAuthController.src/M000008.html +25 -0
- data/doc/classes/OAuthController.src/M000009.html +19 -0
- data/doc/classes/Object.html +142 -0
- data/doc/classes/Object.src/M000010.html +19 -0
- data/doc/classes/Proc.html +143 -0
- data/doc/classes/Proc.src/M000004.html +18 -0
- data/doc/classes/Serialize.html +189 -0
- data/doc/classes/Serialize.src/M000013.html +21 -0
- data/doc/classes/Serialize.src/M000014.html +39 -0
- data/doc/classes/Serialize.src/M000015.html +16 -0
- data/doc/classes/Serialize.src/M000016.html +46 -0
- data/doc/classes/SimpleMapper/Base.html +528 -0
- data/doc/classes/SimpleMapper/Base.src/M000064.html +16 -0
- data/doc/classes/SimpleMapper/Base.src/M000065.html +16 -0
- data/doc/classes/SimpleMapper/Base.src/M000066.html +22 -0
- data/doc/classes/SimpleMapper/Base.src/M000067.html +21 -0
- data/doc/classes/SimpleMapper/Base.src/M000068.html +26 -0
- data/doc/classes/SimpleMapper/Base.src/M000069.html +18 -0
- data/doc/classes/SimpleMapper/Base.src/M000070.html +18 -0
- data/doc/classes/SimpleMapper/Base.src/M000071.html +18 -0
- data/doc/classes/SimpleMapper/Base.src/M000072.html +19 -0
- data/doc/classes/SimpleMapper/Base.src/M000073.html +23 -0
- data/doc/classes/SimpleMapper/Base.src/M000074.html +18 -0
- data/doc/classes/SimpleMapper/Base.src/M000075.html +20 -0
- data/doc/classes/SimpleMapper/Base.src/M000076.html +18 -0
- data/doc/classes/SimpleMapper/Base.src/M000077.html +18 -0
- data/doc/classes/SimpleMapper/Base.src/M000078.html +19 -0
- data/doc/classes/SimpleMapper/Base.src/M000079.html +18 -0
- data/doc/classes/SimpleMapper/Base.src/M000080.html +18 -0
- data/doc/classes/SimpleMapper/Base.src/M000081.html +19 -0
- data/doc/classes/SimpleMapper/Base.src/M000082.html +20 -0
- data/doc/classes/SimpleMapper/Base.src/M000083.html +24 -0
- data/doc/classes/SimpleMapper/Base.src/M000084.html +18 -0
- data/doc/classes/SimpleMapper/HttpAdapter.html +280 -0
- data/doc/classes/SimpleMapper/HttpAdapter.src/M000056.html +18 -0
- data/doc/classes/SimpleMapper/HttpAdapter.src/M000057.html +18 -0
- data/doc/classes/SimpleMapper/HttpAdapter.src/M000058.html +19 -0
- data/doc/classes/SimpleMapper/HttpAdapter.src/M000060.html +18 -0
- data/doc/classes/SimpleMapper/HttpAdapter.src/M000061.html +18 -0
- data/doc/classes/SimpleMapper/HttpAdapter.src/M000062.html +18 -0
- data/doc/classes/SimpleMapper/HttpAdapter.src/M000063.html +18 -0
- data/doc/classes/SimpleMapper/HttpOAuthExtension.html +188 -0
- data/doc/classes/SimpleMapper/HttpOAuthExtension.src/M000048.html +49 -0
- data/doc/classes/SimpleMapper/HttpOAuthExtension.src/M000049.html +23 -0
- data/doc/classes/SimpleMapper/HttpOAuthExtension.src/M000050.html +18 -0
- data/doc/classes/SimpleMapper/HttpOAuthExtension.src/M000051.html +24 -0
- data/doc/classes/SimpleMapper/SimpleModel/ClassMethods.html +146 -0
- data/doc/classes/SimpleMapper/SimpleModel/ClassMethods.src/M000046.html +19 -0
- data/doc/classes/SimpleMapper/SimpleModel/ClassMethods.src/M000047.html +19 -0
- data/doc/classes/SimpleMapper/SimpleModel.html +184 -0
- data/doc/classes/SimpleMapper/SimpleModel.src/M000042.html +18 -0
- data/doc/classes/SimpleMapper/SimpleModel.src/M000043.html +18 -0
- data/doc/classes/SimpleMapper/SimpleModel.src/M000044.html +18 -0
- data/doc/classes/SimpleMapper/SimpleModel.src/M000045.html +24 -0
- data/doc/classes/SimpleMapper/XmlFormat/ClassMethods.html +152 -0
- data/doc/classes/SimpleMapper/XmlFormat/ClassMethods.src/M000055.html +30 -0
- data/doc/classes/SimpleMapper/XmlFormat.html +169 -0
- data/doc/classes/SimpleMapper/XmlFormat.src/M000052.html +18 -0
- data/doc/classes/SimpleMapper/XmlFormat.src/M000053.html +18 -0
- data/doc/classes/SimpleMapper/XmlFormat.src/M000054.html +18 -0
- data/doc/classes/SimpleMapper.html +146 -0
- data/doc/classes/String.html +120 -0
- data/doc/created.rid +1 -0
- data/doc/files/lib/simple_mapper/adapters/http_adapter_rb.html +110 -0
- data/doc/files/lib/simple_mapper/base_rb.html +108 -0
- data/doc/files/lib/simple_mapper/default_plugins/callbacks_rb.html +101 -0
- data/doc/files/lib/simple_mapper/default_plugins/oauth_rb.html +116 -0
- data/doc/files/lib/simple_mapper/default_plugins/simple_model_rb.html +101 -0
- data/doc/files/lib/simple_mapper/formats/xml_format_rb.html +108 -0
- data/doc/files/lib/simple_mapper/support/bliss_serializer_rb.html +109 -0
- data/doc/files/lib/simple_mapper/support/core_ext_rb.html +108 -0
- data/doc/files/lib/simple_mapper/support/inflections_rb.html +101 -0
- data/doc/files/lib/simple_mapper/support/inflector_rb.html +108 -0
- data/doc/files/lib/simple_mapper/support_rb.html +109 -0
- data/doc/files/lib/simple_mapper_rb.html +137 -0
- data/doc/fr_class_index.html +52 -0
- data/doc/fr_file_index.html +38 -0
- data/doc/fr_method_index.html +110 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/lib/simple_mapper/adapters/http_adapter.rb +64 -0
- data/lib/simple_mapper/base.rb +138 -0
- data/lib/simple_mapper/default_plugins/callbacks.rb +12 -0
- data/lib/simple_mapper/default_plugins/oauth.rb +167 -0
- data/lib/simple_mapper/default_plugins/simple_model.rb +36 -0
- data/lib/simple_mapper/formats/xml_format.rb +48 -0
- data/lib/simple_mapper/support/bliss_serializer.rb +168 -0
- data/lib/simple_mapper/support/core_ext.rb +73 -0
- data/lib/simple_mapper/support/inflections.rb +112 -0
- data/lib/simple_mapper/support/inflector.rb +275 -0
- data/lib/simple_mapper/support.rb +2 -0
- data/lib/simple_mapper.rb +16 -0
- metadata +236 -0
@@ -0,0 +1,108 @@
|
|
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>File: core_ext.rb</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="fileHeader">
|
50
|
+
<h1>core_ext.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>lib/simple_mapper/support/core_ext.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Tue Mar 11 00:49:11 -0400 2008</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
|
72
|
+
<div id="requires-list">
|
73
|
+
<h3 class="section-bar">Required files</h3>
|
74
|
+
|
75
|
+
<div class="name-list">
|
76
|
+
ruby2ruby
|
77
|
+
</div>
|
78
|
+
</div>
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
|
86
|
+
<!-- if includes -->
|
87
|
+
|
88
|
+
<div id="section">
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<!-- if method_list -->
|
98
|
+
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
|
103
|
+
<div id="validator-badges">
|
104
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
</body>
|
108
|
+
</html>
|
@@ -0,0 +1,101 @@
|
|
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>File: inflections.rb</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="fileHeader">
|
50
|
+
<h1>inflections.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>lib/simple_mapper/support/inflections.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Tue Mar 11 00:49:11 -0400 2008</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
</div>
|
77
|
+
|
78
|
+
|
79
|
+
<!-- if includes -->
|
80
|
+
|
81
|
+
<div id="section">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
<!-- if method_list -->
|
91
|
+
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
|
96
|
+
<div id="validator-badges">
|
97
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
98
|
+
</div>
|
99
|
+
|
100
|
+
</body>
|
101
|
+
</html>
|
@@ -0,0 +1,108 @@
|
|
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>File: inflector.rb</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="fileHeader">
|
50
|
+
<h1>inflector.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>lib/simple_mapper/support/inflector.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Tue Mar 11 00:49:11 -0400 2008</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
|
72
|
+
<div id="requires-list">
|
73
|
+
<h3 class="section-bar">Required files</h3>
|
74
|
+
|
75
|
+
<div class="name-list">
|
76
|
+
singleton
|
77
|
+
</div>
|
78
|
+
</div>
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
|
86
|
+
<!-- if includes -->
|
87
|
+
|
88
|
+
<div id="section">
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<!-- if method_list -->
|
98
|
+
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
|
103
|
+
<div id="validator-badges">
|
104
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
</body>
|
108
|
+
</html>
|
@@ -0,0 +1,109 @@
|
|
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>File: support.rb</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="fileHeader">
|
50
|
+
<h1>support.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>lib/simple_mapper/support.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Tue Mar 11 00:49:11 -0400 2008</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
|
72
|
+
<div id="requires-list">
|
73
|
+
<h3 class="section-bar">Required files</h3>
|
74
|
+
|
75
|
+
<div class="name-list">
|
76
|
+
simple_mapper/support/core_ext
|
77
|
+
simple_mapper/support/inflector
|
78
|
+
</div>
|
79
|
+
</div>
|
80
|
+
|
81
|
+
</div>
|
82
|
+
|
83
|
+
|
84
|
+
</div>
|
85
|
+
|
86
|
+
|
87
|
+
<!-- if includes -->
|
88
|
+
|
89
|
+
<div id="section">
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<!-- if method_list -->
|
99
|
+
|
100
|
+
|
101
|
+
</div>
|
102
|
+
|
103
|
+
|
104
|
+
<div id="validator-badges">
|
105
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
106
|
+
</div>
|
107
|
+
|
108
|
+
</body>
|
109
|
+
</html>
|
@@ -0,0 +1,137 @@
|
|
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>File: simple_mapper.rb</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="fileHeader">
|
50
|
+
<h1>simple_mapper.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>lib/simple_mapper.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Tue Mar 11 00:49:11 -0400 2008</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
<div id="description">
|
72
|
+
<p>
|
73
|
+
<a href="../../classes/SimpleMapper.html">SimpleMapper</a>. The purpose of
|
74
|
+
this is to provide Ruby models with Persistence in the simplest way
|
75
|
+
possible. Like all ORM‘s it must be based on two components: Format
|
76
|
+
and Connection. The aim is to stay out of the way as much as possible:
|
77
|
+
Format will be performed by calling, for example a Person class with the
|
78
|
+
xml format: ’@person.to_xml’, and likewise
|
79
|
+
‘Person.from_xml’.
|
80
|
+
</p>
|
81
|
+
<p>
|
82
|
+
<a href="../../classes/SimpleMapper.html">SimpleMapper</a> will hold no
|
83
|
+
concept of primary keys or even of properties or attributes. It will be
|
84
|
+
data-agnostic. It will simply handle the transformation and communication
|
85
|
+
of data while providing a common method interface in order to remove the
|
86
|
+
model from the persistence.
|
87
|
+
</p>
|
88
|
+
<p>
|
89
|
+
The connection class will simply work with the idea of messages sent by
|
90
|
+
adapters. All adapters must respond to these methods appropriately: get,
|
91
|
+
put, post, and delete. These correspond directly to HTTP methods, and
|
92
|
+
correspond to SQL commands in the order of SELECT, UPDATE, INSERT, and
|
93
|
+
DELETE. It is up to an extraneous library/gem to handle conversions of
|
94
|
+
special "finder" options, like converting an options hash to a
|
95
|
+
sql SELECT request, or mapping an options hash to an HTTP request. It is
|
96
|
+
purposed to make it as light and simple as possible to plug these in.
|
97
|
+
</p>
|
98
|
+
|
99
|
+
</div>
|
100
|
+
|
101
|
+
<div id="requires-list">
|
102
|
+
<h3 class="section-bar">Required files</h3>
|
103
|
+
|
104
|
+
<div class="name-list">
|
105
|
+
simple_mapper/base
|
106
|
+
</div>
|
107
|
+
</div>
|
108
|
+
|
109
|
+
</div>
|
110
|
+
|
111
|
+
|
112
|
+
</div>
|
113
|
+
|
114
|
+
|
115
|
+
<!-- if includes -->
|
116
|
+
|
117
|
+
<div id="section">
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
<!-- if method_list -->
|
127
|
+
|
128
|
+
|
129
|
+
</div>
|
130
|
+
|
131
|
+
|
132
|
+
<div id="validator-badges">
|
133
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
134
|
+
</div>
|
135
|
+
|
136
|
+
</body>
|
137
|
+
</html>
|