effective_questions 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.
Files changed (75) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +133 -0
  4. data/Rakefile +18 -0
  5. data/app/assets/config/effective_questions_manifest.js +1 -0
  6. data/app/assets/stylesheets/effective_questions.scss +0 -0
  7. data/app/controllers/admin/questions_controller.rb +13 -0
  8. data/app/datatables/admin/effective_questionable_results_datatable.rb +44 -0
  9. data/app/datatables/admin/effective_questions_datatable.rb +45 -0
  10. data/app/helpers/effective_questions_helper.rb +2 -0
  11. data/app/models/concerns/acts_as_questionable.rb +30 -0
  12. data/app/models/concerns/acts_as_responsable.rb +30 -0
  13. data/app/models/effective/question.rb +124 -0
  14. data/app/models/effective/question_option.rb +26 -0
  15. data/app/models/effective/response.rb +87 -0
  16. data/app/models/effective/response_option.rb +6 -0
  17. data/app/views/admin/questions/_form.html.haml +133 -0
  18. data/app/views/effective/questionable/_result.html.haml +2 -0
  19. data/app/views/effective/questionable/_results.html.haml +31 -0
  20. data/app/views/effective/questionable/results/_choose_one.html.haml +2 -0
  21. data/app/views/effective/questionable/results/_date.html.haml +14 -0
  22. data/app/views/effective/questionable/results/_email.html.haml +14 -0
  23. data/app/views/effective/questionable/results/_long_answer.html.haml +2 -0
  24. data/app/views/effective/questionable/results/_number.html.haml +14 -0
  25. data/app/views/effective/questionable/results/_question_option.html.haml +17 -0
  26. data/app/views/effective/questionable/results/_select_all_that_apply.html.haml +2 -0
  27. data/app/views/effective/questionable/results/_select_up_to_1.html.haml +2 -0
  28. data/app/views/effective/questionable/results/_select_up_to_2.html.haml +2 -0
  29. data/app/views/effective/questionable/results/_select_up_to_3.html.haml +2 -0
  30. data/app/views/effective/questionable/results/_select_up_to_4.html.haml +2 -0
  31. data/app/views/effective/questionable/results/_select_up_to_5.html.haml +2 -0
  32. data/app/views/effective/questionable/results/_short_answer.html.haml +2 -0
  33. data/app/views/effective/questionable/results/_upload_file.html.haml +3 -0
  34. data/app/views/effective/questions/_question.html.haml +6 -0
  35. data/app/views/effective/responsable/_fields.html.haml +19 -0
  36. data/app/views/effective/responsable/_results.html.haml +23 -0
  37. data/app/views/effective/responses/_fields.html.haml +15 -0
  38. data/app/views/effective/responses/_response.html.haml +2 -0
  39. data/app/views/effective/responses/fields/_choose_one.html.haml +1 -0
  40. data/app/views/effective/responses/fields/_date.html.haml +2 -0
  41. data/app/views/effective/responses/fields/_email.html.haml +2 -0
  42. data/app/views/effective/responses/fields/_long_answer.html.haml +1 -0
  43. data/app/views/effective/responses/fields/_number.html.haml +2 -0
  44. data/app/views/effective/responses/fields/_select_all_that_apply.html.haml +1 -0
  45. data/app/views/effective/responses/fields/_select_up_to_1.html.haml +1 -0
  46. data/app/views/effective/responses/fields/_select_up_to_2.html.haml +1 -0
  47. data/app/views/effective/responses/fields/_select_up_to_3.html.haml +1 -0
  48. data/app/views/effective/responses/fields/_select_up_to_4.html.haml +1 -0
  49. data/app/views/effective/responses/fields/_select_up_to_5.html.haml +1 -0
  50. data/app/views/effective/responses/fields/_short_answer.html.haml +1 -0
  51. data/app/views/effective/responses/fields/_upload_file.html.haml +2 -0
  52. data/app/views/effective/responses/responses/_choose_one.html.haml +1 -0
  53. data/app/views/effective/responses/responses/_date.html.haml +1 -0
  54. data/app/views/effective/responses/responses/_email.html.haml +1 -0
  55. data/app/views/effective/responses/responses/_long_answer.html.haml +1 -0
  56. data/app/views/effective/responses/responses/_number.html.haml +1 -0
  57. data/app/views/effective/responses/responses/_select_all_that_apply.html.haml +5 -0
  58. data/app/views/effective/responses/responses/_select_up_to_1.html.haml +1 -0
  59. data/app/views/effective/responses/responses/_select_up_to_2.html.haml +5 -0
  60. data/app/views/effective/responses/responses/_select_up_to_3.html.haml +5 -0
  61. data/app/views/effective/responses/responses/_select_up_to_4.html.haml +5 -0
  62. data/app/views/effective/responses/responses/_select_up_to_5.html.haml +5 -0
  63. data/app/views/effective/responses/responses/_short_answer.html.haml +1 -0
  64. data/app/views/effective/responses/responses/_upload_file.html.haml +4 -0
  65. data/config/effective_questions.rb +5 -0
  66. data/config/locales/effective_questions.yml +11 -0
  67. data/config/routes.rb +13 -0
  68. data/db/migrate/101_create_effective_questions.rb +60 -0
  69. data/db/seeds.rb +15 -0
  70. data/lib/effective_questions/engine.rb +19 -0
  71. data/lib/effective_questions/version.rb +3 -0
  72. data/lib/effective_questions.rb +13 -0
  73. data/lib/generators/effective_questions/install_generator.rb +28 -0
  74. data/lib/tasks/effective_questions_tasks.rake +8 -0
  75. metadata +270 -0
