simplemapper 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. data/LICENSE +16 -0
  2. data/README +0 -0
  3. data/Rakefile +78 -0
  4. data/doc/classes/Array.html +139 -0
  5. data/doc/classes/Array.src/M000001.html +34 -0
  6. data/doc/classes/Callbacks.html +161 -0
  7. data/doc/classes/Callbacks.src/M000037.html +18 -0
  8. data/doc/classes/Callbacks.src/M000038.html +18 -0
  9. data/doc/classes/Callbacks.src/M000039.html +19 -0
  10. data/doc/classes/Enumerable.html +131 -0
  11. data/doc/classes/Enumerable.src/M000040.html +21 -0
  12. data/doc/classes/Hash.html +154 -0
  13. data/doc/classes/Hash.src/M000002.html +18 -0
  14. data/doc/classes/Hash.src/M000003.html +34 -0
  15. data/doc/classes/Inflector/Inflections.html +323 -0
  16. data/doc/classes/Inflector/Inflections.src/M000031.html +18 -0
  17. data/doc/classes/Inflector/Inflections.src/M000032.html +18 -0
  18. data/doc/classes/Inflector/Inflections.src/M000033.html +18 -0
  19. data/doc/classes/Inflector/Inflections.src/M000034.html +19 -0
  20. data/doc/classes/Inflector/Inflections.src/M000035.html +18 -0
  21. data/doc/classes/Inflector/Inflections.src/M000036.html +23 -0
  22. data/doc/classes/Inflector.html +516 -0
  23. data/doc/classes/Inflector.src/M000017.html +22 -0
  24. data/doc/classes/Inflector.src/M000018.html +25 -0
  25. data/doc/classes/Inflector.src/M000019.html +25 -0
  26. data/doc/classes/Inflector.src/M000020.html +22 -0
  27. data/doc/classes/Inflector.src/M000021.html +18 -0
  28. data/doc/classes/Inflector.src/M000022.html +22 -0
  29. data/doc/classes/Inflector.src/M000023.html +18 -0
  30. data/doc/classes/Inflector.src/M000024.html +18 -0
  31. data/doc/classes/Inflector.src/M000025.html +18 -0
  32. data/doc/classes/Inflector.src/M000026.html +18 -0
  33. data/doc/classes/Inflector.src/M000027.html +19 -0
  34. data/doc/classes/Inflector.src/M000028.html +18 -0
  35. data/doc/classes/Inflector.src/M000029.html +22 -0
  36. data/doc/classes/Inflector.src/M000030.html +27 -0
  37. data/doc/classes/Merb/Request.html +139 -0
  38. data/doc/classes/Merb/Request.src/M000041.html +22 -0
  39. data/doc/classes/Merb.html +111 -0
  40. data/doc/classes/OAuth/RequestProxy/Base.html +139 -0
  41. data/doc/classes/OAuth/RequestProxy/Base.src/M000012.html +18 -0
  42. data/doc/classes/OAuth/RequestProxy.html +111 -0
  43. data/doc/classes/OAuth/Signature/Base.html +139 -0
  44. data/doc/classes/OAuth/Signature/Base.src/M000011.html +25 -0
  45. data/doc/classes/OAuth/Signature.html +111 -0
  46. data/doc/classes/OAuth.html +112 -0
  47. data/doc/classes/OAuthController.html +243 -0
  48. data/doc/classes/OAuthController.src/M000005.html +22 -0
  49. data/doc/classes/OAuthController.src/M000006.html +18 -0
  50. data/doc/classes/OAuthController.src/M000007.html +18 -0
  51. data/doc/classes/OAuthController.src/M000008.html +25 -0
  52. data/doc/classes/OAuthController.src/M000009.html +19 -0
  53. data/doc/classes/Object.html +142 -0
  54. data/doc/classes/Object.src/M000010.html +19 -0
  55. data/doc/classes/Proc.html +143 -0
  56. data/doc/classes/Proc.src/M000004.html +18 -0
  57. data/doc/classes/Serialize.html +189 -0
  58. data/doc/classes/Serialize.src/M000013.html +21 -0
  59. data/doc/classes/Serialize.src/M000014.html +39 -0
  60. data/doc/classes/Serialize.src/M000015.html +16 -0
  61. data/doc/classes/Serialize.src/M000016.html +46 -0
  62. data/doc/classes/SimpleMapper/Base.html +528 -0
  63. data/doc/classes/SimpleMapper/Base.src/M000064.html +16 -0
  64. data/doc/classes/SimpleMapper/Base.src/M000065.html +16 -0
  65. data/doc/classes/SimpleMapper/Base.src/M000066.html +22 -0
  66. data/doc/classes/SimpleMapper/Base.src/M000067.html +21 -0
  67. data/doc/classes/SimpleMapper/Base.src/M000068.html +26 -0
  68. data/doc/classes/SimpleMapper/Base.src/M000069.html +18 -0
  69. data/doc/classes/SimpleMapper/Base.src/M000070.html +18 -0
  70. data/doc/classes/SimpleMapper/Base.src/M000071.html +18 -0
  71. data/doc/classes/SimpleMapper/Base.src/M000072.html +19 -0
  72. data/doc/classes/SimpleMapper/Base.src/M000073.html +23 -0
  73. data/doc/classes/SimpleMapper/Base.src/M000074.html +18 -0
  74. data/doc/classes/SimpleMapper/Base.src/M000075.html +20 -0
  75. data/doc/classes/SimpleMapper/Base.src/M000076.html +18 -0
  76. data/doc/classes/SimpleMapper/Base.src/M000077.html +18 -0
  77. data/doc/classes/SimpleMapper/Base.src/M000078.html +19 -0
  78. data/doc/classes/SimpleMapper/Base.src/M000079.html +18 -0
  79. data/doc/classes/SimpleMapper/Base.src/M000080.html +18 -0
  80. data/doc/classes/SimpleMapper/Base.src/M000081.html +19 -0
  81. data/doc/classes/SimpleMapper/Base.src/M000082.html +20 -0
  82. data/doc/classes/SimpleMapper/Base.src/M000083.html +24 -0
  83. data/doc/classes/SimpleMapper/Base.src/M000084.html +18 -0
  84. data/doc/classes/SimpleMapper/HttpAdapter.html +280 -0
  85. data/doc/classes/SimpleMapper/HttpAdapter.src/M000056.html +18 -0
  86. data/doc/classes/SimpleMapper/HttpAdapter.src/M000057.html +18 -0
  87. data/doc/classes/SimpleMapper/HttpAdapter.src/M000058.html +19 -0
  88. data/doc/classes/SimpleMapper/HttpAdapter.src/M000060.html +18 -0
  89. data/doc/classes/SimpleMapper/HttpAdapter.src/M000061.html +18 -0
  90. data/doc/classes/SimpleMapper/HttpAdapter.src/M000062.html +18 -0
  91. data/doc/classes/SimpleMapper/HttpAdapter.src/M000063.html +18 -0
  92. data/doc/classes/SimpleMapper/HttpOAuthExtension.html +188 -0
  93. data/doc/classes/SimpleMapper/HttpOAuthExtension.src/M000048.html +49 -0
  94. data/doc/classes/SimpleMapper/HttpOAuthExtension.src/M000049.html +23 -0
  95. data/doc/classes/SimpleMapper/HttpOAuthExtension.src/M000050.html +18 -0
  96. data/doc/classes/SimpleMapper/HttpOAuthExtension.src/M000051.html +24 -0
  97. data/doc/classes/SimpleMapper/SimpleModel/ClassMethods.html +146 -0
  98. data/doc/classes/SimpleMapper/SimpleModel/ClassMethods.src/M000046.html +19 -0
  99. data/doc/classes/SimpleMapper/SimpleModel/ClassMethods.src/M000047.html +19 -0
  100. data/doc/classes/SimpleMapper/SimpleModel.html +184 -0
  101. data/doc/classes/SimpleMapper/SimpleModel.src/M000042.html +18 -0
  102. data/doc/classes/SimpleMapper/SimpleModel.src/M000043.html +18 -0
  103. data/doc/classes/SimpleMapper/SimpleModel.src/M000044.html +18 -0
  104. data/doc/classes/SimpleMapper/SimpleModel.src/M000045.html +24 -0
  105. data/doc/classes/SimpleMapper/XmlFormat/ClassMethods.html +152 -0
  106. data/doc/classes/SimpleMapper/XmlFormat/ClassMethods.src/M000055.html +30 -0
  107. data/doc/classes/SimpleMapper/XmlFormat.html +169 -0
  108. data/doc/classes/SimpleMapper/XmlFormat.src/M000052.html +18 -0
  109. data/doc/classes/SimpleMapper/XmlFormat.src/M000053.html +18 -0
  110. data/doc/classes/SimpleMapper/XmlFormat.src/M000054.html +18 -0
  111. data/doc/classes/SimpleMapper.html +146 -0
  112. data/doc/classes/String.html +120 -0
  113. data/doc/created.rid +1 -0
  114. data/doc/files/lib/simple_mapper/adapters/http_adapter_rb.html +110 -0
  115. data/doc/files/lib/simple_mapper/base_rb.html +108 -0
  116. data/doc/files/lib/simple_mapper/default_plugins/callbacks_rb.html +101 -0
  117. data/doc/files/lib/simple_mapper/default_plugins/oauth_rb.html +116 -0
  118. data/doc/files/lib/simple_mapper/default_plugins/simple_model_rb.html +101 -0
  119. data/doc/files/lib/simple_mapper/formats/xml_format_rb.html +108 -0
  120. data/doc/files/lib/simple_mapper/support/bliss_serializer_rb.html +109 -0
  121. data/doc/files/lib/simple_mapper/support/core_ext_rb.html +108 -0
  122. data/doc/files/lib/simple_mapper/support/inflections_rb.html +101 -0
  123. data/doc/files/lib/simple_mapper/support/inflector_rb.html +108 -0
  124. data/doc/files/lib/simple_mapper/support_rb.html +109 -0
  125. data/doc/files/lib/simple_mapper_rb.html +137 -0
  126. data/doc/fr_class_index.html +52 -0
  127. data/doc/fr_file_index.html +38 -0
  128. data/doc/fr_method_index.html +110 -0
  129. data/doc/index.html +24 -0
  130. data/doc/rdoc-style.css +208 -0
  131. data/lib/simple_mapper/adapters/http_adapter.rb +64 -0
  132. data/lib/simple_mapper/base.rb +138 -0
  133. data/lib/simple_mapper/default_plugins/callbacks.rb +12 -0
  134. data/lib/simple_mapper/default_plugins/oauth.rb +167 -0
  135. data/lib/simple_mapper/default_plugins/simple_model.rb +36 -0
  136. data/lib/simple_mapper/formats/xml_format.rb +48 -0
  137. data/lib/simple_mapper/support/bliss_serializer.rb +168 -0
  138. data/lib/simple_mapper/support/core_ext.rb +73 -0
  139. data/lib/simple_mapper/support/inflections.rb +112 -0
  140. data/lib/simple_mapper/support/inflector.rb +275 -0
  141. data/lib/simple_mapper/support.rb +2 -0
  142. data/lib/simple_mapper.rb +16 -0
  143. metadata +236 -0
