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,129 @@
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
+ Exception: IO_shuten::Base::NotYetImplemented
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 (N)</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="../Base.html" title="IO_shuten::Base (class)">Base</a></span></span>
40
+ &raquo;
41
+ <span class="title">NotYetImplemented</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>Exception: IO_shuten::Base::NotYetImplemented
62
+
63
+
64
+
65
+ </h1>
66
+
67
+ <dl class="box">
68
+
69
+ <dt class="r1">Inherits:</dt>
70
+ <dd class="r1">
71
+ <span class="inheritName">StandardError</span>
72
+
73
+ <ul class="fullTree">
74
+ <li>Object</li>
75
+
76
+ <li class="next">StandardError</li>
77
+
78
+ <li class="next">IO_shuten::Base::NotYetImplemented</li>
79
+
80
+ </ul>
81
+ <a href="#" class="inheritanceTree">show all</a>
82
+
83
+ </dd>
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+ <dt class="r2 last">Defined in:</dt>
94
+ <dd class="r2 last">lib/io_shuten/base.rb</dd>
95
+
96
+ </dl>
97
+ <div class="clear"></div>
98
+
99
+ <h2>Overview</h2><div class="docstring">
100
+ <div class="discussion">
101
+
102
+ <p>Exception for not yet implemented methods (stubs)</p>
103
+
104
+
105
+ </div>
106
+ </div>
107
+ <div class="tags">
108
+
109
+
110
+ </div>
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+ </div>
121
+
122
+ <div id="footer">
123
+ Generated on Sun Jan 22 01:06:28 2012 by
124
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
125
+ 0.7.4 (ruby-1.9.3).
126
+ </div>
127
+
128
+ </body>
129
+ </html>
@@ -0,0 +1,119 @@
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::Errors
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 (E)</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">Errors</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::Errors
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/errors.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>Collection of Errors/Exceptions</p>
86
+
87
+
88
+ </div>
89
+ </div>
90
+ <div class="tags">
91
+
92
+
93
+ </div><h2>Defined Under Namespace</h2>
94
+ <p class="children">
95
+
96
+
97
+
98
+
99
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="Errors/FileAccessError.html" title="IO_shuten::Errors::FileAccessError (class)">FileAccessError</a></span>, <span class='object_link'><a href="Errors/FileNotFoundError.html" title="IO_shuten::Errors::FileNotFoundError (class)">FileNotFoundError</a></span>, <span class='object_link'><a href="Errors/NodeExistsError.html" title="IO_shuten::Errors::NodeExistsError (class)">NodeExistsError</a></span>, <span class='object_link'><a href="Errors/NodeNameError.html" title="IO_shuten::Errors::NodeNameError (class)">NodeNameError</a></span>, <span class='object_link'><a href="Errors/NodeNotFoundError.html" title="IO_shuten::Errors::NodeNotFoundError (class)">NodeNotFoundError</a></span>, <span class='object_link'><a href="Errors/NotYetImplemented.html" title="IO_shuten::Errors::NotYetImplemented (class)">NotYetImplemented</a></span>
100
+
101
+
102
+ </p>
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+ </div>
111
+
112
+ <div id="footer">
113
+ Generated on Mon Jan 23 01:15:28 2012 by
114
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
115
+ 0.7.4 (ruby-1.9.3).
116
+ </div>
117
+
118
+ </body>
119
+ </html>
@@ -0,0 +1,129 @@
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
+ Exception: IO_shuten::Errors::FileAccessError
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 (F)</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="../Errors.html" title="IO_shuten::Errors (module)">Errors</a></span></span>
40
+ &raquo;
41
+ <span class="title">FileAccessError</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>Exception: IO_shuten::Errors::FileAccessError
62
+
63
+
64
+
65
+ </h1>
66
+
67
+ <dl class="box">
68
+
69
+ <dt class="r1">Inherits:</dt>
70
+ <dd class="r1">
71
+ <span class="inheritName">StandardError</span>
72
+
73
+ <ul class="fullTree">
74
+ <li>Object</li>
75
+
76
+ <li class="next">StandardError</li>
77
+
78
+ <li class="next">IO_shuten::Errors::FileAccessError</li>
79
+
80
+ </ul>
81
+ <a href="#" class="inheritanceTree">show all</a>
82
+
83
+ </dd>
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+ <dt class="r2 last">Defined in:</dt>
94
+ <dd class="r2 last">lib/io_shuten/errors.rb</dd>
95
+
96
+ </dl>
97
+ <div class="clear"></div>
98
+
99
+ <h2>Overview</h2><div class="docstring">
100
+ <div class="discussion">
101
+
102
+ <p>Exception if something went wrong on file handling</p>
103
+
104
+
105
+ </div>
106
+ </div>
107
+ <div class="tags">
108
+
109
+
110
+ </div>
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+ </div>
121
+
122
+ <div id="footer">
123
+ Generated on Mon Jan 23 01:15:28 2012 by
124
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
125
+ 0.7.4 (ruby-1.9.3).
126
+ </div>
127
+
128
+ </body>
129
+ </html>
@@ -0,0 +1,129 @@
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
+ Exception: IO_shuten::Errors::FileNotFoundError
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 (F)</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="../Errors.html" title="IO_shuten::Errors (module)">Errors</a></span></span>
40
+ &raquo;
41
+ <span class="title">FileNotFoundError</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>Exception: IO_shuten::Errors::FileNotFoundError
62
+
63
+
64
+
65
+ </h1>
66
+
67
+ <dl class="box">
68
+
69
+ <dt class="r1">Inherits:</dt>
70
+ <dd class="r1">
71
+ <span class="inheritName">StandardError</span>
72
+
73
+ <ul class="fullTree">
74
+ <li>Object</li>
75
+
76
+ <li class="next">StandardError</li>
77
+
78
+ <li class="next">IO_shuten::Errors::FileNotFoundError</li>
79
+
80
+ </ul>
81
+ <a href="#" class="inheritanceTree">show all</a>
82
+
83
+ </dd>
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+ <dt class="r2 last">Defined in:</dt>
94
+ <dd class="r2 last">lib/io_shuten/errors.rb</dd>
95
+
96
+ </dl>
97
+ <div class="clear"></div>
98
+
99
+ <h2>Overview</h2><div class="docstring">
100
+ <div class="discussion">
101
+
102
+ <p>Exception if file was not found</p>
103
+
104
+
105
+ </div>
106
+ </div>
107
+ <div class="tags">
108
+
109
+
110
+ </div>
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+ </div>
121
+
122
+ <div id="footer">
123
+ Generated on Mon Jan 23 01:15:28 2012 by
124
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
125
+ 0.7.4 (ruby-1.9.3).
126
+ </div>
127
+
128
+ </body>
129
+ </html>