metric_tools 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. data/.gitignore +2 -0
  2. data/.rspec +1 -0
  3. data/.rvmrc +1 -0
  4. data/config/pref.rb +11 -16
  5. data/doc/Gemfile.html +107 -0
  6. data/doc/MetricTools/IndexTree.html +308 -0
  7. data/doc/MetricTools/S3.html +325 -0
  8. data/doc/MetricTools/Skype.html +343 -0
  9. data/doc/MetricTools/SpreadSheet.html +552 -0
  10. data/doc/MetricTools/Table.html +952 -0
  11. data/doc/MetricTools.html +158 -0
  12. data/doc/Object.html +179 -0
  13. data/doc/Pref/GoogleDocs.html +176 -0
  14. data/doc/Pref/S3.html +181 -0
  15. data/doc/Pref/Skype.html +156 -0
  16. data/doc/Pref.html +141 -0
  17. data/doc/created.rid +15 -0
  18. data/doc/images/add.png +0 -0
  19. data/doc/images/brick.png +0 -0
  20. data/doc/images/brick_link.png +0 -0
  21. data/doc/images/bug.png +0 -0
  22. data/doc/images/bullet_black.png +0 -0
  23. data/doc/images/bullet_toggle_minus.png +0 -0
  24. data/doc/images/bullet_toggle_plus.png +0 -0
  25. data/doc/images/date.png +0 -0
  26. data/doc/images/delete.png +0 -0
  27. data/doc/images/find.png +0 -0
  28. data/doc/images/loadingAnimation.gif +0 -0
  29. data/doc/images/macFFBgHack.png +0 -0
  30. data/doc/images/package.png +0 -0
  31. data/doc/images/page_green.png +0 -0
  32. data/doc/images/page_white_text.png +0 -0
  33. data/doc/images/page_white_width.png +0 -0
  34. data/doc/images/plugin.png +0 -0
  35. data/doc/images/ruby.png +0 -0
  36. data/doc/images/tag_blue.png +0 -0
  37. data/doc/images/tag_green.png +0 -0
  38. data/doc/images/transparent.png +0 -0
  39. data/doc/images/wrench.png +0 -0
  40. data/doc/images/wrench_orange.png +0 -0
  41. data/doc/images/zoom.png +0 -0
  42. data/doc/index.html +100 -0
  43. data/doc/js/darkfish.js +153 -0
  44. data/doc/js/jquery.js +18 -0
  45. data/doc/js/navigation.js +142 -0
  46. data/doc/js/search.js +94 -0
  47. data/doc/js/search_index.js +1 -0
  48. data/doc/js/searcher.js +228 -0
  49. data/doc/rdoc.css +543 -0
  50. data/doc/table_of_contents.html +176 -0
  51. data/lib/metric_tools/spread_sheet.rb +23 -1
  52. data/metric_tools.gemspec +13 -0
  53. data/spec/index_tree_spec.rb +101 -0
  54. data/spec/s3_spec.rb +80 -0
  55. data/spec/skype_spec.rb +39 -0
  56. data/spec/spread_sheet_spec.rb +165 -0
  57. data/spec/table_spec.rb +114 -0
  58. metadata +60 -6
  59. data/Gemfile.lock +0 -45
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ /Gemfile.lock
2
+ /metric_tools-*.gem
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ -c -f d
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm ruby-1.9.3-p194
data/config/pref.rb CHANGED
@@ -3,25 +3,20 @@
3
3
  module Pref
4
4
  #For test (required if you need to pass RSpec)
5
5
  module GoogleDocs
6
- TEST_MAIL = ''
7
- TEST_PASSWORD = ''
8
- ANOTHER_MAIL = ''
9
- ANOTHER_PASSWORD = ''
10
- TEST_KEY = ''
6
+ TEST_MAIL = 'masaori.hirono@gmail.com'
7
+ TEST_PASSWORD = 'windblossom1984'
8
+ ANOTHER_MAIL = 'masaori@pankaku.com'
9
+ ANOTHER_PASSWORD = 'windblossom1984'
10
+ TEST_KEY = '0AjFjnZtF7q0adGpNd0ZfSGUza1RRdWo3aWplOURmV0E'
11
11
  end
