survey_says 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +13 -11
- data/app/views/layouts/survey_admin.html.erb +1 -1
- data/lib/survey_says/version.rb +1 -1
- data/test/dummy/app/models/user.rb +12 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +13 -8
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +253 -0
- data/test/factories/questions.rb +1 -1
- data/test/factories/survey_images.rb +3 -3
- data/test/functional/survey_admin/answers_controller_test.rb +3 -2
- data/test/functional/survey_admin/questions_controller_test.rb +4 -4
- data/test/functional/survey_admin/survey_properties_controller_test.rb +4 -4
- metadata +5 -6
- data/db/development.sqlite3 +0 -0
data/README.rdoc
CHANGED
@@ -11,13 +11,15 @@ The goal is to allow the questionnaire to be:
|
|
11
11
|
|
12
12
|
= Install
|
13
13
|
|
14
|
-
gem 'survey_says', :git => 'git://github.com
|
14
|
+
gem 'survey_says', :git => 'git://github.com/drhenner/survey_says.git'
|
15
15
|
|
16
16
|
move assets into your app
|
17
|
-
|
17
|
+
|
18
|
+
rails generate survey_says
|
18
19
|
|
19
20
|
move models into your app
|
20
|
-
|
21
|
+
|
22
|
+
rails generate survey_models
|
21
23
|
|
22
24
|
--------
|
23
25
|
|
@@ -25,7 +27,7 @@ add PAPERCLIP_STORAGE_OPTS to environments/*.rb
|
|
25
27
|
|
26
28
|
for example:
|
27
29
|
|
28
|
-
PAPERCLIP_STORAGE_OPTS = { :styles => {:mini => '48x48>',
|
30
|
+
PAPERCLIP_STORAGE_OPTS = { :styles => {:mini => '48x48>',
|
29
31
|
:small => '100x100>',
|
30
32
|
:product => '320x320>',
|
31
33
|
:large => '600x600>' },
|
@@ -36,18 +38,18 @@ PAPERCLIP_STORAGE_OPTS = { :styles => {:mini => '48x48>',
|
|
36
38
|
Edit the user.rb in your app:
|
37
39
|
|
38
40
|
|
39
|
-
has_many :user_answers
|
40
|
-
has_many :answers, :through => :user_answers
|
41
|
+
has_many :user_answers
|
42
|
+
has_many :answers, :through => :user_answers
|
41
43
|
|
42
|
-
acts_as_survey_says
|
44
|
+
acts_as_survey_says
|
43
45
|
|
44
|
-
def survey_admin?
|
45
|
-
|
46
|
-
end
|
46
|
+
def survey_admin?
|
47
|
+
true # add code here... return true for users that can add/edit the survey information
|
48
|
+
end
|
47
49
|
|
48
50
|
--------
|
49
51
|
|
50
|
-
bundle exec rake
|
52
|
+
bundle exec rake survey_says_engine:install:migrations
|
51
53
|
|
52
54
|
= Contribute
|
53
55
|
|
@@ -20,7 +20,7 @@
|
|
20
20
|
<ul style='padding:10px;'>
|
21
21
|
<li style='margin-bottom:10px;'><%= link_to "Questionnaires", survey_admin_questionnaires_path() %></li>
|
22
22
|
<li style='margin-bottom:10px;'><%= link_to "Questions", survey_admin_questions_path() %></li>
|
23
|
-
<% if @question.try(:id)
|
23
|
+
<% if @question.try(:id) %>
|
24
24
|
<li style='margin-bottom:10px;'>
|
25
25
|
<%= link_to "Answers", survey_admin_question_answers_path(@question) %>
|
26
26
|
</li>
|
data/lib/survey_says/version.rb
CHANGED
Binary file
|
data/test/dummy/db/schema.rb
CHANGED
@@ -14,14 +14,16 @@
|
|
14
14
|
ActiveRecord::Schema.define(:version => 20111213185612) do
|
15
15
|
|
16
16
|
create_table "answers", :force => true do |t|
|
17
|
-
t.integer "question_id"
|
17
|
+
t.integer "question_id", :null => false
|
18
18
|
t.text "details"
|
19
|
-
t.boolean "active"
|
19
|
+
t.boolean "active", :default => true
|
20
20
|
t.integer "position"
|
21
21
|
t.datetime "created_at"
|
22
22
|
t.datetime "updated_at"
|
23
23
|
end
|
24
24
|
|
25
|
+
add_index "answers", ["question_id"], :name => "index_answers_on_question_id"
|
26
|
+
|
25
27
|
create_table "questionnaires", :force => true do |t|
|
26
28
|
t.string "name", :null => false
|
27
29
|
end
|
@@ -29,8 +31,8 @@ ActiveRecord::Schema.define(:version => 20111213185612) do
|
|
29
31
|
add_index "questionnaires", ["name"], :name => "index_questionnaires_on_name"
|
30
32
|
|
31
33
|
create_table "questions", :force => true do |t|
|
32
|
-
t.text "details"
|
33
|
-
t.boolean "active"
|
34
|
+
t.text "details", :null => false
|
35
|
+
t.boolean "active", :default => true
|
34
36
|
t.integer "position"
|
35
37
|
t.datetime "created_at"
|
36
38
|
t.datetime "updated_at"
|
@@ -40,13 +42,16 @@ ActiveRecord::Schema.define(:version => 20111213185612) do
|
|
40
42
|
add_index "questions", ["questionnaire_id"], :name => "index_questions_on_questionnaire_id"
|
41
43
|
|
42
44
|
create_table "scores", :force => true do |t|
|
43
|
-
t.integer "answer_id"
|
44
|
-
t.integer "survey_property_id"
|
45
|
-
t.integer "value"
|
45
|
+
t.integer "answer_id", :null => false
|
46
|
+
t.integer "survey_property_id", :null => false
|
47
|
+
t.integer "value", :null => false
|
46
48
|
t.datetime "created_at"
|
47
49
|
t.datetime "updated_at"
|
48
50
|
end
|
49
51
|
|
52
|
+
add_index "scores", ["answer_id"], :name => "index_scores_on_answer_id"
|
53
|
+
add_index "scores", ["survey_property_id"], :name => "index_scores_on_survey_property_id"
|
54
|
+
|
50
55
|
create_table "survey_images", :force => true do |t|
|
51
56
|
t.integer "imageable_id"
|
52
57
|
t.string "imageable_type"
|
@@ -60,7 +65,7 @@ ActiveRecord::Schema.define(:version => 20111213185612) do
|
|
60
65
|
end
|
61
66
|
|
62
67
|
create_table "survey_properties", :force => true do |t|
|
63
|
-
t.string "name"
|
68
|
+
t.string "name", :null => false
|
64
69
|
t.datetime "created_at"
|
65
70
|
t.datetime "updated_at"
|
66
71
|
end
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -11106,3 +11106,256 @@ Served asset /survey_says.js - 200 OK (0ms)
|
|
11106
11106
|
|
11107
11107
|
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-12-14 03:53:30 -0500
|
11108
11108
|
Served asset /jquery.js - 304 Not Modified (2ms)
|
11109
|
+
[1m[36m (0.5ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
11110
|
+
Migrating to CreateUsers (20111010112000)
|
11111
|
+
Migrating to CreateQuestions (20111208181247)
|
11112
|
+
Migrating to CreateAnswers (20111208181414)
|
11113
|
+
Migrating to CreateSurveyProperties (20111208181429)
|
11114
|
+
Migrating to CreateScores (20111208181449)
|
11115
|
+
Migrating to CreateUserAnswers (20111211175518)
|
11116
|
+
Migrating to CreateQuestionnaires (20111211175604)
|
11117
|
+
Migrating to AddQuestionaireIdToQuestions (20111211180011)
|
11118
|
+
Migrating to CreateSurveyImages (20111213185612)
|
11119
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
11120
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
11121
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("answers")
|
11122
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("questionnaires")[0m
|
11123
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_questionnaires_on_name')
|
11124
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("questions")[0m
|
11125
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_questions_on_questionnaire_id')
|
11126
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("scores")[0m
|
11127
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("survey_images")
|
11128
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("survey_properties")[0m
|
11129
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("user_answers")
|
11130
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_user_answers_on_answer_id')[0m
|
11131
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_user_answers_on_user_id')
|
11132
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
11133
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
11134
|
+
Migrating to CreateUsers (20111010112000)
|
11135
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
11136
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
11137
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("answers")
|
11138
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("questionnaires")[0m
|
11139
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_questionnaires_on_name')
|
11140
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("questions")[0m
|
11141
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_questions_on_questionnaire_id')
|
11142
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("scores")[0m
|
11143
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("survey_images")
|
11144
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("survey_properties")[0m
|
11145
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("user_answers")
|
11146
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_user_answers_on_answer_id')[0m
|
11147
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_user_answers_on_user_id')
|
11148
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
11149
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
11150
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
11151
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "details" text, "active" boolean, "position" integer, "created_at" datetime, "updated_at" datetime) [0m
|
11152
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)
|
11153
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("questionnaires")[0m
|
11154
|
+
[1m[35m (1.1ms)[0m CREATE INDEX "index_questionnaires_on_name" ON "questionnaires" ("name")
|
11155
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "details" text, "active" boolean, "position" integer, "created_at" datetime, "updated_at" datetime, "questionnaire_id" integer) [0m
|
11156
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("questions")
|
11157
|
+
[1m[36m (1.1ms)[0m [1mCREATE INDEX "index_questions_on_questionnaire_id" ON "questions" ("questionnaire_id")[0m
|
11158
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "scores" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "answer_id" integer, "survey_property_id" integer, "value" integer, "created_at" datetime, "updated_at" datetime)
|
11159
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "survey_images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "imageable_id" integer, "imageable_type" varchar(255), "position" integer, "photo_file_name" varchar(255), "photo_content_type" varchar(255), "photo_file_size" integer, "caption" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
11160
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "survey_properties" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11161
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "user_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "answer_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
11162
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("user_answers")
|
11163
|
+
[1m[36m (1.0ms)[0m [1mCREATE INDEX "index_user_answers_on_answer_id" ON "user_answers" ("answer_id")[0m
|
11164
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("user_answers")
|
11165
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_user_answers_on_answer_id')[0m
|
11166
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_user_answers_on_user_id" ON "user_answers" ("user_id")
|
11167
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
11168
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
11169
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
11170
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
11171
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
11172
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111213185612')
|
11173
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111010112000')[0m
|
11174
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
11175
|
+
Migrating to CreateUsers (20111010112000)
|
11176
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
11177
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
11178
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("answers")
|
11179
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("questionnaires")[0m
|
11180
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_questionnaires_on_name')
|
11181
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("questions")[0m
|
11182
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_questions_on_questionnaire_id')
|
11183
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("scores")[0m
|
11184
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("survey_images")
|
11185
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("survey_properties")[0m
|
11186
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("user_answers")
|
11187
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_user_answers_on_answer_id')[0m
|
11188
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_user_answers_on_user_id')
|
11189
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
11190
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
11191
|
+
Migrating to CreateUsers (20111010112000)
|
11192
|
+
Migrating to CreateQuestions (20111208181247)
|
11193
|
+
Migrating to CreateAnswers (20111208181414)
|
11194
|
+
Migrating to CreateSurveyProperties (20111208181429)
|
11195
|
+
Migrating to CreateScores (20111208181449)
|
11196
|
+
Migrating to CreateUserAnswers (20111211175518)
|
11197
|
+
Migrating to CreateQuestionnaires (20111211175604)
|
11198
|
+
Migrating to AddQuestionaireIdToQuestions (20111211180011)
|
11199
|
+
Migrating to CreateSurveyImages (20111213185612)
|
11200
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
11201
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
11202
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("answers")
|
11203
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("questionnaires")[0m
|
11204
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_questionnaires_on_name')
|
11205
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("questions")[0m
|
11206
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_questions_on_questionnaire_id')
|
11207
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("scores")[0m
|
11208
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("survey_images")
|
11209
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("survey_properties")[0m
|
11210
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("user_answers")
|
11211
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_user_answers_on_answer_id')[0m
|
11212
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_user_answers_on_user_id')
|
11213
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("users")[0m
|
11214
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
11215
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
11216
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
11217
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
11218
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
11219
|
+
Migrating to CreateUsers (20111010112000)
|
11220
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
|
11221
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20111010112000')[0m
|
11222
|
+
Migrating to CreateQuestions (20111208181247)
|
11223
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "details" text NOT NULL, "active" boolean DEFAULT 't', "position" integer, "created_at" datetime, "updated_at" datetime)
|
11224
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20111208181247')[0m
|
11225
|
+
Migrating to CreateAnswers (20111208181414)
|
11226
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer NOT NULL, "details" text, "active" boolean DEFAULT 't', "position" integer, "created_at" datetime, "updated_at" datetime)
|
11227
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("answers")[0m
|
11228
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_answers_on_question_id" ON "answers" ("question_id")
|
11229
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20111208181414')[0m
|
11230
|
+
Migrating to CreateSurveyProperties (20111208181429)
|
11231
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "survey_properties" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "created_at" datetime, "updated_at" datetime)
|
11232
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20111208181429')[0m
|
11233
|
+
Migrating to CreateScores (20111208181449)
|
11234
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "scores" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "answer_id" integer NOT NULL, "survey_property_id" integer NOT NULL, "value" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
|
11235
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("scores")[0m
|
11236
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_scores_on_answer_id" ON "scores" ("answer_id")
|
11237
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("scores")[0m
|
11238
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_scores_on_answer_id')
|
11239
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_scores_on_survey_property_id" ON "scores" ("survey_property_id")[0m
|
11240
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20111208181449')
|
11241
|
+
Migrating to CreateUserAnswers (20111211175518)
|
11242
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "user_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "answer_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
11243
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("user_answers")
|
11244
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_user_answers_on_user_id" ON "user_answers" ("user_id")[0m
|
11245
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("user_answers")
|
11246
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_user_answers_on_user_id')[0m
|
11247
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_user_answers_on_answer_id" ON "user_answers" ("answer_id")
|
11248
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20111211175518')[0m
|
11249
|
+
Migrating to CreateQuestionnaires (20111211175604)
|
11250
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)
|
11251
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("questionnaires")[0m
|
11252
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_questionnaires_on_name" ON "questionnaires" ("name")
|
11253
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20111211175604')[0m
|
11254
|
+
Migrating to AddQuestionaireIdToQuestions (20111211180011)
|
11255
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "questions" ADD "questionnaire_id" integer
|
11256
|
+
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("questions")[0m
|
11257
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_questions_on_questionnaire_id" ON "questions" ("questionnaire_id")
|
11258
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20111211180011')[0m
|
11259
|
+
Migrating to CreateSurveyImages (20111213185612)
|
11260
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "survey_images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "imageable_id" integer, "imageable_type" varchar(255), "position" integer, "photo_file_name" varchar(255), "photo_content_type" varchar(255), "photo_file_size" integer, "caption" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11261
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20111213185612')[0m
|
11262
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
11263
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
11264
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("answers")
|
11265
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_answers_on_question_id')[0m
|
11266
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("questionnaires")
|
11267
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_questionnaires_on_name')[0m
|
11268
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("questions")
|
11269
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_questions_on_questionnaire_id')[0m
|
11270
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("scores")
|
11271
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_scores_on_survey_property_id')[0m
|
11272
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_scores_on_answer_id')
|
11273
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("survey_images")[0m
|
11274
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("survey_properties")
|
11275
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("user_answers")[0m
|
11276
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_user_answers_on_answer_id')
|
11277
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_user_answers_on_user_id')[0m
|
11278
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
11279
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
11280
|
+
Migrating to CreateUsers (20111010112000)
|
11281
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
11282
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
11283
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("answers")
|
11284
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_answers_on_question_id')[0m
|
11285
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("questionnaires")
|
11286
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_questionnaires_on_name')[0m
|
11287
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("questions")
|
11288
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_questions_on_questionnaire_id')[0m
|
11289
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("scores")
|
11290
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_scores_on_survey_property_id')[0m
|
11291
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_scores_on_answer_id')
|
11292
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("survey_images")[0m
|
11293
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("survey_properties")
|
11294
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("user_answers")[0m
|
11295
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_user_answers_on_answer_id')
|
11296
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_user_answers_on_user_id')[0m
|
11297
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
11298
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
11299
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
11300
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer NOT NULL, "details" text, "active" boolean DEFAULT 't', "position" integer, "created_at" datetime, "updated_at" datetime) [0m
|
11301
|
+
[1m[35m (0.1ms)[0m PRAGMA index_list("answers")
|
11302
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_answers_on_question_id" ON "answers" ("question_id")[0m
|
11303
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)
|
11304
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("questionnaires")[0m
|
11305
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "index_questionnaires_on_name" ON "questionnaires" ("name")
|
11306
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "details" text NOT NULL, "active" boolean DEFAULT 't', "position" integer, "created_at" datetime, "updated_at" datetime, "questionnaire_id" integer) [0m
|
11307
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("questions")
|
11308
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_questions_on_questionnaire_id" ON "questions" ("questionnaire_id")[0m
|
11309
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "scores" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "answer_id" integer NOT NULL, "survey_property_id" integer NOT NULL, "value" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
|
11310
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("scores")[0m
|
11311
|
+
[1m[35m (0.7ms)[0m CREATE INDEX "index_scores_on_answer_id" ON "scores" ("answer_id")
|
11312
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("scores")[0m
|
11313
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_scores_on_answer_id')
|
11314
|
+
[1m[36m (0.6ms)[0m [1mCREATE INDEX "index_scores_on_survey_property_id" ON "scores" ("survey_property_id")[0m
|
11315
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "survey_images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "imageable_id" integer, "imageable_type" varchar(255), "position" integer, "photo_file_name" varchar(255), "photo_content_type" varchar(255), "photo_file_size" integer, "caption" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11316
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "survey_properties" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
11317
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "user_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "answer_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
|
11318
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("user_answers")[0m
|
11319
|
+
[1m[35m (0.7ms)[0m CREATE INDEX "index_user_answers_on_answer_id" ON "user_answers" ("answer_id")
|
11320
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("user_answers")[0m
|
11321
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_user_answers_on_answer_id')
|
11322
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_user_answers_on_user_id" ON "user_answers" ("user_id")[0m
|
11323
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
|
11324
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
11325
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("schema_migrations")
|
11326
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
11327
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
11328
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111213185612')[0m
|
11329
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111010112000')
|
11330
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
11331
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
11332
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer NOT NULL, "details" text, "active" boolean DEFAULT 't', "position" integer, "created_at" datetime, "updated_at" datetime) [0m
|
11333
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("answers")
|
11334
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_answers_on_question_id" ON "answers" ("question_id")[0m
|
11335
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)
|
11336
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("questionnaires")[0m
|
11337
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "index_questionnaires_on_name" ON "questionnaires" ("name")
|
11338
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "details" text NOT NULL, "active" boolean DEFAULT 't', "position" integer, "created_at" datetime, "updated_at" datetime, "questionnaire_id" integer) [0m
|
11339
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("questions")
|
11340
|
+
[1m[36m (1.0ms)[0m [1mCREATE INDEX "index_questions_on_questionnaire_id" ON "questions" ("questionnaire_id")[0m
|
11341
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "scores" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "answer_id" integer NOT NULL, "survey_property_id" integer NOT NULL, "value" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
|
11342
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("scores")[0m
|
11343
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_scores_on_answer_id" ON "scores" ("answer_id")
|
11344
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("scores")[0m
|
11345
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_scores_on_answer_id')
|
11346
|
+
[1m[36m (1.2ms)[0m [1mCREATE INDEX "index_scores_on_survey_property_id" ON "scores" ("survey_property_id")[0m
|
11347
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "survey_images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "imageable_id" integer, "imageable_type" varchar(255), "position" integer, "photo_file_name" varchar(255), "photo_content_type" varchar(255), "photo_file_size" integer, "caption" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11348
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "survey_properties" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
11349
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "user_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "answer_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
|
11350
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("user_answers")[0m
|
11351
|
+
[1m[35m (0.7ms)[0m CREATE INDEX "index_user_answers_on_answer_id" ON "user_answers" ("answer_id")
|
11352
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("user_answers")[0m
|
11353
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_user_answers_on_answer_id')
|
11354
|
+
[1m[36m (1.0ms)[0m [1mCREATE INDEX "index_user_answers_on_user_id" ON "user_answers" ("user_id")[0m
|
11355
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
|
11356
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
11357
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("schema_migrations")
|
11358
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
11359
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
11360
|
+
[1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20111213185612')[0m
|
11361
|
+
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20111010112000')
|
data/test/factories/questions.rb
CHANGED
@@ -3,7 +3,7 @@ Factory.define :survey_image do |s|
|
|
3
3
|
s.imageable { |c| c.association(:answer) }
|
4
4
|
s.position 1
|
5
5
|
s.photo_file_name 'My-file-name'
|
6
|
-
s.photo_content_type
|
7
|
-
s.photo_file_size
|
8
|
-
s.caption
|
6
|
+
s.photo_content_type 'image/jpeg'
|
7
|
+
s.photo_file_size 1
|
8
|
+
s.caption 'My caption... '
|
9
9
|
end
|
@@ -46,7 +46,8 @@ class SurveyAdmin::AnswersControllerTest < ActionController::TestCase
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def test_update_invalid
|
49
|
-
@question =
|
49
|
+
@question = FactoryGirl.create(:question)
|
50
|
+
puts @question.inspect
|
50
51
|
@answer = Factory(:answer, :question => @question)
|
51
52
|
Answer.any_instance.stubs(:valid?).returns(false)
|
52
53
|
put :update, :id => @answer.id, :question_id => @question.id
|
@@ -54,7 +55,7 @@ class SurveyAdmin::AnswersControllerTest < ActionController::TestCase
|
|
54
55
|
end
|
55
56
|
|
56
57
|
def test_update_valid
|
57
|
-
@question =
|
58
|
+
@question = FactoryGirl.create(:question)
|
58
59
|
@answer = Factory(:answer, :question => @question)
|
59
60
|
Answer.any_instance.stubs(:valid?).returns(true)
|
60
61
|
put :update, :id => @answer.id, :question_id => @question.id
|
@@ -21,13 +21,13 @@ class SurveyAdmin::QuestionsControllerTest < ActionController::TestCase
|
|
21
21
|
|
22
22
|
def test_create_invalid
|
23
23
|
Question.any_instance.stubs(:valid?).returns(false)
|
24
|
-
post :create
|
24
|
+
post :create, :question => {:details => 'hello'}
|
25
25
|
assert_template 'new'
|
26
26
|
end
|
27
27
|
|
28
28
|
def test_create_valid
|
29
29
|
Question.any_instance.stubs(:valid?).returns(true)
|
30
|
-
post :create
|
30
|
+
post :create, :question => {:details => 'hello'}
|
31
31
|
assert_redirected_to survey_admin_question_answers_url(assigns(:question))
|
32
32
|
end
|
33
33
|
|
@@ -40,14 +40,14 @@ class SurveyAdmin::QuestionsControllerTest < ActionController::TestCase
|
|
40
40
|
def test_update_invalid
|
41
41
|
question = Factory(:question)
|
42
42
|
Question.any_instance.stubs(:valid?).returns(false)
|
43
|
-
put :update, :id => question.id
|
43
|
+
put :update, :id => question.id, :question => {:details => 'hello'}
|
44
44
|
assert_template 'edit'
|
45
45
|
end
|
46
46
|
|
47
47
|
def test_update_valid
|
48
48
|
question = Factory(:question)
|
49
49
|
Question.any_instance.stubs(:valid?).returns(true)
|
50
|
-
put :update, :id => question.id
|
50
|
+
put :update, :id => question.id, :question => {:details => 'hello'}
|
51
51
|
assert_redirected_to survey_admin_question_answers_url(assigns(:question))
|
52
52
|
end
|
53
53
|
|
@@ -20,13 +20,13 @@ class SurveyAdmin::SurveyPropertiesControllerTest < ActionController::TestCase
|
|
20
20
|
|
21
21
|
def test_create_invalid
|
22
22
|
SurveyProperty.any_instance.stubs(:valid?).returns(false)
|
23
|
-
post :create
|
23
|
+
post :create, :survey_property => {:name => 'hello'}
|
24
24
|
assert_template 'new'
|
25
25
|
end
|
26
26
|
|
27
27
|
def test_create_valid
|
28
28
|
SurveyProperty.any_instance.stubs(:valid?).returns(true)
|
29
|
-
post :create
|
29
|
+
post :create, :survey_property => {:name => 'hello'}
|
30
30
|
assert_redirected_to survey_admin_survey_property_url(assigns(:survey_property))
|
31
31
|
end
|
32
32
|
|
@@ -39,14 +39,14 @@ class SurveyAdmin::SurveyPropertiesControllerTest < ActionController::TestCase
|
|
39
39
|
def test_update_invalid
|
40
40
|
@survey_property = Factory(:survey_property)
|
41
41
|
SurveyProperty.any_instance.stubs(:valid?).returns(false)
|
42
|
-
put :update, :id => @survey_property.id
|
42
|
+
put :update, :id => @survey_property.id, :survey_property => {:name => 'hello'}
|
43
43
|
assert_template 'edit'
|
44
44
|
end
|
45
45
|
|
46
46
|
def test_update_valid
|
47
47
|
@survey_property = Factory(:survey_property)
|
48
48
|
SurveyProperty.any_instance.stubs(:valid?).returns(true)
|
49
|
-
put :update, :id => @survey_property.id
|
49
|
+
put :update, :id => @survey_property.id, :survey_property => {:name => 'hello'}
|
50
50
|
assert_redirected_to survey_admin_survey_property_url(assigns(:survey_property))
|
51
51
|
end
|
52
52
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: survey_says
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- David Henner
|
@@ -10,8 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date:
|
14
|
-
default_executable:
|
13
|
+
date: 2012-08-23 00:00:00 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: rails
|
@@ -149,7 +148,6 @@ files:
|
|
149
148
|
- app/views/survey_admin/survey_properties/new.html.erb
|
150
149
|
- app/views/survey_admin/survey_properties/show.html.erb
|
151
150
|
- config/routes.rb
|
152
|
-
- db/development.sqlite3
|
153
151
|
- db/migrate/20111208181247_create_questions.rb
|
154
152
|
- db/migrate/20111208181414_create_answers.rb
|
155
153
|
- db/migrate/20111208181429_create_survey_properties.rb
|
@@ -176,6 +174,7 @@ files:
|
|
176
174
|
- test/dummy/app/helpers/application_helper.rb
|
177
175
|
- test/dummy/app/helpers/error_messages_helper.rb
|
178
176
|
- test/dummy/app/helpers/layout_helper.rb
|
177
|
+
- test/dummy/app/models/user.rb
|
179
178
|
- test/dummy/app/views/layouts/application.html.erb
|
180
179
|
- test/dummy/config/application.rb
|
181
180
|
- test/dummy/config/boot.rb
|
@@ -279,7 +278,6 @@ files:
|
|
279
278
|
- test/unit/survey_image_test.rb
|
280
279
|
- test/unit/survey_property_test.rb
|
281
280
|
- test/unit/user_answer_test.rb
|
282
|
-
has_rdoc: true
|
283
281
|
homepage: http://www.ror-e.com
|
284
282
|
licenses: []
|
285
283
|
|
@@ -303,7 +301,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
303
301
|
requirements: []
|
304
302
|
|
305
303
|
rubyforge_project:
|
306
|
-
rubygems_version: 1.
|
304
|
+
rubygems_version: 1.8.15
|
307
305
|
signing_key:
|
308
306
|
specification_version: 3
|
309
307
|
summary: This is a plugin that allows you to create a questionaire with custom scores.
|
@@ -315,6 +313,7 @@ test_files:
|
|
315
313
|
- test/dummy/app/helpers/application_helper.rb
|
316
314
|
- test/dummy/app/helpers/error_messages_helper.rb
|
317
315
|
- test/dummy/app/helpers/layout_helper.rb
|
316
|
+
- test/dummy/app/models/user.rb
|
318
317
|
- test/dummy/app/views/layouts/application.html.erb
|
319
318
|
- test/dummy/config/application.rb
|
320
319
|
- test/dummy/config/boot.rb
|
data/db/development.sqlite3
DELETED
Binary file
|