@@ -0,0 +1,8 @@
1
+ namespace :effective_questions do
2
+
3
+ # bundle exec rake effective_questions:seed
4
+ task seed: :environment do
5
+ load "#{__dir__}/../../db/seeds.rb"
6
+ end
7
+
8
+ end
metadata ADDED
@@ -0,0 +1,270 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: effective_questions
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Code and Effect
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-01-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 6.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 6.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: effective_bootstrap
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: effective_datatables
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 4.0.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 4.0.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: effective_resources
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: sqlite3
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: devise
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: haml
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: pry-byebug
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: effective_test_bot
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: effective_developer
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: psych
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "<"
158
+ - !ruby/object:Gem::Version
159
+ version: '4'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "<"
165
+ - !ruby/object:Gem::Version
166
+ version: '4'
167
+ description: Questions and responses for any ActiveRecord resource.
168
+ email:
169
+ - info@codeandeffect.com
170
+ executables: []
171
+ extensions: []
172
+ extra_rdoc_files: []
173
+ files:
174
+ - MIT-LICENSE
175
+ - README.md
176
+ - Rakefile
177
+ - app/assets/config/effective_questions_manifest.js
178
+ - app/assets/stylesheets/effective_questions.scss
179
+ - app/controllers/admin/questions_controller.rb
180
+ - app/datatables/admin/effective_questionable_results_datatable.rb
181
+ - app/datatables/admin/effective_questions_datatable.rb
182
+ - app/helpers/effective_questions_helper.rb
183
+ - app/models/concerns/acts_as_questionable.rb
184
+ - app/models/concerns/acts_as_responsable.rb
185
+ - app/models/effective/question.rb
186
+ - app/models/effective/question_option.rb
187
+ - app/models/effective/response.rb
188
+ - app/models/effective/response_option.rb
189
+ - app/views/admin/questions/_form.html.haml
190
+ - app/views/effective/questionable/_result.html.haml
191
+ - app/views/effective/questionable/_results.html.haml
192
+ - app/views/effective/questionable/results/_choose_one.html.haml
193
+ - app/views/effective/questionable/results/_date.html.haml
194
+ - app/views/effective/questionable/results/_email.html.haml
195
+ - app/views/effective/questionable/results/_long_answer.html.haml
196
+ - app/views/effective/questionable/results/_number.html.haml
197
+ - app/views/effective/questionable/results/_question_option.html.haml
198
+ - app/views/effective/questionable/results/_select_all_that_apply.html.haml
199
+ - app/views/effective/questionable/results/_select_up_to_1.html.haml
200
+ - app/views/effective/questionable/results/_select_up_to_2.html.haml
201
+ - app/views/effective/questionable/results/_select_up_to_3.html.haml
202
+ - app/views/effective/questionable/results/_select_up_to_4.html.haml
203
+ - app/views/effective/questionable/results/_select_up_to_5.html.haml
204
+ - app/views/effective/questionable/results/_short_answer.html.haml
205
+ - app/views/effective/questionable/results/_upload_file.html.haml
206
+ - app/views/effective/questions/_question.html.haml
207
+ - app/views/effective/responsable/_fields.html.haml
208
+ - app/views/effective/responsable/_results.html.haml
209
+ - app/views/effective/responses/_fields.html.haml
210
+ - app/views/effective/responses/_response.html.haml
211
+ - app/views/effective/responses/fields/_choose_one.html.haml
212
+ - app/views/effective/responses/fields/_date.html.haml
213
+ - app/views/effective/responses/fields/_email.html.haml
214
+ - app/views/effective/responses/fields/_long_answer.html.haml
215
+ - app/views/effective/responses/fields/_number.html.haml
216
+ - app/views/effective/responses/fields/_select_all_that_apply.html.haml
217
+ - app/views/effective/responses/fields/_select_up_to_1.html.haml
218
+ - app/views/effective/responses/fields/_select_up_to_2.html.haml
219
+ - app/views/effective/responses/fields/_select_up_to_3.html.haml
220
+ - app/views/effective/responses/fields/_select_up_to_4.html.haml
221
+ - app/views/effective/responses/fields/_select_up_to_5.html.haml
222
+ - app/views/effective/responses/fields/_short_answer.html.haml
223
+ - app/views/effective/responses/fields/_upload_file.html.haml
224
+ - app/views/effective/responses/responses/_choose_one.html.haml
225
+ - app/views/effective/responses/responses/_date.html.haml
226
+ - app/views/effective/responses/responses/_email.html.haml
227
+ - app/views/effective/responses/responses/_long_answer.html.haml
228
+ - app/views/effective/responses/responses/_number.html.haml
229
+ - app/views/effective/responses/responses/_select_all_that_apply.html.haml
230
+ - app/views/effective/responses/responses/_select_up_to_1.html.haml
231
+ - app/views/effective/responses/responses/_select_up_to_2.html.haml
232
+ - app/views/effective/responses/responses/_select_up_to_3.html.haml
233
+ - app/views/effective/responses/responses/_select_up_to_4.html.haml
234
+ - app/views/effective/responses/responses/_select_up_to_5.html.haml
235
+ - app/views/effective/responses/responses/_short_answer.html.haml
236
+ - app/views/effective/responses/responses/_upload_file.html.haml
237
+ - config/effective_questions.rb
238
+ - config/locales/effective_questions.yml
239
+ - config/routes.rb
240
+ - db/migrate/101_create_effective_questions.rb
241
+ - db/seeds.rb
242
+ - lib/effective_questions.rb
243
+ - lib/effective_questions/engine.rb
244
+ - lib/effective_questions/version.rb
245
+ - lib/generators/effective_questions/install_generator.rb
246
+ - lib/tasks/effective_questions_tasks.rake
247
+ homepage: https://github.com/code-and-effect/effective_questions
248
+ licenses:
249
+ - MIT
250
+ metadata: {}
251
+ post_install_message:
252
+ rdoc_options: []
253
+ require_paths:
254
+ - lib
255
+ required_ruby_version: !ruby/object:Gem::Requirement
256
+ requirements:
257
+ - - ">="
258
+ - !ruby/object:Gem::Version
259
+ version: '0'
260
+ required_rubygems_version: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
265
+ requirements: []
266
+ rubygems_version: 3.3.7
267
+ signing_key:
268
+ specification_version: 4
269
+ summary: Questions and responses for any ActiveRecord resource.
270
+ test_files: []