prct07 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) 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 +11 -0
  6. data/Gemfile +10 -0
  7. data/Guardfile +39 -0
  8. data/LICENSE.txt +22 -0
  9. data/README.md +44 -0
  10. data/Rakefile +6 -0
  11. data/doc/Gemfile.html +102 -0
  12. data/doc/Gemfile_lock.html +176 -0
  13. data/doc/Guardfile.html +137 -0
  14. data/doc/LICENSE_txt.html +116 -0
  15. data/doc/Prct07.html +151 -0
  16. data/doc/Prct07/Exam.html +193 -0
  17. data/doc/Prct07/Inter_user.html +319 -0
  18. data/doc/Prct07/Lista_doble.html +418 -0
  19. data/doc/Prct07/Preg.html +231 -0
  20. data/doc/Prct07/SimpleExpec.html +356 -0
  21. data/doc/Prct07/VerdFals.html +312 -0
  22. data/doc/README_md.html +163 -0
  23. data/doc/Rakefile.html +103 -0
  24. data/doc/created.rid +18 -0
  25. data/doc/fonts.css +167 -0
  26. data/doc/fonts/Lato-Light.ttf +0 -0
  27. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  28. data/doc/fonts/Lato-Regular.ttf +0 -0
  29. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  30. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  31. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  32. data/doc/images/add.png +0 -0
  33. data/doc/images/arrow_up.png +0 -0
  34. data/doc/images/brick.png +0 -0
  35. data/doc/images/brick_link.png +0 -0
  36. data/doc/images/bug.png +0 -0
  37. data/doc/images/bullet_black.png +0 -0
  38. data/doc/images/bullet_toggle_minus.png +0 -0
  39. data/doc/images/bullet_toggle_plus.png +0 -0
  40. data/doc/images/date.png +0 -0
  41. data/doc/images/delete.png +0 -0
  42. data/doc/images/find.png +0 -0
  43. data/doc/images/loadingAnimation.gif +0 -0
  44. data/doc/images/macFFBgHack.png +0 -0
  45. data/doc/images/package.png +0 -0
  46. data/doc/images/page_green.png +0 -0
  47. data/doc/images/page_white_text.png +0 -0
  48. data/doc/images/page_white_width.png +0 -0
  49. data/doc/images/plugin.png +0 -0
  50. data/doc/images/ruby.png +0 -0
  51. data/doc/images/tag_blue.png +0 -0
  52. data/doc/images/tag_green.png +0 -0
  53. data/doc/images/transparent.png +0 -0
  54. data/doc/images/wrench.png +0 -0
  55. data/doc/images/wrench_orange.png +0 -0
  56. data/doc/images/zoom.png +0 -0
  57. data/doc/index.html +116 -0
  58. data/doc/js/darkfish.js +140 -0
  59. data/doc/js/jquery.js +4 -0
  60. data/doc/js/navigation.js +142 -0
  61. data/doc/js/search.js +109 -0
  62. data/doc/js/search_index.js +1 -0
  63. data/doc/js/searcher.js +228 -0
  64. data/doc/prct07_gemspec.html +123 -0
  65. data/doc/rdoc.css +580 -0
  66. data/doc/table_of_contents.html +205 -0
  67. data/lib/prct07.rb +8 -0
  68. data/lib/prct07/exam.rb +80 -0
  69. data/lib/prct07/inter_user.rb +93 -0
  70. data/lib/prct07/lista_doble.rb +181 -0
  71. data/lib/prct07/preg.rb +17 -0
  72. data/lib/prct07/quiz.rb +80 -0
  73. data/lib/prct07/simple_expec.rb +40 -0
  74. data/lib/prct07/verd_fals.rb +27 -0
  75. data/lib/prct07/version.rb +3 -0
  76. data/prct07.gemspec +30 -0
  77. data/spec/prct07_spec.rb +400 -0
  78. data/spec/spec_helper.rb +20 -0
  79. metadata +221 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 603f65ed2e66644ebfcb8f60ce61c21587fac1c8
