io_shuten 0.0.1.dev4 → 0.0.1.dev5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. data/.travis.yml +5 -0
  2. data/.yardopts +0 -1
  3. data/Gemfile +1 -1
  4. data/Gemfile.lock +0 -3
  5. data/Rakefile +0 -6
  6. data/doc/IO_shuten.html +126 -0
  7. data/doc/IO_shuten/Base.html +2677 -0
  8. data/doc/IO_shuten/Base/FileAccessError.html +129 -0
  9. data/doc/IO_shuten/Base/FileNotFoundError.html +129 -0
  10. data/doc/IO_shuten/Base/NodeNameError.html +129 -0
  11. data/doc/IO_shuten/Base/NodeNotFoundError.html +129 -0
  12. data/doc/IO_shuten/Base/NotYetImplemented.html +129 -0
  13. data/doc/IO_shuten/Errors.html +119 -0
  14. data/doc/IO_shuten/Errors/FileAccessError.html +129 -0
  15. data/doc/IO_shuten/Errors/FileNotFoundError.html +129 -0
  16. data/doc/IO_shuten/Errors/NodeExistsError.html +129 -0
  17. data/doc/IO_shuten/Errors/NodeNameError.html +129 -0
  18. data/doc/IO_shuten/Errors/NodeNameExistsError.html +129 -0
  19. data/doc/IO_shuten/Errors/NodeNotFoundError.html +129 -0
  20. data/doc/IO_shuten/Errors/NotYetImplemented.html +129 -0
  21. data/doc/IO_shuten/Mongo.html +172 -0
  22. data/doc/IO_shuten/Redis.html +172 -0
  23. data/doc/IO_shuten/Stores.html +121 -0
  24. data/doc/IO_shuten/Stores/Mongo.html +121 -0
  25. data/doc/IO_shuten/Stores/Mongo/Collection.html +109 -0
  26. data/doc/IO_shuten/Stores/Mongo/GridFS.html +109 -0
  27. data/doc/IO_shuten/Stores/Redis.html +121 -0
  28. data/doc/IO_shuten/Stores/Redis/KeyValue.html +109 -0
  29. data/doc/IO_shuten/Stores/Redis/PubSub.html +109 -0
  30. data/doc/_index.html +318 -0
  31. data/doc/class_list.html +47 -0
  32. data/doc/css/blame.css +11 -0
  33. data/doc/css/common.css +1 -0
  34. data/doc/css/full_list.css +55 -0
  35. data/doc/css/style.css +322 -0
  36. data/doc/file.README.html +136 -0
  37. data/doc/file_list.html +49 -0
  38. data/doc/frames.html +13 -0
  39. data/doc/index.html +136 -0
  40. data/doc/js/app.js +205 -0
  41. data/doc/js/full_list.js +167 -0
  42. data/doc/js/jquery.js +16 -0
  43. data/doc/method_list.html +150 -0
  44. data/doc/top-level-namespace.html +105 -0
  45. data/io_shuten.gemspec +57 -10
  46. data/lib/io_shuten.rb +3 -1
  47. data/lib/io_shuten/base.rb +105 -67
  48. data/lib/io_shuten/errors.rb +42 -0
  49. data/lib/io_shuten/redis.rb +2 -0
  50. data/lib/io_shuten/stores.rb +11 -0
  51. data/lib/io_shuten/stores/mongo.rb +11 -0
  52. data/lib/io_shuten/stores/mongo/collection.rb +7 -0
  53. data/lib/io_shuten/stores/mongo/gridfs.rb +7 -0
  54. data/lib/io_shuten/stores/redis.rb +11 -0
  55. data/lib/io_shuten/stores/redis/key_value.rb +7 -0
  56. data/lib/io_shuten/stores/redis/pub_sub.rb +7 -0
  57. data/lib/io_shuten/version.rb +1 -1
  58. data/spec/lib/base_spec.rb +163 -73
  59. data/spec/lib/mongo_spec.rb +1 -1
  60. data/spec/lib/redis_spec.rb +1 -1
  61. data/spec/lib/stores/mongo/collection_spec.rb +7 -0
  62. data/spec/lib/stores/mongo/gridfs_spec.rb +7 -0
  63. data/spec/lib/stores/mongo_spec.rb +7 -0
  64. data/spec/lib/stores/redis/key_value_spec.rb +7 -0
  65. data/spec/lib/stores/redis/pub_sub_spec.rb +7 -0
  66. data/spec/lib/stores/redis_spec.rb +7 -0
  67. data/spec/lib/stores_spec.rb +7 -0
  68. data/spec/spec_helper.rb +9 -0
  69. metadata +90 -51
  70. data/.rdoc_options +0 -20
  71. data/.yardoc/checksums +0 -5
  72. data/.yardoc/objects/root.dat +0 -0
  73. data/.yardoc/proxy_types +0 -0
