survey_says 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +65 -0
- data/Rakefile +39 -0
- data/app/assets/images/survey_says/sprites.png +0 -0
- data/app/assets/javascripts/bootstrap.js.coffee +21 -0
- data/app/assets/javascripts/survey_says/answer_form.js +42 -0
- data/app/assets/javascripts/survey_says.js +2 -0
- data/app/assets/stylesheets/survey_says/bootstrap.css +356 -0
- data/app/assets/stylesheets/survey_says/general.css.erb +138 -0
- data/app/assets/stylesheets/survey_says/sprite.css.erb +1 -0
- data/app/assets/stylesheets/survey_says.css +1 -0
- data/app/controllers/survey_admin/answers_controller.rb +64 -0
- data/app/controllers/survey_admin/base_controller.rb +15 -0
- data/app/controllers/survey_admin/questionnaires_controller.rb +44 -0
- data/app/controllers/survey_admin/questions_controller.rb +61 -0
- data/app/controllers/survey_admin/survey_properties_controller.rb +50 -0
- data/app/helpers/survey_admin/answers_helper.rb +2 -0
- data/app/helpers/survey_admin/questionnaires_helper.rb +2 -0
- data/app/helpers/survey_admin/questions_helper.rb +2 -0
- data/app/helpers/survey_admin/survey_properties_helper.rb +2 -0
- data/app/models/answer.rb +21 -0
- data/app/models/question.rb +11 -0
- data/app/models/questionnaire.rb +3 -0
- data/app/models/score.rb +12 -0
- data/app/models/survey_image.rb +29 -0
- data/app/models/survey_property.rb +5 -0
- data/app/models/user_answer.rb +6 -0
- data/app/views/layouts/survey_admin.html.erb +39 -0
- data/app/views/survey_admin/answers/_form.html.erb +49 -0
- data/app/views/survey_admin/answers/_score.html.erb +13 -0
- data/app/views/survey_admin/answers/_survey_image.html.erb +10 -0
- data/app/views/survey_admin/answers/edit.html.erb +12 -0
- data/app/views/survey_admin/answers/index.html.erb +61 -0
- data/app/views/survey_admin/answers/new.html.erb +8 -0
- data/app/views/survey_admin/answers/show.html.erb +38 -0
- data/app/views/survey_admin/questionnaires/_form.html.erb +8 -0
- data/app/views/survey_admin/questionnaires/edit.html.erb +11 -0
- data/app/views/survey_admin/questionnaires/index.html.erb +18 -0
- data/app/views/survey_admin/questionnaires/new.html.erb +8 -0
- data/app/views/survey_admin/questionnaires/show.html.erb +17 -0
- data/app/views/survey_admin/questions/_answer.html.erb +13 -0
- data/app/views/survey_admin/questions/_form.html.erb +52 -0
- data/app/views/survey_admin/questions/edit.html.erb +11 -0
- data/app/views/survey_admin/questions/index.html.erb +30 -0
- data/app/views/survey_admin/questions/new.html.erb +10 -0
- data/app/views/survey_admin/questions/show.html.erb +29 -0
- data/app/views/survey_admin/survey_properties/_form.html.erb +8 -0
- data/app/views/survey_admin/survey_properties/edit.html.erb +11 -0
- data/app/views/survey_admin/survey_properties/index.html.erb +19 -0
- data/app/views/survey_admin/survey_properties/new.html.erb +8 -0
- data/app/views/survey_admin/survey_properties/show.html.erb +12 -0
- data/config/routes.rb +17 -0
- data/db/development.sqlite3 +0 -0
- data/db/migrate/20111208181247_create_questions.rb +11 -0
- data/db/migrate/20111208181414_create_answers.rb +14 -0
- data/db/migrate/20111208181429_create_survey_properties.rb +9 -0
- data/db/migrate/20111208181449_create_scores.rb +15 -0
- data/db/migrate/20111211175518_create_user_answers.rb +12 -0
- data/db/migrate/20111211175604_create_questionnaires.rb +8 -0
- data/db/migrate/20111211180011_add_questionaire_id_to_questions.rb +7 -0
- data/db/migrate/20111213185612_create_survey_images.rb +15 -0
- data/lib/generators/survey_models_generator.rb +32 -0
- data/lib/generators/survey_says_generator.rb +60 -0
- data/lib/survey_says/acts_as_survey_says.rb +59 -0
- data/lib/survey_says/core_ext.rb +0 -0
- data/lib/survey_says/engine.rb +4 -0
- data/lib/survey_says/version.rb +3 -0
- data/lib/survey_says.rb +7 -0
- data/lib/tasks/survey_says_tasks.rake +4 -0
- data/test/acts_as_survey_test.rb +87 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +12 -0
- data/test/dummy/app/assets/stylesheets/application.css +10 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/error_messages_helper.rb +23 -0
- data/test/dummy/app/helpers/layout_helper.rb +22 -0
- data/test/dummy/app/views/layouts/application.html.erb +19 -0
- data/test/dummy/config/application.rb +45 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +39 -0
- data/test/dummy/config/environments/production.rb +69 -0
- data/test/dummy/config/environments/test.rb +48 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20111010112000_create_users.rb +7 -0
- data/test/dummy/db/schema.rb +82 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +11108 -0
- data/test/dummy/log/test.log +12731 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/assets/products/1/large/image01.jpg +0 -0
- data/test/dummy/public/assets/products/1/mini/image01.jpg +0 -0
- data/test/dummy/public/assets/products/1/original/image01.jpg +0 -0
- data/test/dummy/public/assets/products/1/product/image01.jpg +0 -0
- data/test/dummy/public/assets/products/1/small/image01.jpg +0 -0
- data/test/dummy/public/assets/products/2/large/delete.png +0 -0
- data/test/dummy/public/assets/products/2/mini/delete.png +0 -0
- data/test/dummy/public/assets/products/2/original/delete.png +0 -0
- data/test/dummy/public/assets/products/2/product/delete.png +0 -0
- data/test/dummy/public/assets/products/2/small/delete.png +0 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/stylesheets/application.css +83 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/tmp/cache/assets/BF8/2D0/sprockets%2F061365584f62ff829333e404d3566614 +0 -0
- data/test/dummy/tmp/cache/assets/C17/0E0/sprockets%2F976726a8626e66694980f590bc387807 +0 -0
- data/test/dummy/tmp/cache/assets/C4B/B20/sprockets%2F75e3756ba610340b7d9e0501e2738815 +0 -0
- data/test/dummy/tmp/cache/assets/C74/4F0/sprockets%2F2b3933c1c8b63193cbf460019680641c +0 -0
- data/test/dummy/tmp/cache/assets/C8B/250/sprockets%2F1a17d2874364d2e99677211577ccbd29 +0 -0
- data/test/dummy/tmp/cache/assets/CBA/690/sprockets%2F4b4be759f94f48654023ccf82558c202 +0 -0
- data/test/dummy/tmp/cache/assets/CD1/FA0/sprockets%2F887d02a66c0be114c4d845e0e31b5046 +0 -0
- data/test/dummy/tmp/cache/assets/CDE/2F0/sprockets%2F01f7a04861b8d5c6ff5259b931b513a8 +0 -0
- data/test/dummy/tmp/cache/assets/CDE/990/sprockets%2Fd076ad241795a6dce56456d661c3c540 +0 -0
- data/test/dummy/tmp/cache/assets/CE8/960/sprockets%2F055e1879b589151f8c914fd4d2faa451 +0 -0
- data/test/dummy/tmp/cache/assets/CEA/E30/sprockets%2F3b6e44c89e8821a8ade264ba89536306 +0 -0
- data/test/dummy/tmp/cache/assets/CFB/EC0/sprockets%2F7b68fde8e3e0b2496451649499a339fd +0 -0
- data/test/dummy/tmp/cache/assets/D0A/650/sprockets%2F3892c73640ba239ad055eb70adc7d376 +0 -0
- data/test/dummy/tmp/cache/assets/D1A/400/sprockets%2F3db3e35d06c8ee7eea759a5561609176 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D35/7F0/sprockets%2Fb0bf073fb61c9ab736703d17e7223d7c +0 -0
- data/test/dummy/tmp/cache/assets/D39/260/sprockets%2F1c93edd8921f9c9dd8f9b391a8576996 +0 -0
- data/test/dummy/tmp/cache/assets/D44/8F0/sprockets%2Fd4882ae3d2b7e5c4a792a962b96d0c53 +0 -0
- data/test/dummy/tmp/cache/assets/D45/380/sprockets%2Fdcec95a29ee086a4283091e0671cee84 +0 -0
- data/test/dummy/tmp/cache/assets/D4F/990/sprockets%2F448cea593d65f06453fd58c813be85ec +0 -0
- data/test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +0 -0
- data/test/dummy/tmp/cache/assets/D5C/B80/sprockets%2F25fb254ba6af4c046abe0d457470b6b4 +0 -0
- data/test/dummy/tmp/cache/assets/D5F/B70/sprockets%2F7df07cffaafc819374564f89a9779d33 +0 -0
- data/test/dummy/tmp/cache/assets/D6A/A80/sprockets%2F65d4f0c9709bb65e6f0d20c4d33f6bd0 +0 -0
- data/test/dummy/tmp/cache/assets/D7D/470/sprockets%2Fc4f8c42e5a8d6a013a72e1e4dee99879 +0 -0
- data/test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +0 -0
- data/test/dummy/tmp/cache/assets/D90/570/sprockets%2Fc28a3557e8dc87e9666afd75e7a578fa +0 -0
- data/test/dummy/tmp/cache/assets/D9F/AA0/sprockets%2F5faefd4c3b0d325d6046fc76bc634f93 +0 -0
- data/test/dummy/tmp/cache/assets/DA9/CA0/sprockets%2F65298b70d60c89a7fc08cea4dee62f2d +0 -0
- data/test/dummy/tmp/cache/assets/DE4/230/sprockets%2F2edbb30dab2c30af6660456f54aca6cb +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/E06/600/sprockets%2Fe4ef2dbc6691ad7f906b8cbca636e45d +0 -0
- data/test/dummy/tmp/cache/assets/E23/5C0/sprockets%2Ffdb40ef1a5e8bbeda0c5732a545cc8f3 +0 -0
- data/test/dummy/tmp/cache/assets/E36/A40/sprockets%2Fbb57cff6dedd610b280b8fbfd9285b5f +0 -0
- data/test/factories/answers.rb +6 -0
- data/test/factories/questionnaires.rb +3 -0
- data/test/factories/questions.rb +12 -0
- data/test/factories/scores.rb +5 -0
- data/test/factories/survey_images.rb +9 -0
- data/test/factories/survey_properties.rb +3 -0
- data/test/factories/user_answers.rb +4 -0
- data/test/factories/users.rb +3 -0
- data/test/fixtures/answers.yml +13 -0
- data/test/fixtures/questionnaires.yml +7 -0
- data/test/fixtures/questions.yml +11 -0
- data/test/fixtures/scores.yml +11 -0
- data/test/fixtures/survey_images.yml +19 -0
- data/test/fixtures/survey_properties.yml +7 -0
- data/test/fixtures/user_answers.yml +9 -0
- data/test/functional/survey_admin/answers_controller_test.rb +71 -0
- data/test/functional/survey_admin/questionnaires_controller_test.rb +52 -0
- data/test/functional/survey_admin/questions_controller_test.rb +61 -0
- data/test/functional/survey_admin/survey_properties_controller_test.rb +59 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/survey_says_test.rb +7 -0
- data/test/test_helper.rb +16 -0
- data/test/unit/answer_test.rb +12 -0
- data/test/unit/question_test.rb +7 -0
- data/test/unit/questionaire_test.rb +7 -0
- data/test/unit/score_test.rb +7 -0
- data/test/unit/survey_image_test.rb +7 -0
- data/test/unit/survey_property_test.rb +7 -0
- data/test/unit/user_answer_test.rb +7 -0
- metadata +420 -0
@@ -0,0 +1,59 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class SurveyAdmin::SurveyPropertiesControllerTest < ActionController::TestCase
|
4
|
+
def test_index
|
5
|
+
@survey_property = Factory(:survey_property)
|
6
|
+
get :index
|
7
|
+
assert_template 'index'
|
8
|
+
end
|
9
|
+
|
10
|
+
def test_show
|
11
|
+
@survey_property = Factory(:survey_property)
|
12
|
+
get :show, :id => @survey_property.id
|
13
|
+
assert_template 'show'
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_new
|
17
|
+
get :new
|
18
|
+
assert_template 'new'
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_create_invalid
|
22
|
+
SurveyProperty.any_instance.stubs(:valid?).returns(false)
|
23
|
+
post :create
|
24
|
+
assert_template 'new'
|
25
|
+
end
|
26
|
+
|
27
|
+
def test_create_valid
|
28
|
+
SurveyProperty.any_instance.stubs(:valid?).returns(true)
|
29
|
+
post :create
|
30
|
+
assert_redirected_to survey_admin_survey_property_url(assigns(:survey_property))
|
31
|
+
end
|
32
|
+
|
33
|
+
def test_edit
|
34
|
+
@survey_property = Factory(:survey_property)
|
35
|
+
get :edit, :id => @survey_property.id
|
36
|
+
assert_template 'edit'
|
37
|
+
end
|
38
|
+
|
39
|
+
def test_update_invalid
|
40
|
+
@survey_property = Factory(:survey_property)
|
41
|
+
SurveyProperty.any_instance.stubs(:valid?).returns(false)
|
42
|
+
put :update, :id => @survey_property.id
|
43
|
+
assert_template 'edit'
|
44
|
+
end
|
45
|
+
|
46
|
+
def test_update_valid
|
47
|
+
@survey_property = Factory(:survey_property)
|
48
|
+
SurveyProperty.any_instance.stubs(:valid?).returns(true)
|
49
|
+
put :update, :id => @survey_property.id
|
50
|
+
assert_redirected_to survey_admin_survey_property_url(assigns(:survey_property))
|
51
|
+
end
|
52
|
+
|
53
|
+
def test_destroy
|
54
|
+
survey_property = Factory(:survey_property)
|
55
|
+
delete :destroy, :id => survey_property
|
56
|
+
assert_redirected_to survey_admin_survey_properties_url
|
57
|
+
assert !SurveyProperty.exists?(survey_property.id)
|
58
|
+
end
|
59
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
require 'factory_girl'
|
7
|
+
#load 'factories.rb'
|
8
|
+
|
9
|
+
Rails.backtrace_cleaner.remove_silencers!
|
10
|
+
|
11
|
+
# Load support files
|
12
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
13
|
+
Dir["#{File.dirname(__FILE__)}/factories/**/*.rb"].each { |f| load f }
|
14
|
+
#Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
15
|
+
|
16
|
+
Rails.logger.level = 4
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class AnswerTest < ActiveSupport::TestCase
|
4
|
+
test 'Answer should display position as * if it is NULL' do
|
5
|
+
answer = Factory(:answer, :position => nil)
|
6
|
+
assert answer.display_position == '*'
|
7
|
+
end
|
8
|
+
test 'Answer should display position' do
|
9
|
+
answer = Factory(:answer, :position => 2)
|
10
|
+
assert answer.display_position == '2'
|
11
|
+
end
|
12
|
+
end
|
metadata
ADDED
@@ -0,0 +1,420 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: survey_says
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.1
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- David Henner
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2011-12-15 00:00:00 -05:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: rails
|
18
|
+
prerelease: false
|
19
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ~>
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 3.1.3
|
25
|
+
type: :runtime
|
26
|
+
version_requirements: *id001
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: jquery-rails
|
29
|
+
prerelease: false
|
30
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
31
|
+
none: false
|
32
|
+
requirements:
|
33
|
+
- - ">="
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: "0"
|
36
|
+
type: :runtime
|
37
|
+
version_requirements: *id002
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: twitter-bootstrap-rails
|
40
|
+
prerelease: false
|
41
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: "0"
|
47
|
+
type: :runtime
|
48
|
+
version_requirements: *id003
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: paperclip
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ~>
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: "2.4"
|
58
|
+
type: :runtime
|
59
|
+
version_requirements: *id004
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: nifty-generators
|
62
|
+
prerelease: false
|
63
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: "0"
|
69
|
+
type: :development
|
70
|
+
version_requirements: *id005
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: ruby-debug19
|
73
|
+
prerelease: false
|
74
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: "0"
|
80
|
+
type: :development
|
81
|
+
version_requirements: *id006
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: sqlite3
|
84
|
+
prerelease: false
|
85
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: "0"
|
91
|
+
type: :development
|
92
|
+
version_requirements: *id007
|
93
|
+
description: This is a plugin that allows you to create a questionaire with custom scores.
|
94
|
+
email:
|
95
|
+
- drhenner@gmail.com
|
96
|
+
executables: []
|
97
|
+
|
98
|
+
extensions: []
|
99
|
+
|
100
|
+
extra_rdoc_files: []
|
101
|
+
|
102
|
+
files:
|
103
|
+
- app/assets/images/survey_says/sprites.png
|
104
|
+
- app/assets/javascripts/bootstrap.js.coffee
|
105
|
+
- app/assets/javascripts/survey_says/answer_form.js
|
106
|
+
- app/assets/javascripts/survey_says.js
|
107
|
+
- app/assets/stylesheets/survey_says/bootstrap.css
|
108
|
+
- app/assets/stylesheets/survey_says/general.css.erb
|
109
|
+
- app/assets/stylesheets/survey_says/sprite.css.erb
|
110
|
+
- app/assets/stylesheets/survey_says.css
|
111
|
+
- app/controllers/survey_admin/answers_controller.rb
|
112
|
+
- app/controllers/survey_admin/base_controller.rb
|
113
|
+
- app/controllers/survey_admin/questionnaires_controller.rb
|
114
|
+
- app/controllers/survey_admin/questions_controller.rb
|
115
|
+
- app/controllers/survey_admin/survey_properties_controller.rb
|
116
|
+
- app/helpers/survey_admin/answers_helper.rb
|
117
|
+
- app/helpers/survey_admin/questionnaires_helper.rb
|
118
|
+
- app/helpers/survey_admin/questions_helper.rb
|
119
|
+
- app/helpers/survey_admin/survey_properties_helper.rb
|
120
|
+
- app/models/answer.rb
|
121
|
+
- app/models/question.rb
|
122
|
+
- app/models/questionnaire.rb
|
123
|
+
- app/models/score.rb
|
124
|
+
- app/models/survey_image.rb
|
125
|
+
- app/models/survey_property.rb
|
126
|
+
- app/models/user_answer.rb
|
127
|
+
- app/views/layouts/survey_admin.html.erb
|
128
|
+
- app/views/survey_admin/answers/_form.html.erb
|
129
|
+
- app/views/survey_admin/answers/_score.html.erb
|
130
|
+
- app/views/survey_admin/answers/_survey_image.html.erb
|
131
|
+
- app/views/survey_admin/answers/edit.html.erb
|
132
|
+
- app/views/survey_admin/answers/index.html.erb
|
133
|
+
- app/views/survey_admin/answers/new.html.erb
|
134
|
+
- app/views/survey_admin/answers/show.html.erb
|
135
|
+
- app/views/survey_admin/questionnaires/_form.html.erb
|
136
|
+
- app/views/survey_admin/questionnaires/edit.html.erb
|
137
|
+
- app/views/survey_admin/questionnaires/index.html.erb
|
138
|
+
- app/views/survey_admin/questionnaires/new.html.erb
|
139
|
+
- app/views/survey_admin/questionnaires/show.html.erb
|
140
|
+
- app/views/survey_admin/questions/_answer.html.erb
|
141
|
+
- app/views/survey_admin/questions/_form.html.erb
|
142
|
+
- app/views/survey_admin/questions/edit.html.erb
|
143
|
+
- app/views/survey_admin/questions/index.html.erb
|
144
|
+
- app/views/survey_admin/questions/new.html.erb
|
145
|
+
- app/views/survey_admin/questions/show.html.erb
|
146
|
+
- app/views/survey_admin/survey_properties/_form.html.erb
|
147
|
+
- app/views/survey_admin/survey_properties/edit.html.erb
|
148
|
+
- app/views/survey_admin/survey_properties/index.html.erb
|
149
|
+
- app/views/survey_admin/survey_properties/new.html.erb
|
150
|
+
- app/views/survey_admin/survey_properties/show.html.erb
|
151
|
+
- config/routes.rb
|
152
|
+
- db/development.sqlite3
|
153
|
+
- db/migrate/20111208181247_create_questions.rb
|
154
|
+
- db/migrate/20111208181414_create_answers.rb
|
155
|
+
- db/migrate/20111208181429_create_survey_properties.rb
|
156
|
+
- db/migrate/20111208181449_create_scores.rb
|
157
|
+
- db/migrate/20111211175518_create_user_answers.rb
|
158
|
+
- db/migrate/20111211175604_create_questionnaires.rb
|
159
|
+
- db/migrate/20111211180011_add_questionaire_id_to_questions.rb
|
160
|
+
- db/migrate/20111213185612_create_survey_images.rb
|
161
|
+
- lib/generators/survey_models_generator.rb
|
162
|
+
- lib/generators/survey_says_generator.rb
|
163
|
+
- lib/survey_says/acts_as_survey_says.rb
|
164
|
+
- lib/survey_says/core_ext.rb
|
165
|
+
- lib/survey_says/engine.rb
|
166
|
+
- lib/survey_says/version.rb
|
167
|
+
- lib/survey_says.rb
|
168
|
+
- lib/tasks/survey_says_tasks.rake
|
169
|
+
- MIT-LICENSE
|
170
|
+
- Rakefile
|
171
|
+
- README.rdoc
|
172
|
+
- test/acts_as_survey_test.rb
|
173
|
+
- test/dummy/app/assets/javascripts/application.js
|
174
|
+
- test/dummy/app/assets/stylesheets/application.css
|
175
|
+
- test/dummy/app/controllers/application_controller.rb
|
176
|
+
- test/dummy/app/helpers/application_helper.rb
|
177
|
+
- test/dummy/app/helpers/error_messages_helper.rb
|
178
|
+
- test/dummy/app/helpers/layout_helper.rb
|
179
|
+
- test/dummy/app/views/layouts/application.html.erb
|
180
|
+
- test/dummy/config/application.rb
|
181
|
+
- test/dummy/config/boot.rb
|
182
|
+
- test/dummy/config/database.yml
|
183
|
+
- test/dummy/config/environment.rb
|
184
|
+
- test/dummy/config/environments/development.rb
|
185
|
+
- test/dummy/config/environments/production.rb
|
186
|
+
- test/dummy/config/environments/test.rb
|
187
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
188
|
+
- test/dummy/config/initializers/inflections.rb
|
189
|
+
- test/dummy/config/initializers/mime_types.rb
|
190
|
+
- test/dummy/config/initializers/secret_token.rb
|
191
|
+
- test/dummy/config/initializers/session_store.rb
|
192
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
193
|
+
- test/dummy/config/locales/en.yml
|
194
|
+
- test/dummy/config/routes.rb
|
195
|
+
- test/dummy/config.ru
|
196
|
+
- test/dummy/db/development.sqlite3
|
197
|
+
- test/dummy/db/migrate/20111010112000_create_users.rb
|
198
|
+
- test/dummy/db/schema.rb
|
199
|
+
- test/dummy/db/test.sqlite3
|
200
|
+
- test/dummy/log/development.log
|
201
|
+
- test/dummy/log/test.log
|
202
|
+
- test/dummy/public/404.html
|
203
|
+
- test/dummy/public/422.html
|
204
|
+
- test/dummy/public/500.html
|
205
|
+
- test/dummy/public/assets/products/1/large/image01.jpg
|
206
|
+
- test/dummy/public/assets/products/1/mini/image01.jpg
|
207
|
+
- test/dummy/public/assets/products/1/original/image01.jpg
|
208
|
+
- test/dummy/public/assets/products/1/product/image01.jpg
|
209
|
+
- test/dummy/public/assets/products/1/small/image01.jpg
|
210
|
+
- test/dummy/public/assets/products/2/large/delete.png
|
211
|
+
- test/dummy/public/assets/products/2/mini/delete.png
|
212
|
+
- test/dummy/public/assets/products/2/original/delete.png
|
213
|
+
- test/dummy/public/assets/products/2/product/delete.png
|
214
|
+
- test/dummy/public/assets/products/2/small/delete.png
|
215
|
+
- test/dummy/public/favicon.ico
|
216
|
+
- test/dummy/public/stylesheets/application.css
|
217
|
+
- test/dummy/Rakefile
|
218
|
+
- test/dummy/script/rails
|
219
|
+
- test/dummy/tmp/cache/assets/BF8/2D0/sprockets%2F061365584f62ff829333e404d3566614
|
220
|
+
- test/dummy/tmp/cache/assets/C17/0E0/sprockets%2F976726a8626e66694980f590bc387807
|
221
|
+
- test/dummy/tmp/cache/assets/C4B/B20/sprockets%2F75e3756ba610340b7d9e0501e2738815
|
222
|
+
- test/dummy/tmp/cache/assets/C74/4F0/sprockets%2F2b3933c1c8b63193cbf460019680641c
|
223
|
+
- test/dummy/tmp/cache/assets/C8B/250/sprockets%2F1a17d2874364d2e99677211577ccbd29
|
224
|
+
- test/dummy/tmp/cache/assets/CBA/690/sprockets%2F4b4be759f94f48654023ccf82558c202
|
225
|
+
- test/dummy/tmp/cache/assets/CD1/FA0/sprockets%2F887d02a66c0be114c4d845e0e31b5046
|
226
|
+
- test/dummy/tmp/cache/assets/CDE/2F0/sprockets%2F01f7a04861b8d5c6ff5259b931b513a8
|
227
|
+
- test/dummy/tmp/cache/assets/CDE/990/sprockets%2Fd076ad241795a6dce56456d661c3c540
|
228
|
+
- test/dummy/tmp/cache/assets/CE8/960/sprockets%2F055e1879b589151f8c914fd4d2faa451
|
229
|
+
- test/dummy/tmp/cache/assets/CEA/E30/sprockets%2F3b6e44c89e8821a8ade264ba89536306
|
230
|
+
- test/dummy/tmp/cache/assets/CFB/EC0/sprockets%2F7b68fde8e3e0b2496451649499a339fd
|
231
|
+
- test/dummy/tmp/cache/assets/D0A/650/sprockets%2F3892c73640ba239ad055eb70adc7d376
|
232
|
+
- test/dummy/tmp/cache/assets/D1A/400/sprockets%2F3db3e35d06c8ee7eea759a5561609176
|
233
|
+
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
234
|
+
- test/dummy/tmp/cache/assets/D35/7F0/sprockets%2Fb0bf073fb61c9ab736703d17e7223d7c
|
235
|
+
- test/dummy/tmp/cache/assets/D39/260/sprockets%2F1c93edd8921f9c9dd8f9b391a8576996
|
236
|
+
- test/dummy/tmp/cache/assets/D44/8F0/sprockets%2Fd4882ae3d2b7e5c4a792a962b96d0c53
|
237
|
+
- test/dummy/tmp/cache/assets/D45/380/sprockets%2Fdcec95a29ee086a4283091e0671cee84
|
238
|
+
- test/dummy/tmp/cache/assets/D4F/990/sprockets%2F448cea593d65f06453fd58c813be85ec
|
239
|
+
- test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
|
240
|
+
- test/dummy/tmp/cache/assets/D5C/B80/sprockets%2F25fb254ba6af4c046abe0d457470b6b4
|
241
|
+
- test/dummy/tmp/cache/assets/D5F/B70/sprockets%2F7df07cffaafc819374564f89a9779d33
|
242
|
+
- test/dummy/tmp/cache/assets/D6A/A80/sprockets%2F65d4f0c9709bb65e6f0d20c4d33f6bd0
|
243
|
+
- test/dummy/tmp/cache/assets/D7D/470/sprockets%2Fc4f8c42e5a8d6a013a72e1e4dee99879
|
244
|
+
- test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
|
245
|
+
- test/dummy/tmp/cache/assets/D90/570/sprockets%2Fc28a3557e8dc87e9666afd75e7a578fa
|
246
|
+
- test/dummy/tmp/cache/assets/D9F/AA0/sprockets%2F5faefd4c3b0d325d6046fc76bc634f93
|
247
|
+
- test/dummy/tmp/cache/assets/DA9/CA0/sprockets%2F65298b70d60c89a7fc08cea4dee62f2d
|
248
|
+
- test/dummy/tmp/cache/assets/DE4/230/sprockets%2F2edbb30dab2c30af6660456f54aca6cb
|
249
|
+
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
250
|
+
- test/dummy/tmp/cache/assets/E06/600/sprockets%2Fe4ef2dbc6691ad7f906b8cbca636e45d
|
251
|
+
- test/dummy/tmp/cache/assets/E23/5C0/sprockets%2Ffdb40ef1a5e8bbeda0c5732a545cc8f3
|
252
|
+
- test/dummy/tmp/cache/assets/E36/A40/sprockets%2Fbb57cff6dedd610b280b8fbfd9285b5f
|
253
|
+
- test/factories/answers.rb
|
254
|
+
- test/factories/questionnaires.rb
|
255
|
+
- test/factories/questions.rb
|
256
|
+
- test/factories/scores.rb
|
257
|
+
- test/factories/survey_images.rb
|
258
|
+
- test/factories/survey_properties.rb
|
259
|
+
- test/factories/user_answers.rb
|
260
|
+
- test/factories/users.rb
|
261
|
+
- test/fixtures/answers.yml
|
262
|
+
- test/fixtures/questionnaires.yml
|
263
|
+
- test/fixtures/questions.yml
|
264
|
+
- test/fixtures/scores.yml
|
265
|
+
- test/fixtures/survey_images.yml
|
266
|
+
- test/fixtures/survey_properties.yml
|
267
|
+
- test/fixtures/user_answers.yml
|
268
|
+
- test/functional/survey_admin/answers_controller_test.rb
|
269
|
+
- test/functional/survey_admin/questionnaires_controller_test.rb
|
270
|
+
- test/functional/survey_admin/questions_controller_test.rb
|
271
|
+
- test/functional/survey_admin/survey_properties_controller_test.rb
|
272
|
+
- test/integration/navigation_test.rb
|
273
|
+
- test/survey_says_test.rb
|
274
|
+
- test/test_helper.rb
|
275
|
+
- test/unit/answer_test.rb
|
276
|
+
- test/unit/question_test.rb
|
277
|
+
- test/unit/questionaire_test.rb
|
278
|
+
- test/unit/score_test.rb
|
279
|
+
- test/unit/survey_image_test.rb
|
280
|
+
- test/unit/survey_property_test.rb
|
281
|
+
- test/unit/user_answer_test.rb
|
282
|
+
has_rdoc: true
|
283
|
+
homepage: http://www.ror-e.com
|
284
|
+
licenses: []
|
285
|
+
|
286
|
+
post_install_message:
|
287
|
+
rdoc_options: []
|
288
|
+
|
289
|
+
require_paths:
|
290
|
+
- lib
|
291
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
292
|
+
none: false
|
293
|
+
requirements:
|
294
|
+
- - ">="
|
295
|
+
- !ruby/object:Gem::Version
|
296
|
+
version: "0"
|
297
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
298
|
+
none: false
|
299
|
+
requirements:
|
300
|
+
- - ">="
|
301
|
+
- !ruby/object:Gem::Version
|
302
|
+
version: "0"
|
303
|
+
requirements: []
|
304
|
+
|
305
|
+
rubyforge_project:
|
306
|
+
rubygems_version: 1.6.2
|
307
|
+
signing_key:
|
308
|
+
specification_version: 3
|
309
|
+
summary: This is a plugin that allows you to create a questionaire with custom scores.
|
310
|
+
test_files:
|
311
|
+
- test/acts_as_survey_test.rb
|
312
|
+
- test/dummy/app/assets/javascripts/application.js
|
313
|
+
- test/dummy/app/assets/stylesheets/application.css
|
314
|
+
- test/dummy/app/controllers/application_controller.rb
|
315
|
+
- test/dummy/app/helpers/application_helper.rb
|
316
|
+
- test/dummy/app/helpers/error_messages_helper.rb
|
317
|
+
- test/dummy/app/helpers/layout_helper.rb
|
318
|
+
- test/dummy/app/views/layouts/application.html.erb
|
319
|
+
- test/dummy/config/application.rb
|
320
|
+
- test/dummy/config/boot.rb
|
321
|
+
- test/dummy/config/database.yml
|
322
|
+
- test/dummy/config/environment.rb
|
323
|
+
- test/dummy/config/environments/development.rb
|
324
|
+
- test/dummy/config/environments/production.rb
|
325
|
+
- test/dummy/config/environments/test.rb
|
326
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
327
|
+
- test/dummy/config/initializers/inflections.rb
|
328
|
+
- test/dummy/config/initializers/mime_types.rb
|
329
|
+
- test/dummy/config/initializers/secret_token.rb
|
330
|
+
- test/dummy/config/initializers/session_store.rb
|
331
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
332
|
+
- test/dummy/config/locales/en.yml
|
333
|
+
- test/dummy/config/routes.rb
|
334
|
+
- test/dummy/config.ru
|
335
|
+
- test/dummy/db/development.sqlite3
|
336
|
+
- test/dummy/db/migrate/20111010112000_create_users.rb
|
337
|
+
- test/dummy/db/schema.rb
|
338
|
+
- test/dummy/db/test.sqlite3
|
339
|
+
- test/dummy/log/development.log
|
340
|
+
- test/dummy/log/test.log
|
341
|
+
- test/dummy/public/404.html
|
342
|
+
- test/dummy/public/422.html
|
343
|
+
- test/dummy/public/500.html
|
344
|
+
- test/dummy/public/assets/products/1/large/image01.jpg
|
345
|
+
- test/dummy/public/assets/products/1/mini/image01.jpg
|
346
|
+
- test/dummy/public/assets/products/1/original/image01.jpg
|
347
|
+
- test/dummy/public/assets/products/1/product/image01.jpg
|
348
|
+
- test/dummy/public/assets/products/1/small/image01.jpg
|
349
|
+
- test/dummy/public/assets/products/2/large/delete.png
|
350
|
+
- test/dummy/public/assets/products/2/mini/delete.png
|
351
|
+
- test/dummy/public/assets/products/2/original/delete.png
|
352
|
+
- test/dummy/public/assets/products/2/product/delete.png
|
353
|
+
- test/dummy/public/assets/products/2/small/delete.png
|
354
|
+
- test/dummy/public/favicon.ico
|
355
|
+
- test/dummy/public/stylesheets/application.css
|
356
|
+
- test/dummy/Rakefile
|
357
|
+
- test/dummy/script/rails
|
358
|
+
- test/dummy/tmp/cache/assets/BF8/2D0/sprockets%2F061365584f62ff829333e404d3566614
|
359
|
+
- test/dummy/tmp/cache/assets/C17/0E0/sprockets%2F976726a8626e66694980f590bc387807
|
360
|
+
- test/dummy/tmp/cache/assets/C4B/B20/sprockets%2F75e3756ba610340b7d9e0501e2738815
|
361
|
+
- test/dummy/tmp/cache/assets/C74/4F0/sprockets%2F2b3933c1c8b63193cbf460019680641c
|
362
|
+
- test/dummy/tmp/cache/assets/C8B/250/sprockets%2F1a17d2874364d2e99677211577ccbd29
|
363
|
+
- test/dummy/tmp/cache/assets/CBA/690/sprockets%2F4b4be759f94f48654023ccf82558c202
|
364
|
+
- test/dummy/tmp/cache/assets/CD1/FA0/sprockets%2F887d02a66c0be114c4d845e0e31b5046
|
365
|
+
- test/dummy/tmp/cache/assets/CDE/2F0/sprockets%2F01f7a04861b8d5c6ff5259b931b513a8
|
366
|
+
- test/dummy/tmp/cache/assets/CDE/990/sprockets%2Fd076ad241795a6dce56456d661c3c540
|
367
|
+
- test/dummy/tmp/cache/assets/CE8/960/sprockets%2F055e1879b589151f8c914fd4d2faa451
|
368
|
+
- test/dummy/tmp/cache/assets/CEA/E30/sprockets%2F3b6e44c89e8821a8ade264ba89536306
|
369
|
+
- test/dummy/tmp/cache/assets/CFB/EC0/sprockets%2F7b68fde8e3e0b2496451649499a339fd
|
370
|
+
- test/dummy/tmp/cache/assets/D0A/650/sprockets%2F3892c73640ba239ad055eb70adc7d376
|
371
|
+
- test/dummy/tmp/cache/assets/D1A/400/sprockets%2F3db3e35d06c8ee7eea759a5561609176
|
372
|
+
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
373
|
+
- test/dummy/tmp/cache/assets/D35/7F0/sprockets%2Fb0bf073fb61c9ab736703d17e7223d7c
|
374
|
+
- test/dummy/tmp/cache/assets/D39/260/sprockets%2F1c93edd8921f9c9dd8f9b391a8576996
|
375
|
+
- test/dummy/tmp/cache/assets/D44/8F0/sprockets%2Fd4882ae3d2b7e5c4a792a962b96d0c53
|
376
|
+
- test/dummy/tmp/cache/assets/D45/380/sprockets%2Fdcec95a29ee086a4283091e0671cee84
|
377
|
+
- test/dummy/tmp/cache/assets/D4F/990/sprockets%2F448cea593d65f06453fd58c813be85ec
|
378
|
+
- test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
|
379
|
+
- test/dummy/tmp/cache/assets/D5C/B80/sprockets%2F25fb254ba6af4c046abe0d457470b6b4
|
380
|
+
- test/dummy/tmp/cache/assets/D5F/B70/sprockets%2F7df07cffaafc819374564f89a9779d33
|
381
|
+
- test/dummy/tmp/cache/assets/D6A/A80/sprockets%2F65d4f0c9709bb65e6f0d20c4d33f6bd0
|
382
|
+
- test/dummy/tmp/cache/assets/D7D/470/sprockets%2Fc4f8c42e5a8d6a013a72e1e4dee99879
|
383
|
+
- test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
|
384
|
+
- test/dummy/tmp/cache/assets/D90/570/sprockets%2Fc28a3557e8dc87e9666afd75e7a578fa
|
385
|
+
- test/dummy/tmp/cache/assets/D9F/AA0/sprockets%2F5faefd4c3b0d325d6046fc76bc634f93
|
386
|
+
- test/dummy/tmp/cache/assets/DA9/CA0/sprockets%2F65298b70d60c89a7fc08cea4dee62f2d
|
387
|
+
- test/dummy/tmp/cache/assets/DE4/230/sprockets%2F2edbb30dab2c30af6660456f54aca6cb
|
388
|
+
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
389
|
+
- test/dummy/tmp/cache/assets/E06/600/sprockets%2Fe4ef2dbc6691ad7f906b8cbca636e45d
|
390
|
+
- test/dummy/tmp/cache/assets/E23/5C0/sprockets%2Ffdb40ef1a5e8bbeda0c5732a545cc8f3
|
391
|
+
- test/dummy/tmp/cache/assets/E36/A40/sprockets%2Fbb57cff6dedd610b280b8fbfd9285b5f
|
392
|
+
- test/factories/answers.rb
|
393
|
+
- test/factories/questionnaires.rb
|
394
|
+
- test/factories/questions.rb
|
395
|
+
- test/factories/scores.rb
|
396
|
+
- test/factories/survey_images.rb
|
397
|
+
- test/factories/survey_properties.rb
|
398
|
+
- test/factories/user_answers.rb
|
399
|
+
- test/factories/users.rb
|
400
|
+
- test/fixtures/answers.yml
|
401
|
+
- test/fixtures/questionnaires.yml
|
402
|
+
- test/fixtures/questions.yml
|
403
|
+
- test/fixtures/scores.yml
|
404
|
+
- test/fixtures/survey_images.yml
|
405
|
+
- test/fixtures/survey_properties.yml
|
406
|
+
- test/fixtures/user_answers.yml
|
407
|
+
- test/functional/survey_admin/answers_controller_test.rb
|
408
|
+
- test/functional/survey_admin/questionnaires_controller_test.rb
|
409
|
+
- test/functional/survey_admin/questions_controller_test.rb
|
410
|
+
- test/functional/survey_admin/survey_properties_controller_test.rb
|
411
|
+
- test/integration/navigation_test.rb
|
412
|
+
- test/survey_says_test.rb
|
413
|
+
- test/test_helper.rb
|
414
|
+
- test/unit/answer_test.rb
|
415
|
+
- test/unit/question_test.rb
|
416
|
+
- test/unit/questionaire_test.rb
|
417
|
+
- test/unit/score_test.rb
|
418
|
+
- test/unit/survey_image_test.rb
|
419
|
+
- test/unit/survey_property_test.rb
|
420
|
+
- test/unit/user_answer_test.rb
|