camping-abingo 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. data/README +3 -0
  2. data/doc/classes/ABingoCampingPlugin.html +188 -0
  3. data/doc/classes/ABingoCampingPlugin.src/M000016.html +18 -0
  4. data/doc/classes/ABingoCampingPlugin.src/M000017.html +18 -0
  5. data/doc/classes/ABingoCampingPlugin.src/M000018.html +19 -0
  6. data/doc/classes/ABingoCampingPlugin.src/M000034.html +18 -0
  7. data/doc/classes/ABingoCampingPlugin.src/M000035.html +18 -0
  8. data/doc/classes/ABingoCampingPlugin.src/M000036.html +19 -0
  9. data/doc/classes/ABingoCampingPlugin/ABingo.html +121 -0
  10. data/doc/classes/ABingoCampingPlugin/Controllers.html +191 -0
  11. data/doc/classes/ABingoCampingPlugin/Controllers.src/M000022.html +18 -0
  12. data/doc/classes/ABingoCampingPlugin/Controllers.src/M000023.html +26 -0
  13. data/doc/classes/ABingoCampingPlugin/Controllers.src/M000040.html +18 -0
  14. data/doc/classes/ABingoCampingPlugin/Controllers.src/M000041.html +26 -0
  15. data/doc/classes/ABingoCampingPlugin/Filters.html +158 -0
  16. data/doc/classes/ABingoCampingPlugin/Filters.src/M000037.html +26 -0
  17. data/doc/classes/ABingoCampingPlugin/Filters.src/M000055.html +26 -0
  18. data/doc/classes/ABingoCampingPlugin/Helpers.html +372 -0
  19. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000024.html +18 -0
  20. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000025.html +19 -0
  21. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000026.html +18 -0
  22. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000027.html +18 -0
  23. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000028.html +36 -0
  24. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000029.html +28 -0
  25. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000030.html +18 -0
  26. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000031.html +48 -0
  27. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000032.html +32 -0
  28. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000033.html +18 -0
  29. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000034.html +26 -0
  30. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000035.html +20 -0
  31. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000036.html +18 -0
  32. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000042.html +18 -0
  33. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000043.html +19 -0
  34. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000044.html +18 -0
  35. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000045.html +18 -0
  36. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000046.html +36 -0
  37. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000047.html +28 -0
  38. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000048.html +18 -0
  39. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000049.html +48 -0
  40. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000050.html +32 -0
  41. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000051.html +18 -0
  42. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000052.html +26 -0
  43. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000053.html +20 -0
  44. data/doc/classes/ABingoCampingPlugin/Helpers.src/M000054.html +18 -0
  45. data/doc/classes/ABingoCampingPlugin/Models.html +208 -0
  46. data/doc/classes/ABingoCampingPlugin/Models.src/M000038.html +22 -0
  47. data/doc/classes/ABingoCampingPlugin/Models.src/M000039.html +39 -0
  48. data/doc/classes/ABingoCampingPlugin/Models.src/M000040.html +21 -0
  49. data/doc/classes/ABingoCampingPlugin/Models.src/M000056.html +22 -0
  50. data/doc/classes/ABingoCampingPlugin/Models.src/M000057.html +39 -0
  51. data/doc/classes/ABingoCampingPlugin/Models.src/M000058.html +21 -0
  52. data/doc/classes/ABingoCampingPlugin/Models/Alternative.html +181 -0
  53. data/doc/classes/ABingoCampingPlugin/Models/Alternative.src/M000041.html +20 -0
  54. data/doc/classes/ABingoCampingPlugin/Models/Alternative.src/M000042.html +21 -0
  55. data/doc/classes/ABingoCampingPlugin/Models/Alternative.src/M000043.html +21 -0
  56. data/doc/classes/ABingoCampingPlugin/Models/Alternative.src/M000059.html +20 -0
  57. data/doc/classes/ABingoCampingPlugin/Models/Alternative.src/M000060.html +21 -0
  58. data/doc/classes/ABingoCampingPlugin/Models/Alternative.src/M000061.html +21 -0
  59. data/doc/classes/ABingoCampingPlugin/Models/Experiment.html +273 -0
  60. data/doc/classes/ABingoCampingPlugin/Models/Experiment.src/M000044.html +21 -0
  61. data/doc/classes/ABingoCampingPlugin/Models/Experiment.src/M000045.html +21 -0
  62. data/doc/classes/ABingoCampingPlugin/Models/Experiment.src/M000046.html +18 -0
  63. data/doc/classes/ABingoCampingPlugin/Models/Experiment.src/M000047.html +18 -0
  64. data/doc/classes/ABingoCampingPlugin/Models/Experiment.src/M000048.html +20 -0
  65. data/doc/classes/ABingoCampingPlugin/Models/Experiment.src/M000049.html +23 -0
  66. data/doc/classes/ABingoCampingPlugin/Models/Experiment.src/M000050.html +29 -0
  67. data/doc/classes/ABingoCampingPlugin/Models/Experiment.src/M000051.html +50 -0
  68. data/doc/classes/ABingoCampingPlugin/Models/Experiment.src/M000052.html +28 -0
  69. data/doc/classes/ABingoCampingPlugin/Models/Experiment.src/M000062.html +21 -0
  70. data/doc/classes/ABingoCampingPlugin/Models/Experiment.src/M000063.html +21 -0
  71. data/doc/classes/ABingoCampingPlugin/Models/Experiment.src/M000064.html +18 -0
  72. data/doc/classes/ABingoCampingPlugin/Models/Experiment.src/M000065.html +18 -0
  73. data/doc/classes/ABingoCampingPlugin/Models/Experiment.src/M000066.html +20 -0
  74. data/doc/classes/ABingoCampingPlugin/Models/Experiment.src/M000067.html +23 -0
  75. data/doc/classes/ABingoCampingPlugin/Models/Experiment.src/M000068.html +29 -0
  76. data/doc/classes/ABingoCampingPlugin/Models/Experiment.src/M000069.html +50 -0
  77. data/doc/classes/ABingoCampingPlugin/Models/Experiment.src/M000070.html +28 -0
  78. data/doc/classes/ABingoCampingPlugin/Views.html +196 -0
  79. data/doc/classes/ABingoCampingPlugin/Views.src/M000019.html +18 -0
  80. data/doc/classes/ABingoCampingPlugin/Views.src/M000020.html +18 -0
  81. data/doc/classes/ABingoCampingPlugin/Views.src/M000021.html +30 -0
  82. data/doc/classes/ABingoCampingPlugin/Views.src/M000037.html +18 -0
  83. data/doc/classes/ABingoCampingPlugin/Views.src/M000038.html +18 -0
  84. data/doc/classes/ABingoCampingPlugin/Views.src/M000039.html +30 -0
  85. data/doc/classes/Abingo.html +429 -0
  86. data/doc/classes/Abingo.src/M000001.html +18 -0
  87. data/doc/classes/Abingo.src/M000002.html +18 -0
  88. data/doc/classes/Abingo.src/M000003.html +18 -0
  89. data/doc/classes/Abingo.src/M000004.html +22 -0
  90. data/doc/classes/Abingo.src/M000005.html +69 -0
  91. data/doc/classes/Abingo.src/M000006.html +47 -0
  92. data/doc/classes/Abingo.src/M000007.html +31 -0
  93. data/doc/classes/Abingo.src/M000008.html +36 -0
  94. data/doc/classes/Abingo.src/M000009.html +18 -0
  95. data/doc/classes/Abingo.src/M000010.html +36 -0
  96. data/doc/classes/Abingo.src/M000011.html +22 -0
  97. data/doc/classes/Abingo.src/M000012.html +21 -0
  98. data/doc/classes/Abingo.src/M000013.html +18 -0
  99. data/doc/classes/Abingo.src/M000014.html +39 -0
  100. data/doc/classes/Abingo.src/M000015.html +25 -0
  101. data/doc/classes/ActiveSupport.html +107 -0
  102. data/doc/classes/ActiveSupport/Cache.html +111 -0
  103. data/doc/classes/ActiveSupport/Cache/MemoryStore.html +137 -0
  104. data/doc/classes/ActiveSupport/Cache/MemoryStore.src/M000016.html +18 -0
  105. data/doc/classes/CampingABingoTest.html +149 -0
  106. data/doc/classes/CampingABingoTest.src/M000017.html +24 -0
  107. data/doc/classes/CampingABingoTest/Controllers.html +116 -0
  108. data/doc/classes/CampingABingoTest/Controllers/Index.html +137 -0
  109. data/doc/classes/CampingABingoTest/Controllers/Index.src/M000024.html +18 -0
  110. data/doc/classes/CampingABingoTest/Controllers/Landing.html +137 -0
  111. data/doc/classes/CampingABingoTest/Controllers/Landing.src/M000026.html +18 -0
  112. data/doc/classes/CampingABingoTest/Controllers/SignIn.html +152 -0
  113. data/doc/classes/CampingABingoTest/Controllers/SignIn.src/M000030.html +18 -0
  114. data/doc/classes/CampingABingoTest/Controllers/SignIn.src/M000031.html +34 -0
  115. data/doc/classes/CampingABingoTest/Controllers/SignOut.html +137 -0
  116. data/doc/classes/CampingABingoTest/Controllers/SignOut.src/M000029.html +21 -0
  117. data/doc/classes/CampingABingoTest/Controllers/SignUp.html +152 -0
  118. data/doc/classes/CampingABingoTest/Controllers/SignUp.src/M000027.html +23 -0
  119. data/doc/classes/CampingABingoTest/Controllers/SignUp.src/M000028.html +33 -0
  120. data/doc/classes/CampingABingoTest/Controllers/Welcome.html +137 -0
  121. data/doc/classes/CampingABingoTest/Controllers/Welcome.src/M000025.html +18 -0
  122. data/doc/classes/CampingABingoTest/Helpers.html +112 -0
  123. data/doc/classes/CampingABingoTest/Models.html +119 -0
  124. data/doc/classes/CampingABingoTest/Models/CreateUserSchema.html +152 -0
  125. data/doc/classes/CampingABingoTest/Models/CreateUserSchema.src/M000032.html +26 -0
  126. data/doc/classes/CampingABingoTest/Models/CreateUserSchema.src/M000033.html +19 -0
  127. data/doc/classes/CampingABingoTest/Models/User.html +111 -0
  128. data/doc/classes/CampingABingoTest/Views.html +206 -0
  129. data/doc/classes/CampingABingoTest/Views.src/M000018.html +70 -0
  130. data/doc/classes/CampingABingoTest/Views.src/M000019.html +22 -0
  131. data/doc/classes/CampingABingoTest/Views.src/M000020.html +51 -0
  132. data/doc/classes/CampingABingoTest/Views.src/M000021.html +31 -0
  133. data/doc/classes/CampingABingoTest/Views.src/M000022.html +31 -0
  134. data/doc/classes/CampingABingoTest/Views.src/M000023.html +20 -0
  135. data/doc/created.rid +1 -0
  136. data/doc/files/examples/camping-abingo-test/camping-abingo-test_rb.html +101 -0
  137. data/doc/files/lib/camping-abingo_rb.html +457 -0
  138. data/doc/fr_class_index.html +52 -0
  139. data/doc/fr_file_index.html +28 -0
  140. data/doc/fr_method_index.html +96 -0
  141. data/doc/index.html +24 -0
  142. data/lib/camping-abingo.rb +1233 -0
  143. metadata +279 -0
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>common_abingo_controllers (ABingoCampingPlugin::Controllers)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/camping-abingo.rb, line 986</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">common_abingo_controllers</span>
15
+ <span class="ruby-value str">&quot;class ABingoMarkHuman &lt; R '/abingo/mark_human'\ninclude ABingoCampingPlugin::ABingo\ninclude ABingoCampingPlugin::Helpers\n\ndef post\ntextual_result = \&quot;1\&quot;\nbegin\na = @input.a.to_i\nb = @input.b.to_i\nc = @input.c.to_i\nif (@env['REQUEST_METHOD'] == 'POST' &amp;&amp; (a + b == c))\nAbingo.human!\nelse\ntextual_result = \&quot;0\&quot;\nend\nrescue #If a bot doesn't pass a, b, or c, to_i will fail. This scarfs up the exception, to save it from polluting our logs.\ntextual_result = \&quot;0\&quot;\nend\n\nreturn textual_result\nend\nend\n\nclass ABingoDashboard &lt; R '/abingo/dashboard'\ninclude ABingoCampingPlugin::ABingo\ninclude ABingoCampingPlugin::Helpers\n\ndef get\n@experiments = ABingoCampingPlugin::Models::Experiment.all\nrender :abingo_dashboard\nend\nend\n\nclass ABingoTerminateExperiment &lt; R '/abingo/terminate'\ninclude ABingoCampingPlugin::ABingo\ninclude ABingoCampingPlugin::Helpers\n\ndef post\nreturn(:abingo_dashboard) unless @input.alternative_id\n\n@alternative = ABingoCampingPlugin::Models::Alternative.find(@input.alternative_id)\n@experiment = ABingoCampingPlugin::Models::Experiment.find(@alternative.experiment_id)\nexperiment_name = @experiment.test_name\n\nif (@experiment.status != \&quot;Completed\&quot;)\n@experiment.end_experiment!(@alternative.content)\n@abingo_notice = \&quot;Experiment '\&quot; + experiment_name + \&quot;' has been marked as ended. All users will now see the chosen alternative.\&quot;\nelse\n@abingo_notice = \&quot;Experiment '\&quot; + experiment_name + \&quot;' is already ended.\&quot;\nend\n\nrender :abingo_termination_notice\nend\nend\n\nclass ABingoRestrictedAccess &lt; R '/abingo/restricted_access'\ndef get\nrender :abingo_dashboard_restricted_access\nend\nend\n\n&quot;</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>include_abingo_controllers (ABingoCampingPlugin::Controllers)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/camping-abingo.rb, line 1055</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">include_abingo_controllers</span>
15
+ <span class="ruby-identifier">module_eval</span> <span class="ruby-constant">ABingoCampingPlugin</span><span class="ruby-operator">::</span><span class="ruby-constant">Controllers</span>.<span class="ruby-identifier">common_abingo_controllers</span>
16
+
17
+ <span class="ruby-comment cmt"># Add ABing to each controller</span>
18
+ <span class="ruby-identifier">r</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span>
19
+ <span class="ruby-identifier">x</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-keyword kw">do</span>
20
+ <span class="ruby-identifier">include</span> <span class="ruby-constant">ABingoCampingPlugin</span><span class="ruby-operator">::</span><span class="ruby-constant">ABingo</span>
21
+ <span class="ruby-identifier">include</span> <span class="ruby-constant">ABingoCampingPlugin</span><span class="ruby-operator">::</span><span class="ruby-constant">Helpers</span>
22
+ <span class="ruby-keyword kw">end</span>
23
+ <span class="ruby-keyword kw">end</span>
24
+ <span class="ruby-keyword kw">end</span></pre>
25
+ </body>
26
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>common_abingo_controllers (ABingoCampingPlugin::Controllers)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/camping-abingo.rb, line 986</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">common_abingo_controllers</span>
15
+ <span class="ruby-value str">&quot;class ABingoMarkHuman &lt; R '/abingo/mark_human'\ninclude ABingoCampingPlugin::ABingo\ninclude ABingoCampingPlugin::Helpers\n\ndef post\ntextual_result = \&quot;1\&quot;\nbegin\na = @input.a.to_i\nb = @input.b.to_i\nc = @input.c.to_i\nif (@env['REQUEST_METHOD'] == 'POST' &amp;&amp; (a + b == c))\nAbingo.human!\nelse\ntextual_result = \&quot;0\&quot;\nend\nrescue #If a bot doesn't pass a, b, or c, to_i will fail. This scarfs up the exception, to save it from polluting our logs.\ntextual_result = \&quot;0\&quot;\nend\n\nreturn textual_result\nend\nend\n\nclass ABingoDashboard &lt; R '/abingo/dashboard'\ninclude ABingoCampingPlugin::ABingo\ninclude ABingoCampingPlugin::Helpers\n\ndef get\n@experiments = ABingoCampingPlugin::Models::Experiment.all\nrender :abingo_dashboard\nend\nend\n\nclass ABingoTerminateExperiment &lt; R '/abingo/terminate'\ninclude ABingoCampingPlugin::ABingo\ninclude ABingoCampingPlugin::Helpers\n\ndef post\nreturn(:abingo_dashboard) unless @input.alternative_id\n\n@alternative = ABingoCampingPlugin::Models::Alternative.find(@input.alternative_id)\n@experiment = ABingoCampingPlugin::Models::Experiment.find(@alternative.experiment_id)\nexperiment_name = @experiment.test_name\n\nif (@experiment.status != \&quot;Completed\&quot;)\n@experiment.end_experiment!(@alternative.content)\n@abingo_notice = \&quot;Experiment '\&quot; + experiment_name + \&quot;' has been marked as ended. All users will now see the chosen alternative.\&quot;\nelse\n@abingo_notice = \&quot;Experiment '\&quot; + experiment_name + \&quot;' is already ended.\&quot;\nend\n\nrender :abingo_termination_notice\nend\nend\n\nclass ABingoRestrictedAccess &lt; R '/abingo/restricted_access'\ndef get\nrender :abingo_dashboard_restricted_access\nend\nend\n\n&quot;</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>include_abingo_controllers (ABingoCampingPlugin::Controllers)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/camping-abingo.rb, line 1055</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">include_abingo_controllers</span>
15
+ <span class="ruby-identifier">module_eval</span> <span class="ruby-constant">ABingoCampingPlugin</span><span class="ruby-operator">::</span><span class="ruby-constant">Controllers</span>.<span class="ruby-identifier">common_abingo_controllers</span>
16
+
17
+ <span class="ruby-comment cmt"># Add ABing to each controller</span>
18
+ <span class="ruby-identifier">r</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span>
19
+ <span class="ruby-identifier">x</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-keyword kw">do</span>
20
+ <span class="ruby-identifier">include</span> <span class="ruby-constant">ABingoCampingPlugin</span><span class="ruby-operator">::</span><span class="ruby-constant">ABingo</span>
21
+ <span class="ruby-identifier">include</span> <span class="ruby-constant">ABingoCampingPlugin</span><span class="ruby-operator">::</span><span class="ruby-constant">Helpers</span>
22
+ <span class="ruby-keyword kw">end</span>
23
+ <span class="ruby-keyword kw">end</span>
24
+ <span class="ruby-keyword kw">end</span></pre>
25
+ </body>
26
+ </html>
@@ -0,0 +1,158 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: ABingoCampingPlugin::Filters</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">ABingoCampingPlugin::Filters</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/camping-abingo_rb.html">
59
+ lib/camping-abingo.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+ <div id="description">
76
+ <p>
77
+ <a href="Filters.html">Filters</a> module for OAuth Camping Plugin. The
78
+ module will be plugged in to the main app <a
79
+ href="Helpers.html">Helpers</a> module. Example:
80
+ </p>
81
+ <pre>
82
+ module CampingOAuthProvider
83
+ include Camping::Session
84
+ include CampingFilters
85
+ extend OAuthCampingPlugin
86
+ include OAuthCampingPlugin::Filters
87
+
88
+ # ...
89
+ end
90
+ </pre>
91
+
92
+ </div>
93
+
94
+
95
+ </div>
96
+
97
+ <div id="method-list">
98
+ <h3 class="section-bar">Methods</h3>
99
+
100
+ <div class="name-list">
101
+ <a href="#M000055">included</a>&nbsp;&nbsp;
102
+ </div>
103
+ </div>
104
+
105
+ </div>
106
+
107
+
108
+ <!-- if includes -->
109
+
110
+ <div id="section">
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+ <!-- if method_list -->
120
+ <div id="methods">
121
+ <h3 class="section-bar">Public Class methods</h3>
122
+
123
+ <div id="method-M000055" class="method-detail">
124
+ <a name="M000055"></a>
125
+
126
+ <div class="method-heading">
127
+ <a href="Filters.src/M000055.html" target="Code" class="method-signature"
128
+ onclick="popupCode('Filters.src/M000055.html');return false;">
129
+ <span class="method-name">included</span><span class="method-args">(mod)</span>
130
+ </a>
131
+ </div>
132
+
133
+ <div class="method-description">
134
+ <p>
135
+ Adds a before filters for the common controllers:
136
+ </p>
137
+ <pre>
138
+ - ABingoDashboard
139
+ </pre>
140
+ <p>
141
+ Also adds a before filter on all controllers to ensure the user is set
142
+ </p>
143
+ </div>
144
+ </div>
145
+
146
+
147
+ </div>
148
+
149
+
150
+ </div>
151
+
152
+
153
+ <div id="validator-badges">
154
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
155
+ </div>
156
+
157
+ </body>
158
+ </html>
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>included (ABingoCampingPlugin::Filters)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/camping-abingo.rb, line 734</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">included</span>(<span class="ruby-identifier">mod</span>)
15
+ <span class="ruby-identifier">mod</span>.<span class="ruby-identifier">module_eval</span> <span class="ruby-keyword kw">do</span>
16
+ <span class="ruby-identifier">before</span> <span class="ruby-identifier">:all</span> <span class="ruby-keyword kw">do</span>
17
+ <span class="ruby-identifier">set_abingo_identity</span>
18
+ <span class="ruby-keyword kw">end</span>
19
+
20
+ <span class="ruby-identifier">before</span> <span class="ruby-identifier">:ABingoDashboard</span> <span class="ruby-keyword kw">do</span>
21
+ <span class="ruby-identifier">authenticate_abingo_administrator</span>
22
+ <span class="ruby-keyword kw">end</span>
23
+ <span class="ruby-keyword kw">end</span>
24
+ <span class="ruby-keyword kw">end</span></pre>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>included (ABingoCampingPlugin::Filters)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/camping-abingo.rb, line 734</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">included</span>(<span class="ruby-identifier">mod</span>)
15
+ <span class="ruby-identifier">mod</span>.<span class="ruby-identifier">module_eval</span> <span class="ruby-keyword kw">do</span>
16
+ <span class="ruby-identifier">before</span> <span class="ruby-identifier">:all</span> <span class="ruby-keyword kw">do</span>
17
+ <span class="ruby-identifier">set_abingo_identity</span>
18
+ <span class="ruby-keyword kw">end</span>
19
+
20
+ <span class="ruby-identifier">before</span> <span class="ruby-identifier">:ABingoDashboard</span> <span class="ruby-keyword kw">do</span>
21
+ <span class="ruby-identifier">authenticate_abingo_administrator</span>
22
+ <span class="ruby-keyword kw">end</span>
23
+ <span class="ruby-keyword kw">end</span>
24
+ <span class="ruby-keyword kw">end</span></pre>
25
+ </body>
26
+ </html>
@@ -0,0 +1,372 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: ABingoCampingPlugin::Helpers</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">ABingoCampingPlugin::Helpers</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/camping-abingo_rb.html">
59
+ lib/camping-abingo.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+ <div id="description">
76
+ <p>
77
+ <a href="Helpers.html">Helpers</a> module for <a
78
+ href="ABingo.html">ABingo</a> Camping Plugin. The module will be plugged in
79
+ to the main app <a href="Helpers.html">Helpers</a> module. Its methods will
80
+ be added to <a href="Controllers.html">Controllers</a> and <a
81
+ href="Views.html">Views</a>. Example:
82
+ </p>
83
+ <pre>
84
+ module CampingABingoTest::Helpers
85
+ extend ABingoCampingPlugin::Helpers
86
+ include ABingoCampingPlugin::Helpers
87
+ end
88
+ </pre>
89
+
90
+ </div>
91
+
92
+
93
+ </div>
94
+
95
+ <div id="method-list">
96
+ <h3 class="section-bar">Methods</h3>
97
+
98
+ <div class="name-list">
99
+ <a href="#M000050">ab_test</a>&nbsp;&nbsp;
100
+ <a href="#M000054">abingo_administrator_user_id</a>&nbsp;&nbsp;
101
+ <a href="#M000043">app_module</a>&nbsp;&nbsp;
102
+ <a href="#M000053">authenticate_abingo_administrator</a>&nbsp;&nbsp;
103
+ <a href="#M000051">bingo!</a>&nbsp;&nbsp;
104
+ <a href="#M000044">conversion_rate</a>&nbsp;&nbsp;
105
+ <a href="#M000049">describe_result_in_words</a>&nbsp;&nbsp;
106
+ <a href="#M000048">is_statistically_significant?</a>&nbsp;&nbsp;
107
+ <a href="#M000042">log_debug</a>&nbsp;&nbsp;
108
+ <a href="#M000047">p_value</a>&nbsp;&nbsp;
109
+ <a href="#M000045">pretty_conversion_rate</a>&nbsp;&nbsp;
110
+ <a href="#M000052">set_abingo_identity</a>&nbsp;&nbsp;
111
+ <a href="#M000046">zscore</a>&nbsp;&nbsp;
112
+ </div>
113
+ </div>
114
+
115
+ </div>
116
+
117
+
118
+ <!-- if includes -->
119
+
120
+ <div id="section">
121
+
122
+
123
+ <div id="constants-list">
124
+ <h3 class="section-bar">Constants</h3>
125
+
126
+ <div class="name-list">
127
+ <table summary="Constants">
128
+ <tr class="top-aligned-row context-row">
129
+ <td class="context-item-name">HANDY_Z_SCORE_CHEATSHEET</td>
130
+ <td>=</td>
131
+ <td class="context-item-value">[[0.10, 1.29], [0.05, 1.65], [0.01, 2.33], [0.001, 3.08]]</td>
132
+ <td width="3em">&nbsp;</td>
133
+ <td class="context-item-desc">
134
+ &#8212; Statistics
135
+ &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
136
+
137
+ </td>
138
+ </tr>
139
+ <tr class="top-aligned-row context-row">
140
+ <td class="context-item-name">PERCENTAGES</td>
141
+ <td>=</td>
142
+ <td class="context-item-value">{0.10 =&gt; '90%', 0.05 =&gt; '95%', 0.01 =&gt; '99%', 0.001 =&gt; '99.9%'}</td>
143
+ </tr>
144
+ <tr class="top-aligned-row context-row">
145
+ <td class="context-item-name">DESCRIPTION_IN_WORDS</td>
146
+ <td>=</td>
147
+ <td class="context-item-value">{0.10 =&gt; 'fairly confident', 0.05 =&gt; 'confident', 0.01 =&gt; 'very confident', 0.001 =&gt; 'extremely confident'}</td>
148
+ </tr>
149
+ </table>
150
+ </div>
151
+ </div>
152
+
153
+
154
+
155
+
156
+
157
+
158
+ <!-- if method_list -->
159
+ <div id="methods">
160
+ <h3 class="section-bar">Public Instance methods</h3>
161
+
162
+ <div id="method-M000050" class="method-detail">
163
+ <a name="M000050"></a>
164
+
165
+ <div class="method-heading">
166
+ <a href="Helpers.src/M000050.html" target="Code" class="method-signature"
167
+ onclick="popupCode('Helpers.src/M000050.html');return false;">
168
+ <span class="method-name">ab_test</span><span class="method-args">(test_name, alternatives = nil, options = {}) {|choice| ...}</span>
169
+ </a>
170
+ </div>
171
+
172
+ <div class="method-description">
173
+ <p>
174
+ Controller <a href="Helpers.html">Helpers</a>
175
+ </p>
176
+ </div>
177
+ </div>
178
+
179
+ <div id="method-M000054" class="method-detail">
180
+ <a name="M000054"></a>
181
+
182
+ <div class="method-heading">
183
+ <a href="Helpers.src/M000054.html" target="Code" class="method-signature"
184
+ onclick="popupCode('Helpers.src/M000054.html');return false;">
185
+ <span class="method-name">abingo_administrator_user_id</span><span class="method-args">()</span>
186
+ </a>
187
+ </div>
188
+
189
+ <div class="method-description">
190
+ </div>
191
+ </div>
192
+
193
+ <div id="method-M000043" class="method-detail">
194
+ <a name="M000043"></a>
195
+
196
+ <div class="method-heading">
197
+ <a href="Helpers.src/M000043.html" target="Code" class="method-signature"
198
+ onclick="popupCode('Helpers.src/M000043.html');return false;">
199
+ <span class="method-name">app_module</span><span class="method-args">()</span>
200
+ </a>
201
+ </div>
202
+
203
+ <div class="method-description">
204
+ <p>
205
+ Reverse engineers the main app module
206
+ </p>
207
+ </div>
208
+ </div>
209
+
210
+ <div id="method-M000053" class="method-detail">
211
+ <a name="M000053"></a>
212
+
213
+ <div class="method-heading">
214
+ <a href="Helpers.src/M000053.html" target="Code" class="method-signature"
215
+ onclick="popupCode('Helpers.src/M000053.html');return false;">
216
+ <span class="method-name">authenticate_abingo_administrator</span><span class="method-args">()</span>
217
+ </a>
218
+ </div>
219
+
220
+ <div class="method-description">
221
+ </div>
222
+ </div>
223
+
224
+ <div id="method-M000051" class="method-detail">
225
+ <a name="M000051"></a>
226
+
227
+ <div class="method-heading">
228
+ <a href="Helpers.src/M000051.html" target="Code" class="method-signature"
229
+ onclick="popupCode('Helpers.src/M000051.html');return false;">
230
+ <span class="method-name">bingo!</span><span class="method-args">(test_name, options = {})</span>
231
+ </a>
232
+ </div>
233
+
234
+ <div class="method-description">
235
+ </div>
236
+ </div>
237
+
238
+ <div id="method-M000044" class="method-detail">
239
+ <a name="M000044"></a>
240
+
241
+ <div class="method-heading">
242
+ <a href="Helpers.src/M000044.html" target="Code" class="method-signature"
243
+ onclick="popupCode('Helpers.src/M000044.html');return false;">
244
+ <span class="method-name">conversion_rate</span><span class="method-args">()</span>
245
+ </a>
246
+ </div>
247
+
248
+ <div class="method-description">
249
+ <p>
250
+ &#8212; ConversionRate
251
+ &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
252
+ </p>
253
+ </div>
254
+ </div>
255
+
256
+ <div id="method-M000049" class="method-detail">
257
+ <a name="M000049"></a>
258
+
259
+ <div class="method-heading">
260
+ <a href="Helpers.src/M000049.html" target="Code" class="method-signature"
261
+ onclick="popupCode('Helpers.src/M000049.html');return false;">
262
+ <span class="method-name">describe_result_in_words</span><span class="method-args">()</span>
263
+ </a>
264
+ </div>
265
+
266
+ <div class="method-description">
267
+ </div>
268
+ </div>
269
+
270
+ <div id="method-M000048" class="method-detail">
271
+ <a name="M000048"></a>
272
+
273
+ <div class="method-heading">
274
+ <a href="Helpers.src/M000048.html" target="Code" class="method-signature"
275
+ onclick="popupCode('Helpers.src/M000048.html');return false;">
276
+ <span class="method-name">is_statistically_significant?</span><span class="method-args">(p = 0.05)</span>
277
+ </a>
278
+ </div>
279
+
280
+ <div class="method-description">
281
+ </div>
282
+ </div>
283
+
284
+ <div id="method-M000042" class="method-detail">
285
+ <a name="M000042"></a>
286
+
287
+ <div class="method-heading">
288
+ <a href="Helpers.src/M000042.html" target="Code" class="method-signature"
289
+ onclick="popupCode('Helpers.src/M000042.html');return false;">
290
+ <span class="method-name">log_debug</span><span class="method-args">(msg)</span>
291
+ </a>
292
+ </div>
293
+
294
+ <div class="method-description">
295
+ <p>
296
+ Logs a specific message if in debug mode
297
+ </p>
298
+ </div>
299
+ </div>
300
+
301
+ <div id="method-M000047" class="method-detail">
302
+ <a name="M000047"></a>
303
+
304
+ <div class="method-heading">
305
+ <a href="Helpers.src/M000047.html" target="Code" class="method-signature"
306
+ onclick="popupCode('Helpers.src/M000047.html');return false;">
307
+ <span class="method-name">p_value</span><span class="method-args">()</span>
308
+ </a>
309
+ </div>
310
+
311
+ <div class="method-description">
312
+ </div>
313
+ </div>
314
+
315
+ <div id="method-M000045" class="method-detail">
316
+ <a name="M000045"></a>
317
+
318
+ <div class="method-heading">
319
+ <a href="Helpers.src/M000045.html" target="Code" class="method-signature"
320
+ onclick="popupCode('Helpers.src/M000045.html');return false;">
321
+ <span class="method-name">pretty_conversion_rate</span><span class="method-args">()</span>
322
+ </a>
323
+ </div>
324
+
325
+ <div class="method-description">
326
+ </div>
327
+ </div>
328
+
329
+ <div id="method-M000052" class="method-detail">
330
+ <a name="M000052"></a>
331
+
332
+ <div class="method-heading">
333
+ <a href="Helpers.src/M000052.html" target="Code" class="method-signature"
334
+ onclick="popupCode('Helpers.src/M000052.html');return false;">
335
+ <span class="method-name">set_abingo_identity</span><span class="method-args">(</span>
336
+ </a>
337
+ </div>
338
+
339
+ <div class="method-description">
340
+ <p>
341
+ Filter <a href="Helpers.html">Helpers</a>
342
+ </p>
343
+ </div>
344
+ </div>
345
+
346
+ <div id="method-M000046" class="method-detail">
347
+ <a name="M000046"></a>
348
+
349
+ <div class="method-heading">
350
+ <a href="Helpers.src/M000046.html" target="Code" class="method-signature"
351
+ onclick="popupCode('Helpers.src/M000046.html');return false;">
352
+ <span class="method-name">zscore</span><span class="method-args">()</span>
353
+ </a>
354
+ </div>
355
+
356
+ <div class="method-description">
357
+ </div>
358
+ </div>
359
+
360
+
361
+ </div>
362
+
363
+
364
+ </div>
365
+
366
+
367
+ <div id="validator-badges">
368
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
369
+ </div>
370
+
371
+ </body>
372
+ </html>