12
12
 
13
13
  #For test (required if you need to pass RSpec)
14
14
  module S3
15
- TEST_ACCESS_KEY = ''
16
- TEST_SECRET_KEY = ''
17
- TEST_BUCKET_NAME = ''
18
- TEST_LOCAL_DIRECTORY = ''
19
- TEST_FILE_KEY = ''
20
- TEST_DIR_KEY = ''
21
- end
22
-
23
- #For test (required if you need to pass RSpec)
24
- module Skype
25
- TEST_CHAT_ROOM = ''
15
+ TEST_ACCESS_KEY = '1XRFTKRP8WEXEWCB0602'
16
+ TEST_SECRET_KEY = 'TFQw/zWqIcHoPkplgu2xHHcV41c50P58pvr8J4Fq'
17
+ TEST_BUCKET_NAME = 'deluxe-cafe-test'
18
+ TEST_LOCAL_DIRECTORY = '/Users/Masaori/Desktop/'
19
+ TEST_FILE_KEY = 'active_users/201204.yml'
20
+ TEST_DIR_KEY = 'test_dir/'
26
21
  end
27
22
  end
data/doc/Gemfile.html ADDED
@@ -0,0 +1,107 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>Gemfile - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "./";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
21
+
22
+
23
+ <body class="file">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="./index.html">Home</a>
28
+ <a href="./table_of_contents.html#classes">Classes</a>
29
+ <a href="./table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="project-metadata">
47
+ <nav id="fileindex-section" class="section project-section">
48
+ <h3 class="section-header">Pages</h3>
49
+
50
+ <ul>
51
+
52
+ <li class="file"><a href="./Gemfile.html">Gemfile</a>
53
+
54
+ <li class="file"><a href="./config/my_pref.html">my_pref</a>
55
+
56
+ </ul>
57
+ </nav>
58
+
59
+ <nav id="classindex-section" class="section project-section">
60
+ <h3 class="section-header">Class and Module Index</h3>
61
+
62
+ <ul class="link-list">
63
+
64
+ <li><a href="./MetricTools.html">MetricTools</a>
65
+
66
+ <li><a href="./MetricTools/IndexTree.html">MetricTools::IndexTree</a>
67
+
68
+ <li><a href="./MetricTools/S3.html">MetricTools::S3</a>
69
+
70
+ <li><a href="./MetricTools/Skype.html">MetricTools::Skype</a>
71
+
72
+ <li><a href="./MetricTools/SpreadSheet.html">MetricTools::SpreadSheet</a>
73
+
74
+ <li><a href="./MetricTools/Table.html">MetricTools::Table</a>
75
+
76
+ <li><a href="./Pref.html">Pref</a>
77
+
78
+ <li><a href="./Pref/GoogleDocs.html">Pref::GoogleDocs</a>
79
+
80
+ <li><a href="./Pref/S3.html">Pref::S3</a>
81
+
82
+ <li><a href="./Pref/Skype.html">Pref::Skype</a>
83
+
84
+ <li><a href="./Object.html">Object</a>
85
+
86
+ </ul>
87
+ </nav>
88
+
89
+ </div>
90
+ </nav>
91
+
92
+ <div id="documentation" class="description">
93
+
94
+ <p>source ‘<a href="http://rubygems.org">rubygems.org</a>’</p>
95
+
96
+ <p>gem ‘google_drive’, ‘~&gt;0’ gem ‘hirb’, ‘~&gt;0’ gem ‘aws-s3’, ‘~&gt;0’</p>
97
+
98
+ </div>
99
+
100
+
101
+
102
+ <footer id="validator-badges">
103
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
104
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
105
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
106
+ </footer>
107
+
@@ -0,0 +1,308 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class MetricTools::IndexTree - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../index.html">Home</a>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/metric_tools/index_tree.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link"><a href="../Object.html">Object</a>
63
+
64
+ </nav>
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <nav id="method-list-section" class="section">
69
+ <h3 class="section-header">Methods</h3>
70
+
71
+ <ul class="link-list">
72
+
73
+ <li><a href="#method-c-new">::new</a>
74
+
75
+ <li><a href="#method-i-5B-5D">#[]</a>
76
+
77
+ <li><a href="#method-i-5B-5D-3D">#[]=</a>
78
+
79
+ <li><a href="#method-i-to_s">#to_s</a>
80
+
81
+ </ul>
82
+ </nav>
83
+
84
+ </div>
85
+
86
+ <div id="project-metadata">
87
+ <nav id="fileindex-section" class="section project-section">
88
+ <h3 class="section-header">Pages</h3>
89
+
90
+ <ul>
91
+
92
+ <li class="file"><a href="../Gemfile.html">Gemfile</a>
93
+
94
+ <li class="file"><a href="../config/my_pref.html">my_pref</a>
95
+
96
+ </ul>
97
+ </nav>
98
+
99
+ <nav id="classindex-section" class="section project-section">
100
+ <h3 class="section-header">Class and Module Index</h3>
101
+
102
+ <ul class="link-list">
103
+
104
+ <li><a href="../MetricTools.html">MetricTools</a>
105
+
106
+ <li><a href="../MetricTools/IndexTree.html">MetricTools::IndexTree</a>
107
+
108
+ <li><a href="../MetricTools/S3.html">MetricTools::S3</a>
109
+
110
+ <li><a href="../MetricTools/Skype.html">MetricTools::Skype</a>
111
+
112
+ <li><a href="../MetricTools/SpreadSheet.html">MetricTools::SpreadSheet</a>
113
+
114
+ <li><a href="../MetricTools/Table.html">MetricTools::Table</a>
115
+
116
+ <li><a href="../Pref.html">Pref</a>
117
+
118
+ <li><a href="../Pref/GoogleDocs.html">Pref::GoogleDocs</a>
119
+
120
+ <li><a href="../Pref/S3.html">Pref::S3</a>
121
+
122
+ <li><a href="../Pref/Skype.html">Pref::Skype</a>
123
+
124
+ <li><a href="../Object.html">Object</a>
125
+
126
+ </ul>
127
+ </nav>
128
+
129
+ </div>
130
+ </nav>
131
+
132
+ <div id="documentation">
133
+ <h1 class="class">class MetricTools::IndexTree</h1>
134
+
135
+ <div id="description" class="description">
136
+
137
+ <p>Tree構造のHash</p>
138
+
139
+ </div><!-- description -->
140
+
141
+
142
+
143
+
144
+ <section id="5Buntitled-5D" class="documentation-section">
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+ <!-- Methods -->
154
+
155
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
156
+ <h3 class="section-header">Public Class Methods</h3>
157
+
158
+
159
+ <div id="method-c-new" class="method-detail ">
160
+
161
+ <div class="method-heading">
162
+ <span class="method-name">new</span><span
163
+ class="method-args">()</span>
164
+ <span class="method-click-advice">click to toggle source</span>
165
+ </div>
166
+
167
+
168
+ <div class="method-description">
169
+
170
+
171
+
172
+
173
+
174
+ <div class="method-source-code" id="new-source">
175
+ <pre><span class="ruby-comment"># File lib/metric_tools/index_tree.rb, line 8</span>
176
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>
177
+ <span class="ruby-ivar">@_hash</span> = {}
178
+ <span class="ruby-keyword">end</span></pre>
179
+ </div><!-- new-source -->
180
+
181
+ </div>
182
+
183
+
184
+
185
+
186
+ </div><!-- new-method -->
187
+
188
+
189
+ </section><!-- public-class-method-details -->
190
+
191
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
192
+ <h3 class="section-header">Public Instance Methods</h3>
193
+
194
+
195
+ <div id="method-i-5B-5D" class="method-detail ">
196
+
197
+ <div class="method-heading">
198
+ <span class="method-name">[]</span><span
199
+ class="method-args">(*args)</span>
200
+ <span class="method-click-advice">click to toggle source</span>
201
+ </div>
202
+
203
+
204
+ <div class="method-description">
205
+
206
+
207
+
208
+
209
+
210
+ <div class="method-source-code" id="5B-5D-source">
211
+ <pre><span class="ruby-comment"># File lib/metric_tools/index_tree.rb, line 13</span>
212
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">[]</span>(*<span class="ruby-identifier">args</span>)
213
+ <span class="ruby-identifier">ret</span> = <span class="ruby-keyword">nil</span>
214
+ <span class="ruby-identifier">process_tracing_keys</span>(<span class="ruby-ivar">@_hash</span>, <span class="ruby-identifier">args</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">obj</span>, <span class="ruby-identifier">key</span>, <span class="ruby-identifier">is_leaf</span><span class="ruby-operator">|</span>
215
+ <span class="ruby-identifier">ret</span> = <span class="ruby-identifier">obj</span>[<span class="ruby-identifier">key</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">is_leaf</span>
216
+ }
217
+ <span class="ruby-identifier">ret</span>
218
+ <span class="ruby-keyword">end</span></pre>
219
+ </div><!-- 5B-5D-source -->
220
+
221
+ </div>
222
+
223
+
224
+
225
+
226
+ </div><!-- 5B-5D-method -->
227
+
228
+
229
+ <div id="method-i-5B-5D-3D" class="method-detail ">
230
+
231
+ <div class="method-heading">
232
+ <span class="method-name">[]=</span><span
233
+ class="method-args">(*args)</span>
234
+ <span class="method-click-advice">click to toggle source</span>
235
+ </div>
236
+
237
+
238
+ <div class="method-description">
239
+
240
+
241
+
242
+
243
+
244
+ <div class="method-source-code" id="5B-5D-3D-source">
245
+ <pre><span class="ruby-comment"># File lib/metric_tools/index_tree.rb, line 21</span>
246
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">[]=</span>(*<span class="ruby-identifier">args</span>)
247
+ <span class="ruby-identifier">val</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">pop</span>
248
+ <span class="ruby-identifier">process_tracing_keys</span>(<span class="ruby-ivar">@_hash</span>, <span class="ruby-identifier">args</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">obj</span>, <span class="ruby-identifier">key</span>, <span class="ruby-identifier">is_leaf</span><span class="ruby-operator">|</span>
249
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">is_leaf</span>
250
+ <span class="ruby-identifier">obj</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">val</span>
251
+ <span class="ruby-keyword">else</span>
252
+ <span class="ruby-identifier">obj</span>[<span class="ruby-identifier">key</span>] <span class="ruby-operator">||=</span> {}
253
+ <span class="ruby-keyword">end</span>
254
+ }
255
+ <span class="ruby-keyword">end</span></pre>
256
+ </div><!-- 5B-5D-3D-source -->
257
+
258
+ </div>
259
+
260
+
261
+
262
+
263
+ </div><!-- 5B-5D-3D-method -->
264
+
265
+
266
+ <div id="method-i-to_s" class="method-detail ">
267
+
268
+ <div class="method-heading">
269
+ <span class="method-name">to_s</span><span
270
+ class="method-args">()</span>
271
+ <span class="method-click-advice">click to toggle source</span>
272
+ </div>
273
+
274
+
275
+ <div class="method-description">
276
+
277
+
278
+
279
+
280
+
281
+ <div class="method-source-code" id="to_s-source">
282
+ <pre><span class="ruby-comment"># File lib/metric_tools/index_tree.rb, line 32</span>
283
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
284
+ <span class="ruby-ivar">@_hash</span>.<span class="ruby-identifier">to_s</span>
285
+ <span class="ruby-keyword">end</span></pre>
286
+ </div><!-- to_s-source -->
287
+
288
+ </div>
289
+
290
+
291
+
292
+
293
+ </div><!-- to_s-method -->
294
+
295
+
296
+ </section><!-- public-instance-method-details -->
297
+
298
+ </section><!-- 5Buntitled-5D -->
299
+
300
+ </div><!-- documentation -->
301
+
302
+
303
+ <footer id="validator-badges">
304
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
305
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
306
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
307
+ </footer>
308
+