surveyor 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -0
- data/MIT-LICENSE +20 -0
- data/README.md +104 -0
- data/Rakefile +50 -0
- data/VERSION +1 -0
- data/app/controllers/surveyor_controller.rb +117 -0
- data/app/helpers/survey_form_builder.rb +37 -0
- data/app/helpers/surveyor_helper.rb +66 -0
- data/app/models/answer.rb +21 -0
- data/app/models/dependency.rb +46 -0
- data/app/models/dependency_condition.rb +79 -0
- data/app/models/question.rb +54 -0
- data/app/models/question_group.rb +18 -0
- data/app/models/response.rb +47 -0
- data/app/models/response_set.rb +185 -0
- data/app/models/survey.rb +57 -0
- data/app/models/survey_section.rb +15 -0
- data/app/views/layouts/surveyor_default.html.erb +13 -0
- data/app/views/partials/_answer.html.haml +49 -0
- data/app/views/partials/_question.html.haml +73 -0
- data/app/views/partials/_question_group.html.haml +41 -0
- data/app/views/surveyor/edit.html.haml +32 -0
- data/app/views/surveyor/new.html.haml +17 -0
- data/app/views/surveyor/show.html.haml +12 -0
- data/config/routes.rb +10 -0
- data/generators/surveyor/EXTENDING_SURVEYOR +12 -0
- data/generators/surveyor/extend_surveyor_generator.rb +22 -0
- data/generators/surveyor/surveyor_generator.rb +60 -0
- data/generators/surveyor/templates/README +10 -0
- data/generators/surveyor/templates/assets/images/222222_11x11_icon_arrows_leftright.gif +0 -0
- data/generators/surveyor/templates/assets/images/222222_11x11_icon_arrows_updown.gif +0 -0
- data/generators/surveyor/templates/assets/images/222222_11x11_icon_close.gif +0 -0
- data/generators/surveyor/templates/assets/images/222222_11x11_icon_doc.gif +0 -0
- data/generators/surveyor/templates/assets/images/222222_11x11_icon_folder_closed.gif +0 -0
- data/generators/surveyor/templates/assets/images/222222_11x11_icon_folder_open.gif +0 -0
- data/generators/surveyor/templates/assets/images/222222_11x11_icon_minus.gif +0 -0
- data/generators/surveyor/templates/assets/images/222222_11x11_icon_plus.gif +0 -0
- data/generators/surveyor/templates/assets/images/222222_11x11_icon_resize_se.gif +0 -0
- data/generators/surveyor/templates/assets/images/222222_35x9_colorpicker_indicator.gif.gif +0 -0
- data/generators/surveyor/templates/assets/images/222222_7x7_arrow_down.gif +0 -0
- data/generators/surveyor/templates/assets/images/222222_7x7_arrow_left.gif +0 -0
- data/generators/surveyor/templates/assets/images/222222_7x7_arrow_right.gif +0 -0
- data/generators/surveyor/templates/assets/images/222222_7x7_arrow_up.gif +0 -0
- data/generators/surveyor/templates/assets/images/454545_11x11_icon_arrows_leftright.gif +0 -0
- data/generators/surveyor/templates/assets/images/454545_11x11_icon_arrows_updown.gif +0 -0
- data/generators/surveyor/templates/assets/images/454545_11x11_icon_close.gif +0 -0
- data/generators/surveyor/templates/assets/images/454545_11x11_icon_doc.gif +0 -0
- data/generators/surveyor/templates/assets/images/454545_11x11_icon_folder_closed.gif +0 -0
- data/generators/surveyor/templates/assets/images/454545_11x11_icon_folder_open.gif +0 -0
- data/generators/surveyor/templates/assets/images/454545_11x11_icon_minus.gif +0 -0
- data/generators/surveyor/templates/assets/images/454545_11x11_icon_plus.gif +0 -0
- data/generators/surveyor/templates/assets/images/454545_7x7_arrow_down.gif +0 -0
- data/generators/surveyor/templates/assets/images/454545_7x7_arrow_left.gif +0 -0
- data/generators/surveyor/templates/assets/images/454545_7x7_arrow_right.gif +0 -0
- data/generators/surveyor/templates/assets/images/454545_7x7_arrow_up.gif +0 -0
- data/generators/surveyor/templates/assets/images/888888_11x11_icon_arrows_leftright.gif +0 -0
- data/generators/surveyor/templates/assets/images/888888_11x11_icon_arrows_updown.gif +0 -0
- data/generators/surveyor/templates/assets/images/888888_11x11_icon_close.gif +0 -0
- data/generators/surveyor/templates/assets/images/888888_11x11_icon_doc.gif +0 -0
- data/generators/surveyor/templates/assets/images/888888_11x11_icon_folder_closed.gif +0 -0
- data/generators/surveyor/templates/assets/images/888888_11x11_icon_folder_open.gif +0 -0
- data/generators/surveyor/templates/assets/images/888888_11x11_icon_minus.gif +0 -0
- data/generators/surveyor/templates/assets/images/888888_11x11_icon_plus.gif +0 -0
- data/generators/surveyor/templates/assets/images/888888_7x7_arrow_down.gif +0 -0
- data/generators/surveyor/templates/assets/images/888888_7x7_arrow_left.gif +0 -0
- data/generators/surveyor/templates/assets/images/888888_7x7_arrow_right.gif +0 -0
- data/generators/surveyor/templates/assets/images/888888_7x7_arrow_up.gif +0 -0
- data/generators/surveyor/templates/assets/images/dadada_40x100_textures_02_glass_75.png +0 -0
- data/generators/surveyor/templates/assets/images/e6e6e6_40x100_textures_02_glass_75.png +0 -0
- data/generators/surveyor/templates/assets/images/ffffff_40x100_textures_01_flat_0.png +0 -0
- data/generators/surveyor/templates/assets/images/ffffff_40x100_textures_02_glass_65.png +0 -0
- data/generators/surveyor/templates/assets/javascripts/accessibleUISlider.jQuery.js +201 -0
- data/generators/surveyor/templates/assets/javascripts/jquery-1.2.6.js +3549 -0
- data/generators/surveyor/templates/assets/javascripts/jquery-ui-personalized-1.5.3.js +7616 -0
- data/generators/surveyor/templates/assets/javascripts/jquery.form.js +637 -0
- data/generators/surveyor/templates/assets/javascripts/surveyor.js +28 -0
- data/generators/surveyor/templates/assets/stylesheets/jquery-ui-slider-additions.css +71 -0
- data/generators/surveyor/templates/assets/stylesheets/reset.css +46 -0
- data/generators/surveyor/templates/assets/stylesheets/sass/surveyor.sass +245 -0
- data/generators/surveyor/templates/assets/stylesheets/surveyor.css +231 -0
- data/generators/surveyor/templates/assets/stylesheets/ui.theme.css +851 -0
- data/generators/surveyor/templates/extensions/survey_extensions.rb +18 -0
- data/generators/surveyor/templates/extensions/surveyor_controller_extensions.rb +28 -0
- data/generators/surveyor/templates/extensions/surveyor_custom.html.erb +13 -0
- data/generators/surveyor/templates/extensions/surveyor_helper_extensions.rb +18 -0
- data/generators/surveyor/templates/initializers/haml.rb +8 -0
- data/generators/surveyor/templates/initializers/surveyor.rb +11 -0
- data/generators/surveyor/templates/migrate/create_answers.rb +45 -0
- data/generators/surveyor/templates/migrate/create_dependencies.rb +21 -0
- data/generators/surveyor/templates/migrate/create_dependency_conditions.rb +29 -0
- data/generators/surveyor/templates/migrate/create_question_groups.rb +18 -0
- data/generators/surveyor/templates/migrate/create_questions.rb +33 -0
- data/generators/surveyor/templates/migrate/create_response_sets.rb +22 -0
- data/generators/surveyor/templates/migrate/create_responses.rb +33 -0
- data/generators/surveyor/templates/migrate/create_survey_sections.rb +25 -0
- data/generators/surveyor/templates/migrate/create_surveys.rb +25 -0
- data/generators/surveyor/templates/surveys/kitchen_sink_survey.rb +201 -0
- data/generators/surveyor/templates/tasks/surveyor.rb +4 -0
- data/init.rb +1 -0
- data/install.rb +1 -0
- data/lib/surveyor.rb +7 -0
- data/lib/surveyor/config.rb +45 -0
- data/lib/tasks/surveyor_tasks.rake +33 -0
- data/lib/tiny_code.rb +58 -0
- data/lib/xml_formatter.rb +12 -0
- data/script/surveyor/answer.rb +84 -0
- data/script/surveyor/columnizer.rb +36 -0
- data/script/surveyor/dependency.rb +43 -0
- data/script/surveyor/dependency_condition.rb +74 -0
- data/script/surveyor/question.rb +76 -0
- data/script/surveyor/question_group.rb +33 -0
- data/script/surveyor/specs/answer_spec.rb +66 -0
- data/script/surveyor/specs/question_dependency_spec.rb +46 -0
- data/script/surveyor/specs/question_group_spec.rb +9 -0
- data/script/surveyor/specs/question_spec.rb +111 -0
- data/script/surveyor/specs/section_spec.rb +58 -0
- data/script/surveyor/survey.rb +108 -0
- data/script/surveyor/survey_parser.rb +64 -0
- data/script/surveyor/survey_section.rb +153 -0
- data/script/surveyor/whr_dsl.tmproj +244 -0
- data/spec/controllers/surveyor_controller_spec.rb +328 -0
- data/spec/factories.rb +107 -0
- data/spec/models/answer_spec.rb +29 -0
- data/spec/models/dependency_condition_spec.rb +338 -0
- data/spec/models/dependency_spec.rb +82 -0
- data/spec/models/question_group_spec.rb +11 -0
- data/spec/models/question_spec.rb +75 -0
- data/spec/models/response_set_spec.rb +153 -0
- data/spec/models/response_spec.rb +94 -0
- data/spec/models/survey_section_spec.rb +34 -0
- data/spec/models/survey_spec.rb +72 -0
- data/spec/rcov.opts +2 -0
- data/spec/spec.opts +4 -0
- data/spec/spec_helper.rb +14 -0
- data/surveyor.gemspec +187 -0
- data/uninstall.rb +1 -0
- metadata +211 -0
@@ -0,0 +1,72 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
|
+
|
3
|
+
# Validations
|
4
|
+
describe Survey, "when saving a new one" do
|
5
|
+
before(:each) do
|
6
|
+
@survey = Survey.new
|
7
|
+
@survey.title = "Foo"
|
8
|
+
end
|
9
|
+
|
10
|
+
it "should be invalid without a title" do
|
11
|
+
@survey.title = nil
|
12
|
+
@survey.should have(1).error_on(:title)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
# Associations
|
17
|
+
describe Survey, "that has sections" do
|
18
|
+
before(:each) do
|
19
|
+
@survey = Survey.create(:title => "foo")
|
20
|
+
@s1 = @survey.sections.create(:title => "wise", :display_order => 2)
|
21
|
+
@s2 = @survey.sections.create(:title => "er", :display_order => 3)
|
22
|
+
@s3 = @survey.sections.create(:title => "bud", :display_order => 1)
|
23
|
+
@q1 = @s1.questions.create(:text => "what is wise?")
|
24
|
+
@q2 = @s2.questions.create(:text => "what is er?", :display_order => 2)
|
25
|
+
@q3 = @s2.questions.create(:text => "what is mill?", :display_order => 1)
|
26
|
+
@q4 = @s3.questions.create(:text => "what is bud?")
|
27
|
+
end
|
28
|
+
|
29
|
+
it "should return survey_sections in display order" do
|
30
|
+
@survey.sections.should have(3).sections
|
31
|
+
@survey.sections.should == [@s3, @s1, @s2]
|
32
|
+
end
|
33
|
+
|
34
|
+
it "should return survey_sections_with_questions in display order" do
|
35
|
+
@survey.sections_with_questions.map(&:questions).flatten.should have(4).questions
|
36
|
+
@survey.sections_with_questions.map(&:questions).flatten.should == [@q4,@q1,@q3,@q2]
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
40
|
+
|
41
|
+
# Methods
|
42
|
+
describe Survey do
|
43
|
+
before(:each) do
|
44
|
+
@survey = Survey.new
|
45
|
+
end
|
46
|
+
|
47
|
+
it "should be inactive by default" do
|
48
|
+
@survey.active?.should == false
|
49
|
+
end
|
50
|
+
|
51
|
+
it "should be active or active as of a certain date/time" do
|
52
|
+
@survey.inactive_at = 3.days.ago
|
53
|
+
@survey.active_at = 2.days.ago
|
54
|
+
@survey.active?.should be_true
|
55
|
+
@survey.inactive_at.should be_nil
|
56
|
+
end
|
57
|
+
|
58
|
+
it "should be able to deactivate as of a certain date/time" do
|
59
|
+
@survey.active_at = 2.days.ago
|
60
|
+
@survey.inactive_at = 3.days.ago
|
61
|
+
@survey.active?.should be_false
|
62
|
+
@survey.active_at.should be_nil
|
63
|
+
end
|
64
|
+
|
65
|
+
it "should activate and deactivate" do
|
66
|
+
@survey.activate!
|
67
|
+
@survey.active?.should be_true
|
68
|
+
@survey.deactivate!
|
69
|
+
@survey.active?.should be_false
|
70
|
+
end
|
71
|
+
|
72
|
+
end
|
data/spec/rcov.opts
ADDED
data/spec/spec.opts
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
ENV["RAILS_ENV"] = "test"
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + "/../../../../config/environment")
|
3
|
+
require 'spec/autorun'
|
4
|
+
require 'spec/rails'
|
5
|
+
|
6
|
+
require File.dirname(__FILE__) + "/factories"
|
7
|
+
|
8
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
9
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
10
|
+
# require 'surveyor'
|
11
|
+
|
12
|
+
Spec::Runner.configure do |config|
|
13
|
+
|
14
|
+
end
|
data/surveyor.gemspec
ADDED
@@ -0,0 +1,187 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{surveyor}
|
8
|
+
s.version = "0.6.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Brian Chamberlain", "Mark Yoon"]
|
12
|
+
s.date = %q{2009-10-12}
|
13
|
+
s.email = %q{yoon@northwestern.edu}
|
14
|
+
s.extra_rdoc_files = [
|
15
|
+
"README.md"
|
16
|
+
]
|
17
|
+
s.files = [
|
18
|
+
".gitignore",
|
19
|
+
"MIT-LICENSE",
|
20
|
+
"README.md",
|
21
|
+
"Rakefile",
|
22
|
+
"VERSION",
|
23
|
+
"app/controllers/surveyor_controller.rb",
|
24
|
+
"app/helpers/survey_form_builder.rb",
|
25
|
+
"app/helpers/surveyor_helper.rb",
|
26
|
+
"app/models/answer.rb",
|
27
|
+
"app/models/dependency.rb",
|
28
|
+
"app/models/dependency_condition.rb",
|
29
|
+
"app/models/question.rb",
|
30
|
+
"app/models/question_group.rb",
|
31
|
+
"app/models/response.rb",
|
32
|
+
"app/models/response_set.rb",
|
33
|
+
"app/models/survey.rb",
|
34
|
+
"app/models/survey_section.rb",
|
35
|
+
"app/views/layouts/surveyor_default.html.erb",
|
36
|
+
"app/views/partials/_answer.html.haml",
|
37
|
+
"app/views/partials/_question.html.haml",
|
38
|
+
"app/views/partials/_question_group.html.haml",
|
39
|
+
"app/views/surveyor/edit.html.haml",
|
40
|
+
"app/views/surveyor/new.html.haml",
|
41
|
+
"app/views/surveyor/show.html.haml",
|
42
|
+
"config/routes.rb",
|
43
|
+
"generators/surveyor/EXTENDING_SURVEYOR",
|
44
|
+
"generators/surveyor/extend_surveyor_generator.rb",
|
45
|
+
"generators/surveyor/surveyor_generator.rb",
|
46
|
+
"generators/surveyor/templates/README",
|
47
|
+
"generators/surveyor/templates/assets/images/222222_11x11_icon_arrows_leftright.gif",
|
48
|
+
"generators/surveyor/templates/assets/images/222222_11x11_icon_arrows_updown.gif",
|
49
|
+
"generators/surveyor/templates/assets/images/222222_11x11_icon_close.gif",
|
50
|
+
"generators/surveyor/templates/assets/images/222222_11x11_icon_doc.gif",
|
51
|
+
"generators/surveyor/templates/assets/images/222222_11x11_icon_folder_closed.gif",
|
52
|
+
"generators/surveyor/templates/assets/images/222222_11x11_icon_folder_open.gif",
|
53
|
+
"generators/surveyor/templates/assets/images/222222_11x11_icon_minus.gif",
|
54
|
+
"generators/surveyor/templates/assets/images/222222_11x11_icon_plus.gif",
|
55
|
+
"generators/surveyor/templates/assets/images/222222_11x11_icon_resize_se.gif",
|
56
|
+
"generators/surveyor/templates/assets/images/222222_35x9_colorpicker_indicator.gif.gif",
|
57
|
+
"generators/surveyor/templates/assets/images/222222_7x7_arrow_down.gif",
|
58
|
+
"generators/surveyor/templates/assets/images/222222_7x7_arrow_left.gif",
|
59
|
+
"generators/surveyor/templates/assets/images/222222_7x7_arrow_right.gif",
|
60
|
+
"generators/surveyor/templates/assets/images/222222_7x7_arrow_up.gif",
|
61
|
+
"generators/surveyor/templates/assets/images/454545_11x11_icon_arrows_leftright.gif",
|
62
|
+
"generators/surveyor/templates/assets/images/454545_11x11_icon_arrows_updown.gif",
|
63
|
+
"generators/surveyor/templates/assets/images/454545_11x11_icon_close.gif",
|
64
|
+
"generators/surveyor/templates/assets/images/454545_11x11_icon_doc.gif",
|
65
|
+
"generators/surveyor/templates/assets/images/454545_11x11_icon_folder_closed.gif",
|
66
|
+
"generators/surveyor/templates/assets/images/454545_11x11_icon_folder_open.gif",
|
67
|
+
"generators/surveyor/templates/assets/images/454545_11x11_icon_minus.gif",
|
68
|
+
"generators/surveyor/templates/assets/images/454545_11x11_icon_plus.gif",
|
69
|
+
"generators/surveyor/templates/assets/images/454545_7x7_arrow_down.gif",
|
70
|
+
"generators/surveyor/templates/assets/images/454545_7x7_arrow_left.gif",
|
71
|
+
"generators/surveyor/templates/assets/images/454545_7x7_arrow_right.gif",
|
72
|
+
"generators/surveyor/templates/assets/images/454545_7x7_arrow_up.gif",
|
73
|
+
"generators/surveyor/templates/assets/images/888888_11x11_icon_arrows_leftright.gif",
|
74
|
+
"generators/surveyor/templates/assets/images/888888_11x11_icon_arrows_updown.gif",
|
75
|
+
"generators/surveyor/templates/assets/images/888888_11x11_icon_close.gif",
|
76
|
+
"generators/surveyor/templates/assets/images/888888_11x11_icon_doc.gif",
|
77
|
+
"generators/surveyor/templates/assets/images/888888_11x11_icon_folder_closed.gif",
|
78
|
+
"generators/surveyor/templates/assets/images/888888_11x11_icon_folder_open.gif",
|
79
|
+
"generators/surveyor/templates/assets/images/888888_11x11_icon_minus.gif",
|
80
|
+
"generators/surveyor/templates/assets/images/888888_11x11_icon_plus.gif",
|
81
|
+
"generators/surveyor/templates/assets/images/888888_7x7_arrow_down.gif",
|
82
|
+
"generators/surveyor/templates/assets/images/888888_7x7_arrow_left.gif",
|
83
|
+
"generators/surveyor/templates/assets/images/888888_7x7_arrow_right.gif",
|
84
|
+
"generators/surveyor/templates/assets/images/888888_7x7_arrow_up.gif",
|
85
|
+
"generators/surveyor/templates/assets/images/dadada_40x100_textures_02_glass_75.png",
|
86
|
+
"generators/surveyor/templates/assets/images/e6e6e6_40x100_textures_02_glass_75.png",
|
87
|
+
"generators/surveyor/templates/assets/images/ffffff_40x100_textures_01_flat_0.png",
|
88
|
+
"generators/surveyor/templates/assets/images/ffffff_40x100_textures_02_glass_65.png",
|
89
|
+
"generators/surveyor/templates/assets/javascripts/accessibleUISlider.jQuery.js",
|
90
|
+
"generators/surveyor/templates/assets/javascripts/jquery-1.2.6.js",
|
91
|
+
"generators/surveyor/templates/assets/javascripts/jquery-ui-personalized-1.5.3.js",
|
92
|
+
"generators/surveyor/templates/assets/javascripts/jquery.form.js",
|
93
|
+
"generators/surveyor/templates/assets/javascripts/surveyor.js",
|
94
|
+
"generators/surveyor/templates/assets/stylesheets/jquery-ui-slider-additions.css",
|
95
|
+
"generators/surveyor/templates/assets/stylesheets/reset.css",
|
96
|
+
"generators/surveyor/templates/assets/stylesheets/sass/surveyor.sass",
|
97
|
+
"generators/surveyor/templates/assets/stylesheets/surveyor.css",
|
98
|
+
"generators/surveyor/templates/assets/stylesheets/ui.theme.css",
|
99
|
+
"generators/surveyor/templates/extensions/survey_extensions.rb",
|
100
|
+
"generators/surveyor/templates/extensions/surveyor_controller_extensions.rb",
|
101
|
+
"generators/surveyor/templates/extensions/surveyor_custom.html.erb",
|
102
|
+
"generators/surveyor/templates/extensions/surveyor_helper_extensions.rb",
|
103
|
+
"generators/surveyor/templates/initializers/haml.rb",
|
104
|
+
"generators/surveyor/templates/initializers/surveyor.rb",
|
105
|
+
"generators/surveyor/templates/migrate/create_answers.rb",
|
106
|
+
"generators/surveyor/templates/migrate/create_dependencies.rb",
|
107
|
+
"generators/surveyor/templates/migrate/create_dependency_conditions.rb",
|
108
|
+
"generators/surveyor/templates/migrate/create_question_groups.rb",
|
109
|
+
"generators/surveyor/templates/migrate/create_questions.rb",
|
110
|
+
"generators/surveyor/templates/migrate/create_response_sets.rb",
|
111
|
+
"generators/surveyor/templates/migrate/create_responses.rb",
|
112
|
+
"generators/surveyor/templates/migrate/create_survey_sections.rb",
|
113
|
+
"generators/surveyor/templates/migrate/create_surveys.rb",
|
114
|
+
"generators/surveyor/templates/surveys/kitchen_sink_survey.rb",
|
115
|
+
"generators/surveyor/templates/tasks/surveyor.rb",
|
116
|
+
"init.rb",
|
117
|
+
"install.rb",
|
118
|
+
"lib/surveyor.rb",
|
119
|
+
"lib/surveyor/config.rb",
|
120
|
+
"lib/tasks/surveyor_tasks.rake",
|
121
|
+
"lib/tiny_code.rb",
|
122
|
+
"lib/xml_formatter.rb",
|
123
|
+
"script/surveyor/answer.rb",
|
124
|
+
"script/surveyor/columnizer.rb",
|
125
|
+
"script/surveyor/dependency.rb",
|
126
|
+
"script/surveyor/dependency_condition.rb",
|
127
|
+
"script/surveyor/question.rb",
|
128
|
+
"script/surveyor/question_group.rb",
|
129
|
+
"script/surveyor/specs/answer_spec.rb",
|
130
|
+
"script/surveyor/specs/question_dependency_spec.rb",
|
131
|
+
"script/surveyor/specs/question_group_spec.rb",
|
132
|
+
"script/surveyor/specs/question_spec.rb",
|
133
|
+
"script/surveyor/specs/section_spec.rb",
|
134
|
+
"script/surveyor/survey.rb",
|
135
|
+
"script/surveyor/survey_parser.rb",
|
136
|
+
"script/surveyor/survey_section.rb",
|
137
|
+
"script/surveyor/whr_dsl.tmproj",
|
138
|
+
"spec/controllers/surveyor_controller_spec.rb",
|
139
|
+
"spec/factories.rb",
|
140
|
+
"spec/models/answer_spec.rb",
|
141
|
+
"spec/models/dependency_condition_spec.rb",
|
142
|
+
"spec/models/dependency_spec.rb",
|
143
|
+
"spec/models/question_group_spec.rb",
|
144
|
+
"spec/models/question_spec.rb",
|
145
|
+
"spec/models/response_set_spec.rb",
|
146
|
+
"spec/models/response_spec.rb",
|
147
|
+
"spec/models/survey_section_spec.rb",
|
148
|
+
"spec/models/survey_spec.rb",
|
149
|
+
"spec/rcov.opts",
|
150
|
+
"spec/spec.opts",
|
151
|
+
"spec/spec_helper.rb",
|
152
|
+
"surveyor.gemspec",
|
153
|
+
"uninstall.rb"
|
154
|
+
]
|
155
|
+
s.homepage = %q{http://github.com/breakpointer/surveyor}
|
156
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
157
|
+
s.require_paths = ["lib"]
|
158
|
+
s.rubygems_version = %q{1.3.4}
|
159
|
+
s.summary = %q{A rails (gem) plugin to enable surveys in your application}
|
160
|
+
s.test_files = [
|
161
|
+
"spec/controllers/surveyor_controller_spec.rb",
|
162
|
+
"spec/factories.rb",
|
163
|
+
"spec/models/answer_spec.rb",
|
164
|
+
"spec/models/dependency_condition_spec.rb",
|
165
|
+
"spec/models/dependency_spec.rb",
|
166
|
+
"spec/models/question_group_spec.rb",
|
167
|
+
"spec/models/question_spec.rb",
|
168
|
+
"spec/models/response_set_spec.rb",
|
169
|
+
"spec/models/response_spec.rb",
|
170
|
+
"spec/models/survey_section_spec.rb",
|
171
|
+
"spec/models/survey_spec.rb",
|
172
|
+
"spec/spec_helper.rb"
|
173
|
+
]
|
174
|
+
|
175
|
+
if s.respond_to? :specification_version then
|
176
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
177
|
+
s.specification_version = 3
|
178
|
+
|
179
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
180
|
+
s.add_runtime_dependency(%q<haml>, [">= 0"])
|
181
|
+
else
|
182
|
+
s.add_dependency(%q<haml>, [">= 0"])
|
183
|
+
end
|
184
|
+
else
|
185
|
+
s.add_dependency(%q<haml>, [">= 0"])
|
186
|
+
end
|
187
|
+
end
|
data/uninstall.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# Uninstall hook code here
|
metadata
ADDED
@@ -0,0 +1,211 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: surveyor
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.6.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Brian Chamberlain
|
8
|
+
- Mark Yoon
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2009-10-12 00:00:00 -05:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: haml
|
18
|
+
type: :runtime
|
19
|
+
version_requirement:
|
20
|
+
version_requirements: !ruby/object:Gem::Requirement
|
21
|
+
requirements:
|
22
|
+
- - ">="
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: "0"
|
25
|
+
version:
|
26
|
+
description:
|
27
|
+
email: yoon@northwestern.edu
|
28
|
+
executables: []
|
29
|
+
|
30
|
+
extensions: []
|
31
|
+
|
32
|
+
extra_rdoc_files:
|
33
|
+
- README.md
|
34
|
+
files:
|
35
|
+
- .gitignore
|
36
|
+
- MIT-LICENSE
|
37
|
+
- README.md
|
38
|
+
- Rakefile
|
39
|
+
- VERSION
|
40
|
+
- app/controllers/surveyor_controller.rb
|
41
|
+
- app/helpers/survey_form_builder.rb
|
42
|
+
- app/helpers/surveyor_helper.rb
|
43
|
+
- app/models/answer.rb
|
44
|
+
- app/models/dependency.rb
|
45
|
+
- app/models/dependency_condition.rb
|
46
|
+
- app/models/question.rb
|
47
|
+
- app/models/question_group.rb
|
48
|
+
- app/models/response.rb
|
49
|
+
- app/models/response_set.rb
|
50
|
+
- app/models/survey.rb
|
51
|
+
- app/models/survey_section.rb
|
52
|
+
- app/views/layouts/surveyor_default.html.erb
|
53
|
+
- app/views/partials/_answer.html.haml
|
54
|
+
- app/views/partials/_question.html.haml
|
55
|
+
- app/views/partials/_question_group.html.haml
|
56
|
+
- app/views/surveyor/edit.html.haml
|
57
|
+
- app/views/surveyor/new.html.haml
|
58
|
+
- app/views/surveyor/show.html.haml
|
59
|
+
- config/routes.rb
|
60
|
+
- generators/surveyor/EXTENDING_SURVEYOR
|
61
|
+
- generators/surveyor/extend_surveyor_generator.rb
|
62
|
+
- generators/surveyor/surveyor_generator.rb
|
63
|
+
- generators/surveyor/templates/README
|
64
|
+
- generators/surveyor/templates/assets/images/222222_11x11_icon_arrows_leftright.gif
|
65
|
+
- generators/surveyor/templates/assets/images/222222_11x11_icon_arrows_updown.gif
|
66
|
+
- generators/surveyor/templates/assets/images/222222_11x11_icon_close.gif
|
67
|
+
- generators/surveyor/templates/assets/images/222222_11x11_icon_doc.gif
|
68
|
+
- generators/surveyor/templates/assets/images/222222_11x11_icon_folder_closed.gif
|
69
|
+
- generators/surveyor/templates/assets/images/222222_11x11_icon_folder_open.gif
|
70
|
+
- generators/surveyor/templates/assets/images/222222_11x11_icon_minus.gif
|
71
|
+
- generators/surveyor/templates/assets/images/222222_11x11_icon_plus.gif
|
72
|
+
- generators/surveyor/templates/assets/images/222222_11x11_icon_resize_se.gif
|
73
|
+
- generators/surveyor/templates/assets/images/222222_35x9_colorpicker_indicator.gif.gif
|
74
|
+
- generators/surveyor/templates/assets/images/222222_7x7_arrow_down.gif
|
75
|
+
- generators/surveyor/templates/assets/images/222222_7x7_arrow_left.gif
|
76
|
+
- generators/surveyor/templates/assets/images/222222_7x7_arrow_right.gif
|
77
|
+
- generators/surveyor/templates/assets/images/222222_7x7_arrow_up.gif
|
78
|
+
- generators/surveyor/templates/assets/images/454545_11x11_icon_arrows_leftright.gif
|
79
|
+
- generators/surveyor/templates/assets/images/454545_11x11_icon_arrows_updown.gif
|
80
|
+
- generators/surveyor/templates/assets/images/454545_11x11_icon_close.gif
|
81
|
+
- generators/surveyor/templates/assets/images/454545_11x11_icon_doc.gif
|
82
|
+
- generators/surveyor/templates/assets/images/454545_11x11_icon_folder_closed.gif
|
83
|
+
- generators/surveyor/templates/assets/images/454545_11x11_icon_folder_open.gif
|
84
|
+
- generators/surveyor/templates/assets/images/454545_11x11_icon_minus.gif
|
85
|
+
- generators/surveyor/templates/assets/images/454545_11x11_icon_plus.gif
|
86
|
+
- generators/surveyor/templates/assets/images/454545_7x7_arrow_down.gif
|
87
|
+
- generators/surveyor/templates/assets/images/454545_7x7_arrow_left.gif
|
88
|
+
- generators/surveyor/templates/assets/images/454545_7x7_arrow_right.gif
|
89
|
+
- generators/surveyor/templates/assets/images/454545_7x7_arrow_up.gif
|
90
|
+
- generators/surveyor/templates/assets/images/888888_11x11_icon_arrows_leftright.gif
|
91
|
+
- generators/surveyor/templates/assets/images/888888_11x11_icon_arrows_updown.gif
|
92
|
+
- generators/surveyor/templates/assets/images/888888_11x11_icon_close.gif
|
93
|
+
- generators/surveyor/templates/assets/images/888888_11x11_icon_doc.gif
|
94
|
+
- generators/surveyor/templates/assets/images/888888_11x11_icon_folder_closed.gif
|
95
|
+
- generators/surveyor/templates/assets/images/888888_11x11_icon_folder_open.gif
|
96
|
+
- generators/surveyor/templates/assets/images/888888_11x11_icon_minus.gif
|
97
|
+
- generators/surveyor/templates/assets/images/888888_11x11_icon_plus.gif
|
98
|
+
- generators/surveyor/templates/assets/images/888888_7x7_arrow_down.gif
|
99
|
+
- generators/surveyor/templates/assets/images/888888_7x7_arrow_left.gif
|
100
|
+
- generators/surveyor/templates/assets/images/888888_7x7_arrow_right.gif
|
101
|
+
- generators/surveyor/templates/assets/images/888888_7x7_arrow_up.gif
|
102
|
+
- generators/surveyor/templates/assets/images/dadada_40x100_textures_02_glass_75.png
|
103
|
+
- generators/surveyor/templates/assets/images/e6e6e6_40x100_textures_02_glass_75.png
|
104
|
+
- generators/surveyor/templates/assets/images/ffffff_40x100_textures_01_flat_0.png
|
105
|
+
- generators/surveyor/templates/assets/images/ffffff_40x100_textures_02_glass_65.png
|
106
|
+
- generators/surveyor/templates/assets/javascripts/accessibleUISlider.jQuery.js
|
107
|
+
- generators/surveyor/templates/assets/javascripts/jquery-1.2.6.js
|
108
|
+
- generators/surveyor/templates/assets/javascripts/jquery-ui-personalized-1.5.3.js
|
109
|
+
- generators/surveyor/templates/assets/javascripts/jquery.form.js
|
110
|
+
- generators/surveyor/templates/assets/javascripts/surveyor.js
|
111
|
+
- generators/surveyor/templates/assets/stylesheets/jquery-ui-slider-additions.css
|
112
|
+
- generators/surveyor/templates/assets/stylesheets/reset.css
|
113
|
+
- generators/surveyor/templates/assets/stylesheets/sass/surveyor.sass
|
114
|
+
- generators/surveyor/templates/assets/stylesheets/surveyor.css
|
115
|
+
- generators/surveyor/templates/assets/stylesheets/ui.theme.css
|
116
|
+
- generators/surveyor/templates/extensions/survey_extensions.rb
|
117
|
+
- generators/surveyor/templates/extensions/surveyor_controller_extensions.rb
|
118
|
+
- generators/surveyor/templates/extensions/surveyor_custom.html.erb
|
119
|
+
- generators/surveyor/templates/extensions/surveyor_helper_extensions.rb
|
120
|
+
- generators/surveyor/templates/initializers/haml.rb
|
121
|
+
- generators/surveyor/templates/initializers/surveyor.rb
|
122
|
+
- generators/surveyor/templates/migrate/create_answers.rb
|
123
|
+
- generators/surveyor/templates/migrate/create_dependencies.rb
|
124
|
+
- generators/surveyor/templates/migrate/create_dependency_conditions.rb
|
125
|
+
- generators/surveyor/templates/migrate/create_question_groups.rb
|
126
|
+
- generators/surveyor/templates/migrate/create_questions.rb
|
127
|
+
- generators/surveyor/templates/migrate/create_response_sets.rb
|
128
|
+
- generators/surveyor/templates/migrate/create_responses.rb
|
129
|
+
- generators/surveyor/templates/migrate/create_survey_sections.rb
|
130
|
+
- generators/surveyor/templates/migrate/create_surveys.rb
|
131
|
+
- generators/surveyor/templates/surveys/kitchen_sink_survey.rb
|
132
|
+
- generators/surveyor/templates/tasks/surveyor.rb
|
133
|
+
- init.rb
|
134
|
+
- install.rb
|
135
|
+
- lib/surveyor.rb
|
136
|
+
- lib/surveyor/config.rb
|
137
|
+
- lib/tasks/surveyor_tasks.rake
|
138
|
+
- lib/tiny_code.rb
|
139
|
+
- lib/xml_formatter.rb
|
140
|
+
- script/surveyor/answer.rb
|
141
|
+
- script/surveyor/columnizer.rb
|
142
|
+
- script/surveyor/dependency.rb
|
143
|
+
- script/surveyor/dependency_condition.rb
|
144
|
+
- script/surveyor/question.rb
|
145
|
+
- script/surveyor/question_group.rb
|
146
|
+
- script/surveyor/specs/answer_spec.rb
|
147
|
+
- script/surveyor/specs/question_dependency_spec.rb
|
148
|
+
- script/surveyor/specs/question_group_spec.rb
|
149
|
+
- script/surveyor/specs/question_spec.rb
|
150
|
+
- script/surveyor/specs/section_spec.rb
|
151
|
+
- script/surveyor/survey.rb
|
152
|
+
- script/surveyor/survey_parser.rb
|
153
|
+
- script/surveyor/survey_section.rb
|
154
|
+
- script/surveyor/whr_dsl.tmproj
|
155
|
+
- spec/controllers/surveyor_controller_spec.rb
|
156
|
+
- spec/factories.rb
|
157
|
+
- spec/models/answer_spec.rb
|
158
|
+
- spec/models/dependency_condition_spec.rb
|
159
|
+
- spec/models/dependency_spec.rb
|
160
|
+
- spec/models/question_group_spec.rb
|
161
|
+
- spec/models/question_spec.rb
|
162
|
+
- spec/models/response_set_spec.rb
|
163
|
+
- spec/models/response_spec.rb
|
164
|
+
- spec/models/survey_section_spec.rb
|
165
|
+
- spec/models/survey_spec.rb
|
166
|
+
- spec/rcov.opts
|
167
|
+
- spec/spec.opts
|
168
|
+
- spec/spec_helper.rb
|
169
|
+
- surveyor.gemspec
|
170
|
+
- uninstall.rb
|
171
|
+
has_rdoc: true
|
172
|
+
homepage: http://github.com/breakpointer/surveyor
|
173
|
+
licenses: []
|
174
|
+
|
175
|
+
post_install_message:
|
176
|
+
rdoc_options:
|
177
|
+
- --charset=UTF-8
|
178
|
+
require_paths:
|
179
|
+
- lib
|
180
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
181
|
+
requirements:
|
182
|
+
- - ">="
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
version: "0"
|
185
|
+
version:
|
186
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
|
+
requirements:
|
188
|
+
- - ">="
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
version: "0"
|
191
|
+
version:
|
192
|
+
requirements: []
|
193
|
+
|
194
|
+
rubyforge_project:
|
195
|
+
rubygems_version: 1.3.4
|
196
|
+
signing_key:
|
197
|
+
specification_version: 3
|
198
|
+
summary: A rails (gem) plugin to enable surveys in your application
|
199
|
+
test_files:
|
200
|
+
- spec/controllers/surveyor_controller_spec.rb
|
201
|
+
- spec/factories.rb
|
202
|
+
- spec/models/answer_spec.rb
|
203
|
+
- spec/models/dependency_condition_spec.rb
|
204
|
+
- spec/models/dependency_spec.rb
|
205
|
+
- spec/models/question_group_spec.rb
|
206
|
+
- spec/models/question_spec.rb
|
207
|
+
- spec/models/response_set_spec.rb
|
208
|
+
- spec/models/response_spec.rb
|
209
|
+
- spec/models/survey_section_spec.rb
|
210
|
+
- spec/models/survey_spec.rb
|
211
|
+
- spec/spec_helper.rb
|