tasuku 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -6
  3. data/app/assets/javascripts/{tasks → tasuku}/application.js +0 -0
  4. data/app/assets/stylesheets/{tasks → tasuku}/application.css +0 -0
  5. data/app/controllers/{tasks → tasuku}/application_controller.rb +1 -1
  6. data/app/controllers/{tasks → tasuku}/taskables/image/responses_controller.rb +2 -2
  7. data/app/controllers/{tasks → tasuku}/taskables/questions/answers_controller.rb +2 -2
  8. data/app/controllers/{tasks → tasuku}/taskables/text/responses_controller.rb +2 -2
  9. data/app/controllers/{tasks → tasuku}/taskables/url/responses_controller.rb +2 -2
  10. data/app/controllers/{tasks → tasuku}/taskables/verifications/confirmations_controller.rb +2 -2
  11. data/app/controllers/{tasks → tasuku}/tasks_controller.rb +2 -2
  12. data/app/helpers/{tasks → tasuku}/application_helper.rb +1 -1
  13. data/app/helpers/{tasks → tasuku}/taskables/verifications_helper.rb +2 -2
  14. data/app/models/{tasks → tasuku}/task.rb +1 -1
  15. data/app/models/{tasks → tasuku}/taskables.rb +2 -2
  16. data/app/models/{tasks → tasuku}/taskables/image.rb +2 -2
  17. data/app/models/{tasks → tasuku}/taskables/image/request.rb +1 -1
  18. data/app/models/{tasks → tasuku}/taskables/image/response.rb +1 -1
  19. data/app/models/{tasks → tasuku}/taskables/question.rb +1 -1
  20. data/app/models/{tasks → tasuku}/taskables/question/answer.rb +4 -8
  21. data/app/models/{tasks → tasuku}/taskables/question/option.rb +1 -1
  22. data/app/models/tasuku/taskables/question/vote.rb +6 -0
  23. data/app/models/{tasks → tasuku}/taskables/taskable.rb +2 -2
  24. data/app/models/{tasks → tasuku}/taskables/taskable/response.rb +2 -2
  25. data/app/models/{tasks → tasuku}/taskables/taskable/submission.rb +1 -1
  26. data/app/models/{tasks → tasuku}/taskables/text.rb +2 -2
  27. data/app/models/{tasks → tasuku}/taskables/text/request.rb +1 -1
  28. data/app/models/{tasks → tasuku}/taskables/text/response.rb +1 -1
  29. data/app/models/{tasks → tasuku}/taskables/url.rb +2 -2
  30. data/app/models/{tasks → tasuku}/taskables/url/request.rb +1 -1
  31. data/app/models/{tasks → tasuku}/taskables/url/response.rb +1 -1
  32. data/app/models/{tasks → tasuku}/taskables/verification.rb +2 -2
  33. data/app/models/{tasks → tasuku}/taskables/verification/confirmation.rb +1 -1
  34. data/app/uploaders/{tasks → tasuku}/image_uploader.rb +1 -1
  35. data/app/views/{tasks → tasuku}/taskables/image/requests/_request.html.erb +1 -1
  36. data/app/views/tasuku/taskables/image/responses/_form.html.erb +8 -0
  37. data/app/views/tasuku/taskables/image/responses/create.html.erb +2 -0
  38. data/app/views/{tasks → tasuku}/taskables/questions/_question.html.erb +3 -3
  39. data/app/views/{tasks → tasuku}/taskables/questions/answers/_form.html.erb +2 -2
  40. data/app/views/{tasks → tasuku}/taskables/questions/answers/_statistics.html.erb +0 -0
  41. data/app/views/{tasks → tasuku}/taskables/text/requests/_request.html.erb +2 -2
  42. data/app/views/tasuku/taskables/text/responses/_form.html.erb +5 -0
  43. data/app/views/tasuku/taskables/text/responses/create.html.erb +2 -0
  44. data/app/views/{tasks → tasuku}/taskables/url/requests/_request.html.erb +3 -3
  45. data/app/views/tasuku/taskables/url/responses/_form.html.erb +5 -0
  46. data/app/views/tasuku/taskables/url/responses/create.html.erb +2 -0
  47. data/app/views/{tasks → tasuku}/taskables/verifications/_verification.html.erb +0 -0
  48. data/app/views/tasuku/taskables/verifications/confirmations/_form.html.erb +3 -0
  49. data/app/views/{tasks → tasuku}/tasks/_task.html.erb +0 -0
  50. data/app/views/{tasks → tasuku}/tasks/show.html.erb +0 -0
  51. data/config/locales/en.yml +1 -1
  52. data/config/locales/nb.yml +24 -25
  53. data/config/routes.rb +1 -1
  54. data/db/migrate/20140512131526_remove_option_id_from_questions.rb +12 -4
  55. data/db/migrate/20140606112652_migrate_polymorphic_relations.rb +19 -0
  56. data/db/migrate/20140610121130_change_tasks_tables_to_tasuku_tables.rb +48 -0
  57. data/lib/generators/tasuku/install/USAGE +5 -0
  58. data/lib/generators/tasuku/install/install_generator.rb +23 -0
  59. data/lib/generators/{tasks/install/templates/tasks.rb → tasuku/install/templates/tasuku.rb} +1 -1
  60. data/lib/generators/{tasks → tasuku}/views/USAGE +1 -1
  61. data/lib/generators/{tasks → tasuku}/views/views_generator.rb +2 -2
  62. data/lib/tasuku.rb +21 -1
  63. data/lib/tasuku/concerns.rb +7 -0
  64. data/lib/tasuku/concerns/controllers.rb +5 -0
  65. data/lib/{tasks → tasuku}/concerns/controllers/tasks_controller.rb +1 -1
  66. data/lib/{tasks → tasuku}/concerns/illustratable.rb +1 -1
  67. data/lib/tasuku/concerns/models.rb +4 -0
  68. data/lib/{tasks → tasuku}/concerns/models/task.rb +4 -4
  69. data/lib/tasuku/concerns/models/taskables.rb +7 -0
  70. data/lib/tasuku/concerns/models/taskables/image.rb +3 -0
  71. data/lib/{tasks → tasuku}/concerns/models/taskables/image/request.rb +1 -1
  72. data/lib/{tasks → tasuku}/concerns/models/taskables/question.rb +1 -1
  73. data/lib/tasuku/concerns/models/taskables/text.rb +3 -0
  74. data/lib/{tasks → tasuku}/concerns/models/taskables/text/request.rb +1 -1
  75. data/lib/tasuku/concerns/models/taskables/url.rb +3 -0
  76. data/lib/{tasks → tasuku}/concerns/models/taskables/url/request.rb +1 -1
  77. data/lib/{tasks → tasuku}/concerns/models/taskables/verification.rb +1 -1
  78. data/lib/{tasks → tasuku}/concerns/redirectable.rb +1 -1
  79. data/lib/{tasks → tasuku}/concerns/verifiable.rb +2 -1
  80. data/lib/{tasks → tasuku}/engine.rb +5 -5
  81. data/lib/tasuku/seeds.rb +13 -0
  82. data/lib/{tasks/tasks_tasks.rake → tasuku/tasuku_tasks.rake} +0 -0
  83. data/lib/tasuku/version.rb +3 -0
  84. data/spec/controllers/{tasks → tasuku}/taskables/image/responses_controller_spec.rb +3 -3
  85. data/spec/controllers/{tasks → tasuku}/taskables/questions/answers_controller_spec.rb +3 -3
  86. data/spec/controllers/{tasks → tasuku}/taskables/text/responses_controller_spec.rb +3 -3
  87. data/spec/controllers/{tasks → tasuku}/taskables/verifications/confirmations_controller_spec.rb +3 -3
  88. data/spec/controllers/{tasks → tasuku}/tasks_controller_spec.rb +2 -2
  89. data/spec/dummy/config/application.rb +1 -1
  90. data/spec/dummy/db/schema.rb +29 -29
  91. data/spec/dummy/db/test.sqlite3 +0 -0
  92. data/spec/dummy/log/test.log +14611 -0
  93. data/spec/dummy/public/uploads/tasuku/taskables/image/request/image/1/doge.jpg +0 -0
  94. data/spec/dummy/public/uploads/tasuku/taskables/image/response/image/1/doge.jpg +0 -0
  95. data/spec/dummy/public/uploads/tasuku/taskables/question/image/1/doge.jpg +0 -0
  96. data/spec/dummy/public/uploads/tasuku/taskables/text/request/image/1/doge.jpg +0 -0
  97. data/spec/dummy/public/uploads/tasuku/taskables/url/request/image/1/doge.jpg +0 -0
  98. data/spec/dummy/public/uploads/tmp/1402401935-55786-0961/doge.jpg +0 -0
  99. data/spec/dummy/public/uploads/tmp/1402401935-55786-2854/doge.jpg +0 -0
  100. data/spec/dummy/public/uploads/tmp/1402402180-56033-5455/doge.jpg +0 -0
  101. data/spec/dummy/public/uploads/tmp/1402402180-56033-5512/doge.jpg +0 -0
  102. data/spec/factories/{tasks_taskables_image_requests.rb → tasuku_taskables_image_requests.rb} +1 -1
  103. data/spec/factories/{tasks_taskables_image_responses.rb → tasuku_taskables_image_responses.rb} +1 -1
  104. data/spec/factories/{tasks_taskables_question_answers.rb → tasuku_taskables_question_answers.rb} +1 -1
  105. data/spec/factories/{tasks_taskables_question_options.rb → tasuku_taskables_question_options.rb} +1 -1
  106. data/spec/factories/{tasks_taskables_question_votes.rb → tasuku_taskables_question_votes.rb} +1 -1
  107. data/spec/factories/{tasks_taskables_questions.rb → tasuku_taskables_questions.rb} +2 -2
  108. data/spec/factories/tasuku_taskables_text_requests.rb +5 -0
  109. data/spec/factories/tasuku_taskables_text_responses.rb +6 -0
  110. data/spec/factories/{tasks_taskables_url_requests.rb → tasuku_taskables_url_requests.rb} +1 -1
  111. data/spec/factories/{tasks_taskables_url_responses.rb → tasuku_taskables_url_responses.rb} +1 -1
  112. data/spec/factories/tasuku_taskables_verification_confirmations.rb +8 -0
  113. data/spec/factories/tasuku_taskables_verifications.rb +7 -0
  114. data/spec/factories/{tasks_tasks.rb → tasuku_tasks.rb} +4 -4
  115. data/spec/helpers/{tasks → tasuku}/taskables/verifications_helper_spec.rb +2 -2
  116. data/spec/lib/generators/views_generators_spec.rb +8 -8
  117. data/spec/lib/{tasks → tasuku}/concerns/verifiable_spec.rb +1 -1
  118. data/spec/models/tasuku/task_spec.rb +17 -0
  119. data/spec/models/{tasks → tasuku}/taskables/image/request_spec.rb +1 -1
  120. data/spec/models/{tasks → tasuku}/taskables/image/response_spec.rb +2 -5
  121. data/spec/models/{tasks → tasuku}/taskables/question/answer_spec.rb +3 -3
  122. data/spec/models/{tasks → tasuku}/taskables/question/option_spec.rb +1 -1
  123. data/spec/models/{tasks → tasuku}/taskables/question/vote_spec.rb +1 -1
  124. data/spec/models/{tasks → tasuku}/taskables/question_spec.rb +1 -1
  125. data/spec/models/{tasks → tasuku}/taskables/taskable/submission_spec.rb +1 -1
  126. data/spec/models/{tasks → tasuku}/taskables/taskable_spec.rb +1 -1
  127. data/spec/models/{tasks → tasuku}/taskables/text/request_spec.rb +1 -1
  128. data/spec/models/{tasks → tasuku}/taskables/text/response_spec.rb +3 -6
  129. data/spec/models/{tasks → tasuku}/taskables/url/request_spec.rb +1 -1
  130. data/spec/models/{tasks → tasuku}/taskables/url/response_spec.rb +1 -1
  131. data/spec/models/{tasks → tasuku}/taskables/verification/confirmation_spec.rb +1 -1
  132. data/spec/models/{tasks → tasuku}/taskables/verification_spec.rb +1 -1
  133. data/spec/support/trackable_submission_spec.rb +2 -2
  134. data/spec/views/{tasks → tasuku}/taskables/image/requests/_request.html.erb_spec.rb +3 -3
  135. data/spec/views/{tasks → tasuku}/taskables/image/responses/create.html.erb_spec.rb +0 -0
  136. data/spec/views/{tasks → tasuku}/taskables/questions/_question.html.erb_spec.rb +3 -3
  137. data/spec/views/{tasks → tasuku}/taskables/questions/answers/_form.html.erb_spec.rb +2 -2
  138. data/spec/views/{tasks → tasuku}/taskables/text/requests/_request.html.erb_spec.rb +3 -3
  139. data/spec/views/{tasks → tasuku}/taskables/url/requests/_request.html.erb_spec.rb +3 -3
  140. data/spec/views/{tasks → tasuku}/taskables/verifications/confirmations/_form.html.erb_spec.rb +2 -2
  141. data/spec/views/tasuku/tasks/show.html.erb_spec.rb +4 -0
  142. metadata +184 -190
  143. data/app/models/tasks/taskables/question/vote.rb +0 -6
  144. data/app/views/tasks/taskables/image/responses/_form.html.erb +0 -8
  145. data/app/views/tasks/taskables/image/responses/create.html.erb +0 -2
  146. data/app/views/tasks/taskables/text/responses/_form.html.erb +0 -5
  147. data/app/views/tasks/taskables/text/responses/create.html.erb +0 -2
  148. data/app/views/tasks/taskables/url/responses/_form.html.erb +0 -5
  149. data/app/views/tasks/taskables/url/responses/create.html.erb +0 -2
  150. data/app/views/tasks/taskables/verifications/confirmations/_form.html.erb +0 -3
  151. data/lib/generators/tasks/install/USAGE +0 -8
  152. data/lib/generators/tasks/install/install_generator.rb +0 -23
  153. data/lib/tasks.rb +0 -20
  154. data/lib/tasks/concerns.rb +0 -7
  155. data/lib/tasks/concerns/controllers.rb +0 -5
  156. data/lib/tasks/seeds.rb +0 -13
  157. data/lib/tasks/version.rb +0 -3
  158. data/spec/factories/tasks_taskables_text_requests.rb +0 -5
  159. data/spec/factories/tasks_taskables_text_responses.rb +0 -6
  160. data/spec/factories/tasks_taskables_verification_confirmations.rb +0 -8
  161. data/spec/factories/tasks_taskables_verifications.rb +0 -7
  162. data/spec/models/tasks/task_spec.rb +0 -20
  163. data/spec/models/tasks/taskables/taskable/response_spec.rb +0 -7
  164. data/spec/views/tasks/tasks/show.html.erb_spec.rb +0 -4
