examenJoaquinAngelica 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +13 -0
  4. data/.rspec +2 -0
  5. data/.travis.yml +16 -0
  6. data/Gemfile +5 -0
  7. data/Guardfile +30 -0
  8. data/LICENSE.txt +22 -0
  9. data/README.md +20 -0
  10. data/Rakefile +5 -0
  11. data/doc/Examen.html +129 -0
  12. data/doc/Examen/EleccionSimple.html +163 -0
  13. data/doc/Examen/Exam.html +363 -0
  14. data/doc/Examen/Examen.html +163 -0
  15. data/doc/Examen/Interfaz.html +359 -0
  16. data/doc/Examen/Pregunta.html +385 -0
  17. data/doc/Examen/Verdaderofalso.html +161 -0
  18. data/doc/Gemfile.html +100 -0
  19. data/doc/Gemfile_lock.html +190 -0
  20. data/doc/Guardfile.html +121 -0
  21. data/doc/LICENSE_txt.html +116 -0
  22. data/doc/Lista.html +527 -0
  23. data/doc/Object.html +130 -0
  24. data/doc/README_md.html +112 -0
  25. data/doc/Rakefile.html +99 -0
  26. data/doc/created.rid +19 -0
  27. data/doc/examen_gemspec.html +134 -0
  28. data/doc/fonts.css +167 -0
  29. data/doc/fonts/Lato-Light.ttf +0 -0
  30. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  31. data/doc/fonts/Lato-Regular.ttf +0 -0
  32. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  33. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  34. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  35. data/doc/images/add.png +0 -0
  36. data/doc/images/arrow_up.png +0 -0
  37. data/doc/images/brick.png +0 -0
  38. data/doc/images/brick_link.png +0 -0
  39. data/doc/images/bug.png +0 -0
  40. data/doc/images/bullet_black.png +0 -0
  41. data/doc/images/bullet_toggle_minus.png +0 -0
  42. data/doc/images/bullet_toggle_plus.png +0 -0
  43. data/doc/images/date.png +0 -0
  44. data/doc/images/delete.png +0 -0
  45. data/doc/images/find.png +0 -0
  46. data/doc/images/loadingAnimation.gif +0 -0
  47. data/doc/images/macFFBgHack.png +0 -0
  48. data/doc/images/package.png +0 -0
  49. data/doc/images/page_green.png +0 -0
  50. data/doc/images/page_white_text.png +0 -0
  51. data/doc/images/page_white_width.png +0 -0
  52. data/doc/images/plugin.png +0 -0
  53. data/doc/images/ruby.png +0 -0
  54. data/doc/images/tag_blue.png +0 -0
  55. data/doc/images/tag_green.png +0 -0
  56. data/doc/images/transparent.png +0 -0
  57. data/doc/images/wrench.png +0 -0
  58. data/doc/images/wrench_orange.png +0 -0
  59. data/doc/images/zoom.png +0 -0
  60. data/doc/index.html +118 -0
  61. data/doc/js/darkfish.js +140 -0
  62. data/doc/js/jquery.js +4 -0
  63. data/doc/js/navigation.js +142 -0
  64. data/doc/js/search.js +109 -0
  65. data/doc/js/search_index.js +1 -0
  66. data/doc/js/searcher.js +228 -0
  67. data/doc/rdoc.css +580 -0
  68. data/doc/table_of_contents.html +238 -0
  69. data/examen.gemspec +40 -0
  70. data/lib/examen.rb +13 -0
  71. data/lib/examen/eleccionsimple.rb +16 -0
  72. data/lib/examen/exam.rb +109 -0
  73. data/lib/examen/examen.rb +17 -0
  74. data/lib/examen/interfaz.rb +45 -0
  75. data/lib/examen/lista.rb +92 -0
  76. data/lib/examen/pregunta.rb +53 -0
  77. data/lib/examen/verdaderofalso.rb +13 -0
  78. data/lib/examen/version.rb +3 -0
  79. data/spec/examen_spec.rb +624 -0
  80. data/spec/spec_helper.rb +32 -0
  81. metadata +280 -0