@@ -0,0 +1,121 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Module: IO_shuten::Stores
8
+
9
+ &mdash; IO::shuten 【五百::終点】
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <link rel="stylesheet" href="../css/blame.css" type="text/css" media="screen" charset="utf-8" />
18
+
19
+ <script type="text/javascript" charset="utf-8">
20
+ relpath = '..';
21
+ if (relpath != '') relpath += '/';
22
+ </script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <script type="text/javascript" charset="utf-8">
32
+ if (window.top.frames.main) document.body.className = 'frames';
33
+ </script>
34
+
35
+ <div id="header">
36
+ <div id="menu">
37
+
38
+ <a href="../_index.html">Index (S)</a> &raquo;
39
+ <span class='title'><span class='object_link'><a href="../IO_shuten.html" title="IO_shuten (module)">IO_shuten</a></span></span>
40
+ &raquo;
41
+ <span class="title">Stores</span>
42
+
43
+
44
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
45
+ </div>
46
+
47
+ <div id="search">
48
+
49
+ <a id="class_list_link" href="#">Class List</a>
50
+
51
+ <a id="method_list_link" href="#">Method List</a>
52
+
53
+ <a id="file_list_link" href="#">File List</a>
54
+
55
+ </div>
56
+ <div class="clear"></div>
57
+ </div>
58
+
59
+ <iframe id="search_frame"></iframe>
60
+
61
+ <div id="content"><h1>Module: IO_shuten::Stores
62
+
63
+
64
+
65
+ </h1>
66
+
67
+ <dl class="box">
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+ <dt class="r1 last">Defined in:</dt>
77
+ <dd class="r1 last">lib/io_shuten/stores.rb<span class="defines">,<br />
78
+ lib/io_shuten/stores/redis.rb,<br /> lib/io_shuten/stores/mongo.rb</span>
79
+ </dd>
80
+
81
+ </dl>
82
+ <div class="clear"></div>
83
+
84
+ <h2>Overview</h2><div class="docstring">
85
+ <div class="discussion">
86
+
87
+ <p>Namespace for the storage implementations</p>
88
+
89
+
90
+ </div>
91
+ </div>
92
+ <div class="tags">
93
+
94
+
95
+ </div><h2>Defined Under Namespace</h2>
96
+ <p class="children">
97
+
98
+
99
+ <strong class="modules">Modules:</strong> <span class='object_link'><a href="Stores/Mongo.html" title="IO_shuten::Stores::Mongo (module)">Mongo</a></span>, <span class='object_link'><a href="Stores/Redis.html" title="IO_shuten::Stores::Redis (module)">Redis</a></span>
100
+
101
+
102
+
103
+
104
+ </p>
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+ </div>
113
+
114
+ <div id="footer">
115
+ Generated on Mon Jan 23 01:15:28 2012 by
116
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
117
+ 0.7.4 (ruby-1.9.3).
118
+ </div>
119
+
120
+ </body>
121
+ </html>
@@ -0,0 +1,121 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Module: IO_shuten::Stores::Mongo
8
+
9
+ &mdash; IO::shuten 【五百::終点】
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <link rel="stylesheet" href="../../css/blame.css" type="text/css" media="screen" charset="utf-8" />
18
+
19
+ <script type="text/javascript" charset="utf-8">
20
+ relpath = '../..';
21
+ if (relpath != '') relpath += '/';
22
+ </script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <script type="text/javascript" charset="utf-8">
32
+ if (window.top.frames.main) document.body.className = 'frames';
33
+ </script>
34
+
35
+ <div id="header">
36
+ <div id="menu">
37
+
38
+ <a href="../../_index.html">Index (M)</a> &raquo;
39
+ <span class='title'><span class='object_link'><a href="../../IO_shuten.html" title="IO_shuten (module)">IO_shuten</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Stores.html" title="IO_shuten::Stores (module)">Stores</a></span></span>
40
+ &raquo;
41
+ <span class="title">Mongo</span>
42
+
43
+
44
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
45
+ </div>
46
+
47
+ <div id="search">
48
+
49
+ <a id="class_list_link" href="#">Class List</a>
50
+
51
+ <a id="method_list_link" href="#">Method List</a>
52
+
53
+ <a id="file_list_link" href="#">File List</a>
54
+
55
+ </div>
56
+ <div class="clear"></div>
57
+ </div>
58
+
59
+ <iframe id="search_frame"></iframe>
60
+
61
+ <div id="content"><h1>Module: IO_shuten::Stores::Mongo
62
+
63
+
64
+
65
+ </h1>
66
+
67
+ <dl class="box">
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+ <dt class="r1 last">Defined in:</dt>
77
+ <dd class="r1 last">lib/io_shuten/stores/mongo.rb<span class="defines">,<br />
78
+ lib/io_shuten/stores/mongo/gridfs.rb,<br /> lib/io_shuten/stores/mongo/collection.rb</span>
79
+ </dd>
80
+
81
+ </dl>
82
+ <div class="clear"></div>
83
+
84
+ <h2>Overview</h2><div class="docstring">
85
+ <div class="discussion">
86
+
87
+ <p>Namespace for mongodb backends</p>
88
+
89
+
90
+ </div>
91
+ </div>
92
+ <div class="tags">
93
+
94
+
95
+ </div><h2>Defined Under Namespace</h2>
96
+ <p class="children">
97
+
98
+
99
+ <strong class="modules">Modules:</strong> <span class='object_link'><a href="Mongo/Collection.html" title="IO_shuten::Stores::Mongo::Collection (module)">Collection</a></span>, <span class='object_link'><a href="Mongo/GridFS.html" title="IO_shuten::Stores::Mongo::GridFS (module)">GridFS</a></span>
100
+
101
+
102
+
103
+
104
+ </p>
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+ </div>
113
+
114
+ <div id="footer">
115
+ Generated on Mon Jan 23 01:15:28 2012 by
116
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
117
+ 0.7.4 (ruby-1.9.3).
118
+ </div>
119
+
120
+ </body>
121
+ </html>
@@ -0,0 +1,109 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Module: IO_shuten::Stores::Mongo::Collection
8
+
9
+ &mdash; IO::shuten 【五百::終点】
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <link rel="stylesheet" href="../../../css/blame.css" type="text/css" media="screen" charset="utf-8" />
18
+
19
+ <script type="text/javascript" charset="utf-8">
20
+ relpath = '../../..';
21
+ if (relpath != '') relpath += '/';
22
+ </script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <script type="text/javascript" charset="utf-8">
32
+ if (window.top.frames.main) document.body.className = 'frames';
33
+ </script>
34
+
35
+ <div id="header">
36
+ <div id="menu">
37
+
38
+ <a href="../../../_index.html">Index (C)</a> &raquo;
39
+ <span class='title'><span class='object_link'><a href="../../../IO_shuten.html" title="IO_shuten (module)">IO_shuten</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../Stores.html" title="IO_shuten::Stores (module)">Stores</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Mongo.html" title="IO_shuten::Stores::Mongo (module)">Mongo</a></span></span>
40
+ &raquo;
41
+ <span class="title">Collection</span>
42
+
43
+
44
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
45
+ </div>
46
+
47
+ <div id="search">
48
+
49
+ <a id="class_list_link" href="#">Class List</a>
50
+
51
+ <a id="method_list_link" href="#">Method List</a>
52
+
53
+ <a id="file_list_link" href="#">File List</a>
54
+
55
+ </div>
56
+ <div class="clear"></div>
57
+ </div>
58
+
59
+ <iframe id="search_frame"></iframe>
60
+
61
+ <div id="content"><h1>Module: IO_shuten::Stores::Mongo::Collection
62
+
63
+
64
+
65
+ </h1>
66
+
67
+ <dl class="box">
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+ <dt class="r1 last">Defined in:</dt>
77
+ <dd class="r1 last">lib/io_shuten/stores/mongo/collection.rb</dd>
78
+
79
+ </dl>
80
+ <div class="clear"></div>
81
+
82
+ <h2>Overview</h2><div class="docstring">
83
+ <div class="discussion">
84
+
85
+ <p>MongoDB Backend for Collection based storage</p>
86
+
87
+
88
+ </div>
89
+ </div>
90
+ <div class="tags">
91
+
92
+
93
+ </div>
94
+
95
+
96
+
97
+
98
+
99
+
100
+ </div>
101
+
102
+ <div id="footer">
103
+ Generated on Mon Jan 23 01:15:28 2012 by
104
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
105
+ 0.7.4 (ruby-1.9.3).
106
+ </div>
107
+
108
+ </body>
109
+ </html>
@@ -0,0 +1,109 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Module: IO_shuten::Stores::Mongo::GridFS
8
+
9
+ &mdash; IO::shuten 【五百::終点】
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <link rel="stylesheet" href="../../../css/blame.css" type="text/css" media="screen" charset="utf-8" />
18
+
19
+ <script type="text/javascript" charset="utf-8">
20
+ relpath = '../../..';
21
+ if (relpath != '') relpath += '/';
22
+ </script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <script type="text/javascript" charset="utf-8">
32
+ if (window.top.frames.main) document.body.className = 'frames';
33
+ </script>
34
+
35
+ <div id="header">
36
+ <div id="menu">
37
+
38
+ <a href="../../../_index.html">Index (G)</a> &raquo;
39
+ <span class='title'><span class='object_link'><a href="../../../IO_shuten.html" title="IO_shuten (module)">IO_shuten</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../Stores.html" title="IO_shuten::Stores (module)">Stores</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Mongo.html" title="IO_shuten::Stores::Mongo (module)">Mongo</a></span></span>
40
+ &raquo;
41
+ <span class="title">GridFS</span>
42
+
43
+
44
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
45
+ </div>
46
+
47
+ <div id="search">
48
+
49
+ <a id="class_list_link" href="#">Class List</a>
50
+
51
+ <a id="method_list_link" href="#">Method List</a>
52
+
53
+ <a id="file_list_link" href="#">File List</a>
54
+
55
+ </div>
56
+ <div class="clear"></div>
57
+ </div>
58
+
59
+ <iframe id="search_frame"></iframe>
60
+
61
+ <div id="content"><h1>Module: IO_shuten::Stores::Mongo::GridFS
62
+
63
+
64
+
65
+ </h1>
66
+
67
+ <dl class="box">
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+ <dt class="r1 last">Defined in:</dt>
77
+ <dd class="r1 last">lib/io_shuten/stores/mongo/gridfs.rb</dd>
78
+
79
+ </dl>
80
+ <div class="clear"></div>
81
+
82
+ <h2>Overview</h2><div class="docstring">
83
+ <div class="discussion">
84
+
85
+ <p>MongoDB Backend for GridFS based storage</p>
86
+
87
+
88
+ </div>
89
+ </div>
90
+ <div class="tags">
91
+
92
+
93
+ </div>
94
+
95
+
96
+
97
+
98
+
99
+
100
+ </div>
101
+
102
+ <div id="footer">
103
+ Generated on Mon Jan 23 01:15:28 2012 by
104
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
105
+ 0.7.4 (ruby-1.9.3).
106
+ </div>
107
+
108
+ </body>
109
+ </html>