@@ -1,13 +1,13 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe 'tasks/taskables/questions/_question.html.erb' do
3
+ describe 'tasuku/taskables/questions/_question.html.erb' do
4
4
  let(:user) { create :user }
5
5
 
6
6
  context 'for questions that have an image' do
7
7
  let(:question) { create :question_with_options, image: fixture("doge.jpg") }
8
8
 
9
9
  before do
10
- render partial: 'tasks/taskables/questions/question.html.erb', locals: {
10
+ render partial: 'tasuku/taskables/questions/question.html.erb', locals: {
11
11
  question: question,
12
12
  current_author: user
13
13
  }
@@ -22,7 +22,7 @@ describe 'tasks/taskables/questions/_question.html.erb' do
22
22
  let(:question) { create :question_with_options }
23
23
 
24
24
  before do
25
- render partial: 'tasks/taskables/questions/question.html.erb', locals: {
25
+ render partial: 'tasuku/taskables/questions/question.html.erb', locals: {
26
26
  question: question,
27
27
  current_author: user
28
28
  }
@@ -1,11 +1,11 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe 'tasks/taskables/questions/answers/_form.html.erb' do
3
+ describe 'tasuku/taskables/questions/answers/_form.html.erb' do
4
4
  let(:user) { create :user }
5
5
  let(:question) { create :question_with_options }
6
6
 
7
7
  before do
8
- render partial: 'tasks/taskables/questions/answers/form.html.erb', locals: {
8
+ render partial: 'tasuku/taskables/questions/answers/form.html.erb', locals: {
9
9
  question: question
10
10
  }
11
11
  end
@@ -1,13 +1,13 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe 'tasks/taskables/text/requests/_request.html.erb' do
3
+ describe 'tasuku/taskables/text/requests/_request.html.erb' do
4
4
  let(:user) { create :user }
5
5
 
6
6
  context 'for text requests that have an image' do
7
7
  let(:text_request) { create :text_request, image: fixture("doge.jpg") }
8
8
 
9
9
  before do
10
- render partial: 'tasks/taskables/text/requests/request.html.erb', locals: {
10
+ render partial: 'tasuku/taskables/text/requests/request.html.erb', locals: {
11
11
  request: text_request,
12
12
  current_author: user
13
13
  }
@@ -22,7 +22,7 @@ describe 'tasks/taskables/text/requests/_request.html.erb' do
22
22
  let(:text_request) { create :text_request }
23
23
 
24
24
  before do
25
- render partial: 'tasks/taskables/text/requests/request.html.erb', locals: {
25
+ render partial: 'tasuku/taskables/text/requests/request.html.erb', locals: {
26
26
  request: text_request,
27
27
  current_author: user
28
28
  }
@@ -1,13 +1,13 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe 'tasks/taskables/url/requests/_request.html.erb' do
3
+ describe 'tasuku/taskables/url/requests/_request.html.erb' do
4
4
  let(:user) { create :user }
5
5
 
6
6
  context 'for url requests that have an image' do
7
7
  let(:url_request) { create :url_request, image: fixture("doge.jpg") }
8
8
 
9
9
  before do
10
- render partial: 'tasks/taskables/url/requests/request.html.erb', locals: {
10
+ render partial: 'tasuku/taskables/url/requests/request.html.erb', locals: {
11
11
  request: url_request,
12
12
  current_author: user
13
13
  }
@@ -22,7 +22,7 @@ describe 'tasks/taskables/url/requests/_request.html.erb' do
22
22
  let(:url_request) { create :url_request }
23
23
 
24
24
  before do
25
- render partial: 'tasks/taskables/url/requests/request.html.erb', locals: {
25
+ render partial: 'tasuku/taskables/url/requests/request.html.erb', locals: {
26
26
  request: url_request,
27
27
  current_author: user
28
28
  }
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe 'tasks/taskables/verifications/confirmations/_form.html.erb' do
3
+ describe 'tasuku/taskables/verifications/confirmations/_form.html.erb' do
4
4
  let(:user) { create :user }
5
5
  let(:verification) { create :verification }
6
6
  let(:confirmation) { build :verification_confirmation, verification: verification }
@@ -9,7 +9,7 @@ describe 'tasks/taskables/verifications/confirmations/_form.html.erb' do
9
9
  before do
10
10
  assign :confirmation, confirmation
11
11
 
12
- render partial: 'tasks/taskables/verifications/confirmations/form.html.erb', locals: {
12
+ render partial: 'tasuku/taskables/verifications/confirmations/form.html.erb', locals: {
13
13
  confirmation: confirmation,
14
14
  author: user
15
15
  }
@@ -0,0 +1,4 @@
1
+ require 'spec_helper'
2
+
3
+ describe "tasuku/show.html.erb" do
4
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tasuku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johannes Gorset
@@ -178,35 +178,7 @@ dependencies:
178
178
  - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
- - !ruby/object:Gem::Dependency
182
- name: guard
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - ">="
186
- - !ruby/object:Gem::Version
187
- version: '0'
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - ">="
193
- - !ruby/object:Gem::Version
194
- version: '0'
195
- - !ruby/object:Gem::Dependency
196
- name: guard-rspec
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - ">="
200
- - !ruby/object:Gem::Version
201
- version: '0'
202
- type: :development
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - ">="
207
- - !ruby/object:Gem::Version
208
- version: '0'
209
- description: Easily set up custom solvable tasks in your Ruby on Rails app.
181
+ description: Easily set up custom solvable tasuku in your Ruby on Rails app.
210
182
  email:
211
183
  - johannes@hyper.no
212
184
  executables: []
@@ -215,54 +187,54 @@ extra_rdoc_files: []
215
187
  files:
216
188
  - README.md
217
189
  - Rakefile
218
- - app/assets/javascripts/tasks/application.js
219
- - app/assets/stylesheets/tasks/application.css
220
- - app/controllers/tasks/application_controller.rb
221
- - app/controllers/tasks/taskables/image/responses_controller.rb
222
- - app/controllers/tasks/taskables/questions/answers_controller.rb
223
- - app/controllers/tasks/taskables/text/responses_controller.rb
224
- - app/controllers/tasks/taskables/url/responses_controller.rb
225
- - app/controllers/tasks/taskables/verifications/confirmations_controller.rb
226
- - app/controllers/tasks/tasks_controller.rb
227
- - app/helpers/tasks/application_helper.rb
228
- - app/helpers/tasks/taskables/verifications_helper.rb
229
- - app/models/tasks/task.rb
230
- - app/models/tasks/taskables.rb
231
- - app/models/tasks/taskables/image.rb
232
- - app/models/tasks/taskables/image/request.rb
233
- - app/models/tasks/taskables/image/response.rb
234
- - app/models/tasks/taskables/question.rb
235
- - app/models/tasks/taskables/question/answer.rb
236
- - app/models/tasks/taskables/question/option.rb
237
- - app/models/tasks/taskables/question/vote.rb
238
- - app/models/tasks/taskables/taskable.rb
239
- - app/models/tasks/taskables/taskable/response.rb
240
- - app/models/tasks/taskables/taskable/submission.rb
241
- - app/models/tasks/taskables/text.rb
242
- - app/models/tasks/taskables/text/request.rb
243
- - app/models/tasks/taskables/text/response.rb
244
- - app/models/tasks/taskables/url.rb
245
- - app/models/tasks/taskables/url/request.rb
246
- - app/models/tasks/taskables/url/response.rb
247
- - app/models/tasks/taskables/verification.rb
248
- - app/models/tasks/taskables/verification/confirmation.rb
249
- - app/uploaders/tasks/image_uploader.rb
250
- - app/views/tasks/taskables/image/requests/_request.html.erb
251
- - app/views/tasks/taskables/image/responses/_form.html.erb
252
- - app/views/tasks/taskables/image/responses/create.html.erb
253
- - app/views/tasks/taskables/questions/_question.html.erb
254
- - app/views/tasks/taskables/questions/answers/_form.html.erb
255
- - app/views/tasks/taskables/questions/answers/_statistics.html.erb
256
- - app/views/tasks/taskables/text/requests/_request.html.erb
257
- - app/views/tasks/taskables/text/responses/_form.html.erb
258
- - app/views/tasks/taskables/text/responses/create.html.erb
259
- - app/views/tasks/taskables/url/requests/_request.html.erb
260
- - app/views/tasks/taskables/url/responses/_form.html.erb
261
- - app/views/tasks/taskables/url/responses/create.html.erb
262
- - app/views/tasks/taskables/verifications/_verification.html.erb
263
- - app/views/tasks/taskables/verifications/confirmations/_form.html.erb
264
- - app/views/tasks/tasks/_task.html.erb
265
- - app/views/tasks/tasks/show.html.erb
190
+ - app/assets/javascripts/tasuku/application.js
191
+ - app/assets/stylesheets/tasuku/application.css
192
+ - app/controllers/tasuku/application_controller.rb
193
+ - app/controllers/tasuku/taskables/image/responses_controller.rb
194
+ - app/controllers/tasuku/taskables/questions/answers_controller.rb
195
+ - app/controllers/tasuku/taskables/text/responses_controller.rb
196
+ - app/controllers/tasuku/taskables/url/responses_controller.rb
197
+ - app/controllers/tasuku/taskables/verifications/confirmations_controller.rb
198
+ - app/controllers/tasuku/tasks_controller.rb
199
+ - app/helpers/tasuku/application_helper.rb
200
+ - app/helpers/tasuku/taskables/verifications_helper.rb
201
+ - app/models/tasuku/task.rb
202
+ - app/models/tasuku/taskables.rb
203
+ - app/models/tasuku/taskables/image.rb
204
+ - app/models/tasuku/taskables/image/request.rb
205
+ - app/models/tasuku/taskables/image/response.rb
206
+ - app/models/tasuku/taskables/question.rb
207
+ - app/models/tasuku/taskables/question/answer.rb
208
+ - app/models/tasuku/taskables/question/option.rb
209
+ - app/models/tasuku/taskables/question/vote.rb
210
+ - app/models/tasuku/taskables/taskable.rb
211
+ - app/models/tasuku/taskables/taskable/response.rb
212
+ - app/models/tasuku/taskables/taskable/submission.rb
213
+ - app/models/tasuku/taskables/text.rb
214
+ - app/models/tasuku/taskables/text/request.rb
215
+ - app/models/tasuku/taskables/text/response.rb
216
+ - app/models/tasuku/taskables/url.rb
217
+ - app/models/tasuku/taskables/url/request.rb
218
+ - app/models/tasuku/taskables/url/response.rb
219
+ - app/models/tasuku/taskables/verification.rb
220
+ - app/models/tasuku/taskables/verification/confirmation.rb
221
+ - app/uploaders/tasuku/image_uploader.rb
222
+ - app/views/tasuku/taskables/image/requests/_request.html.erb
223
+ - app/views/tasuku/taskables/image/responses/_form.html.erb
224
+ - app/views/tasuku/taskables/image/responses/create.html.erb
225
+ - app/views/tasuku/taskables/questions/_question.html.erb
226
+ - app/views/tasuku/taskables/questions/answers/_form.html.erb
227
+ - app/views/tasuku/taskables/questions/answers/_statistics.html.erb
228
+ - app/views/tasuku/taskables/text/requests/_request.html.erb
229
+ - app/views/tasuku/taskables/text/responses/_form.html.erb
230
+ - app/views/tasuku/taskables/text/responses/create.html.erb
231
+ - app/views/tasuku/taskables/url/requests/_request.html.erb
232
+ - app/views/tasuku/taskables/url/responses/_form.html.erb
233
+ - app/views/tasuku/taskables/url/responses/create.html.erb
234
+ - app/views/tasuku/taskables/verifications/_verification.html.erb
235
+ - app/views/tasuku/taskables/verifications/confirmations/_form.html.erb
236
+ - app/views/tasuku/tasks/_task.html.erb
237
+ - app/views/tasuku/tasks/show.html.erb
266
238
  - config/locales/en.yml
267
239
  - config/locales/nb.yml
268
240
  - config/routes.rb
@@ -293,39 +265,45 @@ files:
293
265
  - db/migrate/20140605095241_create_tasks_taskables_taskable_responses.rb
294
266
  - db/migrate/20140605124021_add_task_to_response.rb
295
267
  - db/migrate/20140606072225_migrate_existing_date.rb
296
- - lib/generators/tasks/install/USAGE
297
- - lib/generators/tasks/install/install_generator.rb
298
- - lib/generators/tasks/install/templates/tasks.rb
299
- - lib/generators/tasks/views/USAGE
300
- - lib/generators/tasks/views/views_generator.rb
301
- - lib/tasks.rb
302
- - lib/tasks/concerns.rb
303
- - lib/tasks/concerns/controllers.rb
304
- - lib/tasks/concerns/controllers/tasks_controller.rb
305
- - lib/tasks/concerns/illustratable.rb
268
+ - db/migrate/20140606112652_migrate_polymorphic_relations.rb
269
+ - db/migrate/20140610121130_change_tasks_tables_to_tasuku_tables.rb
270
+ - lib/generators/tasuku/install/USAGE
271
+ - lib/generators/tasuku/install/install_generator.rb
272
+ - lib/generators/tasuku/install/templates/tasuku.rb
273
+ - lib/generators/tasuku/views/USAGE
274
+ - lib/generators/tasuku/views/views_generator.rb
306
275
  - lib/tasks/concerns/models.rb
307
- - lib/tasks/concerns/models/task.rb
308
276
  - lib/tasks/concerns/models/taskables.rb
309
277
  - lib/tasks/concerns/models/taskables/image.rb
310
- - lib/tasks/concerns/models/taskables/image/request.rb
311
- - lib/tasks/concerns/models/taskables/question.rb
312
278
  - lib/tasks/concerns/models/taskables/text.rb
313
- - lib/tasks/concerns/models/taskables/text/request.rb
314
279
  - lib/tasks/concerns/models/taskables/url.rb
315
- - lib/tasks/concerns/models/taskables/url/request.rb
316
- - lib/tasks/concerns/models/taskables/verification.rb
317
- - lib/tasks/concerns/redirectable.rb
318
- - lib/tasks/concerns/verifiable.rb
319
- - lib/tasks/engine.rb
320
- - lib/tasks/seeds.rb
321
- - lib/tasks/tasks_tasks.rake
322
- - lib/tasks/version.rb
323
280
  - lib/tasuku.rb
324
- - spec/controllers/tasks/taskables/image/responses_controller_spec.rb
325
- - spec/controllers/tasks/taskables/questions/answers_controller_spec.rb
326
- - spec/controllers/tasks/taskables/text/responses_controller_spec.rb
327
- - spec/controllers/tasks/taskables/verifications/confirmations_controller_spec.rb
328
- - spec/controllers/tasks/tasks_controller_spec.rb
281
+ - lib/tasuku/concerns.rb
282
+ - lib/tasuku/concerns/controllers.rb
283
+ - lib/tasuku/concerns/controllers/tasks_controller.rb
284
+ - lib/tasuku/concerns/illustratable.rb
285
+ - lib/tasuku/concerns/models.rb
286
+ - lib/tasuku/concerns/models/task.rb
287
+ - lib/tasuku/concerns/models/taskables.rb
288
+ - lib/tasuku/concerns/models/taskables/image.rb
289
+ - lib/tasuku/concerns/models/taskables/image/request.rb
290
+ - lib/tasuku/concerns/models/taskables/question.rb
291
+ - lib/tasuku/concerns/models/taskables/text.rb
292
+ - lib/tasuku/concerns/models/taskables/text/request.rb
293
+ - lib/tasuku/concerns/models/taskables/url.rb
294
+ - lib/tasuku/concerns/models/taskables/url/request.rb
295
+ - lib/tasuku/concerns/models/taskables/verification.rb
296
+ - lib/tasuku/concerns/redirectable.rb
297
+ - lib/tasuku/concerns/verifiable.rb
298
+ - lib/tasuku/engine.rb
299
+ - lib/tasuku/seeds.rb
300
+ - lib/tasuku/tasuku_tasks.rake
301
+ - lib/tasuku/version.rb
302
+ - spec/controllers/tasuku/taskables/image/responses_controller_spec.rb
303
+ - spec/controllers/tasuku/taskables/questions/answers_controller_spec.rb
304
+ - spec/controllers/tasuku/taskables/text/responses_controller_spec.rb
305
+ - spec/controllers/tasuku/taskables/verifications/confirmations_controller_spec.rb
306
+ - spec/controllers/tasuku/tasks_controller_spec.rb
329
307
  - spec/dummy/README.rdoc
330
308
  - spec/dummy/Rakefile
331
309
  - spec/dummy/app/assets/javascripts/application.js
@@ -372,57 +350,65 @@ files:
372
350
  - spec/dummy/public/uploads/tasks/taskables/question/image/1/doge.jpg
373
351
  - spec/dummy/public/uploads/tasks/taskables/text/request/image/1/doge.jpg
374
352
  - spec/dummy/public/uploads/tasks/taskables/url/request/image/1/doge.jpg
353
+ - spec/dummy/public/uploads/tasuku/taskables/image/request/image/1/doge.jpg
354
+ - spec/dummy/public/uploads/tasuku/taskables/image/response/image/1/doge.jpg
355
+ - spec/dummy/public/uploads/tasuku/taskables/question/image/1/doge.jpg
356
+ - spec/dummy/public/uploads/tasuku/taskables/text/request/image/1/doge.jpg
357
+ - spec/dummy/public/uploads/tasuku/taskables/url/request/image/1/doge.jpg
358
+ - spec/dummy/public/uploads/tmp/1402401935-55786-0961/doge.jpg
359
+ - spec/dummy/public/uploads/tmp/1402401935-55786-2854/doge.jpg
360
+ - spec/dummy/public/uploads/tmp/1402402180-56033-5455/doge.jpg
361
+ - spec/dummy/public/uploads/tmp/1402402180-56033-5512/doge.jpg
375
362
  - spec/dummy/spec/factories/articles.rb
376
363
  - spec/dummy/spec/factories/users.rb
377
364
  - spec/dummy/spec/models/article_spec.rb
378
365
  - spec/dummy/spec/models/user_spec.rb
379
- - spec/factories/tasks_taskables_image_requests.rb
380
- - spec/factories/tasks_taskables_image_responses.rb
381
- - spec/factories/tasks_taskables_question_answers.rb
382
- - spec/factories/tasks_taskables_question_options.rb
383
- - spec/factories/tasks_taskables_question_votes.rb
384
- - spec/factories/tasks_taskables_questions.rb
385
366
  - spec/factories/tasks_taskables_taskable_responses.rb
386
- - spec/factories/tasks_taskables_text_requests.rb
387
- - spec/factories/tasks_taskables_text_responses.rb
388
- - spec/factories/tasks_taskables_url_requests.rb
389
- - spec/factories/tasks_taskables_url_responses.rb
390
- - spec/factories/tasks_taskables_verification_confirmations.rb
391
- - spec/factories/tasks_taskables_verifications.rb
392
- - spec/factories/tasks_tasks.rb
367
+ - spec/factories/tasuku_taskables_image_requests.rb
368
+ - spec/factories/tasuku_taskables_image_responses.rb
369
+ - spec/factories/tasuku_taskables_question_answers.rb
370
+ - spec/factories/tasuku_taskables_question_options.rb
371
+ - spec/factories/tasuku_taskables_question_votes.rb
372
+ - spec/factories/tasuku_taskables_questions.rb
373
+ - spec/factories/tasuku_taskables_text_requests.rb
374
+ - spec/factories/tasuku_taskables_text_responses.rb
375
+ - spec/factories/tasuku_taskables_url_requests.rb
376
+ - spec/factories/tasuku_taskables_url_responses.rb
377
+ - spec/factories/tasuku_taskables_verification_confirmations.rb
378
+ - spec/factories/tasuku_taskables_verifications.rb
379
+ - spec/factories/tasuku_tasks.rb
393
380
  - spec/fixtures/doge.jpg
394
- - spec/helpers/tasks/taskables/verifications_helper_spec.rb
381
+ - spec/helpers/tasuku/taskables/verifications_helper_spec.rb
395
382
  - spec/lib/generators/views_generators_spec.rb
396
- - spec/lib/tasks/concerns/verifiable_spec.rb
397
- - spec/models/tasks/task_spec.rb
398
- - spec/models/tasks/taskables/image/request_spec.rb
399
- - spec/models/tasks/taskables/image/response_spec.rb
400
- - spec/models/tasks/taskables/question/answer_spec.rb
401
- - spec/models/tasks/taskables/question/option_spec.rb
402
- - spec/models/tasks/taskables/question/vote_spec.rb
403
- - spec/models/tasks/taskables/question_spec.rb
404
- - spec/models/tasks/taskables/taskable/response_spec.rb
405
- - spec/models/tasks/taskables/taskable/submission_spec.rb
406
- - spec/models/tasks/taskables/taskable_spec.rb
407
- - spec/models/tasks/taskables/text/request_spec.rb
408
- - spec/models/tasks/taskables/text/response_spec.rb
409
- - spec/models/tasks/taskables/url/request_spec.rb
410
- - spec/models/tasks/taskables/url/response_spec.rb
411
- - spec/models/tasks/taskables/verification/confirmation_spec.rb
412
- - spec/models/tasks/taskables/verification_spec.rb
383
+ - spec/lib/tasuku/concerns/verifiable_spec.rb
384
+ - spec/models/tasuku/task_spec.rb
385
+ - spec/models/tasuku/taskables/image/request_spec.rb
386
+ - spec/models/tasuku/taskables/image/response_spec.rb
387
+ - spec/models/tasuku/taskables/question/answer_spec.rb
388
+ - spec/models/tasuku/taskables/question/option_spec.rb
389
+ - spec/models/tasuku/taskables/question/vote_spec.rb
390
+ - spec/models/tasuku/taskables/question_spec.rb
391
+ - spec/models/tasuku/taskables/taskable/submission_spec.rb
392
+ - spec/models/tasuku/taskables/taskable_spec.rb
393
+ - spec/models/tasuku/taskables/text/request_spec.rb
394
+ - spec/models/tasuku/taskables/text/response_spec.rb
395
+ - spec/models/tasuku/taskables/url/request_spec.rb
396
+ - spec/models/tasuku/taskables/url/response_spec.rb
397
+ - spec/models/tasuku/taskables/verification/confirmation_spec.rb
398
+ - spec/models/tasuku/taskables/verification_spec.rb
413
399
  - spec/spec_helper.rb
414
400
  - spec/support/fixture.rb
415
401
  - spec/support/shared_examples_for_redirectable.rb
416
402
  - spec/support/trackable_submission_spec.rb
417
- - spec/views/tasks/taskables/image/requests/_request.html.erb_spec.rb
418
- - spec/views/tasks/taskables/image/responses/create.html.erb_spec.rb
419
- - spec/views/tasks/taskables/questions/_question.html.erb_spec.rb
420
- - spec/views/tasks/taskables/questions/answers/_form.html.erb_spec.rb
421
- - spec/views/tasks/taskables/text/requests/_request.html.erb_spec.rb
422
- - spec/views/tasks/taskables/url/requests/_request.html.erb_spec.rb
423
- - spec/views/tasks/taskables/verifications/confirmations/_form.html.erb_spec.rb
424
- - spec/views/tasks/tasks/show.html.erb_spec.rb
425
- homepage: http://github.com/hyperoslo/tasks
403
+ - spec/views/tasuku/taskables/image/requests/_request.html.erb_spec.rb
404
+ - spec/views/tasuku/taskables/image/responses/create.html.erb_spec.rb
405
+ - spec/views/tasuku/taskables/questions/_question.html.erb_spec.rb
406
+ - spec/views/tasuku/taskables/questions/answers/_form.html.erb_spec.rb
407
+ - spec/views/tasuku/taskables/text/requests/_request.html.erb_spec.rb
408
+ - spec/views/tasuku/taskables/url/requests/_request.html.erb_spec.rb
409
+ - spec/views/tasuku/taskables/verifications/confirmations/_form.html.erb_spec.rb
410
+ - spec/views/tasuku/tasks/show.html.erb_spec.rb
411
+ homepage: http://github.com/hyperoslo/tasuku
426
412
  licenses:
427
413
  - MIT
428
414
  metadata: {}
@@ -445,13 +431,13 @@ rubyforge_project:
445
431
  rubygems_version: 2.2.2
446
432
  signing_key:
447
433
  specification_version: 4
448
- summary: Easily set up custom solvable tasks in your Rails app
434
+ summary: Easily set up custom solvable tasuku in your Rails app
449
435
  test_files:
450
- - spec/controllers/tasks/taskables/image/responses_controller_spec.rb
451
- - spec/controllers/tasks/taskables/questions/answers_controller_spec.rb
452
- - spec/controllers/tasks/taskables/text/responses_controller_spec.rb
453
- - spec/controllers/tasks/taskables/verifications/confirmations_controller_spec.rb
454
- - spec/controllers/tasks/tasks_controller_spec.rb
436
+ - spec/controllers/tasuku/taskables/image/responses_controller_spec.rb
437
+ - spec/controllers/tasuku/taskables/questions/answers_controller_spec.rb
438
+ - spec/controllers/tasuku/taskables/text/responses_controller_spec.rb
439
+ - spec/controllers/tasuku/taskables/verifications/confirmations_controller_spec.rb
440
+ - spec/controllers/tasuku/tasks_controller_spec.rb
455
441
  - spec/dummy/app/assets/javascripts/application.js
456
442
  - spec/dummy/app/assets/stylesheets/application.css
457
443
  - spec/dummy/app/controllers/application_controller.rb
@@ -496,55 +482,63 @@ test_files:
496
482
  - spec/dummy/public/uploads/tasks/taskables/question/image/1/doge.jpg
497
483
  - spec/dummy/public/uploads/tasks/taskables/text/request/image/1/doge.jpg
498
484
  - spec/dummy/public/uploads/tasks/taskables/url/request/image/1/doge.jpg
485
+ - spec/dummy/public/uploads/tasuku/taskables/image/request/image/1/doge.jpg
486
+ - spec/dummy/public/uploads/tasuku/taskables/image/response/image/1/doge.jpg
487
+ - spec/dummy/public/uploads/tasuku/taskables/question/image/1/doge.jpg
488
+ - spec/dummy/public/uploads/tasuku/taskables/text/request/image/1/doge.jpg
489
+ - spec/dummy/public/uploads/tasuku/taskables/url/request/image/1/doge.jpg
490
+ - spec/dummy/public/uploads/tmp/1402401935-55786-0961/doge.jpg
491
+ - spec/dummy/public/uploads/tmp/1402401935-55786-2854/doge.jpg
492
+ - spec/dummy/public/uploads/tmp/1402402180-56033-5455/doge.jpg
493
+ - spec/dummy/public/uploads/tmp/1402402180-56033-5512/doge.jpg
499
494
  - spec/dummy/Rakefile
500
495
  - spec/dummy/README.rdoc
501
496
  - spec/dummy/spec/factories/articles.rb
502
497
  - spec/dummy/spec/factories/users.rb
503
498
  - spec/dummy/spec/models/article_spec.rb
504
499
  - spec/dummy/spec/models/user_spec.rb
505
- - spec/factories/tasks_taskables_image_requests.rb
506
- - spec/factories/tasks_taskables_image_responses.rb
507
- - spec/factories/tasks_taskables_question_answers.rb
508
- - spec/factories/tasks_taskables_question_options.rb
509
- - spec/factories/tasks_taskables_question_votes.rb
510
- - spec/factories/tasks_taskables_questions.rb
511
500
  - spec/factories/tasks_taskables_taskable_responses.rb
512
- - spec/factories/tasks_taskables_text_requests.rb
513
- - spec/factories/tasks_taskables_text_responses.rb
514
- - spec/factories/tasks_taskables_url_requests.rb
515
- - spec/factories/tasks_taskables_url_responses.rb
516
- - spec/factories/tasks_taskables_verification_confirmations.rb
517
- - spec/factories/tasks_taskables_verifications.rb
518
- - spec/factories/tasks_tasks.rb
501
+ - spec/factories/tasuku_taskables_image_requests.rb
502
+ - spec/factories/tasuku_taskables_image_responses.rb
503
+ - spec/factories/tasuku_taskables_question_answers.rb
504
+ - spec/factories/tasuku_taskables_question_options.rb
505
+ - spec/factories/tasuku_taskables_question_votes.rb
506
+ - spec/factories/tasuku_taskables_questions.rb
507
+ - spec/factories/tasuku_taskables_text_requests.rb
508
+ - spec/factories/tasuku_taskables_text_responses.rb
509
+ - spec/factories/tasuku_taskables_url_requests.rb
510
+ - spec/factories/tasuku_taskables_url_responses.rb
511
+ - spec/factories/tasuku_taskables_verification_confirmations.rb
512
+ - spec/factories/tasuku_taskables_verifications.rb
513
+ - spec/factories/tasuku_tasks.rb
519
514
  - spec/fixtures/doge.jpg
520
- - spec/helpers/tasks/taskables/verifications_helper_spec.rb
515
+ - spec/helpers/tasuku/taskables/verifications_helper_spec.rb
521
516
  - spec/lib/generators/views_generators_spec.rb
522
- - spec/lib/tasks/concerns/verifiable_spec.rb
523
- - spec/models/tasks/task_spec.rb
524
- - spec/models/tasks/taskables/image/request_spec.rb
525
- - spec/models/tasks/taskables/image/response_spec.rb
526
- - spec/models/tasks/taskables/question/answer_spec.rb
527
- - spec/models/tasks/taskables/question/option_spec.rb
528
- - spec/models/tasks/taskables/question/vote_spec.rb
529
- - spec/models/tasks/taskables/question_spec.rb
530
- - spec/models/tasks/taskables/taskable/response_spec.rb
531
- - spec/models/tasks/taskables/taskable/submission_spec.rb
532
- - spec/models/tasks/taskables/taskable_spec.rb
533
- - spec/models/tasks/taskables/text/request_spec.rb
534
- - spec/models/tasks/taskables/text/response_spec.rb
535
- - spec/models/tasks/taskables/url/request_spec.rb
536
- - spec/models/tasks/taskables/url/response_spec.rb
537
- - spec/models/tasks/taskables/verification/confirmation_spec.rb
538
- - spec/models/tasks/taskables/verification_spec.rb
517
+ - spec/lib/tasuku/concerns/verifiable_spec.rb
518
+ - spec/models/tasuku/task_spec.rb
519
+ - spec/models/tasuku/taskables/image/request_spec.rb
520
+ - spec/models/tasuku/taskables/image/response_spec.rb
521
+ - spec/models/tasuku/taskables/question/answer_spec.rb
522
+ - spec/models/tasuku/taskables/question/option_spec.rb
523
+ - spec/models/tasuku/taskables/question/vote_spec.rb
524
+ - spec/models/tasuku/taskables/question_spec.rb
525
+ - spec/models/tasuku/taskables/taskable/submission_spec.rb
526
+ - spec/models/tasuku/taskables/taskable_spec.rb
527
+ - spec/models/tasuku/taskables/text/request_spec.rb
528
+ - spec/models/tasuku/taskables/text/response_spec.rb
529
+ - spec/models/tasuku/taskables/url/request_spec.rb
530
+ - spec/models/tasuku/taskables/url/response_spec.rb
531
+ - spec/models/tasuku/taskables/verification/confirmation_spec.rb
532
+ - spec/models/tasuku/taskables/verification_spec.rb
539
533
  - spec/spec_helper.rb
540
534
  - spec/support/fixture.rb
541
535
  - spec/support/shared_examples_for_redirectable.rb
542
536
  - spec/support/trackable_submission_spec.rb
543
- - spec/views/tasks/taskables/image/requests/_request.html.erb_spec.rb
544
- - spec/views/tasks/taskables/image/responses/create.html.erb_spec.rb
545
- - spec/views/tasks/taskables/questions/_question.html.erb_spec.rb
546
- - spec/views/tasks/taskables/questions/answers/_form.html.erb_spec.rb
547
- - spec/views/tasks/taskables/text/requests/_request.html.erb_spec.rb
548
- - spec/views/tasks/taskables/url/requests/_request.html.erb_spec.rb
549
- - spec/views/tasks/taskables/verifications/confirmations/_form.html.erb_spec.rb
550
- - spec/views/tasks/tasks/show.html.erb_spec.rb
537
+ - spec/views/tasuku/taskables/image/requests/_request.html.erb_spec.rb
538
+ - spec/views/tasuku/taskables/image/responses/create.html.erb_spec.rb
539
+ - spec/views/tasuku/taskables/questions/_question.html.erb_spec.rb
540
+ - spec/views/tasuku/taskables/questions/answers/_form.html.erb_spec.rb
541
+ - spec/views/tasuku/taskables/text/requests/_request.html.erb_spec.rb
542
+ - spec/views/tasuku/taskables/url/requests/_request.html.erb_spec.rb
543
+ - spec/views/tasuku/taskables/verifications/confirmations/_form.html.erb_spec.rb
544
+ - spec/views/tasuku/tasks/show.html.erb_spec.rb