human_behavior 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. data/.DS_Store +0 -0
  2. data/.document +5 -0
  3. data/.rspec +2 -0
  4. data/Gemfile +15 -0
  5. data/Gemfile.lock +39 -0
  6. data/LICENSE.txt +20 -0
  7. data/README.md +13 -0
  8. data/Rakefile +53 -0
  9. data/VERSION +1 -0
  10. data/coverage/.last_run.json +5 -0
  11. data/coverage/.resultset.json +34 -0
  12. data/coverage/assets/0.7.1/application.css +1110 -0
  13. data/coverage/assets/0.7.1/application.js +626 -0
  14. data/coverage/assets/0.7.1/fancybox/blank.gif +0 -0
  15. data/coverage/assets/0.7.1/fancybox/fancy_close.png +0 -0
  16. data/coverage/assets/0.7.1/fancybox/fancy_loading.png +0 -0
  17. data/coverage/assets/0.7.1/fancybox/fancy_nav_left.png +0 -0
  18. data/coverage/assets/0.7.1/fancybox/fancy_nav_right.png +0 -0
  19. data/coverage/assets/0.7.1/fancybox/fancy_shadow_e.png +0 -0
  20. data/coverage/assets/0.7.1/fancybox/fancy_shadow_n.png +0 -0
  21. data/coverage/assets/0.7.1/fancybox/fancy_shadow_ne.png +0 -0
  22. data/coverage/assets/0.7.1/fancybox/fancy_shadow_nw.png +0 -0
  23. data/coverage/assets/0.7.1/fancybox/fancy_shadow_s.png +0 -0
  24. data/coverage/assets/0.7.1/fancybox/fancy_shadow_se.png +0 -0
  25. data/coverage/assets/0.7.1/fancybox/fancy_shadow_sw.png +0 -0
  26. data/coverage/assets/0.7.1/fancybox/fancy_shadow_w.png +0 -0
  27. data/coverage/assets/0.7.1/fancybox/fancy_title_left.png +0 -0
  28. data/coverage/assets/0.7.1/fancybox/fancy_title_main.png +0 -0
  29. data/coverage/assets/0.7.1/fancybox/fancy_title_over.png +0 -0
  30. data/coverage/assets/0.7.1/fancybox/fancy_title_right.png +0 -0
  31. data/coverage/assets/0.7.1/fancybox/fancybox-x.png +0 -0
  32. data/coverage/assets/0.7.1/fancybox/fancybox-y.png +0 -0
  33. data/coverage/assets/0.7.1/fancybox/fancybox.png +0 -0
  34. data/coverage/assets/0.7.1/favicon_green.png +0 -0
  35. data/coverage/assets/0.7.1/favicon_red.png +0 -0
  36. data/coverage/assets/0.7.1/favicon_yellow.png +0 -0
  37. data/coverage/assets/0.7.1/loading.gif +0 -0
  38. data/coverage/assets/0.7.1/magnify.png +0 -0
  39. data/coverage/assets/0.7.1/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  40. data/coverage/assets/0.7.1/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  41. data/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  42. data/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  43. data/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  44. data/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  45. data/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  46. data/coverage/assets/0.7.1/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  47. data/coverage/assets/0.7.1/smoothness/images/ui-icons_222222_256x240.png +0 -0
  48. data/coverage/assets/0.7.1/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  49. data/coverage/assets/0.7.1/smoothness/images/ui-icons_454545_256x240.png +0 -0
  50. data/coverage/assets/0.7.1/smoothness/images/ui-icons_888888_256x240.png +0 -0
  51. data/coverage/assets/0.7.1/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  52. data/coverage/index.html +250 -0
  53. data/lib/human_behavior.rb +25 -0
  54. data/rdoc/HumanBehavior.html +168 -0
  55. data/rdoc/Object.html +209 -0
  56. data/rdoc/created.rid +3 -0
  57. data/rdoc/images/add.png +0 -0
  58. data/rdoc/images/brick.png +0 -0
  59. data/rdoc/images/brick_link.png +0 -0
  60. data/rdoc/images/bug.png +0 -0
  61. data/rdoc/images/bullet_black.png +0 -0
  62. data/rdoc/images/bullet_toggle_minus.png +0 -0
  63. data/rdoc/images/bullet_toggle_plus.png +0 -0
  64. data/rdoc/images/date.png +0 -0
  65. data/rdoc/images/delete.png +0 -0
  66. data/rdoc/images/find.png +0 -0
  67. data/rdoc/images/loadingAnimation.gif +0 -0
  68. data/rdoc/images/macFFBgHack.png +0 -0
  69. data/rdoc/images/package.png +0 -0
  70. data/rdoc/images/page_green.png +0 -0
  71. data/rdoc/images/page_white_text.png +0 -0
  72. data/rdoc/images/page_white_width.png +0 -0
  73. data/rdoc/images/plugin.png +0 -0
  74. data/rdoc/images/ruby.png +0 -0
  75. data/rdoc/images/tag_blue.png +0 -0
  76. data/rdoc/images/tag_green.png +0 -0
  77. data/rdoc/images/transparent.png +0 -0
  78. data/rdoc/images/wrench.png +0 -0
  79. data/rdoc/images/wrench_orange.png +0 -0
  80. data/rdoc/images/zoom.png +0 -0
  81. data/rdoc/index.html +69 -0
  82. data/rdoc/js/darkfish.js +153 -0
  83. data/rdoc/js/jquery.js +18 -0
  84. data/rdoc/js/navigation.js +142 -0
  85. data/rdoc/js/search.js +94 -0
  86. data/rdoc/js/search_index.js +1 -0
  87. data/rdoc/js/searcher.js +228 -0
  88. data/rdoc/rdoc.css +543 -0
  89. data/rdoc/table_of_contents.html +50 -0
  90. data/spec/lib/human_behavior_spec.rb +13 -0
  91. data/spec/spec_helper.rb +17 -0
  92. metadata +237 -0
