tasuku 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -6
- data/app/assets/javascripts/{tasks → tasuku}/application.js +0 -0
- data/app/assets/stylesheets/{tasks → tasuku}/application.css +0 -0
- data/app/controllers/{tasks → tasuku}/application_controller.rb +1 -1
- data/app/controllers/{tasks → tasuku}/taskables/image/responses_controller.rb +2 -2
- data/app/controllers/{tasks → tasuku}/taskables/questions/answers_controller.rb +2 -2
- data/app/controllers/{tasks → tasuku}/taskables/text/responses_controller.rb +2 -2
- data/app/controllers/{tasks → tasuku}/taskables/url/responses_controller.rb +2 -2
- data/app/controllers/{tasks → tasuku}/taskables/verifications/confirmations_controller.rb +2 -2
- data/app/controllers/{tasks → tasuku}/tasks_controller.rb +2 -2
- data/app/helpers/{tasks → tasuku}/application_helper.rb +1 -1
- data/app/helpers/{tasks → tasuku}/taskables/verifications_helper.rb +2 -2
- data/app/models/{tasks → tasuku}/task.rb +1 -1
- data/app/models/{tasks → tasuku}/taskables.rb +2 -2
- data/app/models/{tasks → tasuku}/taskables/image.rb +2 -2
- data/app/models/{tasks → tasuku}/taskables/image/request.rb +1 -1
- data/app/models/{tasks → tasuku}/taskables/image/response.rb +1 -1
- data/app/models/{tasks → tasuku}/taskables/question.rb +1 -1
- data/app/models/{tasks → tasuku}/taskables/question/answer.rb +4 -8
- data/app/models/{tasks → tasuku}/taskables/question/option.rb +1 -1
- data/app/models/tasuku/taskables/question/vote.rb +6 -0
- data/app/models/{tasks → tasuku}/taskables/taskable.rb +2 -2
- data/app/models/{tasks → tasuku}/taskables/taskable/response.rb +2 -2
- data/app/models/{tasks → tasuku}/taskables/taskable/submission.rb +1 -1
- data/app/models/{tasks → tasuku}/taskables/text.rb +2 -2
- data/app/models/{tasks → tasuku}/taskables/text/request.rb +1 -1
- data/app/models/{tasks → tasuku}/taskables/text/response.rb +1 -1
- data/app/models/{tasks → tasuku}/taskables/url.rb +2 -2
- data/app/models/{tasks → tasuku}/taskables/url/request.rb +1 -1
- data/app/models/{tasks → tasuku}/taskables/url/response.rb +1 -1
- data/app/models/{tasks → tasuku}/taskables/verification.rb +2 -2
- data/app/models/{tasks → tasuku}/taskables/verification/confirmation.rb +1 -1
- data/app/uploaders/{tasks → tasuku}/image_uploader.rb +1 -1
- data/app/views/{tasks → tasuku}/taskables/image/requests/_request.html.erb +1 -1
- data/app/views/tasuku/taskables/image/responses/_form.html.erb +8 -0
- data/app/views/tasuku/taskables/image/responses/create.html.erb +2 -0
- data/app/views/{tasks → tasuku}/taskables/questions/_question.html.erb +3 -3
- data/app/views/{tasks → tasuku}/taskables/questions/answers/_form.html.erb +2 -2
- data/app/views/{tasks → tasuku}/taskables/questions/answers/_statistics.html.erb +0 -0
- data/app/views/{tasks → tasuku}/taskables/text/requests/_request.html.erb +2 -2
- data/app/views/tasuku/taskables/text/responses/_form.html.erb +5 -0
- data/app/views/tasuku/taskables/text/responses/create.html.erb +2 -0
- data/app/views/{tasks → tasuku}/taskables/url/requests/_request.html.erb +3 -3
- data/app/views/tasuku/taskables/url/responses/_form.html.erb +5 -0
- data/app/views/tasuku/taskables/url/responses/create.html.erb +2 -0
- data/app/views/{tasks → tasuku}/taskables/verifications/_verification.html.erb +0 -0
- data/app/views/tasuku/taskables/verifications/confirmations/_form.html.erb +3 -0
- data/app/views/{tasks → tasuku}/tasks/_task.html.erb +0 -0
- data/app/views/{tasks → tasuku}/tasks/show.html.erb +0 -0
- data/config/locales/en.yml +1 -1
- data/config/locales/nb.yml +24 -25
- data/config/routes.rb +1 -1
- data/db/migrate/20140512131526_remove_option_id_from_questions.rb +12 -4
- data/db/migrate/20140606112652_migrate_polymorphic_relations.rb +19 -0
- data/db/migrate/20140610121130_change_tasks_tables_to_tasuku_tables.rb +48 -0
- data/lib/generators/tasuku/install/USAGE +5 -0
- data/lib/generators/tasuku/install/install_generator.rb +23 -0
- data/lib/generators/{tasks/install/templates/tasks.rb → tasuku/install/templates/tasuku.rb} +1 -1
- data/lib/generators/{tasks → tasuku}/views/USAGE +1 -1
- data/lib/generators/{tasks → tasuku}/views/views_generator.rb +2 -2
- data/lib/tasuku.rb +21 -1
- data/lib/tasuku/concerns.rb +7 -0
- data/lib/tasuku/concerns/controllers.rb +5 -0
- data/lib/{tasks → tasuku}/concerns/controllers/tasks_controller.rb +1 -1
- data/lib/{tasks → tasuku}/concerns/illustratable.rb +1 -1
- data/lib/tasuku/concerns/models.rb +4 -0
- data/lib/{tasks → tasuku}/concerns/models/task.rb +4 -4
- data/lib/tasuku/concerns/models/taskables.rb +7 -0
- data/lib/tasuku/concerns/models/taskables/image.rb +3 -0
- data/lib/{tasks → tasuku}/concerns/models/taskables/image/request.rb +1 -1
- data/lib/{tasks → tasuku}/concerns/models/taskables/question.rb +1 -1
- data/lib/tasuku/concerns/models/taskables/text.rb +3 -0
- data/lib/{tasks → tasuku}/concerns/models/taskables/text/request.rb +1 -1
- data/lib/tasuku/concerns/models/taskables/url.rb +3 -0
- data/lib/{tasks → tasuku}/concerns/models/taskables/url/request.rb +1 -1
- data/lib/{tasks → tasuku}/concerns/models/taskables/verification.rb +1 -1
- data/lib/{tasks → tasuku}/concerns/redirectable.rb +1 -1
- data/lib/{tasks → tasuku}/concerns/verifiable.rb +2 -1
- data/lib/{tasks → tasuku}/engine.rb +5 -5
- data/lib/tasuku/seeds.rb +13 -0
- data/lib/{tasks/tasks_tasks.rake → tasuku/tasuku_tasks.rake} +0 -0
- data/lib/tasuku/version.rb +3 -0
- data/spec/controllers/{tasks → tasuku}/taskables/image/responses_controller_spec.rb +3 -3
- data/spec/controllers/{tasks → tasuku}/taskables/questions/answers_controller_spec.rb +3 -3
- data/spec/controllers/{tasks → tasuku}/taskables/text/responses_controller_spec.rb +3 -3
- data/spec/controllers/{tasks → tasuku}/taskables/verifications/confirmations_controller_spec.rb +3 -3
- data/spec/controllers/{tasks → tasuku}/tasks_controller_spec.rb +2 -2
- data/spec/dummy/config/application.rb +1 -1
- data/spec/dummy/db/schema.rb +29 -29
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +14611 -0
- data/spec/dummy/public/uploads/tasuku/taskables/image/request/image/1/doge.jpg +0 -0
- data/spec/dummy/public/uploads/tasuku/taskables/image/response/image/1/doge.jpg +0 -0
- data/spec/dummy/public/uploads/tasuku/taskables/question/image/1/doge.jpg +0 -0
- data/spec/dummy/public/uploads/tasuku/taskables/text/request/image/1/doge.jpg +0 -0
- data/spec/dummy/public/uploads/tasuku/taskables/url/request/image/1/doge.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1402401935-55786-0961/doge.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1402401935-55786-2854/doge.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1402402180-56033-5455/doge.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1402402180-56033-5512/doge.jpg +0 -0
- data/spec/factories/{tasks_taskables_image_requests.rb → tasuku_taskables_image_requests.rb} +1 -1
- data/spec/factories/{tasks_taskables_image_responses.rb → tasuku_taskables_image_responses.rb} +1 -1
- data/spec/factories/{tasks_taskables_question_answers.rb → tasuku_taskables_question_answers.rb} +1 -1
- data/spec/factories/{tasks_taskables_question_options.rb → tasuku_taskables_question_options.rb} +1 -1
- data/spec/factories/{tasks_taskables_question_votes.rb → tasuku_taskables_question_votes.rb} +1 -1
- data/spec/factories/{tasks_taskables_questions.rb → tasuku_taskables_questions.rb} +2 -2
- data/spec/factories/tasuku_taskables_text_requests.rb +5 -0
- data/spec/factories/tasuku_taskables_text_responses.rb +6 -0
- data/spec/factories/{tasks_taskables_url_requests.rb → tasuku_taskables_url_requests.rb} +1 -1
- data/spec/factories/{tasks_taskables_url_responses.rb → tasuku_taskables_url_responses.rb} +1 -1
- data/spec/factories/tasuku_taskables_verification_confirmations.rb +8 -0
- data/spec/factories/tasuku_taskables_verifications.rb +7 -0
- data/spec/factories/{tasks_tasks.rb → tasuku_tasks.rb} +4 -4
- data/spec/helpers/{tasks → tasuku}/taskables/verifications_helper_spec.rb +2 -2
- data/spec/lib/generators/views_generators_spec.rb +8 -8
- data/spec/lib/{tasks → tasuku}/concerns/verifiable_spec.rb +1 -1
- data/spec/models/tasuku/task_spec.rb +17 -0
- data/spec/models/{tasks → tasuku}/taskables/image/request_spec.rb +1 -1
- data/spec/models/{tasks → tasuku}/taskables/image/response_spec.rb +2 -5
- data/spec/models/{tasks → tasuku}/taskables/question/answer_spec.rb +3 -3
- data/spec/models/{tasks → tasuku}/taskables/question/option_spec.rb +1 -1
- data/spec/models/{tasks → tasuku}/taskables/question/vote_spec.rb +1 -1
- data/spec/models/{tasks → tasuku}/taskables/question_spec.rb +1 -1
- data/spec/models/{tasks → tasuku}/taskables/taskable/submission_spec.rb +1 -1
- data/spec/models/{tasks → tasuku}/taskables/taskable_spec.rb +1 -1
- data/spec/models/{tasks → tasuku}/taskables/text/request_spec.rb +1 -1
- data/spec/models/{tasks → tasuku}/taskables/text/response_spec.rb +3 -6
- data/spec/models/{tasks → tasuku}/taskables/url/request_spec.rb +1 -1
- data/spec/models/{tasks → tasuku}/taskables/url/response_spec.rb +1 -1
- data/spec/models/{tasks → tasuku}/taskables/verification/confirmation_spec.rb +1 -1
- data/spec/models/{tasks → tasuku}/taskables/verification_spec.rb +1 -1
- data/spec/support/trackable_submission_spec.rb +2 -2
- data/spec/views/{tasks → tasuku}/taskables/image/requests/_request.html.erb_spec.rb +3 -3
- data/spec/views/{tasks → tasuku}/taskables/image/responses/create.html.erb_spec.rb +0 -0
- data/spec/views/{tasks → tasuku}/taskables/questions/_question.html.erb_spec.rb +3 -3
- data/spec/views/{tasks → tasuku}/taskables/questions/answers/_form.html.erb_spec.rb +2 -2
- data/spec/views/{tasks → tasuku}/taskables/text/requests/_request.html.erb_spec.rb +3 -3
- data/spec/views/{tasks → tasuku}/taskables/url/requests/_request.html.erb_spec.rb +3 -3
- data/spec/views/{tasks → tasuku}/taskables/verifications/confirmations/_form.html.erb_spec.rb +2 -2
- data/spec/views/tasuku/tasks/show.html.erb_spec.rb +4 -0
- metadata +184 -190
- data/app/models/tasks/taskables/question/vote.rb +0 -6
- data/app/views/tasks/taskables/image/responses/_form.html.erb +0 -8
- data/app/views/tasks/taskables/image/responses/create.html.erb +0 -2
- data/app/views/tasks/taskables/text/responses/_form.html.erb +0 -5
- data/app/views/tasks/taskables/text/responses/create.html.erb +0 -2
- data/app/views/tasks/taskables/url/responses/_form.html.erb +0 -5
- data/app/views/tasks/taskables/url/responses/create.html.erb +0 -2
- data/app/views/tasks/taskables/verifications/confirmations/_form.html.erb +0 -3
- data/lib/generators/tasks/install/USAGE +0 -8
- data/lib/generators/tasks/install/install_generator.rb +0 -23
- data/lib/tasks.rb +0 -20
- data/lib/tasks/concerns.rb +0 -7
- data/lib/tasks/concerns/controllers.rb +0 -5
- data/lib/tasks/seeds.rb +0 -13
- data/lib/tasks/version.rb +0 -3
- data/spec/factories/tasks_taskables_text_requests.rb +0 -5
- data/spec/factories/tasks_taskables_text_responses.rb +0 -6
- data/spec/factories/tasks_taskables_verification_confirmations.rb +0 -8
- data/spec/factories/tasks_taskables_verifications.rb +0 -7
- data/spec/models/tasks/task_spec.rb +0 -20
- data/spec/models/tasks/taskables/taskable/response_spec.rb +0 -7
- data/spec/views/tasks/tasks/show.html.erb_spec.rb +0 -4
File without changes
|
@@ -1,13 +1,13 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe '
|
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: '
|
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: '
|
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 '
|
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: '
|
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 '
|
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: '
|
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: '
|
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 '
|
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: '
|
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: '
|
25
|
+
render partial: 'tasuku/taskables/url/requests/request.html.erb', locals: {
|
26
26
|
request: url_request,
|
27
27
|
current_author: user
|
28
28
|
}
|
data/spec/views/{tasks → tasuku}/taskables/verifications/confirmations/_form.html.erb_spec.rb
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe '
|
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: '
|
12
|
+
render partial: 'tasuku/taskables/verifications/confirmations/form.html.erb', locals: {
|
13
13
|
confirmation: confirmation,
|
14
14
|
author: user
|
15
15
|
}
|
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
|
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
|
-
|
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/
|
219
|
-
- app/assets/stylesheets/
|
220
|
-
- app/controllers/
|
221
|
-
- app/controllers/
|
222
|
-
- app/controllers/
|
223
|
-
- app/controllers/
|
224
|
-
- app/controllers/
|
225
|
-
- app/controllers/
|
226
|
-
- app/controllers/
|
227
|
-
- app/helpers/
|
228
|
-
- app/helpers/
|
229
|
-
- app/models/
|
230
|
-
- app/models/
|
231
|
-
- app/models/
|
232
|
-
- app/models/
|
233
|
-
- app/models/
|
234
|
-
- app/models/
|
235
|
-
- app/models/
|
236
|
-
- app/models/
|
237
|
-
- app/models/
|
238
|
-
- app/models/
|
239
|
-
- app/models/
|
240
|
-
- app/models/
|
241
|
-
- app/models/
|
242
|
-
- app/models/
|
243
|
-
- app/models/
|
244
|
-
- app/models/
|
245
|
-
- app/models/
|
246
|
-
- app/models/
|
247
|
-
- app/models/
|
248
|
-
- app/models/
|
249
|
-
- app/uploaders/
|
250
|
-
- app/views/
|
251
|
-
- app/views/
|
252
|
-
- app/views/
|
253
|
-
- app/views/
|
254
|
-
- app/views/
|
255
|
-
- app/views/
|
256
|
-
- app/views/
|
257
|
-
- app/views/
|
258
|
-
- app/views/
|
259
|
-
- app/views/
|
260
|
-
- app/views/
|
261
|
-
- app/views/
|
262
|
-
- app/views/
|
263
|
-
- app/views/
|
264
|
-
- app/views/
|
265
|
-
- app/views/
|
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
|
-
-
|
297
|
-
-
|
298
|
-
- lib/generators/
|
299
|
-
- lib/generators/
|
300
|
-
- lib/generators/
|
301
|
-
- lib/
|
302
|
-
- lib/
|
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
|
-
-
|
325
|
-
-
|
326
|
-
-
|
327
|
-
-
|
328
|
-
-
|
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/
|
387
|
-
- spec/factories/
|
388
|
-
- spec/factories/
|
389
|
-
- spec/factories/
|
390
|
-
- spec/factories/
|
391
|
-
- spec/factories/
|
392
|
-
- spec/factories/
|
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/
|
381
|
+
- spec/helpers/tasuku/taskables/verifications_helper_spec.rb
|
395
382
|
- spec/lib/generators/views_generators_spec.rb
|
396
|
-
- spec/lib/
|
397
|
-
- spec/models/
|
398
|
-
- spec/models/
|
399
|
-
- spec/models/
|
400
|
-
- spec/models/
|
401
|
-
- spec/models/
|
402
|
-
- spec/models/
|
403
|
-
- spec/models/
|
404
|
-
- spec/models/
|
405
|
-
- spec/models/
|
406
|
-
- spec/models/
|
407
|
-
- spec/models/
|
408
|
-
- spec/models/
|
409
|
-
- spec/models/
|
410
|
-
- spec/models/
|
411
|
-
- spec/models/
|
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/
|
418
|
-
- spec/views/
|
419
|
-
- spec/views/
|
420
|
-
- spec/views/
|
421
|
-
- spec/views/
|
422
|
-
- spec/views/
|
423
|
-
- spec/views/
|
424
|
-
- spec/views/
|
425
|
-
homepage: http://github.com/hyperoslo/
|
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
|
434
|
+
summary: Easily set up custom solvable tasuku in your Rails app
|
449
435
|
test_files:
|
450
|
-
- spec/controllers/
|
451
|
-
- spec/controllers/
|
452
|
-
- spec/controllers/
|
453
|
-
- spec/controllers/
|
454
|
-
- spec/controllers/
|
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/
|
513
|
-
- spec/factories/
|
514
|
-
- spec/factories/
|
515
|
-
- spec/factories/
|
516
|
-
- spec/factories/
|
517
|
-
- spec/factories/
|
518
|
-
- spec/factories/
|
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/
|
515
|
+
- spec/helpers/tasuku/taskables/verifications_helper_spec.rb
|
521
516
|
- spec/lib/generators/views_generators_spec.rb
|
522
|
-
- spec/lib/
|
523
|
-
- spec/models/
|
524
|
-
- spec/models/
|
525
|
-
- spec/models/
|
526
|
-
- spec/models/
|
527
|
-
- spec/models/
|
528
|
-
- spec/models/
|
529
|
-
- spec/models/
|
530
|
-
- spec/models/
|
531
|
-
- spec/models/
|
532
|
-
- spec/models/
|
533
|
-
- spec/models/
|
534
|
-
- spec/models/
|
535
|
-
- spec/models/
|
536
|
-
- spec/models/
|
537
|
-
- spec/models/
|
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/
|
544
|
-
- spec/views/
|
545
|
-
- spec/views/
|
546
|
-
- spec/views/
|
547
|
-
- spec/views/
|
548
|
-
- spec/views/
|
549
|
-
- spec/views/
|
550
|
-
- spec/views/
|
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
|