ULL-ETSII-Alu3177-Quiz 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/Gemfile +4 -0
- data/README.md +58 -0
- data/Rakefile +1 -0
- data/ULL-ETSII-Alu3177-Quiz.gemspec +26 -0
- data/bin/quiz_main.rb +53 -0
- data/lib/ULL-ETSII-Alu3177-Quiz/ULL-ETSII-Alu3177-Quiz.rb +175 -0
- data/lib/ULL-ETSII-Alu3177-Quiz/templates.rb +77 -0
- data/lib/ULL-ETSII-Alu3177-Quiz/version.rb +9 -0
- data/lib/html/css/base.css +28 -0
- data/lib/html/css/blitzer/images/ui-bg_diagonals-thick_75_f3d8d8_40x40.png +0 -0
- data/lib/html/css/blitzer/images/ui-bg_dots-small_65_a6a6a6_2x2.png +0 -0
- data/lib/html/css/blitzer/images/ui-bg_flat_0_333333_40x100.png +0 -0
- data/lib/html/css/blitzer/images/ui-bg_flat_65_ffffff_40x100.png +0 -0
- data/lib/html/css/blitzer/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/lib/html/css/blitzer/images/ui-bg_glass_55_fbf8ee_1x400.png +0 -0
- data/lib/html/css/blitzer/images/ui-bg_highlight-hard_100_eeeeee_1x100.png +0 -0
- data/lib/html/css/blitzer/images/ui-bg_highlight-hard_100_f6f6f6_1x100.png +0 -0
- data/lib/html/css/blitzer/images/ui-bg_highlight-soft_15_cc0000_1x100.png +0 -0
- data/lib/html/css/blitzer/images/ui-icons_004276_256x240.png +0 -0
- data/lib/html/css/blitzer/images/ui-icons_cc0000_256x240.png +0 -0
- data/lib/html/css/blitzer/images/ui-icons_ffffff_256x240.png +0 -0
- data/lib/html/css/blitzer/jquery-ui-1.9.2.custom.min.css +5 -0
- data/lib/html/js/jquery-1.8.3.js +9472 -0
- data/lib/html/js/jquery-ui-1.9.2.custom.min.js +6 -0
- data/spec/ULL-ETSII-Alu3177-Quiz_spec.rb +35 -0
- metadata +154 -0
@@ -0,0 +1,35 @@
|
|
1
|
+
#encoding: UTF-8
|
2
|
+
require 'ULL::ETSII::Alu3177::Quiz'
|
3
|
+
|
4
|
+
include ULL::ETSII::Alu3177::Quiz
|
5
|
+
|
6
|
+
describe Quiz do
|
7
|
+
|
8
|
+
before :all do
|
9
|
+
@quiz = Quiz.new("test"){ |e|
|
10
|
+
e.question "Pregunta 1",
|
11
|
+
e.right => "Answer 1" ,
|
12
|
+
e.wrong => "Answer2"
|
13
|
+
}
|
14
|
+
end
|
15
|
+
|
16
|
+
it "Debe tener un método 'question' para declarar preguntas" do
|
17
|
+
(@quiz.respond_to? :question).should == true
|
18
|
+
end
|
19
|
+
|
20
|
+
it "Debe tener un método 'wrong' para declarar respuestas erróneas" do
|
21
|
+
(@quiz.respond_to? :wrong).should == true
|
22
|
+
end
|
23
|
+
|
24
|
+
it "Debe tener un método 'right' para declarar la respuesta correcta" do
|
25
|
+
(@quiz.respond_to? :right).should == true
|
26
|
+
end
|
27
|
+
|
28
|
+
it "Debe tener un método 'run' que ejecuta el test" do
|
29
|
+
(@quiz.respond_to? :run).should == true
|
30
|
+
end
|
31
|
+
|
32
|
+
it "Debe tener un método 'to_s'" do
|
33
|
+
(@quiz.respond_to? :to_s).should == true
|
34
|
+
end
|
35
|
+
end
|
metadata
ADDED
@@ -0,0 +1,154 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ULL-ETSII-Alu3177-Quiz
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Fernando González López-Peñalver
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-12-14 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rspec
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: guard
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: guard-rspec
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rdoc
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: colorize
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
description: Generador de custionarios. Permite crear custionarios mediante un DSL
|
95
|
+
simple. Además se podrán ejecutar estos cuestionarios via consola o generar un documento
|
96
|
+
html encargado de mostrar y corregir los tests.
|
97
|
+
email:
|
98
|
+
- alu0100256543@ull.edu.es
|
99
|
+
executables:
|
100
|
+
- quiz_main.rb
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- .gitignore
|
105
|
+
- Gemfile
|
106
|
+
- README.md
|
107
|
+
- Rakefile
|
108
|
+
- ULL-ETSII-Alu3177-Quiz.gemspec
|
109
|
+
- bin/quiz_main.rb
|
110
|
+
- lib/ULL-ETSII-Alu3177-Quiz/ULL-ETSII-Alu3177-Quiz.rb
|
111
|
+
- lib/ULL-ETSII-Alu3177-Quiz/templates.rb
|
112
|
+
- lib/ULL-ETSII-Alu3177-Quiz/version.rb
|
113
|
+
- lib/html/css/base.css
|
114
|
+
- lib/html/css/blitzer/images/ui-bg_diagonals-thick_75_f3d8d8_40x40.png
|
115
|
+
- lib/html/css/blitzer/images/ui-bg_dots-small_65_a6a6a6_2x2.png
|
116
|
+
- lib/html/css/blitzer/images/ui-bg_flat_0_333333_40x100.png
|
117
|
+
- lib/html/css/blitzer/images/ui-bg_flat_65_ffffff_40x100.png
|
118
|
+
- lib/html/css/blitzer/images/ui-bg_flat_75_ffffff_40x100.png
|
119
|
+
- lib/html/css/blitzer/images/ui-bg_glass_55_fbf8ee_1x400.png
|
120
|
+
- lib/html/css/blitzer/images/ui-bg_highlight-hard_100_eeeeee_1x100.png
|
121
|
+
- lib/html/css/blitzer/images/ui-bg_highlight-hard_100_f6f6f6_1x100.png
|
122
|
+
- lib/html/css/blitzer/images/ui-bg_highlight-soft_15_cc0000_1x100.png
|
123
|
+
- lib/html/css/blitzer/images/ui-icons_004276_256x240.png
|
124
|
+
- lib/html/css/blitzer/images/ui-icons_cc0000_256x240.png
|
125
|
+
- lib/html/css/blitzer/images/ui-icons_ffffff_256x240.png
|
126
|
+
- lib/html/css/blitzer/jquery-ui-1.9.2.custom.min.css
|
127
|
+
- lib/html/js/jquery-1.8.3.js
|
128
|
+
- lib/html/js/jquery-ui-1.9.2.custom.min.js
|
129
|
+
- spec/ULL-ETSII-Alu3177-Quiz_spec.rb
|
130
|
+
homepage: ''
|
131
|
+
licenses: []
|
132
|
+
post_install_message:
|
133
|
+
rdoc_options: []
|
134
|
+
require_paths:
|
135
|
+
- lib
|
136
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
|
+
none: false
|
144
|
+
requirements:
|
145
|
+
- - ! '>='
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0'
|
148
|
+
requirements: []
|
149
|
+
rubyforge_project: ULL-ETSII-Alu3177-Quiz
|
150
|
+
rubygems_version: 1.8.23
|
151
|
+
signing_key:
|
152
|
+
specification_version: 3
|
153
|
+
summary: ! 'Práctica: DSL: Redacción de Cuestionarios II (Usando Contexto)'
|
154
|
+
test_files: []
|