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
@@ -0,0 +1,156 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>module Pref::Skype - 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="module">
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>config/pref.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+
60
+
61
+
62
+ </div>
63
+
64
+ <div id="project-metadata">
65
+ <nav id="fileindex-section" class="section project-section">
66
+ <h3 class="section-header">Pages</h3>
67
+
68
+ <ul>
69
+
70
+ <li class="file"><a href="../Gemfile.html">Gemfile</a>
71
+
72
+ <li class="file"><a href="../config/my_pref.html">my_pref</a>
73
+
74
+ </ul>
75
+ </nav>
76
+
77
+ <nav id="classindex-section" class="section project-section">
78
+ <h3 class="section-header">Class and Module Index</h3>
79
+
80
+ <ul class="link-list">
81
+
82
+ <li><a href="../MetricTools.html">MetricTools</a>
83
+
84
+ <li><a href="../MetricTools/IndexTree.html">MetricTools::IndexTree</a>
85
+
86
+ <li><a href="../MetricTools/S3.html">MetricTools::S3</a>
87
+
88
+ <li><a href="../MetricTools/Skype.html">MetricTools::Skype</a>
89
+
90
+ <li><a href="../MetricTools/SpreadSheet.html">MetricTools::SpreadSheet</a>
91
+
92
+ <li><a href="../MetricTools/Table.html">MetricTools::Table</a>
93
+
94
+ <li><a href="../Pref.html">Pref</a>
95
+
96
+ <li><a href="../Pref/GoogleDocs.html">Pref::GoogleDocs</a>
97
+
98
+ <li><a href="../Pref/S3.html">Pref::S3</a>
99
+
100
+ <li><a href="../Pref/Skype.html">Pref::Skype</a>
101
+
102
+ <li><a href="../Object.html">Object</a>
103
+
104
+ </ul>
105
+ </nav>
106
+
107
+ </div>
108
+ </nav>
109
+
110
+ <div id="documentation">
111
+ <h1 class="module">module Pref::Skype</h1>
112
+
113
+ <div id="description" class="description">
114
+
115
+ <p>For test (required if you need to pass RSpec)</p>
116
+
117
+ </div><!-- description -->
118
+
119
+
120
+
121
+
122
+ <section id="5Buntitled-5D" class="documentation-section">
123
+
124
+
125
+
126
+
127
+
128
+ <!-- Constants -->
129
+ <section id="constants-list" class="section">
130
+ <h3 class="section-header">Constants</h3>
131
+ <dl>
132
+
133
+ <dt id="TEST_CHAT_ROOM">TEST_CHAT_ROOM
134
+
135
+ <dd class="description">
136
+
137
+
138
+ </dl>
139
+ </section>
140
+
141
+
142
+
143
+
144
+ <!-- Methods -->
145
+
146
+ </section><!-- 5Buntitled-5D -->
147
+
148
+ </div><!-- documentation -->
149
+
150
+
151
+ <footer id="validator-badges">
152
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
153
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
154
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
155
+ </footer>
156
+
data/doc/Pref.html ADDED
@@ -0,0 +1,141 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>module Pref - 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="module">
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>config/pref.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+
60
+
61
+
62
+ </div>
63
+
64
+ <div id="project-metadata">
65
+ <nav id="fileindex-section" class="section project-section">
66
+ <h3 class="section-header">Pages</h3>
67
+
68
+ <ul>
69
+
70
+ <li class="file"><a href="./Gemfile.html">Gemfile</a>
71
+
72
+ <li class="file"><a href="./config/my_pref.html">my_pref</a>
73
+
74
+ </ul>
75
+ </nav>
76
+
77
+ <nav id="classindex-section" class="section project-section">
78
+ <h3 class="section-header">Class and Module Index</h3>
79
+
80
+ <ul class="link-list">
81
+
82
+ <li><a href="./MetricTools.html">MetricTools</a>
83
+
84
+ <li><a href="./MetricTools/IndexTree.html">MetricTools::IndexTree</a>
85
+
86
+ <li><a href="./MetricTools/S3.html">MetricTools::S3</a>
87
+
88
+ <li><a href="./MetricTools/Skype.html">MetricTools::Skype</a>
89
+
90
+ <li><a href="./MetricTools/SpreadSheet.html">MetricTools::SpreadSheet</a>
91
+
92
+ <li><a href="./MetricTools/Table.html">MetricTools::Table</a>
93
+
94
+ <li><a href="./Pref.html">Pref</a>
95
+
96
+ <li><a href="./Pref/GoogleDocs.html">Pref::GoogleDocs</a>
97
+
98
+ <li><a href="./Pref/S3.html">Pref::S3</a>
99
+
100
+ <li><a href="./Pref/Skype.html">Pref::Skype</a>
101
+
102
+ <li><a href="./Object.html">Object</a>
103
+
104
+ </ul>
105
+ </nav>
106
+
107
+ </div>
108
+ </nav>
109
+
110
+ <div id="documentation">
111
+ <h1 class="module">module Pref</h1>
112
+
113
+ <div id="description" class="description">
114
+
115
+ </div><!-- description -->
116
+
117
+
118
+
119
+
120
+ <section id="5Buntitled-5D" class="documentation-section">
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+ <!-- Methods -->
130
+
131
+ </section><!-- 5Buntitled-5D -->
132
+
133
+ </div><!-- documentation -->
134
+
135
+
136
+ <footer id="validator-badges">
137
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
138
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
139
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
140
+ </footer>
141
+
data/doc/created.rid ADDED
@@ -0,0 +1,15 @@
1
+ Wed, 06 Feb 2013 09:18:12 +0900
2
+ ./config/my_pref Tue, 05 Feb 2013 10:59:14 +0900
3
+ ./config/pref.rb Wed, 06 Feb 2013 09:14:54 +0900
4
+ ./Gemfile Tue, 05 Feb 2013 10:37:49 +0900
5
+ ./lib/metric_tools/index_tree.rb Wed, 06 Feb 2013 09:10:54 +0900
6
+ ./lib/metric_tools/s3.rb Tue, 05 Feb 2013 12:58:33 +0900
7
+ ./lib/metric_tools/skype.rb Wed, 06 Feb 2013 09:05:43 +0900
8
+ ./lib/metric_tools/spread_sheet.rb Mon, 04 Feb 2013 21:26:53 +0900
9
+ ./lib/metric_tools/table.rb Mon, 04 Feb 2013 20:14:38 +0900
10
+ ./lib/metric_tools.rb Tue, 05 Feb 2013 13:23:24 +0900
11
+ ./spec/index_tree_spec.rb Wed, 06 Feb 2013 08:39:39 +0900
12
+ ./spec/s3_spec.rb Tue, 05 Feb 2013 12:01:36 +0900
13
+ ./spec/skype_spec.rb Wed, 06 Feb 2013 09:14:22 +0900
14
+ ./spec/spread_sheet_spec.rb Tue, 05 Feb 2013 12:02:08 +0900
15
+ ./spec/table_spec.rb Mon, 04 Feb 2013 20:10:55 +0900
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/doc/index.html ADDED
@@ -0,0 +1,100 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>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>
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
+ <p>This is the API documentation for RDoc Documentation.
93
+
94
+
95
+ <footer id="validator-badges">
96
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
97
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
98
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
99
+ </footer>
100
+
@@ -0,0 +1,153 @@
1
+ /**
2
+ *
3
+ * Darkfish Page Functions
4
+ * $Id: darkfish.js 53 2009-01-07 02:52:03Z deveiant $
5
+ *
6
+ * Author: Michael Granger <mgranger@laika.com>
7
+ *
8
+ */
9
+
10
+ /* Provide console simulation for firebug-less environments */
11
+ if (!("console" in window) || !("firebug" in console)) {
12
+ var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
13
+ "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
14
+
15
+ window.console = {};
16
+ for (var i = 0; i < names.length; ++i)
17
+ window.console[names[i]] = function() {};
18
+ };
19
+
20
+
21
+ /**
22
+ * Unwrap the first element that matches the given @expr@ from the targets and return them.
23
+ */
24
+ $.fn.unwrap = function( expr ) {
25
+ return this.each( function() {
26
+ $(this).parents( expr ).eq( 0 ).after( this ).remove();
27
+ });
28
+ };
29
+
30
+
31
+ function showSource( e ) {
32
+ var target = e.target;
33
+ var codeSections = $(target).
34
+ parents('.method-detail').
35
+ find('.method-source-code');
36
+
37
+ $(target).
38
+ parents('.method-detail').
39
+ find('.method-source-code').
40
+ slideToggle();
41
+ };
42
+
43
+ function hookSourceViews() {
44
+ $('.method-heading').click( showSource );
45
+ };
46
+
47
+ function toggleDebuggingSection() {
48
+ $('.debugging-section').slideToggle();
49
+ };
50
+
51
+ function hookDebuggingToggle() {
52
+ $('#debugging-toggle img').click( toggleDebuggingSection );
53
+ };
54
+
55
+ function hookTableOfContentsToggle() {
56
+ $('.indexpage li .toc-toggle').each( function() {
57
+ $(this).click( function() {
58
+ $(this).toggleClass('open');
59
+ });
60
+
61
+ var section = $(this).next();
62
+
63
+ $(this).click( function() {
64
+ section.slideToggle();
65
+ });
66
+ });
67
+ }
68
+
69
+ function hookSearch() {
70
+ var input = $('#search-field').eq(0);
71
+ var result = $('#search-results').eq(0);
72
+ $(result).show();
73
+
74
+ var search_section = $('#search-section').get(0);
75
+ $(search_section).show();
76
+
77
+ var search = new Search(search_data, input, result);
78
+
79
+ search.renderItem = function(result) {
80
+ var li = document.createElement('li');
81
+ var html = '';
82
+
83
+ // TODO add relative path to <script> per-page
84
+ html += '<p class="search-match"><a href="' + rdoc_rel_prefix + result.path + '">' + this.hlt(result.title);
85
+ if (result.params)
86
+ html += '<span class="params">' + result.params + '</span>';
87
+ html += '</a>';
88
+
89
+
90
+ if (result.namespace)
91
+ html += '<p class="search-namespace">' + this.hlt(result.namespace);
92
+
93
+ if (result.snippet)
94
+ html += '<div class="search-snippet">' + result.snippet + '</div>';
95
+
96
+ li.innerHTML = html;
97
+
98
+ return li;
99
+ }
100
+
101
+ search.select = function(result) {
102
+ var result_element = result.get(0);
103
+ window.location.href = result_element.firstChild.firstChild.href;
104
+ }
105
+
106
+ search.scrollIntoView = search.scrollInWindow;
107
+ };
108
+
109
+ function highlightTarget( anchor ) {
110
+ console.debug( "Highlighting target '%s'.", anchor );
111
+
112
+ $("a[name=" + anchor + "]").each( function() {
113
+ if ( !$(this).parent().parent().hasClass('target-section') ) {
114
+ console.debug( "Wrapping the target-section" );
115
+ $('div.method-detail').unwrap( 'div.target-section' );
116
+ $(this).parent().wrap( '<div class="target-section"></div>' );
117
+ } else {
118
+ console.debug( "Already wrapped." );
119
+ }
120
+ });
121
+ };
122
+
123
+ function highlightLocationTarget() {
124
+ console.debug( "Location hash: %s", window.location.hash );
125
+ if ( ! window.location.hash || window.location.hash.length == 0 ) return;
126
+
127
+ var anchor = window.location.hash.substring(1);
128
+ console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" );
129
+
130
+ highlightTarget( anchor );
131
+ };
132
+
133
+ function highlightClickTarget( event ) {
134
+ console.debug( "Highlighting click target for event %o", event.target );
135
+ try {
136
+ var anchor = $(event.target).attr( 'href' ).substring(1);
137
+ console.debug( "Found target anchor: %s", anchor );
138
+ highlightTarget( anchor );
139
+ } catch ( err ) {
140
+ console.error( "Exception while highlighting: %o", err );
141
+ };
142
+ };
143
+
144
+
145
+ $(document).ready( function() {
146
+ hookSourceViews();
147
+ hookDebuggingToggle();
148
+ hookSearch();
149
+ highlightLocationTarget();
150
+ hookTableOfContentsToggle();
151
+
152
+ $('ul.link-list a').bind( "click", highlightClickTarget );
153
+ });