questiongenerator 0.0.1 → 0.0.2
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.
- data/.gitignore +1 -0
- data/lib/questiongenerator.rb +2 -2
- data/lib/questions/en.yml +147 -45
- metadata +7 -7
data/.gitignore
CHANGED
data/lib/questiongenerator.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require 'yaml'
|
|
2
2
|
|
|
3
3
|
module QuestionGenerator
|
|
4
|
-
VERSION = "0.0.
|
|
4
|
+
VERSION = "0.0.2"
|
|
5
5
|
|
|
6
6
|
class << self
|
|
7
7
|
attr_accessor :question_base_path
|
|
@@ -14,7 +14,7 @@ module QuestionGenerator
|
|
|
14
14
|
|
|
15
15
|
def self.generate(locale = @default_locale)
|
|
16
16
|
questions = YAML.load_file(File.expand_path("#{locale.to_s}.yml", @question_base_path))
|
|
17
|
-
"#{get_question(questions)}?"
|
|
17
|
+
"#{get_question(questions).strip}?"
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
private
|
data/lib/questions/en.yml
CHANGED
|
@@ -4,6 +4,21 @@ Do:
|
|
|
4
4
|
- social networks
|
|
5
5
|
- muffins
|
|
6
6
|
- video games
|
|
7
|
+
want:
|
|
8
|
+
- old times back
|
|
9
|
+
- to know more:
|
|
10
|
+
about:
|
|
11
|
+
- your:
|
|
12
|
+
- future
|
|
13
|
+
- relatives
|
|
14
|
+
- history
|
|
15
|
+
- new inventions
|
|
16
|
+
- more:
|
|
17
|
+
- money
|
|
18
|
+
- friends
|
|
19
|
+
- things than you need
|
|
20
|
+
think that:
|
|
21
|
+
- late is better than never
|
|
7
22
|
your:
|
|
8
23
|
friends:
|
|
9
24
|
like:
|
|
@@ -13,56 +28,143 @@ Do:
|
|
|
13
28
|
- muffins
|
|
14
29
|
- video games
|
|
15
30
|
know:
|
|
16
|
-
|
|
17
|
-
|
|
31
|
+
too:
|
|
32
|
+
much:
|
|
33
|
+
about: &friends_know_much
|
|
18
34
|
- your:
|
|
19
35
|
- life
|
|
20
36
|
- hobbies
|
|
21
37
|
- family
|
|
22
38
|
- you
|
|
39
|
+
much:
|
|
40
|
+
about: *friends_know_much
|
|
23
41
|
What:
|
|
24
|
-
was:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
would:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
is:
|
|
55
|
-
the:
|
|
56
|
-
best: &is_the_best
|
|
57
|
-
thing:
|
|
42
|
+
- was:
|
|
43
|
+
the:
|
|
44
|
+
last:
|
|
45
|
+
thing:
|
|
46
|
+
you:
|
|
47
|
+
have:
|
|
48
|
+
- eaten
|
|
49
|
+
- done
|
|
50
|
+
your:
|
|
51
|
+
favourite:
|
|
52
|
+
song:
|
|
53
|
+
- as a 5 year old
|
|
54
|
+
- from a few weeks ago
|
|
55
|
+
- would:
|
|
56
|
+
you:
|
|
57
|
+
do:
|
|
58
|
+
if:
|
|
59
|
+
you:
|
|
60
|
+
had:
|
|
61
|
+
- one million dollars
|
|
62
|
+
- the ability to fly
|
|
63
|
+
were:
|
|
64
|
+
- a dragon
|
|
65
|
+
woke up:
|
|
66
|
+
with:
|
|
67
|
+
- someone else next to you
|
|
68
|
+
- some drawings in your face
|
|
69
|
+
- do:
|
|
70
|
+
you:
|
|
71
|
+
think:
|
|
58
72
|
about:
|
|
59
|
-
the:
|
|
73
|
+
- the:
|
|
60
74
|
- internet
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
75
|
+
- dragons
|
|
76
|
+
- '"fact" accounts'
|
|
77
|
+
- society
|
|
78
|
+
- cats
|
|
79
|
+
- surveillance
|
|
80
|
+
- feminists
|
|
81
|
+
- activity: &activity
|
|
82
|
+
do:
|
|
83
|
+
you:
|
|
84
|
+
- enjoy the most
|
|
85
|
+
- activities: *activity
|
|
86
|
+
- is:
|
|
87
|
+
your:
|
|
88
|
+
- favourite:
|
|
89
|
+
website:
|
|
90
|
+
- ''
|
|
91
|
+
- and why is it:
|
|
92
|
+
- 9gag
|
|
93
|
+
- Reddit
|
|
94
|
+
- Twitter
|
|
95
|
+
- Facebook
|
|
96
|
+
- YouTube
|
|
97
|
+
the:
|
|
98
|
+
best: &is_the_best
|
|
99
|
+
thing:
|
|
100
|
+
- about:
|
|
101
|
+
the:
|
|
102
|
+
- internet
|
|
103
|
+
your:
|
|
104
|
+
- favourite:
|
|
105
|
+
- series
|
|
106
|
+
- movie
|
|
107
|
+
- book
|
|
108
|
+
- country
|
|
109
|
+
- hometown
|
|
110
|
+
- one can do:
|
|
111
|
+
- if:
|
|
112
|
+
- "they're bored"
|
|
113
|
+
- ever
|
|
114
|
+
worst: *is_the_best
|
|
115
|
+
- was:
|
|
116
|
+
the:
|
|
117
|
+
last:
|
|
118
|
+
thing:
|
|
119
|
+
you:
|
|
120
|
+
- did
|
|
121
|
+
- ate
|
|
122
|
+
- looked for
|
|
123
|
+
best: &was_the_best
|
|
124
|
+
thing:
|
|
125
|
+
- "you've eaten so far"
|
|
126
|
+
worst: *was_the_best
|
|
127
|
+
- languages do you know
|
|
128
|
+
Can:
|
|
129
|
+
you:
|
|
130
|
+
- swim
|
|
131
|
+
- play:
|
|
132
|
+
- the:
|
|
133
|
+
- piano
|
|
134
|
+
- guitar
|
|
135
|
+
- trumpet
|
|
136
|
+
- baseball
|
|
137
|
+
- ski
|
|
138
|
+
Have:
|
|
139
|
+
you:
|
|
140
|
+
ever:
|
|
141
|
+
- been:
|
|
142
|
+
- in:
|
|
143
|
+
- Austria
|
|
144
|
+
- Germany
|
|
145
|
+
- Japan
|
|
146
|
+
- Switzerland
|
|
147
|
+
- France
|
|
148
|
+
- Sweden
|
|
149
|
+
- Norway
|
|
150
|
+
- Finland
|
|
151
|
+
- Australia
|
|
152
|
+
- Italy
|
|
153
|
+
- Russia
|
|
154
|
+
- China
|
|
155
|
+
- the:
|
|
156
|
+
- USA
|
|
157
|
+
- United Kingdom
|
|
158
|
+
- caught:
|
|
159
|
+
- "doing things you shouldn't do"
|
|
160
|
+
- cheating
|
|
161
|
+
- listened to:
|
|
162
|
+
- classical music
|
|
163
|
+
- music:
|
|
164
|
+
- "from the 80's"
|
|
165
|
+
- dubstep
|
|
166
|
+
- nightcore
|
|
167
|
+
- written:
|
|
168
|
+
- a love letter
|
|
169
|
+
- code
|
|
170
|
+
- in Japanese
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: questiongenerator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-12-
|
|
12
|
+
date: 2014-12-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -32,7 +32,7 @@ dependencies:
|
|
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
|
33
33
|
none: false
|
|
34
34
|
requirements:
|
|
35
|
-
- -
|
|
35
|
+
- - '>='
|
|
36
36
|
- !ruby/object:Gem::Version
|
|
37
37
|
version: '0'
|
|
38
38
|
type: :development
|
|
@@ -40,7 +40,7 @@ dependencies:
|
|
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
|
41
41
|
none: false
|
|
42
42
|
requirements:
|
|
43
|
-
- -
|
|
43
|
+
- - '>='
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
45
|
version: '0'
|
|
46
46
|
description: A simple question generator.
|
|
@@ -68,18 +68,18 @@ require_paths:
|
|
|
68
68
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
69
69
|
none: false
|
|
70
70
|
requirements:
|
|
71
|
-
- -
|
|
71
|
+
- - '>='
|
|
72
72
|
- !ruby/object:Gem::Version
|
|
73
73
|
version: '0'
|
|
74
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
none: false
|
|
76
76
|
requirements:
|
|
77
|
-
- -
|
|
77
|
+
- - '>='
|
|
78
78
|
- !ruby/object:Gem::Version
|
|
79
79
|
version: '0'
|
|
80
80
|
requirements: []
|
|
81
81
|
rubyforge_project:
|
|
82
|
-
rubygems_version: 1.8.
|
|
82
|
+
rubygems_version: 1.8.29
|
|
83
83
|
signing_key:
|
|
84
84
|
specification_version: 3
|
|
85
85
|
summary: A simple question generator.
|