barker 0.2.4 → 0.2.9
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/ci/run +1 -1
- data/lib/barker/guideline.rb +2 -0
- data/lib/barker/guideline/llbaraquiz.rb +28 -0
- data/lib/barker/guideline/llbaraquiz/questions.yaml +260 -0
- data/lib/barker/guideline/llblauquiz/questions.yaml +40 -180
- data/lib/barker/guideline/vdgzfquiz.rb +28 -0
- data/lib/barker/guideline/vdgzfquiz/questions.yaml +160 -0
- data/lib/barker/version.rb +1 -1
- data/test/unit/api/base_test.rb +52 -0
- data/test/unit/game_show_test.rb +8 -0
- data/test/unit/guideline/llblauquiz_test.rb +1 -1
- data/test/unit/guideline/vdgzfquiz_test.rb +35 -0
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f731b45e5fea5159c52338b003702106d214ebcc
|
4
|
+
data.tar.gz: 6215ccf139ba47991cb6fbf6605d7685a2e922d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b64932a01da413f582784c6976bea27b2ff83982c0871aa3e8fbba4414774d1e854691a4e64e0dae63edf150e44b119da1e93c1647704c9763b0e6e2fafd6b2
|
7
|
+
data.tar.gz: db9725795d945c2036c5951c5a6b258c0140ec751a43a799a7b00aa6cc4680e3ba85a6b665560b10434529dc43ea0b40bf3e8e53764f2e5be77e135648d82ec9
|
data/Gemfile.lock
CHANGED
data/ci/run
CHANGED
@@ -14,7 +14,7 @@ export COVERAGE=1
|
|
14
14
|
|
15
15
|
# RVM
|
16
16
|
source "$HOME/.rvm/scripts/rvm"
|
17
|
-
rvm use $(cat $ROOT_DIR/.ruby-version)@$(cat $ROOT_DIR/.ruby-gemset)
|
17
|
+
rvm use $(cat $ROOT_DIR/.ruby-version)@$(cat $ROOT_DIR/.ruby-gemset) --create
|
18
18
|
|
19
19
|
# run
|
20
20
|
bundle && bundle exec rake test
|
data/lib/barker/guideline.rb
CHANGED
@@ -0,0 +1,28 @@
|
|
1
|
+
module Barker
|
2
|
+
module Guideline
|
3
|
+
|
4
|
+
class Llbaraquiz < Base
|
5
|
+
|
6
|
+
def quizzes
|
7
|
+
[Quiz.new(questions.sample(5))]
|
8
|
+
end
|
9
|
+
|
10
|
+
def jokers
|
11
|
+
['fifty_fifty']
|
12
|
+
end
|
13
|
+
|
14
|
+
def questions
|
15
|
+
Barker::Import::Yaml.process(path)
|
16
|
+
end
|
17
|
+
|
18
|
+
def round_time
|
19
|
+
35
|
20
|
+
end
|
21
|
+
|
22
|
+
def path
|
23
|
+
File.expand_path "#{File.dirname(__FILE__)}/../../../lib/barker/guideline/llbaraquiz/questions.yaml"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,260 @@
|
|
1
|
+
1:
|
2
|
+
label:
|
3
|
+
de: Wo kannst Du Deinen SuperCode einlösen?
|
4
|
+
answers:
|
5
|
+
1:
|
6
|
+
correct: false
|
7
|
+
label:
|
8
|
+
de: In der e-va Lounge
|
9
|
+
2:
|
10
|
+
correct: false
|
11
|
+
label:
|
12
|
+
de: Auf der e-va Website
|
13
|
+
3:
|
14
|
+
correct: true
|
15
|
+
label:
|
16
|
+
de: Auf Facebook
|
17
|
+
4:
|
18
|
+
correct: false
|
19
|
+
label:
|
20
|
+
de: Direkt bei der Verkaufsstelle
|
21
|
+
2:
|
22
|
+
label:
|
23
|
+
de: Welche Geschenkkarte gibt es nicht im e-va Sortiment?
|
24
|
+
answers:
|
25
|
+
1:
|
26
|
+
correct: false
|
27
|
+
label:
|
28
|
+
de: IKEA-Geschenkkarte
|
29
|
+
2:
|
30
|
+
correct: false
|
31
|
+
label:
|
32
|
+
de: C&A Geschenkkarte
|
33
|
+
3:
|
34
|
+
correct: false
|
35
|
+
label:
|
36
|
+
de: Kaufhof-Geschenkkarte
|
37
|
+
4:
|
38
|
+
correct: true
|
39
|
+
label:
|
40
|
+
de: Autowäsche-Geschenkkarte
|
41
|
+
3:
|
42
|
+
label:
|
43
|
+
de: Welches Suchkriterum gibt es nicht im Stationsfinder?
|
44
|
+
answers:
|
45
|
+
1:
|
46
|
+
correct: false
|
47
|
+
label:
|
48
|
+
de: Ort
|
49
|
+
2:
|
50
|
+
correct: true
|
51
|
+
label:
|
52
|
+
de: Name
|
53
|
+
3:
|
54
|
+
correct: false
|
55
|
+
label:
|
56
|
+
de: Straße
|
57
|
+
4:
|
58
|
+
correct: false
|
59
|
+
label:
|
60
|
+
de: Produkt
|
61
|
+
4:
|
62
|
+
label:
|
63
|
+
de: Wie heißen die drei e-va Produktwelten?
|
64
|
+
answers:
|
65
|
+
1:
|
66
|
+
correct: false
|
67
|
+
label:
|
68
|
+
de: Schenken, Bezahlen, Sprechen
|
69
|
+
2:
|
70
|
+
correct: true
|
71
|
+
label:
|
72
|
+
de: Telefonieren, Bezahlen, Schenken
|
73
|
+
3:
|
74
|
+
correct: false
|
75
|
+
label:
|
76
|
+
de: Orange, lila, grün
|
77
|
+
4:
|
78
|
+
correct: false
|
79
|
+
label:
|
80
|
+
de: EVA, e-va & Eva
|
81
|
+
5:
|
82
|
+
label:
|
83
|
+
de: Ab wieviel Cent/ Minute kannst Du mit Lebara ins Ausland telefonieren?
|
84
|
+
answers:
|
85
|
+
1:
|
86
|
+
correct: true
|
87
|
+
label:
|
88
|
+
de: 1 Cent
|
89
|
+
2:
|
90
|
+
correct: false
|
91
|
+
label:
|
92
|
+
de: 35 Cent
|
93
|
+
3:
|
94
|
+
correct: false
|
95
|
+
label:
|
96
|
+
de: 90 Cent
|
97
|
+
4:
|
98
|
+
correct: false
|
99
|
+
label:
|
100
|
+
de: 55 Cent
|
101
|
+
6:
|
102
|
+
label:
|
103
|
+
de: In wie viele Länder der Welt kannst Du mit Lebara günstig vom Handy aus telefonieren?
|
104
|
+
answers:
|
105
|
+
1:
|
106
|
+
correct: false
|
107
|
+
label:
|
108
|
+
de: "5"
|
109
|
+
2:
|
110
|
+
correct: true
|
111
|
+
label:
|
112
|
+
de: über 230
|
113
|
+
3:
|
114
|
+
correct: false
|
115
|
+
label:
|
116
|
+
de: "50"
|
117
|
+
4:
|
118
|
+
correct: false
|
119
|
+
label:
|
120
|
+
de: "133"
|
121
|
+
7:
|
122
|
+
label:
|
123
|
+
de: Welches Netz nutzt Du mit Lebara?
|
124
|
+
answers:
|
125
|
+
1:
|
126
|
+
correct: false
|
127
|
+
label:
|
128
|
+
de: E-Netz
|
129
|
+
2:
|
130
|
+
correct: false
|
131
|
+
label:
|
132
|
+
de: Festnetz
|
133
|
+
3:
|
134
|
+
correct: false
|
135
|
+
label:
|
136
|
+
de: Spinnennetz
|
137
|
+
4:
|
138
|
+
correct: false
|
139
|
+
label:
|
140
|
+
de: Top D-Netz
|
141
|
+
8:
|
142
|
+
label:
|
143
|
+
de: Wie viel muss man je Minute oder je SMS in alle deutschen Netze bei Lebara zahlen?
|
144
|
+
answers:
|
145
|
+
1:
|
146
|
+
correct: false
|
147
|
+
label:
|
148
|
+
de: 25 Cent
|
149
|
+
2:
|
150
|
+
correct: false
|
151
|
+
label:
|
152
|
+
de: 30 Cent
|
153
|
+
3:
|
154
|
+
correct: true
|
155
|
+
label:
|
156
|
+
de: 9 Cent
|
157
|
+
4:
|
158
|
+
correct: false
|
159
|
+
label:
|
160
|
+
de: 15 Cent
|
161
|
+
9:
|
162
|
+
label:
|
163
|
+
de: Wofür benötigst Du eine Lebara Micro-SIM-Karte?
|
164
|
+
answers:
|
165
|
+
1:
|
166
|
+
correct: true
|
167
|
+
label:
|
168
|
+
de: Für Smartphones und Tablets
|
169
|
+
2:
|
170
|
+
correct: false
|
171
|
+
label:
|
172
|
+
de: Für Digitalkameras
|
173
|
+
3:
|
174
|
+
correct: false
|
175
|
+
label:
|
176
|
+
de: Für Notebook und Surfstick
|
177
|
+
4:
|
178
|
+
correct: false
|
179
|
+
label:
|
180
|
+
de: Für MP3-Player
|
181
|
+
10:
|
182
|
+
label:
|
183
|
+
de: Für 9,99 Euro/ Monat erhältst Du bei Lebara …
|
184
|
+
answers:
|
185
|
+
1:
|
186
|
+
correct: false
|
187
|
+
label:
|
188
|
+
de: 50 Freiminuten
|
189
|
+
2:
|
190
|
+
correct: true
|
191
|
+
label:
|
192
|
+
de: 500 GB High-Speed Internet
|
193
|
+
3:
|
194
|
+
correct: false
|
195
|
+
label:
|
196
|
+
de: 10 Brötchen
|
197
|
+
4:
|
198
|
+
correct: false
|
199
|
+
label:
|
200
|
+
de: Ein Dankeschön
|
201
|
+
11:
|
202
|
+
label:
|
203
|
+
de: Wenn Du 20 € bei Lebara auflädst, erhältst Du zusätzlich …
|
204
|
+
answers:
|
205
|
+
1:
|
206
|
+
correct: false
|
207
|
+
label:
|
208
|
+
de: 10 Freiminuten in alle Netze
|
209
|
+
2:
|
210
|
+
correct: false
|
211
|
+
label:
|
212
|
+
de: Kostenloses Abrufen Deiner Mailboxnachrichten
|
213
|
+
3:
|
214
|
+
correct: false
|
215
|
+
label:
|
216
|
+
de: 5 SMS
|
217
|
+
4:
|
218
|
+
correct: true
|
219
|
+
label:
|
220
|
+
de: 30 Tage gratis und unbegrenzt Anrufe von Lebara zu Lebara in Deutschland
|
221
|
+
12:
|
222
|
+
label:
|
223
|
+
de: In wie viele Länder kannst Du mit dem flexiblen Minutenpaket "Flexi500" von Lebara telefonieren?
|
224
|
+
answers:
|
225
|
+
1:
|
226
|
+
correct: false
|
227
|
+
label:
|
228
|
+
de: "25"
|
229
|
+
2:
|
230
|
+
correct: false
|
231
|
+
label:
|
232
|
+
de: "12"
|
233
|
+
3:
|
234
|
+
correct: true
|
235
|
+
label:
|
236
|
+
de: 48 plus Deutschland
|
237
|
+
4:
|
238
|
+
correct: false
|
239
|
+
label:
|
240
|
+
de: "6"
|
241
|
+
13:
|
242
|
+
label:
|
243
|
+
de: Welche Auflade-Wertstufen erhältst Du an e-va Stationen für Lebara-Voucher?
|
244
|
+
answers:
|
245
|
+
1:
|
246
|
+
correct: true
|
247
|
+
label:
|
248
|
+
de: 10, 20, 30 und 50 Euro
|
249
|
+
2:
|
250
|
+
correct: false
|
251
|
+
label:
|
252
|
+
de: 15, 20 und 30 Euro
|
253
|
+
3:
|
254
|
+
correct: false
|
255
|
+
label:
|
256
|
+
de: 20 und 30 Euro
|
257
|
+
4:
|
258
|
+
correct: false
|
259
|
+
label:
|
260
|
+
de: 10, 20 und 30 Euro
|
@@ -20,281 +20,141 @@
|
|
20
20
|
de: sofort
|
21
21
|
2:
|
22
22
|
label:
|
23
|
-
de:
|
23
|
+
de: Wieviel kostet es mit blau.de aus der EU nach Deutschland zu telefonieren?
|
24
24
|
answers:
|
25
25
|
1:
|
26
26
|
correct: false
|
27
27
|
label:
|
28
|
-
de:
|
28
|
+
de: 50 Cent/Minute
|
29
29
|
2:
|
30
|
-
correct: false
|
31
|
-
label:
|
32
|
-
de: Auf der e-va Website
|
33
|
-
3:
|
34
30
|
correct: true
|
35
31
|
label:
|
36
|
-
de:
|
37
|
-
4:
|
38
|
-
correct: false
|
39
|
-
label:
|
40
|
-
de: Direkt bei der Verkaufsstelle
|
41
|
-
3:
|
42
|
-
label:
|
43
|
-
de: Welche Geschenkkarte gibt es im e-va Sortiment?
|
44
|
-
answers:
|
45
|
-
1:
|
46
|
-
correct: true
|
47
|
-
label:
|
48
|
-
de: OBI-Geschenkkarte
|
49
|
-
2:
|
50
|
-
correct: false
|
51
|
-
label:
|
52
|
-
de: PayPal-Geschenkkarte
|
32
|
+
de: 9 Cent/Minute
|
53
33
|
3:
|
54
34
|
correct: false
|
55
35
|
label:
|
56
|
-
de:
|
36
|
+
de: 1 Euro/Minute
|
57
37
|
4:
|
58
38
|
correct: false
|
59
39
|
label:
|
60
|
-
de:
|
61
|
-
|
40
|
+
de: 35 Cent/Minute
|
41
|
+
3:
|
62
42
|
label:
|
63
|
-
de:
|
43
|
+
de: Welche Geschenkkarte ist NICHT im e-va Sortiment verfügbar?
|
64
44
|
answers:
|
65
45
|
1:
|
66
46
|
correct: false
|
67
47
|
label:
|
68
|
-
de:
|
48
|
+
de: Amazon
|
69
49
|
2:
|
70
|
-
correct: false
|
71
|
-
label:
|
72
|
-
de: 35 Euro
|
73
|
-
3:
|
74
|
-
correct: false
|
75
|
-
label:
|
76
|
-
de: 44 Euro
|
77
|
-
4:
|
78
|
-
correct: true
|
79
|
-
label:
|
80
|
-
de: 20 Euro
|
81
|
-
5:
|
82
|
-
label:
|
83
|
-
de: Welcher Berufsgruppe gehört das Testimonial von Fyve an?
|
84
|
-
answers:
|
85
|
-
1:
|
86
50
|
correct: true
|
87
51
|
label:
|
88
|
-
de:
|
89
|
-
2:
|
90
|
-
correct: false
|
91
|
-
label:
|
92
|
-
de: Müllmann
|
52
|
+
de: PayPal-Geschenkkarte
|
93
53
|
3:
|
94
54
|
correct: false
|
95
55
|
label:
|
96
|
-
de:
|
56
|
+
de: IKEA
|
97
57
|
4:
|
98
58
|
correct: false
|
99
59
|
label:
|
100
|
-
de:
|
101
|
-
|
60
|
+
de: Douglas
|
61
|
+
4:
|
102
62
|
label:
|
103
|
-
de:
|
63
|
+
de: Wieviel kostet die Minute bei blau.de um in jedes Land der EU + Schweiz zu telefonieren?
|
104
64
|
answers:
|
105
65
|
1:
|
106
|
-
correct: false
|
107
|
-
label:
|
108
|
-
de: "Eva, Julia, Anna und Steffi"
|
109
|
-
2:
|
110
66
|
correct: true
|
111
67
|
label:
|
112
|
-
de:
|
113
|
-
3:
|
114
|
-
correct: false
|
115
|
-
label:
|
116
|
-
de: "Kate, Olga, Tanja und Maria"
|
117
|
-
4:
|
118
|
-
correct: false
|
119
|
-
label:
|
120
|
-
de: "Julia, Kim, Sophie und Eva"
|
121
|
-
7:
|
122
|
-
label:
|
123
|
-
de: Welches zusätzlich wählbares Tarif-Paket gibt es nicht bei FYVE?
|
124
|
-
answers:
|
125
|
-
1:
|
126
|
-
correct: false
|
127
|
-
label:
|
128
|
-
de: Minuten-Paket
|
68
|
+
de: 9 Cent
|
129
69
|
2:
|
130
70
|
correct: false
|
131
71
|
label:
|
132
|
-
de:
|
72
|
+
de: 25 Cent
|
133
73
|
3:
|
134
74
|
correct: false
|
135
75
|
label:
|
136
|
-
de:
|
137
|
-
4:
|
138
|
-
correct: true
|
139
|
-
label:
|
140
|
-
de: App-Paket
|
141
|
-
8:
|
142
|
-
label:
|
143
|
-
de: Wieviel muss man pro Minute und pro SMS in alle deutschen Netze bei FYVE zahlen?
|
144
|
-
answers:
|
145
|
-
1:
|
146
|
-
correct: false
|
147
|
-
label:
|
148
|
-
de: 20 Cent
|
149
|
-
2:
|
150
|
-
correct: false
|
151
|
-
label:
|
152
|
-
de: 50 Cent
|
153
|
-
3:
|
154
|
-
correct: true
|
155
|
-
label:
|
156
|
-
de: 9 Cent
|
76
|
+
de: 30 Cent
|
157
77
|
4:
|
158
78
|
correct: false
|
159
79
|
label:
|
160
80
|
de: 15 Cent
|
161
|
-
|
162
|
-
label:
|
163
|
-
de: Welches Netz nutzt man mit FYVE?
|
164
|
-
answers:
|
165
|
-
1:
|
166
|
-
correct: false
|
167
|
-
label:
|
168
|
-
de: E-Plus Netz
|
169
|
-
2:
|
170
|
-
correct: true
|
171
|
-
label:
|
172
|
-
de: Vodafone Netz
|
173
|
-
3:
|
174
|
-
correct: false
|
175
|
-
label:
|
176
|
-
de: O2 Netz
|
177
|
-
4:
|
178
|
-
correct: false
|
179
|
-
label:
|
180
|
-
de: Telekom Netz
|
181
|
-
10:
|
81
|
+
5:
|
182
82
|
label:
|
183
|
-
de:
|
83
|
+
de: Eine SMS von Deutschland ins EU-Ausland kostet bei blau.de…
|
184
84
|
answers:
|
185
85
|
1:
|
186
86
|
correct: true
|
187
87
|
label:
|
188
|
-
de:
|
88
|
+
de: 9 Cent
|
189
89
|
2:
|
190
90
|
correct: false
|
191
91
|
label:
|
192
|
-
de:
|
92
|
+
de: 25 Cent
|
193
93
|
3:
|
194
94
|
correct: false
|
195
95
|
label:
|
196
|
-
de:
|
96
|
+
de: 33 Cent
|
197
97
|
4:
|
198
98
|
correct: false
|
199
99
|
label:
|
200
|
-
de:
|
201
|
-
|
100
|
+
de: 45 Cent
|
101
|
+
6:
|
202
102
|
label:
|
203
|
-
de:
|
103
|
+
de: Sei schlau, telefonier...?
|
204
104
|
answers:
|
205
105
|
1:
|
206
106
|
correct: false
|
207
107
|
label:
|
208
|
-
de:
|
108
|
+
de: grün
|
209
109
|
2:
|
210
110
|
correct: true
|
211
111
|
label:
|
212
|
-
de:
|
112
|
+
de: blau
|
213
113
|
3:
|
214
114
|
correct: false
|
215
115
|
label:
|
216
|
-
de:
|
116
|
+
de: rosa
|
217
117
|
4:
|
218
118
|
correct: false
|
219
119
|
label:
|
220
|
-
de:
|
221
|
-
|
120
|
+
de: schwarz
|
121
|
+
7:
|
222
122
|
label:
|
223
|
-
de:
|
123
|
+
de: Welche Auflade-Wertstufe erhält man an e-va Stationen für blau.de?
|
224
124
|
answers:
|
225
125
|
1:
|
226
126
|
correct: false
|
227
127
|
label:
|
228
|
-
de:
|
128
|
+
de: 16 Euro
|
229
129
|
2:
|
230
130
|
correct: false
|
231
131
|
label:
|
232
|
-
de:
|
132
|
+
de: 11.11 Euro
|
233
133
|
3:
|
234
134
|
correct: false
|
235
135
|
label:
|
236
|
-
de:
|
136
|
+
de: 5 Euro
|
237
137
|
4:
|
238
138
|
correct: true
|
239
139
|
label:
|
240
|
-
de:
|
241
|
-
|
140
|
+
de: 15 Euro
|
141
|
+
8:
|
242
142
|
label:
|
243
|
-
de:
|
143
|
+
de: Was erhälst Du jeden Monat gratis von blau.de?
|
244
144
|
answers:
|
245
145
|
1:
|
246
146
|
correct: false
|
247
147
|
label:
|
248
|
-
de:
|
148
|
+
de: Einen Apfel
|
249
149
|
2:
|
250
150
|
correct: false
|
251
151
|
label:
|
252
|
-
de:
|
152
|
+
de: Spam
|
253
153
|
3:
|
254
154
|
correct: true
|
255
155
|
label:
|
256
|
-
de:
|
257
|
-
4:
|
258
|
-
correct: false
|
259
|
-
label:
|
260
|
-
de: dem Tarifchaos
|
261
|
-
14:
|
262
|
-
label:
|
263
|
-
de: Welche Auflade-Wertstufen erhält man an e-va Stationen für FYVE?
|
264
|
-
answers:
|
265
|
-
1:
|
266
|
-
correct: true
|
267
|
-
label:
|
268
|
-
de: 15 und 25 Euro
|
269
|
-
2:
|
270
|
-
correct: false
|
271
|
-
label:
|
272
|
-
de: 15, 20 und 30 Euro
|
273
|
-
3:
|
274
|
-
correct: false
|
275
|
-
label:
|
276
|
-
de: 20 und 30 Euro
|
277
|
-
4:
|
278
|
-
correct: false
|
279
|
-
label:
|
280
|
-
de: 10, 20 und 30 Euro
|
281
|
-
15:
|
282
|
-
label:
|
283
|
-
de: Mit welchem Aufladeguthaben kann man die FYVE SIM-Karte aufladen?
|
284
|
-
answers:
|
285
|
-
1:
|
286
|
-
correct: true
|
287
|
-
label:
|
288
|
-
de: FYVE und Vodafone
|
289
|
-
2:
|
290
|
-
correct: false
|
291
|
-
label:
|
292
|
-
de: Telekom
|
293
|
-
3:
|
294
|
-
correct: false
|
295
|
-
label:
|
296
|
-
de: Lebara
|
156
|
+
de: 10 MB Datenvolumen
|
297
157
|
4:
|
298
158
|
correct: false
|
299
159
|
label:
|
300
|
-
de:
|
160
|
+
de: Gar nichts
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Barker
|
2
|
+
module Guideline
|
3
|
+
|
4
|
+
class Vdgzfquiz < Base
|
5
|
+
|
6
|
+
def quizzes
|
7
|
+
[Quiz.new(questions.sample(5))]
|
8
|
+
end
|
9
|
+
|
10
|
+
def jokers
|
11
|
+
['fifty_fifty']
|
12
|
+
end
|
13
|
+
|
14
|
+
def questions
|
15
|
+
Barker::Import::Yaml.process(path)
|
16
|
+
end
|
17
|
+
|
18
|
+
def round_time
|
19
|
+
35
|
20
|
+
end
|
21
|
+
|
22
|
+
def path
|
23
|
+
File.expand_path "#{File.dirname(__FILE__)}/../../../lib/barker/guideline/vdgzfquiz/questions.yaml"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,160 @@
|
|
1
|
+
1:
|
2
|
+
label:
|
3
|
+
de: Wann ist der SuperCode nach Kauf einlösbar?
|
4
|
+
answers:
|
5
|
+
1:
|
6
|
+
correct: false
|
7
|
+
label:
|
8
|
+
de: 10 Minuten
|
9
|
+
2:
|
10
|
+
correct: true
|
11
|
+
label:
|
12
|
+
de: 30 Minuten
|
13
|
+
3:
|
14
|
+
correct: false
|
15
|
+
label:
|
16
|
+
de: 5 Minuten
|
17
|
+
4:
|
18
|
+
correct: false
|
19
|
+
label:
|
20
|
+
de: sofort
|
21
|
+
2:
|
22
|
+
label:
|
23
|
+
de: Wieviel kostet es mit blau.de aus der EU nach Deutschland zu telefonieren?
|
24
|
+
answers:
|
25
|
+
1:
|
26
|
+
correct: false
|
27
|
+
label:
|
28
|
+
de: 50 Cent/Minute
|
29
|
+
2:
|
30
|
+
correct: true
|
31
|
+
label:
|
32
|
+
de: 9 Cent/Minute
|
33
|
+
3:
|
34
|
+
correct: false
|
35
|
+
label:
|
36
|
+
de: 1 Euro/Minute
|
37
|
+
4:
|
38
|
+
correct: false
|
39
|
+
label:
|
40
|
+
de: 35 Cent/Minute
|
41
|
+
3:
|
42
|
+
label:
|
43
|
+
de: Welche Geschenkkarte ist NICHT im e-va Sortiment verfügbar?
|
44
|
+
answers:
|
45
|
+
1:
|
46
|
+
correct: false
|
47
|
+
label:
|
48
|
+
de: Amazon
|
49
|
+
2:
|
50
|
+
correct: true
|
51
|
+
label:
|
52
|
+
de: PayPal-Geschenkkarte
|
53
|
+
3:
|
54
|
+
correct: false
|
55
|
+
label:
|
56
|
+
de: IKEA
|
57
|
+
4:
|
58
|
+
correct: false
|
59
|
+
label:
|
60
|
+
de: Douglas
|
61
|
+
4:
|
62
|
+
label:
|
63
|
+
de: Wieviel kostet die Minute bei blau.de um in jedes Land der EU + Schweiz zu telefonieren?
|
64
|
+
answers:
|
65
|
+
1:
|
66
|
+
correct: true
|
67
|
+
label:
|
68
|
+
de: 9 Cent
|
69
|
+
2:
|
70
|
+
correct: false
|
71
|
+
label:
|
72
|
+
de: 25 Cent
|
73
|
+
3:
|
74
|
+
correct: false
|
75
|
+
label:
|
76
|
+
de: 30 Cent
|
77
|
+
4:
|
78
|
+
correct: false
|
79
|
+
label:
|
80
|
+
de: 15 Cent
|
81
|
+
5:
|
82
|
+
label:
|
83
|
+
de: Eine SMS von Deutschland ins EU-Ausland kostet bei blau.de…
|
84
|
+
answers:
|
85
|
+
1:
|
86
|
+
correct: true
|
87
|
+
label:
|
88
|
+
de: 9 Cent
|
89
|
+
2:
|
90
|
+
correct: false
|
91
|
+
label:
|
92
|
+
de: 25 Cent
|
93
|
+
3:
|
94
|
+
correct: false
|
95
|
+
label:
|
96
|
+
de: 33 Cent
|
97
|
+
4:
|
98
|
+
correct: false
|
99
|
+
label:
|
100
|
+
de: 45 Cent
|
101
|
+
6:
|
102
|
+
label:
|
103
|
+
de: Sei schlau, telefonier...?
|
104
|
+
answers:
|
105
|
+
1:
|
106
|
+
correct: false
|
107
|
+
label:
|
108
|
+
de: grün
|
109
|
+
2:
|
110
|
+
correct: true
|
111
|
+
label:
|
112
|
+
de: blau
|
113
|
+
3:
|
114
|
+
correct: false
|
115
|
+
label:
|
116
|
+
de: rosa
|
117
|
+
4:
|
118
|
+
correct: false
|
119
|
+
label:
|
120
|
+
de: schwarz
|
121
|
+
7:
|
122
|
+
label:
|
123
|
+
de: Welche Auflade-Wertstufe erhält man an e-va Stationen für blau.de?
|
124
|
+
answers:
|
125
|
+
1:
|
126
|
+
correct: false
|
127
|
+
label:
|
128
|
+
de: 16 Euro
|
129
|
+
2:
|
130
|
+
correct: false
|
131
|
+
label:
|
132
|
+
de: 11.11 Euro
|
133
|
+
3:
|
134
|
+
correct: false
|
135
|
+
label:
|
136
|
+
de: 5 Euro
|
137
|
+
4:
|
138
|
+
correct: true
|
139
|
+
label:
|
140
|
+
de: 15 Euro
|
141
|
+
8:
|
142
|
+
label:
|
143
|
+
de: Was erhälst Du jeden Monat gratis von blau.de?
|
144
|
+
answers:
|
145
|
+
1:
|
146
|
+
correct: false
|
147
|
+
label:
|
148
|
+
de: Einen Apfel
|
149
|
+
2:
|
150
|
+
correct: false
|
151
|
+
label:
|
152
|
+
de: Spam
|
153
|
+
3:
|
154
|
+
correct: true
|
155
|
+
label:
|
156
|
+
de: 10 MB Datenvolumen
|
157
|
+
4:
|
158
|
+
correct: false
|
159
|
+
label:
|
160
|
+
de: Gar nichts
|
data/lib/barker/version.rb
CHANGED
data/test/unit/api/base_test.rb
CHANGED
@@ -171,6 +171,58 @@ module Barker
|
|
171
171
|
assert_in_delta 35, response.time_left, 1
|
172
172
|
end
|
173
173
|
|
174
|
+
test "llbaraquiz ask reset timer" do
|
175
|
+
game_show_id = api.create(:guideline => :llbaraquiz).game_show_id
|
176
|
+
candidate_id = 42
|
177
|
+
candidate_locale = 'de'
|
178
|
+
|
179
|
+
api.join(game_show_id, candidate_id, candidate_locale)
|
180
|
+
api.start(game_show_id)
|
181
|
+
api.next_stage(game_show_id)
|
182
|
+
api.next_round(game_show_id)
|
183
|
+
|
184
|
+
response = api.ask(game_show_id, candidate_id)
|
185
|
+
assert_in_delta 35, response.time_left, 1
|
186
|
+
|
187
|
+
asked_at = Time.now + 5
|
188
|
+
|
189
|
+
Time.stubs(:now).returns(asked_at)
|
190
|
+
|
191
|
+
response = api.ask(game_show_id, candidate_id)
|
192
|
+
assert_in_delta 30, response.time_left, 1
|
193
|
+
|
194
|
+
Time.stubs(:now).returns(asked_at + 5)
|
195
|
+
|
196
|
+
response = api.ask(game_show_id, candidate_id, :reset_timer => true)
|
197
|
+
assert_in_delta 35, response.time_left, 1
|
198
|
+
end
|
199
|
+
|
200
|
+
test "vdgzfquiz ask reset timer" do
|
201
|
+
game_show_id = api.create(:guideline => :vdgzfquiz).game_show_id
|
202
|
+
candidate_id = 42
|
203
|
+
candidate_locale = 'de'
|
204
|
+
|
205
|
+
api.join(game_show_id, candidate_id, candidate_locale)
|
206
|
+
api.start(game_show_id)
|
207
|
+
api.next_stage(game_show_id)
|
208
|
+
api.next_round(game_show_id)
|
209
|
+
|
210
|
+
response = api.ask(game_show_id, candidate_id)
|
211
|
+
assert_in_delta 35, response.time_left, 1
|
212
|
+
|
213
|
+
asked_at = Time.now + 5
|
214
|
+
|
215
|
+
Time.stubs(:now).returns(asked_at)
|
216
|
+
|
217
|
+
response = api.ask(game_show_id, candidate_id)
|
218
|
+
assert_in_delta 30, response.time_left, 1
|
219
|
+
|
220
|
+
Time.stubs(:now).returns(asked_at + 5)
|
221
|
+
|
222
|
+
response = api.ask(game_show_id, candidate_id, :reset_timer => true)
|
223
|
+
assert_in_delta 35, response.time_left, 1
|
224
|
+
end
|
225
|
+
|
174
226
|
test "answer" do
|
175
227
|
game_show_id = api.create(:guideline => :mock).game_show_id
|
176
228
|
candidate_id = 42
|
data/test/unit/game_show_test.rb
CHANGED
@@ -367,6 +367,14 @@ module Barker
|
|
367
367
|
assert_equal 35, Barker::GameShow.new(quizzes, candidates, :guideline => :llblauquiz).round_time
|
368
368
|
end
|
369
369
|
|
370
|
+
test "round_time llbaraquiz" do
|
371
|
+
assert_equal 35, Barker::GameShow.new(quizzes, candidates, :guideline => :llbaraquiz).round_time
|
372
|
+
end
|
373
|
+
|
374
|
+
test "round_time vdgzfquiz" do
|
375
|
+
assert_equal 35, Barker::GameShow.new(quizzes, candidates, :guideline => :vdgzfquiz).round_time
|
376
|
+
end
|
377
|
+
|
370
378
|
private
|
371
379
|
|
372
380
|
let(:candidates) { FactoryGirl.build_list(:candidate, 2) }
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module Barker
|
4
|
+
module Guideline
|
5
|
+
class VdgzfquizTest < Spec
|
6
|
+
|
7
|
+
test "one quiz with 5 random questions" do
|
8
|
+
assert_equal 1, guideline.quizzes.size
|
9
|
+
assert_equal 5, guideline.quizzes[0].questions.size
|
10
|
+
end
|
11
|
+
|
12
|
+
test "questions" do
|
13
|
+
assert_equal 8, guideline.questions.size
|
14
|
+
end
|
15
|
+
|
16
|
+
test "round_time" do
|
17
|
+
assert_equal 35, guideline.round_time
|
18
|
+
end
|
19
|
+
|
20
|
+
test "jokers" do
|
21
|
+
assert_equal ['fifty_fifty'], guideline.jokers
|
22
|
+
end
|
23
|
+
|
24
|
+
test "candidates" do
|
25
|
+
assert_equal [], guideline.candidates
|
26
|
+
end
|
27
|
+
|
28
|
+
private
|
29
|
+
|
30
|
+
let(:guideline) { Barker::Guideline::Vdgzfquiz.new }
|
31
|
+
let(:api) { Barker::Api::Base.new }
|
32
|
+
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: barker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Owiesniak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -163,11 +163,15 @@ files:
|
|
163
163
|
- lib/barker/game_show.rb
|
164
164
|
- lib/barker/guideline.rb
|
165
165
|
- lib/barker/guideline/base.rb
|
166
|
+
- lib/barker/guideline/llbaraquiz.rb
|
167
|
+
- lib/barker/guideline/llbaraquiz/questions.yaml
|
166
168
|
- lib/barker/guideline/llblauquiz.rb
|
167
169
|
- lib/barker/guideline/llblauquiz/questions.yaml
|
168
170
|
- lib/barker/guideline/llmcquiz.rb
|
169
171
|
- lib/barker/guideline/llmcquiz/questions.yaml
|
170
172
|
- lib/barker/guideline/mock.rb
|
173
|
+
- lib/barker/guideline/vdgzfquiz.rb
|
174
|
+
- lib/barker/guideline/vdgzfquiz/questions.yaml
|
171
175
|
- lib/barker/import.rb
|
172
176
|
- lib/barker/import/yaml.rb
|
173
177
|
- lib/barker/joker.rb
|
@@ -216,6 +220,7 @@ files:
|
|
216
220
|
- test/unit/guideline/llblauquiz_test.rb
|
217
221
|
- test/unit/guideline/llmcquiz_test.rb
|
218
222
|
- test/unit/guideline/mock_test.rb
|
223
|
+
- test/unit/guideline/vdgzfquiz_test.rb
|
219
224
|
- test/unit/import/yaml_test.rb
|
220
225
|
- test/unit/joker_test.rb
|
221
226
|
- test/unit/question_test.rb
|
@@ -242,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
242
247
|
version: '0'
|
243
248
|
requirements: []
|
244
249
|
rubyforge_project:
|
245
|
-
rubygems_version: 2.
|
250
|
+
rubygems_version: 2.2.2
|
246
251
|
signing_key:
|
247
252
|
specification_version: 4
|
248
253
|
summary: barker
|
@@ -281,6 +286,7 @@ test_files:
|
|
281
286
|
- test/unit/guideline/llblauquiz_test.rb
|
282
287
|
- test/unit/guideline/llmcquiz_test.rb
|
283
288
|
- test/unit/guideline/mock_test.rb
|
289
|
+
- test/unit/guideline/vdgzfquiz_test.rb
|
284
290
|
- test/unit/import/yaml_test.rb
|
285
291
|
- test/unit/joker_test.rb
|
286
292
|
- test/unit/question_test.rb
|