@@ -0,0 +1,209 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class Object - human_behavior </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/human_behavior.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">BasicObject
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-i-grab">#grab</a>
74
+
75
+ <li><a href="#method-i-validate_that">#validate_that</a>
76
+
77
+ </ul>
78
+ </nav>
79
+
80
+ </div>
81
+
82
+ <div id="project-metadata">
83
+
84
+ <nav id="classindex-section" class="section project-section">
85
+ <h3 class="section-header">Class and Module Index</h3>
86
+
87
+ <ul class="link-list">
88
+
89
+ <li><a href="./Object.html">Object</a>
90
+
91
+ </ul>
92
+ </nav>
93
+
94
+ </div>
95
+ </nav>
96
+
97
+ <div id="documentation">
98
+ <h1 class="class">class Object</h1>
99
+
100
+ <div id="description" class="description">
101
+
102
+ </div><!-- description -->
103
+
104
+
105
+
106
+
107
+ <section id="5Buntitled-5D" class="documentation-section">
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+ <!-- Methods -->
117
+
118
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
119
+ <h3 class="section-header">Public Instance Methods</h3>
120
+
121
+
122
+ <div id="method-i-grab" class="method-detail ">
123
+
124
+ <div class="method-heading">
125
+ <span class="method-name">grab</span><span
126
+ class="method-args">(rexp, opts={})</span>
127
+ <span class="method-click-advice">click to toggle source</span>
128
+ </div>
129
+
130
+
131
+ <div class="method-description">
132
+
133
+ <p>Public: Grab content out of a string. Returns an array of each match.</p>
134
+
135
+ <p>rexp - Regexp to search with <a href="http://:from">opts</a> -
136
+ String to search in Example:</p>
137
+
138
+ <pre class="ruby"><span class="ruby-identifier">method</span> = <span class="ruby-identifier">grab</span> <span class="ruby-regexp">%rh/</span>, <span class="ruby-identifier">from</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;hello&quot;</span>
139
+ <span class="ruby-comment"># =&gt; ['h']</span>
140
+ </pre>
141
+
142
+
143
+
144
+ <div class="method-source-code" id="grab-source">
145
+ <pre><span class="ruby-comment"># File lib/human_behavior.rb, line 9</span>
146
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">grab</span>(<span class="ruby-identifier">rexp</span>, <span class="ruby-identifier">opts</span>={})
147
+ <span class="ruby-identifier">str</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:from</span>]
148
+ <span class="ruby-identifier">str</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-identifier">rexp</span>)
149
+ <span class="ruby-keyword">end</span></pre>
150
+ </div><!-- grab-source -->
151
+
152
+ </div>
153
+
154
+
155
+
156
+
157
+ </div><!-- grab-method -->
158
+
159
+
160
+ <div id="method-i-validate_that" class="method-detail ">
161
+
162
+ <div class="method-heading">
163
+ <span class="method-name">validate_that</span><span
164
+ class="method-args">(rexp, opts={})</span>
165
+ <span class="method-click-advice">click to toggle source</span>
166
+ </div>
167
+
168
+
169
+ <div class="method-description">
170
+
171
+ <p>rexp - Regexp to search with <a href="http://:is_inside">opts</a> - String
172
+ to search in Example:</p>
173
+
174
+ <pre class="ruby"><span class="ruby-identifier">validates_that</span> <span class="ruby-regexp">%rh/</span>, <span class="ruby-identifier">is_inside</span><span class="ruby-operator">:</span> <span class="ruby-string">'hello'</span>
175
+ <span class="ruby-comment"># =&gt; true</span>
176
+ </pre>
177
+
178
+
179
+
180
+ <div class="method-source-code" id="validate_that-source">
181
+ <pre><span class="ruby-comment"># File lib/human_behavior.rb, line 21</span>
182
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">validate_that</span>(<span class="ruby-identifier">rexp</span>, <span class="ruby-identifier">opts</span>={})
183
+ <span class="ruby-identifier">str</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:is_inside</span>]
184
+ <span class="ruby-identifier">conditional</span> = <span class="ruby-identifier">rexp</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">str</span>
185
+ <span class="ruby-keyword">true</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">conditional</span> <span class="ruby-operator">==</span> <span class="ruby-keyword">nil</span>
186
+ <span class="ruby-keyword">end</span></pre>
187
+ </div><!-- validate_that-source -->
188
+
189
+ </div>
190
+
191
+
192
+
193
+
194
+ </div><!-- validate_that-method -->
195
+
196
+
197
+ </section><!-- public-instance-method-details -->
198
+
199
+ </section><!-- 5Buntitled-5D -->
200
+
201
+ </div><!-- documentation -->
202
+
203
+
204
+ <footer id="validator-badges">
205
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
206
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
207
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
208
+ </footer>
209
+
@@ -0,0 +1,3 @@
1
+ Sat, 15 Dec 2012 10:37:47 -0500
2
+ README.md Sat, 01 Dec 2012 14:29:53 -0500
3
+ lib/human_behavior.rb Sat, 15 Dec 2012 10:37:45 -0500
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
@@ -0,0 +1,69 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>human_behavior </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
+
48
+ <nav id="classindex-section" class="section project-section">
49
+ <h3 class="section-header">Class and Module Index</h3>
50
+
51
+ <ul class="link-list">
52
+
53
+ <li><a href="./Object.html">Object</a>
54
+
55
+ </ul>
56
+ </nav>
57
+
58
+ </div>
59
+ </nav>
60
+
61
+ <p>This is the API documentation for human_behavior .
62
+
63
+
64
+ <footer id="validator-badges">
65
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
66
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
67
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
68
+ </footer>
69
+
@@ -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
+ });