data/doc/fonts.css ADDED
@@ -0,0 +1,167 @@
1
+ /*
2
+ * Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/),
3
+ * with Reserved Font Name "Source". All Rights Reserved. Source is a
4
+ * trademark of Adobe Systems Incorporated in the United States and/or other
5
+ * countries.
6
+ *
7
+ * This Font Software is licensed under the SIL Open Font License, Version
8
+ * 1.1.
9
+ *
10
+ * This license is copied below, and is also available with a FAQ at:
11
+ * http://scripts.sil.org/OFL
12
+ */
13
+
14
+ @font-face {
15
+ font-family: "Source Code Pro";
16
+ font-style: normal;
17
+ font-weight: 400;
18
+ src: local("Source Code Pro"),
19
+ local("SourceCodePro-Regular"),
20
+ url("fonts/SourceCodePro-Regular.ttf") format("truetype");
21
+ }
22
+
23
+ @font-face {
24
+ font-family: "Source Code Pro";
25
+ font-style: normal;
26
+ font-weight: 700;
27
+ src: local("Source Code Pro Bold"),
28
+ local("SourceCodePro-Bold"),
29
+ url("fonts/SourceCodePro-Bold.ttf") format("truetype");
30
+ }
31
+
32
+ /*
33
+ * Copyright (c) 2010, Łukasz Dziedzic (dziedzic@typoland.com),
34
+ * with Reserved Font Name Lato.
35
+ *
36
+ * This Font Software is licensed under the SIL Open Font License, Version
37
+ * 1.1.
38
+ *
39
+ * This license is copied below, and is also available with a FAQ at:
40
+ * http://scripts.sil.org/OFL
41
+ */
42
+
43
+ @font-face {
44
+ font-family: "Lato";
45
+ font-style: normal;
46
+ font-weight: 300;
47
+ src: local("Lato Light"),
48
+ local("Lato-Light"),
49
+ url("fonts/Lato-Light.ttf") format("truetype");
50
+ }
51
+
52
+ @font-face {
53
+ font-family: "Lato";
54
+ font-style: italic;
55
+ font-weight: 300;
56
+ src: local("Lato Light Italic"),
57
+ local("Lato-LightItalic"),
58
+ url("fonts/Lato-LightItalic.ttf") format("truetype");
59
+ }
60
+
61
+ @font-face {
62
+ font-family: "Lato";
63
+ font-style: normal;
64
+ font-weight: 700;
65
+ src: local("Lato Regular"),
66
+ local("Lato-Regular"),
67
+ url("fonts/Lato-Regular.ttf") format("truetype");
68
+ }
69
+
70
+ @font-face {
71
+ font-family: "Lato";
72
+ font-style: italic;
73
+ font-weight: 700;
74
+ src: local("Lato Italic"),
75
+ local("Lato-Italic"),
76
+ url("fonts/Lato-RegularItalic.ttf") format("truetype");
77
+ }
78
+
79
+ /*
80
+ * -----------------------------------------------------------
81
+ * SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
82
+ * -----------------------------------------------------------
83
+ *
84
+ * PREAMBLE
85
+ * The goals of the Open Font License (OFL) are to stimulate worldwide
86
+ * development of collaborative font projects, to support the font creation
87
+ * efforts of academic and linguistic communities, and to provide a free and
88
+ * open framework in which fonts may be shared and improved in partnership
89
+ * with others.
90
+ *
91
+ * The OFL allows the licensed fonts to be used, studied, modified and
92
+ * redistributed freely as long as they are not sold by themselves. The
93
+ * fonts, including any derivative works, can be bundled, embedded,
94
+ * redistributed and/or sold with any software provided that any reserved
95
+ * names are not used by derivative works. The fonts and derivatives,
96
+ * however, cannot be released under any other type of license. The
97
+ * requirement for fonts to remain under this license does not apply
98
+ * to any document created using the fonts or their derivatives.
99
+ *
100
+ * DEFINITIONS
101
+ * "Font Software" refers to the set of files released by the Copyright
102
+ * Holder(s) under this license and clearly marked as such. This may
103
+ * include source files, build scripts and documentation.
104
+ *
105
+ * "Reserved Font Name" refers to any names specified as such after the
106
+ * copyright statement(s).
107
+ *
108
+ * "Original Version" refers to the collection of Font Software components as
109
+ * distributed by the Copyright Holder(s).
110
+ *
111
+ * "Modified Version" refers to any derivative made by adding to, deleting,
112
+ * or substituting -- in part or in whole -- any of the components of the
113
+ * Original Version, by changing formats or by porting the Font Software to a
114
+ * new environment.
115
+ *
116
+ * "Author" refers to any designer, engineer, programmer, technical
117
+ * writer or other person who contributed to the Font Software.
118
+ *
119
+ * PERMISSION & CONDITIONS
120
+ * Permission is hereby granted, free of charge, to any person obtaining
121
+ * a copy of the Font Software, to use, study, copy, merge, embed, modify,
122
+ * redistribute, and sell modified and unmodified copies of the Font
123
+ * Software, subject to the following conditions:
124
+ *
125
+ * 1) Neither the Font Software nor any of its individual components,
126
+ * in Original or Modified Versions, may be sold by itself.
127
+ *
128
+ * 2) Original or Modified Versions of the Font Software may be bundled,
129
+ * redistributed and/or sold with any software, provided that each copy
130
+ * contains the above copyright notice and this license. These can be
131
+ * included either as stand-alone text files, human-readable headers or
132
+ * in the appropriate machine-readable metadata fields within text or
133
+ * binary files as long as those fields can be easily viewed by the user.
134
+ *
135
+ * 3) No Modified Version of the Font Software may use the Reserved Font
136
+ * Name(s) unless explicit written permission is granted by the corresponding
137
+ * Copyright Holder. This restriction only applies to the primary font name as
138
+ * presented to the users.
139
+ *
140
+ * 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
141
+ * Software shall not be used to promote, endorse or advertise any
142
+ * Modified Version, except to acknowledge the contribution(s) of the
143
+ * Copyright Holder(s) and the Author(s) or with their explicit written
144
+ * permission.
145
+ *
146
+ * 5) The Font Software, modified or unmodified, in part or in whole,
147
+ * must be distributed entirely under this license, and must not be
148
+ * distributed under any other license. The requirement for fonts to
149
+ * remain under this license does not apply to any document created
150
+ * using the Font Software.
151
+ *
152
+ * TERMINATION
153
+ * This license becomes null and void if any of the above conditions are
154
+ * not met.
155
+ *
156
+ * DISCLAIMER
157
+ * THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
158
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
159
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
160
+ * OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
161
+ * COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
162
+ * INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
163
+ * DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
164
+ * FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
165
+ * OTHER DEALINGS IN THE FONT SOFTWARE.
166
+ */
167
+
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
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/doc/index.html ADDED
@@ -0,0 +1,118 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>RDoc Documentation</title>
8
+
9
+ <link href="./fonts.css" rel="stylesheet">
10
+ <link href="./rdoc.css" rel="stylesheet">
11
+
12
+ <script type="text/javascript">
13
+ var rdoc_rel_prefix = "./";
14
+ </script>
15
+
16
+ <script src="./js/jquery.js"></script>
17
+ <script src="./js/navigation.js"></script>
18
+ <script src="./js/search_index.js"></script>
19
+ <script src="./js/search.js"></script>
20
+ <script src="./js/searcher.js"></script>
21
+ <script src="./js/darkfish.js"></script>
22
+
23
+
24
+ <body id="top" role="document" class="file">
25
+ <nav role="navigation">
26
+ <div id="project-navigation">
27
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
+ <h2>
29
+ <a href="./index.html" rel="home">Home</a>
30
+ </h2>
31
+
32
+ <div id="table-of-contents-navigation">
33
+ <a href="./table_of_contents.html#pages">Pages</a>
34
+ <a href="./table_of_contents.html#classes">Classes</a>
35
+ <a href="./table_of_contents.html#methods">Methods</a>
36
+ </div>
37
+ </div>
38
+
39
+
40
+ <div id="search-section" role="search" class="project-section initially-hidden">
41
+ <form action="#" method="get" accept-charset="utf-8">
42
+ <div id="search-field-wrapper">
43
+ <input id="search-field" role="combobox" aria-label="Search"
44
+ aria-autocomplete="list" aria-controls="search-results"
45
+ type="text" name="search" placeholder="Search" spellcheck="false"
46
+ title="Type to search, Up and Down to navigate, Enter to load">
47
+ </div>
48
+
49
+ <ul id="search-results" aria-label="Search Results"
50
+ aria-busy="false" aria-expanded="false"
51
+ aria-atomic="false" class="initially-hidden"></ul>
52
+ </form>
53
+ </div>
54
+
55
+ </div>
56
+
57
+ <div id="project-metadata">
58
+ <div id="fileindex-section" class="nav-section">
59
+ <h3>Pages</h3>
60
+
61
+ <ul class="link-list">
62
+
63
+ <li><a href="./Gemfile.html">Gemfile</a>
64
+
65
+ <li><a href="./Gemfile_lock.html">Gemfile.lock</a>
66
+
67
+ <li><a href="./Guardfile.html">Guardfile</a>
68
+
69
+ <li><a href="./LICENSE_txt.html">LICENSE</a>
70
+
71
+ <li><a href="./README_md.html">README</a>
72
+
73
+ <li><a href="./Rakefile.html">Rakefile</a>
74
+
75
+ <li><a href="./examen_gemspec.html">examen.gemspec</a>
76
+
77
+ </ul>
78
+ </div>
79
+
80
+ <div id="classindex-section" class="nav-section">
81
+ <h3>Class and Module Index</h3>
82
+
83
+ <ul class="link-list">
84
+
85
+ <li><a href="./Examen.html">Examen</a>
86
+
87
+ <li><a href="./Examen/EleccionSimple.html">Examen::EleccionSimple</a>
88
+
89
+ <li><a href="./Examen/Exam.html">Examen::Exam</a>
90
+
91
+ <li><a href="./Examen/Interfaz.html">Examen::Interfaz</a>
92
+
93
+ <li><a href="./Examen/Pregunta.html">Examen::Pregunta</a>
94
+
95
+ <li><a href="./Examen/Verdaderofalso.html">Examen::Verdaderofalso</a>
96
+
97
+ <li><a href="./Lista.html">Lista</a>
98
+
99
+ <li><a href="./Object.html">Object</a>
100
+
101
+ </ul>
102
+ </div>
103
+
104
+ </div>
105
+ </nav>
106
+
107
+ <main role="main">
108
+ <p>This is the API documentation for RDoc Documentation.
109
+ </main>
110
+
111
+
112
+
113
+ <footer id="validator-badges" role="contentinfo">
114
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
115
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.2.
116
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
117
+ </footer>
118
+
@@ -0,0 +1,140 @@
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 hookSearch() {
56
+ var input = $('#search-field').eq(0);
57
+ var result = $('#search-results').eq(0);
58
+ $(result).show();
59
+
60
+ var search_section = $('#search-section').get(0);
61
+ $(search_section).show();
62
+
63
+ var search = new Search(search_data, input, result);
64
+
65
+ search.renderItem = function(result) {
66
+ var li = document.createElement('li');
67
+ var html = '';
68
+
69
+ // TODO add relative path to <script> per-page
70
+ html += '<p class="search-match"><a href="' + rdoc_rel_prefix + result.path + '">' + this.hlt(result.title);
71
+ if (result.params)
72
+ html += '<span class="params">' + result.params + '</span>';
73
+ html += '</a>';
74
+
75
+
76
+ if (result.namespace)
77
+ html += '<p class="search-namespace">' + this.hlt(result.namespace);
78
+
79
+ if (result.snippet)
80
+ html += '<div class="search-snippet">' + result.snippet + '</div>';
81
+
82
+ li.innerHTML = html;
83
+
84
+ return li;
85
+ }
86
+
87
+ search.select = function(result) {
88
+ var result_element = result.get(0);
89
+ window.location.href = result_element.firstChild.firstChild.href;
90
+ }
91
+
92
+ search.scrollIntoView = search.scrollInWindow;
93
+ };
94
+
95
+ function highlightTarget( anchor ) {
96
+ console.debug( "Highlighting target '%s'.", anchor );
97
+
98
+ $("a[name]").each( function() {
99
+ if ( $(this).attr("name") == anchor ) {
100
+ if ( !$(this).parent().parent().hasClass('target-section') ) {
101
+ console.debug( "Wrapping the target-section" );
102
+ $('div.method-detail').unwrap( 'div.target-section' );
103
+ $(this).parent().wrap( '<div class="target-section"></div>' );
104
+ } else {
105
+ console.debug( "Already wrapped." );
106
+ }
107
+ }
108
+ });
109
+ };
110
+
111
+ function highlightLocationTarget() {
112
+ console.debug( "Location hash: %s", window.location.hash );
113
+ if ( ! window.location.hash || window.location.hash.length == 0 ) return;
114
+
115
+ var anchor = window.location.hash.substring(1);
116
+ console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" );
117
+
118
+ highlightTarget( anchor );
119
+ };
120
+
121
+ function highlightClickTarget( event ) {
122
+ console.debug( "Highlighting click target for event %o", event.target );
123
+ try {
124
+ var anchor = $(event.target).attr( 'href' ).substring(1);
125
+ console.debug( "Found target anchor: %s", anchor );
126
+ highlightTarget( anchor );
127
+ } catch ( err ) {
128
+ console.error( "Exception while highlighting: %o", err );
129
+ };
130
+ };
131
+
132
+
133
+ $(document).ready( function() {
134
+ hookSourceViews();
135
+ hookDebuggingToggle();
136
+ hookSearch();
137
+ highlightLocationTarget();
138
+
139
+ $('ul.link-list a').bind( "click", highlightClickTarget );
140
+ });