4
+ data.tar.gz: 163b30f1120f33d3a7a519835b61b748524220a5
5
+ SHA512:
6
+ metadata.gz: 29bb5b3c10da690d9fb07df5365c089a06aacb09bf19f2acd525e35d362f81b74c386af6da3c5e15c7794abab9178c0509d93ae0fe230f8e7850426853025264
7
+ data.tar.gz: bdc6d5658e70ae26b8a485f4f96f80ebc105d6bc002f5b733e2578629d7de0edbc1359b9fd1b5fb80b5ce3aad262ba21370de9da13a210a03fb40feef0320176
@@ -0,0 +1 @@
1
+ service_name: travis-ci
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ *.bundle
10
+ *.so
11
+ *.o
12
+ *.a
13
+ mkmf.log
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
@@ -0,0 +1,11 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+
5
+ - jruby-18mode # JRuby in 1.8 mode
6
+
7
+ - jruby-19mode # JRuby in 1.9 mode
8
+
9
+ - rbx-18mode
10
+
11
+ - rbx-19mode
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in prct07.gemspec
4
+ gemspec
5
+ gem 'guard'
6
+ gem 'coveralls'
7
+ gem 'guard-rspec'
8
+ gem 'guard-bundler'
9
+ gem 'debugger', '~> 1.6.8'
10
+ gem 'pry-debugger', '~> 0.2.3'
@@ -0,0 +1,39 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ guard :bundler do
5
+ watch('Gemfile')
6
+ # Uncomment next line if your Gemfile contains the `gemspec' command.
7
+ # watch(/^.+\.gemspec/)
8
+ end
9
+
10
+ # Note: The cmd option is now required due to the increasing number of ways
11
+ # rspec may be run, below are examples of the most common uses.
12
+ # * bundler: 'bundle exec rspec'
13
+ # * bundler binstubs: 'bin/rspec'
14
+ # * spring: 'bin/rsspec' (This will use spring if running and you have
15
+ # installed the spring binstubs per the docs)
16
+ # * zeus: 'zeus rspec' (requires the server to be started separetly)
17
+ # * 'just' rspec: 'rspec'
18
+ guard :rspec, cmd: 'bundle exec rspec' do
19
+ watch(%r{^spec/.+_spec\.rb$})
20
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
21
+ watch('spec/spec_helper.rb') { "spec" }
22
+
23
+ # Rails example
24
+ watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
25
+ watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
26
+ watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
27
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
28
+ watch('config/routes.rb') { "spec/routing" }
29
+ watch('app/controllers/application_controller.rb') { "spec/controllers" }
30
+ watch('spec/rails_helper.rb') { "spec" }
31
+
32
+ # Capybara features specs
33
+ watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
34
+
35
+ # Turnip features and steps
36
+ watch(%r{^spec/acceptance/(.+)\.feature$})
37
+ watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
38
+ end
39
+
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 alu0100622492
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,44 @@
1
+ # Prct07
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'prct07'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install prct07
20
+
21
+ ## Usage
22
+ 1. Considere la jerarqu ́ıa de clases Ruby para representar preguntas de Seleccio ́n Simple y de Ver- dadero y Falso de pr ́acticas anteriores.
23
+ Modif ́ıquela de manera que las instancias sean comparables.
24
+ Utilizar la metodolog ́ıa de desarrollo dirigido por pruebas (Test Driven Development - TDD) y
25
+ la herramienta RSpec.
26
+ 2. Considere la clase Ruby para representar y gestionar listas enlazadas (Linked List) de pr ́acticas
27
+ anteriores.
28
+ Modif ́ıquela de manera que las instancias sean enumerables.
29
+ Utilizar la metodolog ́ıa de desarrollo dirigido por pruebas (Test Driven Development - TDD) y la herramienta RSpec.
30
+ 3. Repartir las tareas entre los miembros del Equipo de Trabajo.
31
+ Utilizar la estructura del ‘directorio de trabajo del equipo’ generada con Bundler en pr ́acticas
32
+ anteriores.
33
+ Todos los miembros del equipo, han de realizar al menos una confirmacio ́n e incorporarla al repositorio compartido.
34
+
35
+ TODO: Write usage instructions here
36
+ adonai hernández sánchez
37
+ noé campos diaz
38
+ ## Contributing
39
+
40
+ 1. Fork it ( https://github.com/[my-github-username]/prct07/fork )
41
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
42
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
43
+ 4. Push to the branch (`git push origin my-new-feature`)
44
+ 5. Create a new Pull Request
@@ -0,0 +1,6 @@
1
+ $:.unshift File.dirname(__FILE__) + 'lib'
2
+ require "bundler/gem_tasks"
3
+
4
+ require 'rspec/core/rake_task'
5
+ RSpec::Core::RakeTask.new
6
+ task :default => :spec
@@ -0,0 +1,102 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>Gemfile - 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
+ <div id="search-section" role="search" class="project-section initially-hidden">
40
+ <form action="#" method="get" accept-charset="utf-8">
41
+ <div id="search-field-wrapper">
42
+ <input id="search-field" role="combobox" aria-label="Search"
43
+ aria-autocomplete="list" aria-controls="search-results"
44
+ type="text" name="search" placeholder="Search" spellcheck="false"
45
+ title="Type to search, Up and Down to navigate, Enter to load">
46
+ </div>
47
+
48
+ <ul id="search-results" aria-label="Search Results"
49
+ aria-busy="false" aria-expanded="false"
50
+ aria-atomic="false" class="initially-hidden"></ul>
51
+ </form>
52
+ </div>
53
+
54
+ </div>
55
+
56
+
57
+
58
+ <div id="project-metadata">
59
+ <div id="fileindex-section" class="nav-section">
60
+ <h3>Pages</h3>
61
+
62
+ <ul class="link-list">
63
+
64
+ <li><a href="./Gemfile.html">Gemfile</a>
65
+
66
+ <li><a href="./Gemfile_lock.html">Gemfile.lock</a>
67
+
68
+ <li><a href="./Guardfile.html">Guardfile</a>
69
+
70
+ <li><a href="./LICENSE_txt.html">LICENSE</a>
71
+
72
+ <li><a href="./README_md.html">README</a>
73
+
74
+ <li><a href="./Rakefile.html">Rakefile</a>
75
+
76
+ <li><a href="./prct07_gemspec.html">prct07.gemspec</a>
77
+
78
+ </ul>
79
+ </div>
80
+
81
+ </div>
82
+ </nav>
83
+
84
+ <main role="main" aria-label="Page Gemfile">
85
+
86
+ <p>source &#39;<a href="https://rubygems.org">rubygems.org</a>&#39;</p>
87
+
88
+ <p># Specify your gem&#39;s dependencies in <a
89
+ href="prct07_gemspec.html">prct07.gemspec</a> gemspec gem &#39;guard&#39;
90
+ gem &#39;guard-rspec&#39; gem &#39;guard-bundler&#39; gem
91
+ &#39;debugger&#39;, &#39;~&gt; 1.6.8&#39; gem &#39;pry-debugger&#39;,
92
+ &#39;~&gt; 0.2.3&#39;</p>
93
+ </main>
94
+
95
+
96
+
97
+ <footer id="validator-badges" role="contentinfo">
98
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
99
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.2.
100
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
101
+ </footer>
102
+
@@ -0,0 +1,176 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>Gemfile.lock - 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
+ <div id="search-section" role="search" class="project-section initially-hidden">
40
+ <form action="#" method="get" accept-charset="utf-8">
41
+ <div id="search-field-wrapper">
42
+ <input id="search-field" role="combobox" aria-label="Search"
43
+ aria-autocomplete="list" aria-controls="search-results"
44
+ type="text" name="search" placeholder="Search" spellcheck="false"
45
+ title="Type to search, Up and Down to navigate, Enter to load">
46
+ </div>
47
+
48
+ <ul id="search-results" aria-label="Search Results"
49
+ aria-busy="false" aria-expanded="false"
50
+ aria-atomic="false" class="initially-hidden"></ul>
51
+ </form>
52
+ </div>
53
+
54
+ </div>
55
+
56
+
57
+
58
+ <div id="project-metadata">
59
+ <div id="fileindex-section" class="nav-section">
60
+ <h3>Pages</h3>
61
+
62
+ <ul class="link-list">
63
+
64
+ <li><a href="./Gemfile.html">Gemfile</a>
65
+
66
+ <li><a href="./Gemfile_lock.html">Gemfile.lock</a>
67
+
68
+ <li><a href="./Guardfile.html">Guardfile</a>
69
+
70
+ <li><a href="./LICENSE_txt.html">LICENSE</a>
71
+
72
+ <li><a href="./README_md.html">README</a>
73
+
74
+ <li><a href="./Rakefile.html">Rakefile</a>
75
+
76
+ <li><a href="./prct07_gemspec.html">prct07.gemspec</a>
77
+
78
+ </ul>
79
+ </div>
80
+
81
+ </div>
82
+ </nav>
83
+
84
+ <main role="main" aria-label="Page Gemfile.lock">
85
+
86
+ <p>PATH</p>
87
+
88
+ <pre>remote: .
89
+ specs:
90
+ prct07 (0.0.1)</pre>
91
+
92
+ <p>GEM</p>
93
+
94
+ <pre>remote: https://rubygems.org/
95
+ specs:
96
+ celluloid (0.16.0)
97
+ timers (~&gt; 4.0.0)
98
+ coderay (1.1.0)
99
+ columnize (0.8.9)
100
+ debugger (1.6.8)
101
+ columnize (&gt;= 0.3.1)
102
+ debugger-linecache (~&gt; 1.2.0)
103
+ debugger-ruby_core_source (~&gt; 1.3.5)
104
+ debugger-linecache (1.2.0)
105
+ debugger-ruby_core_source (1.3.7)
106
+ diff-lcs (1.2.5)
107
+ ffi (1.9.6)
108
+ formatador (0.2.5)
109
+ guard (2.8.0)
110
+ formatador (&gt;= 0.2.4)
111
+ listen (~&gt; 2.7)
112
+ lumberjack (~&gt; 1.0)
113
+ pry (&gt;= 0.9.12)
114
+ thor (&gt;= 0.18.1)
115
+ guard-bundler (2.0.0)
116
+ bundler (~&gt; 1.0)
117
+ guard (~&gt; 2.2)
118
+ guard-rspec (4.3.1)
119
+ guard (~&gt; 2.1)
120
+ rspec (&gt;= 2.14, &lt; 4.0)
121
+ hitimes (1.2.2)
122
+ listen (2.7.11)
123
+ celluloid (&gt;= 0.15.2)
124
+ rb-fsevent (&gt;= 0.9.3)
125
+ rb-inotify (&gt;= 0.9)
126
+ lumberjack (1.0.9)
127
+ method_source (0.8.2)
128
+ pry (0.10.1)
129
+ coderay (~&gt; 1.1.0)
130
+ method_source (~&gt; 0.8.1)
131
+ slop (~&gt; 3.4)
132
+ pry-debugger (0.2.3)
133
+ debugger (~&gt; 1.3)
134
+ pry (&gt;= 0.9.10, &lt; 0.11.0)
135
+ rake (10.3.2)
136
+ rb-fsevent (0.9.4)
137
+ rb-inotify (0.9.5)
138
+ ffi (&gt;= 0.5.0)
139
+ rspec (2.99.0)
140
+ rspec-core (~&gt; 2.99.0)
141
+ rspec-expectations (~&gt; 2.99.0)
142
+ rspec-mocks (~&gt; 2.99.0)
143
+ rspec-core (2.99.2)
144
+ rspec-expectations (2.99.2)
145
+ diff-lcs (&gt;= 1.1.3, &lt; 2.0)
146
+ rspec-mocks (2.99.2)
147
+ slop (3.6.0)
148
+ thor (0.19.1)
149
+ timers (4.0.1)
150
+ hitimes</pre>
151
+
152
+ <p>PLATFORMS</p>
153
+
154
+ <pre>ruby</pre>
155
+
156
+ <p>DEPENDENCIES</p>
157
+
158
+ <pre>bundler (~&gt; 1.6)
159
+ debugger (~&gt; 1.6.8)
160
+ guard
161
+ guard-bundler
162
+ guard-rspec
163
+ prct07!
164
+ pry-debugger (~&gt; 0.2.3)
165
+ rake (~&gt; 10.0)
166
+ rspec (~&gt; 2.11)</pre>
167
+ </main>
168
+
169
+
170
+
171
+ <footer id="validator-badges" role="contentinfo">
172
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
173
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.2.
174
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
175
+ </footer>
176
+