@@ -0,0 +1,52 @@
1
+
2
+ <?xml version="1.0" encoding="iso-8859-1"?>
3
+ <!DOCTYPE html
4
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
+
7
+ <!--
8
+
9
+ Classes
10
+
11
+ -->
12
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
+ <head>
14
+ <title>Classes</title>
15
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
+ <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
+ <base target="docwin" />
18
+ </head>
19
+ <body>
20
+ <div id="index">
21
+ <h1 class="section-bar">Classes</h1>
22
+ <div id="index-entries">
23
+ <a href="classes/Array.html">Array</a><br />
24
+ <a href="classes/Callbacks.html">Callbacks</a><br />
25
+ <a href="classes/Enumerable.html">Enumerable</a><br />
26
+ <a href="classes/Hash.html">Hash</a><br />
27
+ <a href="classes/Inflector.html">Inflector</a><br />
28
+ <a href="classes/Inflector/Inflections.html">Inflector::Inflections</a><br />
29
+ <a href="classes/Merb.html">Merb</a><br />
30
+ <a href="classes/Merb/Request.html">Merb::Request</a><br />
31
+ <a href="classes/OAuth.html">OAuth</a><br />
32
+ <a href="classes/OAuth/RequestProxy.html">OAuth::RequestProxy</a><br />
33
+ <a href="classes/OAuth/RequestProxy/Base.html">OAuth::RequestProxy::Base</a><br />
34
+ <a href="classes/OAuth/Signature.html">OAuth::Signature</a><br />
35
+ <a href="classes/OAuth/Signature/Base.html">OAuth::Signature::Base</a><br />
36
+ <a href="classes/OAuthController.html">OAuthController</a><br />
37
+ <a href="classes/Object.html">Object</a><br />
38
+ <a href="classes/Proc.html">Proc</a><br />
39
+ <a href="classes/Serialize.html">Serialize</a><br />
40
+ <a href="classes/SimpleMapper.html">SimpleMapper</a><br />
41
+ <a href="classes/SimpleMapper/Base.html">SimpleMapper::Base</a><br />
42
+ <a href="classes/SimpleMapper/HttpAdapter.html">SimpleMapper::HttpAdapter</a><br />
43
+ <a href="classes/SimpleMapper/HttpOAuthExtension.html">SimpleMapper::HttpOAuthExtension</a><br />
44
+ <a href="classes/SimpleMapper/SimpleModel.html">SimpleMapper::SimpleModel</a><br />
45
+ <a href="classes/SimpleMapper/SimpleModel/ClassMethods.html">SimpleMapper::SimpleModel::ClassMethods</a><br />
46
+ <a href="classes/SimpleMapper/XmlFormat.html">SimpleMapper::XmlFormat</a><br />
47
+ <a href="classes/SimpleMapper/XmlFormat/ClassMethods.html">SimpleMapper::XmlFormat::ClassMethods</a><br />
48
+ <a href="classes/String.html">String</a><br />
49
+ </div>
50
+ </div>
51
+ </body>
52
+ </html>
@@ -0,0 +1,38 @@
1
+
2
+ <?xml version="1.0" encoding="iso-8859-1"?>
3
+ <!DOCTYPE html
4
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
+
7
+ <!--
8
+
9
+ Files
10
+
11
+ -->
12
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
+ <head>
14
+ <title>Files</title>
15
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
+ <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
+ <base target="docwin" />
18
+ </head>
19
+ <body>
20
+ <div id="index">
21
+ <h1 class="section-bar">Files</h1>
22
+ <div id="index-entries">
23
+ <a href="files/lib/simple_mapper_rb.html">lib/simple_mapper.rb</a><br />
24
+ <a href="files/lib/simple_mapper/adapters/http_adapter_rb.html">lib/simple_mapper/adapters/http_adapter.rb</a><br />
25
+ <a href="files/lib/simple_mapper/base_rb.html">lib/simple_mapper/base.rb</a><br />
26
+ <a href="files/lib/simple_mapper/default_plugins/callbacks_rb.html">lib/simple_mapper/default_plugins/callbacks.rb</a><br />
27
+ <a href="files/lib/simple_mapper/default_plugins/oauth_rb.html">lib/simple_mapper/default_plugins/oauth.rb</a><br />
28
+ <a href="files/lib/simple_mapper/default_plugins/simple_model_rb.html">lib/simple_mapper/default_plugins/simple_model.rb</a><br />
29
+ <a href="files/lib/simple_mapper/formats/xml_format_rb.html">lib/simple_mapper/formats/xml_format.rb</a><br />
30
+ <a href="files/lib/simple_mapper/support_rb.html">lib/simple_mapper/support.rb</a><br />
31
+ <a href="files/lib/simple_mapper/support/bliss_serializer_rb.html">lib/simple_mapper/support/bliss_serializer.rb</a><br />
32
+ <a href="files/lib/simple_mapper/support/core_ext_rb.html">lib/simple_mapper/support/core_ext.rb</a><br />
33
+ <a href="files/lib/simple_mapper/support/inflections_rb.html">lib/simple_mapper/support/inflections.rb</a><br />
34
+ <a href="files/lib/simple_mapper/support/inflector_rb.html">lib/simple_mapper/support/inflector.rb</a><br />
35
+ </div>
36
+ </div>
37
+ </body>
38
+ </html>
@@ -0,0 +1,110 @@
1
+
2
+ <?xml version="1.0" encoding="iso-8859-1"?>
3
+ <!DOCTYPE html
4
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
+
7
+ <!--
8
+
9
+ Methods
10
+
11
+ -->
12
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
+ <head>
14
+ <title>Methods</title>
15
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
+ <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
+ <base target="docwin" />
18
+ </head>
19
+ <body>
20
+ <div id="index">
21
+ <h1 class="section-bar">Methods</h1>
22
+ <div id="index-entries">
23
+ <a href="classes/Callbacks.html#M000038">add_callback (Callbacks)</a><br />
24
+ <a href="classes/OAuthController.html#M000008">authenticate! (OAuthController)</a><br />
25
+ <a href="classes/OAuthController.html#M000006">authorized? (OAuthController)</a><br />
26
+ <a href="classes/SimpleMapper/HttpAdapter.html#M000056">base_uri (SimpleMapper::HttpAdapter)</a><br />
27
+ <a href="classes/Callbacks.html#M000037">callbacks (Callbacks)</a><br />
28
+ <a href="classes/Inflector.html#M000020">camelize (Inflector)</a><br />
29
+ <a href="classes/Inflector.html#M000027">classify (Inflector)</a><br />
30
+ <a href="classes/Inflector/Inflections.html#M000036">clear (Inflector::Inflections)</a><br />
31
+ <a href="classes/SimpleMapper/Base.html#M000068">connection (SimpleMapper::Base)</a><br />
32
+ <a href="classes/SimpleMapper/Base.html#M000066">connection_adapter= (SimpleMapper::Base)</a><br />
33
+ <a href="classes/Inflector.html#M000029">constantize (Inflector)</a><br />
34
+ <a href="classes/Array.html#M000001">crawl (Array)</a><br />
35
+ <a href="classes/Hash.html#M000003">crawl (Hash)</a><br />
36
+ <a href="classes/SimpleMapper/Base.html#M000070">create (SimpleMapper::Base)</a><br />
37
+ <a href="classes/Inflector.html#M000023">dasherize (Inflector)</a><br />
38
+ <a href="classes/SimpleMapper/Base.html#M000077">data (SimpleMapper::Base)</a><br />
39
+ <a href="classes/SimpleMapper/Base.html#M000076">data= (SimpleMapper::Base)</a><br />
40
+ <a href="classes/SimpleMapper/Base.html#M000065">debug! (SimpleMapper::Base)</a><br />
41
+ <a href="classes/SimpleMapper/Base.html#M000064">debug? (SimpleMapper::Base)</a><br />
42
+ <a href="classes/SimpleMapper/HttpAdapter.html#M000063">delete (SimpleMapper::HttpAdapter)</a><br />
43
+ <a href="classes/SimpleMapper/Base.html#M000083">delete (SimpleMapper::Base)</a><br />
44
+ <a href="classes/Inflector.html#M000025">demodulize (Inflector)</a><br />
45
+ <a href="classes/Object.html#M000010">extended (Object)</a><br />
46
+ <a href="classes/SimpleMapper/Base.html#M000072">extract_from (SimpleMapper::Base)</a><br />
47
+ <a href="classes/SimpleMapper/Base.html#M000073">extract_one (SimpleMapper::Base)</a><br />
48
+ <a href="classes/Inflector.html#M000028">foreign_key (Inflector)</a><br />
49
+ <a href="classes/SimpleMapper/Base.html#M000067">format= (SimpleMapper::Base)</a><br />
50
+ <a href="classes/SimpleMapper/Base.html#M000079">formatted_data (SimpleMapper::Base)</a><br />
51
+ <a href="classes/SimpleMapper/XmlFormat/ClassMethods.html#M000055">from_xml (SimpleMapper::XmlFormat::ClassMethods)</a><br />
52
+ <a href="classes/SimpleMapper/HttpAdapter.html#M000060">get (SimpleMapper::HttpAdapter)</a><br />
53
+ <a href="classes/SimpleMapper/Base.html#M000069">get (SimpleMapper::Base)</a><br />
54
+ <a href="classes/Enumerable.html#M000040">group_by (Enumerable)</a><br />
55
+ <a href="classes/Serialize.html#M000016">hash_from_xml (Serialize)</a><br />
56
+ <a href="classes/SimpleMapper/HttpAdapter.html#M000057">headers (SimpleMapper::HttpAdapter)</a><br />
57
+ <a href="classes/SimpleMapper/HttpAdapter.html#M000058">headers= (SimpleMapper::HttpAdapter)</a><br />
58
+ <a href="classes/Inflector.html#M000024">humanize (Inflector)</a><br />
59
+ <a href="classes/SimpleMapper/SimpleModel.html#M000044">identifier (SimpleMapper::SimpleModel)</a><br />
60
+ <a href="classes/SimpleMapper/SimpleModel/ClassMethods.html#M000047">identifier (SimpleMapper::SimpleModel::ClassMethods)</a><br />
61
+ <a href="classes/Proc.html#M000004">in_context (Proc)</a><br />
62
+ <a href="classes/SimpleMapper/SimpleModel.html#M000042">included (SimpleMapper::SimpleModel)</a><br />
63
+ <a href="classes/SimpleMapper/XmlFormat.html#M000052">included (SimpleMapper::XmlFormat)</a><br />
64
+ <a href="classes/Inflector.html#M000017">inflections (Inflector)</a><br />
65
+ <a href="classes/OAuth/RequestProxy/Base.html#M000012">inspect (OAuth::RequestProxy::Base)</a><br />
66
+ <a href="classes/SimpleMapper/Base.html#M000078">instantiate (SimpleMapper::Base)</a><br />
67
+ <a href="classes/Inflector/Inflections.html#M000034">irregular (Inflector::Inflections)</a><br />
68
+ <a href="classes/SimpleMapper/SimpleModel.html#M000045">method_missing (SimpleMapper::SimpleModel)</a><br />
69
+ <a href="classes/SimpleMapper/XmlFormat.html#M000053">mime_type_headers (SimpleMapper::XmlFormat)</a><br />
70
+ <a href="classes/Inflector/Inflections.html#M000031">new (Inflector::Inflections)</a><br />
71
+ <a href="classes/SimpleMapper/Base.html#M000074">new (SimpleMapper::Base)</a><br />
72
+ <a href="classes/OAuth/Signature/Base.html#M000011">new (OAuth::Signature::Base)</a><br />
73
+ <a href="classes/OAuthController.html#M000005">new (OAuthController)</a><br />
74
+ <a href="classes/SimpleMapper/HttpOAuthExtension.html#M000050">oauth (SimpleMapper::HttpOAuthExtension)</a><br />
75
+ <a href="classes/Serialize.html#M000013">object_to_xml (Serialize)</a><br />
76
+ <a href="classes/Inflector.html#M000030">ordinalize (Inflector)</a><br />
77
+ <a href="classes/SimpleMapper/Base.html#M000075">original_data= (SimpleMapper::Base)</a><br />
78
+ <a href="classes/SimpleMapper/Base.html#M000084">persisted? (SimpleMapper::Base)</a><br />
79
+ <a href="classes/SimpleMapper/Base.html#M000071">persistent? (SimpleMapper::Base)</a><br />
80
+ <a href="classes/Inflector/Inflections.html#M000032">plural (Inflector::Inflections)</a><br />
81
+ <a href="classes/Inflector.html#M000018">pluralize (Inflector)</a><br />
82
+ <a href="classes/SimpleMapper/HttpAdapter.html#M000062">post (SimpleMapper::HttpAdapter)</a><br />
83
+ <a href="classes/SimpleMapper/Base.html#M000082">post (SimpleMapper::Base)</a><br />
84
+ <a href="classes/SimpleMapper/SimpleModel/ClassMethods.html#M000046">properties (SimpleMapper::SimpleModel::ClassMethods)</a><br />
85
+ <a href="classes/SimpleMapper/HttpAdapter.html#M000061">put (SimpleMapper::HttpAdapter)</a><br />
86
+ <a href="classes/SimpleMapper/Base.html#M000081">put (SimpleMapper::Base)</a><br />
87
+ <a href="classes/OAuthController.html#M000009">request_signed! (OAuthController)</a><br />
88
+ <a href="classes/SimpleMapper/HttpOAuthExtension.html#M000048">requires_oauth (SimpleMapper::HttpOAuthExtension)</a><br />
89
+ <a href="classes/Callbacks.html#M000039">run_callback (Callbacks)</a><br />
90
+ <a href="classes/SimpleMapper/Base.html#M000080">save (SimpleMapper::Base)</a><br />
91
+ <a href="classes/OAuthController.html#M000007">scriptable? (OAuthController)</a><br />
92
+ <a href="classes/SimpleMapper/HttpAdapter.html#M000059">set_headers (SimpleMapper::HttpAdapter)</a><br />
93
+ <a href="classes/SimpleMapper/HttpOAuthExtension.html#M000051">set_oauth (SimpleMapper::HttpOAuthExtension)</a><br />
94
+ <a href="classes/Inflector/Inflections.html#M000033">singular (Inflector::Inflections)</a><br />
95
+ <a href="classes/Inflector.html#M000019">singularize (Inflector)</a><br />
96
+ <a href="classes/Hash.html#M000002">stringify_keys! (Hash)</a><br />
97
+ <a href="classes/Inflector.html#M000026">tableize (Inflector)</a><br />
98
+ <a href="classes/Inflector.html#M000021">titleize (Inflector)</a><br />
99
+ <a href="classes/SimpleMapper/SimpleModel.html#M000043">to_hash (SimpleMapper::SimpleModel)</a><br />
100
+ <a href="classes/Serialize.html#M000015">to_string (Serialize)</a><br />
101
+ <a href="classes/Serialize.html#M000014">to_xml (Serialize)</a><br />
102
+ <a href="classes/SimpleMapper/XmlFormat.html#M000054">to_xml (SimpleMapper::XmlFormat)</a><br />
103
+ <a href="classes/Inflector/Inflections.html#M000035">uncountable (Inflector::Inflections)</a><br />
104
+ <a href="classes/Inflector.html#M000022">underscore (Inflector)</a><br />
105
+ <a href="classes/SimpleMapper/HttpOAuthExtension.html#M000049">with_oauth (SimpleMapper::HttpOAuthExtension)</a><br />
106
+ <a href="classes/Merb/Request.html#M000041">xml_params (Merb::Request)</a><br />
107
+ </div>
108
+ </div>
109
+ </body>
110
+ </html>
data/doc/index.html ADDED
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
5
+
6
+ <!--
7
+
8
+ SimpleMapper: A Lightweight ORM
9
+
10
+ -->
11
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
12
+ <head>
13
+ <title>SimpleMapper: A Lightweight ORM</title>
14
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
+ </head>
16
+ <frameset rows="20%, 80%">
17
+ <frameset cols="25%,35%,45%">
18
+ <frame src="fr_file_index.html" title="Files" name="Files" />
19
+ <frame src="fr_class_index.html" name="Classes" />
20
+ <frame src="fr_method_index.html" name="Methods" />
21
+ </frameset>
22
+ <frame src="files/lib/simple_mapper/adapters/http_adapter_rb.html" name="docwin" />
23
+ </frameset>
24
+ </html>
@@ -0,0 +1,208 @@
1
+
2
+ body {
3
+ font-family: Verdana,Arial,Helvetica,sans-serif;
4
+ font-size: 90%;
5
+ margin: 0;
6
+ margin-left: 40px;
7
+ padding: 0;
8
+ background: white;
9
+ }
10
+
11
+ h1,h2,h3,h4 { margin: 0; color: #efefef; background: transparent; }
12
+ h1 { font-size: 150%; }
13
+ h2,h3,h4 { margin-top: 1em; }
14
+
15
+ a { background: #eef; color: #039; text-decoration: none; }
16
+ a:hover { background: #039; color: #eef; }
17
+
18
+ /* Override the base stylesheet's Anchor inside a table cell */
19
+ td > a {
20
+ background: transparent;
21
+ color: #039;
22
+ text-decoration: none;
23
+ }
24
+
25
+ /* and inside a section title */
26
+ .section-title > a {
27
+ background: transparent;
28
+ color: #eee;
29
+ text-decoration: none;
30
+ }
31
+
32
+ /* === Structural elements =================================== */
33
+
34
+ div#index {
35
+ margin: 0;
36
+ margin-left: -40px;
37
+ padding: 0;
38
+ font-size: 90%;
39
+ }
40
+
41
+
42
+ div#index a {
43
+ margin-left: 0.7em;
44
+ }
45
+
46
+ div#index .section-bar {
47
+ margin-left: 0px;
48
+ padding-left: 0.7em;
49
+ background: #ccc;
50
+ font-size: small;
51
+ }
52
+
53
+
54
+ div#classHeader, div#fileHeader {
55
+ width: auto;
56
+ color: white;
57
+ padding: 0.5em 1.5em 0.5em 1.5em;
58
+ margin: 0;
59
+ margin-left: -40px;
60
+ border-bottom: 3px solid #006;
61
+ }
62
+
63
+ div#classHeader a, div#fileHeader a {
64
+ background: inherit;
65
+ color: white;
66
+ }
67
+
68
+ div#classHeader td, div#fileHeader td {
69
+ background: inherit;
70
+ color: white;
71
+ }
72
+
73
+
74
+ div#fileHeader {
75
+ background: #057;
76
+ }
77
+
78
+ div#classHeader {
79
+ background: #048;
80
+ }
81
+
82
+
83
+ .class-name-in-header {
84
+ font-size: 180%;
85
+ font-weight: bold;
86
+ }
87
+
88
+
89
+ div#bodyContent {
90
+ padding: 0 1.5em 0 1.5em;
91
+ }
92
+
93
+ div#description {
94
+ padding: 0.5em 1.5em;
95
+ background: #efefef;
96
+ border: 1px dotted #999;
97
+ }
98
+
99
+ div#description h1,h2,h3,h4,h5,h6 {
100
+ color: #125;;
101
+ background: transparent;
102
+ }
103
+
104
+ div#validator-badges {
105
+ text-align: center;
106
+ }
107
+ div#validator-badges img { border: 0; }
108
+
109
+ div#copyright {
110
+ color: #333;
111
+ background: #efefef;
112
+ font: 0.75em sans-serif;
113
+ margin-top: 5em;
114
+ margin-bottom: 0;
115
+ padding: 0.5em 2em;
116
+ }
117
+
118
+
119
+ /* === Classes =================================== */
120
+
121
+ table.header-table {
122
+ color: white;
123
+ font-size: small;
124
+ }
125
+
126
+ .type-note {
127
+ font-size: small;
128
+ color: #DEDEDE;
129
+ }
130
+
131
+ .xxsection-bar {
132
+ background: #eee;
133
+ color: #333;
134
+ padding: 3px;
135
+ }
136
+
137
+ .section-bar {
138
+ color: #333;
139
+ border-bottom: 1px solid #999;
140
+ margin-left: -20px;
141
+ }
142
+
143
+
144
+ .section-title {
145
+ background: #79a;
146
+ color: #eee;
147
+ padding: 3px;
148
+ margin-top: 2em;
149
+ margin-left: -30px;
150
+ border: 1px solid #999;
151
+ }
152
+
153
+ .top-aligned-row { vertical-align: top }
154
+ .bottom-aligned-row { vertical-align: bottom }
155
+
156
+ /* --- Context section classes ----------------------- */
157
+
158
+ .context-row { }
159
+ .context-item-name { font-family: monospace; font-weight: bold; color: black; }
160
+ .context-item-value { font-size: small; color: #448; }
161
+ .context-item-desc { color: #333; padding-left: 2em; }
162
+
163
+ /* --- Method classes -------------------------- */
164
+ .method-detail {
165
+ background: #efefef;
166
+ padding: 0;
167
+ margin-top: 0.5em;
168
+ margin-bottom: 1em;
169
+ border: 1px dotted #ccc;
170
+ }
171
+ .method-heading {
172
+ color: black;
173
+ background: #ccc;
174
+ border-bottom: 1px solid #666;
175
+ padding: 0.2em 0.5em 0 0.5em;
176
+ }
177
+ .method-signature { color: black; background: inherit; }
178
+ .method-name { font-weight: bold; }
179
+ .method-args { font-style: italic; }
180
+ .method-description { padding: 0 0.5em 0 0.5em; }
181
+
182
+ /* --- Source code sections -------------------- */
183
+
184
+ a.source-toggle { font-size: 90%; }
185
+ div.method-source-code {
186
+ background: #262626;
187
+ color: #ffdead;
188
+ margin: 1em;
189
+ padding: 0.5em;
190
+ border: 1px dashed #999;
191
+ overflow: hidden;
192
+ }
193
+
194
+ div.method-source-code pre { color: #ffdead; overflow: hidden; }
195
+
196
+ /* --- Ruby keyword styles --------------------- */
197
+
198
+ .standalone-code { background: #221111; color: #ffdead; overflow: hidden; }
199
+
200
+ .ruby-constant { color: #7fffd4; background: transparent; }
201
+ .ruby-keyword { color: #00ffff; background: transparent; }
202
+ .ruby-ivar { color: #eedd82; background: transparent; }
203
+ .ruby-operator { color: #00ffee; background: transparent; }
204
+ .ruby-identifier { color: #ffdead; background: transparent; }
205
+ .ruby-node { color: #ffa07a; background: transparent; }
206
+ .ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
207
+ .ruby-regexp { color: #ffa07a; background: transparent; }
208
+ .ruby-value { color: #7fffd4; background: transparent; }
@@ -0,0 +1,64 @@
1
+ require 'net/http'
2
+ require 'uri'
3
+ require 'simple_mapper/default_plugins/callbacks'
4
+
5
+ # SimpleMapper::HttpAdapter.
6
+ # Input:
7
+ # get is called with finder options
8
+ # put and post are called with data
9
+ # delete is called with an identifier
10
+ # Simply perform the requests, with callbacks, to the appropriate http host.
11
+ module SimpleMapper
12
+ class HttpAdapter
13
+ include Callbacks
14
+
15
+ attr_accessor :base_url
16
+ alias :set_base_url :base_url=
17
+ def base_uri
18
+ URI.parse(base_url)
19
+ end
20
+
21
+ def headers
22
+ @headers ||= {}
23
+ end
24
+ def headers=(v)
25
+ raise TypeError, "headers set must be a hash" unless v.is_a?(Hash)
26
+ headers.merge!(v)
27
+ end
28
+ alias :set_headers :headers=
29
+
30
+ def get(*args)
31
+ http.request(request('get', base_uri.path)).body
32
+ end
33
+
34
+ def put(identifier,data)
35
+ http.request(request('put', URI.parse(identifier).path, data)).body
36
+ end
37
+
38
+ def post(data)
39
+ http.request(request('post', base_uri.path, data)).body
40
+ end
41
+
42
+ # In the http adapter, the identifier is a url.
43
+ def delete(identifier)
44
+ http.request(request('delete', URI.parse(identifier).path)).body
45
+ end
46
+
47
+ private
48
+ def http(refresh=false)
49
+ @http = Net::HTTP.new(base_uri.host, base_uri.port) if @http.nil? || refresh
50
+ @http
51
+ end
52
+
53
+ def request(verb,path,body=nil,options={})
54
+ request_class = Net::HTTP.const_get verb.to_s.capitalize
55
+ request = request_class.new path
56
+ request.body = body
57
+ request.initialize_http_header headers.merge(options[:headers] || {})
58
+ # - - - after_request_instantiate callback
59
+ request = run_callback('initialize_request', request)
60
+ # - - -
61
+ request
62
+ end
63
+ end
64
+ end