surveyor 0.19.4 → 0.19.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +7 -0
- data/VERSION +1 -1
- data/generators/surveyor/templates/assets/stylesheets/sass/surveyor.sass +20 -20
- data/lib/surveyor/models/answer_methods.rb +2 -0
- data/lib/surveyor/models/question_methods.rb +2 -0
- data/lib/surveyor/models/response_set_methods.rb +6 -3
- data/lib/surveyor/models/survey_methods.rb +2 -0
- data/spec/models/dependency_condition_spec.rb +29 -0
- data/spec/models/response_set_spec.rb +44 -0
- data/surveyor.gemspec +136 -160
- data/testbed/Gemfile +14 -0
- metadata +10 -29
- data/.gitignore +0 -26
data/CHANGELOG
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
0.19.5
|
2
|
+
|
3
|
+
* Fixed dependent questions not appearing under certain conditions. Closes #143.
|
4
|
+
* Fixed question grids not showing when dependent on another question. Closes #149.
|
5
|
+
* Fixed testbed generation failure. Closes #145.
|
6
|
+
* Fixed UUID errors. Closes #144.
|
7
|
+
|
1
8
|
0.19.4
|
2
9
|
|
3
10
|
* add api ids
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.19.
|
1
|
+
0.19.5
|
@@ -1,13 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
$background_color:#EEEEEE
|
2
|
+
$surveyor_flash_background_color:#FFF1A8
|
3
|
+
$surveyor_color:#FFFFF1
|
4
|
+
$surveyor_text_color:#333333
|
5
|
+
$surveyor_dependent_color:#FFFFDF
|
6
|
+
$surveyor_menus_active_color:#EBEBCC
|
7
|
+
$surveyor_menus_border_color:#ccc
|
8
8
|
|
9
9
|
body
|
10
|
-
:background-color
|
10
|
+
:background-color $background_color
|
11
11
|
#surveyor
|
12
12
|
:font-family "Century Gothic"
|
13
13
|
:width 960px
|
@@ -16,10 +16,10 @@ body
|
|
16
16
|
:text-align left
|
17
17
|
:font-family Helvetica
|
18
18
|
:font-size 100%
|
19
|
-
:background-color
|
20
|
-
:color
|
19
|
+
:background-color $surveyor_color
|
20
|
+
:color $surveyor_text_color
|
21
21
|
.surveyor_flash
|
22
|
-
:background-color
|
22
|
+
:background-color $surveyor_flash_background_color
|
23
23
|
:margin 0 auto
|
24
24
|
:padding 5px
|
25
25
|
:width 300px
|
@@ -32,15 +32,15 @@ body
|
|
32
32
|
.surveyor_menu
|
33
33
|
:float right
|
34
34
|
ul
|
35
|
-
:background-color
|
36
|
-
:border
|
35
|
+
:background-color $background_color
|
36
|
+
:border 1px solid $surveyor_menus_border_color
|
37
37
|
:border-bottom-width 0
|
38
38
|
:list-style none
|
39
39
|
li
|
40
|
-
:border
|
40
|
+
:border 0 solid $surveyor_menus_border_color
|
41
41
|
:border-bottom-width 1px
|
42
42
|
li.active, li.active input[type="submit"]
|
43
|
-
:background-color
|
43
|
+
:background-color $surveyor_menus_active_color
|
44
44
|
.previous_section
|
45
45
|
.next_section
|
46
46
|
:float right
|
@@ -96,12 +96,12 @@ body
|
|
96
96
|
input[type="text"], textarea
|
97
97
|
:font-size 0.8em
|
98
98
|
|
99
|
-
fieldset.q_hidden
|
99
|
+
fieldset.q_hidden, fieldset.g_hidden
|
100
100
|
:display none
|
101
|
-
fieldset.q_dependent
|
102
|
-
:background-color
|
101
|
+
fieldset.q_dependent, fieldset.g_dependent
|
102
|
+
:background-color $surveyor_dependent_color
|
103
103
|
legend
|
104
|
-
:background-color
|
104
|
+
:background-color $surveyor_dependent_color
|
105
105
|
:padding 3px 3px 3px 0
|
106
106
|
|
107
107
|
|
@@ -112,4 +112,4 @@ body
|
|
112
112
|
:border 1px
|
113
113
|
:padding 5px
|
114
114
|
:cursor pointer
|
115
|
-
:background-color
|
115
|
+
:background-color $background_color
|
@@ -131,7 +131,7 @@ module Surveyor
|
|
131
131
|
|
132
132
|
def all_dependencies(question_ids = nil)
|
133
133
|
arr = dependencies(question_ids).partition{|d| d.is_met?(self) }
|
134
|
-
{:show => arr[0].map{|d| d.question_group_id.nil? ? "q_#{d.question_id}" : "
|
134
|
+
{:show => arr[0].map{|d| d.question_group_id.nil? ? "q_#{d.question_id}" : "g_#{d.question_group_id}"}, :hide => arr[1].map{|d| d.question_group_id.nil? ? "q_#{d.question_id}" : "g_#{d.question_group_id}"}}
|
135
135
|
end
|
136
136
|
|
137
137
|
# Check existence of responses to questions from a given survey_section
|
@@ -140,9 +140,12 @@ module Surveyor
|
|
140
140
|
end
|
141
141
|
|
142
142
|
protected
|
143
|
-
|
143
|
+
|
144
144
|
def dependencies(question_ids = nil)
|
145
|
-
Dependency.all(:include => :dependency_conditions, :conditions => {:dependency_conditions => {:question_id => question_ids || responses.map(&:question_id)}})
|
145
|
+
deps = Dependency.all(:include => :dependency_conditions, :conditions => {:dependency_conditions => {:question_id => question_ids || responses.map(&:question_id)}})
|
146
|
+
# this is a work around for a bug in active_record in rails 2.3 which incorrectly eager-loads associatins when a condition clause includes an association limiter
|
147
|
+
deps.each{|d| d.dependency_conditions.reload}
|
148
|
+
deps
|
146
149
|
end
|
147
150
|
end
|
148
151
|
end
|
@@ -72,6 +72,35 @@ describe DependencyCondition do
|
|
72
72
|
@dependency_condition.to_hash(@rs)
|
73
73
|
end
|
74
74
|
end
|
75
|
+
describe "to_hash" do
|
76
|
+
before do
|
77
|
+
@response = mock(Response)
|
78
|
+
@question = mock(Question)
|
79
|
+
@dependency_condition = DependencyCondition.new(:rule_key => "A")
|
80
|
+
@answer = mock(Answer)
|
81
|
+
@question.stub!(:answers).and_return([@answer])
|
82
|
+
@response.stub!(:answer).and_return(@answer)
|
83
|
+
@rs = mock(ResponseSet, :responses => [@response])
|
84
|
+
@dependency_condition.stub!(:question).and_return(@question)
|
85
|
+
end
|
86
|
+
|
87
|
+
it "converts unmet condition to {:A => false}" do
|
88
|
+
@dependency_condition.stub!(:is_met?).and_return(false)
|
89
|
+
@dependency_condition.to_hash(@rs).should == {:A => false}
|
90
|
+
end
|
91
|
+
|
92
|
+
it "converts met condition to {:A => true}" do
|
93
|
+
@dependency_condition.stub!(:is_met?).and_return(true)
|
94
|
+
@dependency_condition.to_hash(@rs).should == {:A => true}
|
95
|
+
end
|
96
|
+
|
97
|
+
it "converts unanswered condition to {:A => false}" do
|
98
|
+
@question.stub!(:answers).and_return([])
|
99
|
+
@response.stub!(:answer).and_return(nil)
|
100
|
+
@rs.stub!(:responses).and_return([])
|
101
|
+
@dependency_condition.to_hash(@rs).should == {:A => false}
|
102
|
+
end
|
103
|
+
end
|
75
104
|
describe "when if given a response object whether the dependency is satisfied using '=='" do
|
76
105
|
before(:each) do
|
77
106
|
@dep_c = DependencyCondition.new(:answer_id => 2, :operator => "==")
|
@@ -157,6 +157,50 @@ describe ResponseSet, "with dependencies" do
|
|
157
157
|
@response_set.unanswered_dependencies.should == [@what_bakery, crust_group]
|
158
158
|
end
|
159
159
|
end
|
160
|
+
describe ResponseSet, "dependency_conditions" do
|
161
|
+
before do
|
162
|
+
@section = Factory(:survey_section)
|
163
|
+
# Questions
|
164
|
+
@like_pie = Factory(:question, :text => "Do you like pie?", :survey_section => @section)
|
165
|
+
@like_jam = Factory(:question, :text => "Do you like jam?", :survey_section => @section)
|
166
|
+
@what_is_wrong_with_you = Factory(:question, :text => "What's wrong with you?", :survey_section => @section)
|
167
|
+
# Answers
|
168
|
+
@like_pie.answers << Factory(:answer, :text => "yes", :question_id => @like_pie.id)
|
169
|
+
@like_pie.answers << Factory(:answer, :text => "no", :question_id => @like_pie.id)
|
170
|
+
@like_jam.answers << Factory(:answer, :text => "yes", :question_id => @like_jam.id)
|
171
|
+
@like_jam.answers << Factory(:answer, :text => "no", :question_id => @like_jam.id)
|
172
|
+
# Dependency
|
173
|
+
@what_is_wrong_with_you = Factory(:dependency, :rule => "A or B", :question_id => @what_is_wrong_with_you.id)
|
174
|
+
@dep_a = Factory(:dependency_condition, :rule_key => "A", :question_id => @like_pie.id, :operator => "==", :answer_id => @like_pie.answers.first.id, :dependency_id => @what_is_wrong_with_you.id)
|
175
|
+
@dep_b = Factory(:dependency_condition, :rule_key => "B", :question_id => @like_jam.id, :operator => "==", :answer_id => @like_jam.answers.first.id, :dependency_id => @what_is_wrong_with_you.id)
|
176
|
+
# Responses
|
177
|
+
@response_set = Factory(:response_set)
|
178
|
+
@response_set.responses << Factory(:response, :question_id => @like_pie.id, :answer_id => @like_pie.answers.last.id, :response_set_id => @response_set.id)
|
179
|
+
end
|
180
|
+
it "should list all dependencies for answered questions" do
|
181
|
+
dependency_conditions = @response_set.send(:dependencies).last.dependency_conditions
|
182
|
+
dependency_conditions.size.should == 2
|
183
|
+
dependency_conditions.should include(@dep_a)
|
184
|
+
dependency_conditions.should include(@dep_b)
|
185
|
+
|
186
|
+
end
|
187
|
+
it "should list all dependencies for passed question_id" do
|
188
|
+
# Questions
|
189
|
+
like_ice_cream = Factory(:question, :text => "Do you like ice_cream?", :survey_section => @section)
|
190
|
+
what_flavor = Factory(:question, :text => "What flavor?", :survey_section => @section)
|
191
|
+
# Answers
|
192
|
+
like_ice_cream.answers << Factory(:answer, :text => "yes", :question_id => like_ice_cream.id)
|
193
|
+
like_ice_cream.answers << Factory(:answer, :text => "no", :question_id => like_ice_cream.id)
|
194
|
+
what_flavor.answers << Factory(:answer, :response_class => :string, :question_id => what_flavor.id)
|
195
|
+
# Dependency
|
196
|
+
flavor_dependency = Factory(:dependency, :rule => "C", :question_id => what_flavor.id)
|
197
|
+
flavor_dependency_condition = Factory(:dependency_condition, :rule_key => "A", :question_id => like_ice_cream.id, :operator => "==",
|
198
|
+
:answer_id => like_ice_cream.answers.first.id, :dependency_id => flavor_dependency.id)
|
199
|
+
# Responses
|
200
|
+
dependency_conditions = @response_set.send(:dependencies, like_ice_cream.id).should == [flavor_dependency]
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
160
204
|
describe ResponseSet, "as a quiz" do
|
161
205
|
before(:each) do
|
162
206
|
@survey = Factory(:survey)
|
data/surveyor.gemspec
CHANGED
@@ -1,183 +1,159 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{surveyor}
|
8
|
-
s.version = "0.19.
|
8
|
+
s.version = "0.19.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Brian Chamberlain", "Mark Yoon"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-06-03}
|
13
13
|
s.email = %q{yoon@northwestern.edu}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.md"
|
16
16
|
]
|
17
17
|
s.files = [
|
18
|
-
".
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
"testbed/Gemfile"
|
18
|
+
".rvmrc",
|
19
|
+
"CHANGELOG",
|
20
|
+
"MIT-LICENSE",
|
21
|
+
"README.md",
|
22
|
+
"Rakefile",
|
23
|
+
"VERSION",
|
24
|
+
"app/controllers/results_controller.rb",
|
25
|
+
"app/controllers/surveyor_controller.rb",
|
26
|
+
"app/helpers/results_helper.rb",
|
27
|
+
"app/helpers/surveyor_helper.rb",
|
28
|
+
"app/models/answer.rb",
|
29
|
+
"app/models/dependency.rb",
|
30
|
+
"app/models/dependency_condition.rb",
|
31
|
+
"app/models/question.rb",
|
32
|
+
"app/models/question_group.rb",
|
33
|
+
"app/models/response.rb",
|
34
|
+
"app/models/response_set.rb",
|
35
|
+
"app/models/survey.rb",
|
36
|
+
"app/models/survey_section.rb",
|
37
|
+
"app/models/survey_section_sweeper.rb",
|
38
|
+
"app/models/validation.rb",
|
39
|
+
"app/models/validation_condition.rb",
|
40
|
+
"app/views/layouts/results.html.erb",
|
41
|
+
"app/views/layouts/surveyor_default.html.erb",
|
42
|
+
"app/views/partials/_answer.html.haml",
|
43
|
+
"app/views/partials/_dependents.html.haml",
|
44
|
+
"app/views/partials/_question.html.haml",
|
45
|
+
"app/views/partials/_question_group.html.haml",
|
46
|
+
"app/views/partials/_section.html.haml",
|
47
|
+
"app/views/partials/_section_menu.html.haml",
|
48
|
+
"app/views/results/index.html.erb",
|
49
|
+
"app/views/results/show.html.erb",
|
50
|
+
"app/views/surveyor/edit.html.haml",
|
51
|
+
"app/views/surveyor/new.html.haml",
|
52
|
+
"app/views/surveyor/show.html.haml",
|
53
|
+
"ci-env.sh",
|
54
|
+
"config/routes.rb",
|
55
|
+
"features/redcap_parser.feature",
|
56
|
+
"features/step_definitions/parser_steps.rb",
|
57
|
+
"features/step_definitions/surveyor_steps.rb",
|
58
|
+
"features/step_definitions/web_steps.rb",
|
59
|
+
"features/support/REDCapDemoDatabase_DataDictionary.csv",
|
60
|
+
"features/support/env.rb",
|
61
|
+
"features/support/paths.rb",
|
62
|
+
"features/support/redcap_siblings.csv",
|
63
|
+
"features/surveyor.feature",
|
64
|
+
"features/surveyor_parser.feature",
|
65
|
+
"generators/extend_surveyor/extend_surveyor_generator.rb",
|
66
|
+
"generators/extend_surveyor/templates/EXTENDING_SURVEYOR",
|
67
|
+
"generators/extend_surveyor/templates/extensions/surveyor_controller.rb",
|
68
|
+
"generators/extend_surveyor/templates/extensions/surveyor_custom.html.erb",
|
69
|
+
"generators/surveyor/surveyor_generator.rb",
|
70
|
+
"generators/surveyor/templates/README",
|
71
|
+
"generators/surveyor/templates/assets/images/next.gif",
|
72
|
+
"generators/surveyor/templates/assets/images/prev.gif",
|
73
|
+
"generators/surveyor/templates/assets/javascripts/jquery.surveyor.js",
|
74
|
+
"generators/surveyor/templates/assets/javascripts/jquery.tools.min.js",
|
75
|
+
"generators/surveyor/templates/assets/stylesheets/dateinput.css",
|
76
|
+
"generators/surveyor/templates/assets/stylesheets/reset.css",
|
77
|
+
"generators/surveyor/templates/assets/stylesheets/results.css",
|
78
|
+
"generators/surveyor/templates/assets/stylesheets/sass/surveyor.sass",
|
79
|
+
"generators/surveyor/templates/locales/surveyor_en.yml",
|
80
|
+
"generators/surveyor/templates/locales/surveyor_es.yml",
|
81
|
+
"generators/surveyor/templates/locales/surveyor_he.yml",
|
82
|
+
"generators/surveyor/templates/migrate/add_api_ids.rb",
|
83
|
+
"generators/surveyor/templates/migrate/add_correct_answer_id_to_questions.rb",
|
84
|
+
"generators/surveyor/templates/migrate/add_default_value_to_answers.rb",
|
85
|
+
"generators/surveyor/templates/migrate/add_display_order_to_surveys.rb",
|
86
|
+
"generators/surveyor/templates/migrate/add_index_to_response_sets.rb",
|
87
|
+
"generators/surveyor/templates/migrate/add_index_to_surveys.rb",
|
88
|
+
"generators/surveyor/templates/migrate/add_section_id_to_responses.rb",
|
89
|
+
"generators/surveyor/templates/migrate/add_unique_indicies.rb",
|
90
|
+
"generators/surveyor/templates/migrate/create_answers.rb",
|
91
|
+
"generators/surveyor/templates/migrate/create_dependencies.rb",
|
92
|
+
"generators/surveyor/templates/migrate/create_dependency_conditions.rb",
|
93
|
+
"generators/surveyor/templates/migrate/create_question_groups.rb",
|
94
|
+
"generators/surveyor/templates/migrate/create_questions.rb",
|
95
|
+
"generators/surveyor/templates/migrate/create_response_sets.rb",
|
96
|
+
"generators/surveyor/templates/migrate/create_responses.rb",
|
97
|
+
"generators/surveyor/templates/migrate/create_survey_sections.rb",
|
98
|
+
"generators/surveyor/templates/migrate/create_surveys.rb",
|
99
|
+
"generators/surveyor/templates/migrate/create_validation_conditions.rb",
|
100
|
+
"generators/surveyor/templates/migrate/create_validations.rb",
|
101
|
+
"generators/surveyor/templates/surveys/kitchen_sink_survey.rb",
|
102
|
+
"generators/surveyor/templates/surveys/quiz.rb",
|
103
|
+
"generators/surveyor/templates/tasks/surveyor.rb",
|
104
|
+
"hudson.rakefile",
|
105
|
+
"init_testbed.rakefile",
|
106
|
+
"lib/formtastic/surveyor_builder.rb",
|
107
|
+
"lib/surveyor.rb",
|
108
|
+
"lib/surveyor/acts_as_response.rb",
|
109
|
+
"lib/surveyor/common.rb",
|
110
|
+
"lib/surveyor/models/answer_methods.rb",
|
111
|
+
"lib/surveyor/models/dependency_condition_methods.rb",
|
112
|
+
"lib/surveyor/models/dependency_methods.rb",
|
113
|
+
"lib/surveyor/models/question_group_methods.rb",
|
114
|
+
"lib/surveyor/models/question_methods.rb",
|
115
|
+
"lib/surveyor/models/response_methods.rb",
|
116
|
+
"lib/surveyor/models/response_set_methods.rb",
|
117
|
+
"lib/surveyor/models/survey_methods.rb",
|
118
|
+
"lib/surveyor/models/survey_section_methods.rb",
|
119
|
+
"lib/surveyor/models/validation_condition_methods.rb",
|
120
|
+
"lib/surveyor/models/validation_methods.rb",
|
121
|
+
"lib/surveyor/parser.rb",
|
122
|
+
"lib/surveyor/redcap_parser.rb",
|
123
|
+
"lib/surveyor/surveyor_controller_methods.rb",
|
124
|
+
"lib/surveyor/unparser.rb",
|
125
|
+
"lib/tasks/surveyor_tasks.rake",
|
126
|
+
"rails/init.rb",
|
127
|
+
"spec/controllers/surveyor_controller_spec.rb",
|
128
|
+
"spec/factories.rb",
|
129
|
+
"spec/helpers/surveyor_helper_spec.rb",
|
130
|
+
"spec/lib/common_spec.rb",
|
131
|
+
"spec/lib/parser_spec.rb",
|
132
|
+
"spec/lib/redcap_parser_spec.rb",
|
133
|
+
"spec/lib/unparser_spec.rb",
|
134
|
+
"spec/models/answer_spec.rb",
|
135
|
+
"spec/models/dependency_condition_spec.rb",
|
136
|
+
"spec/models/dependency_spec.rb",
|
137
|
+
"spec/models/question_group_spec.rb",
|
138
|
+
"spec/models/question_spec.rb",
|
139
|
+
"spec/models/response_set_spec.rb",
|
140
|
+
"spec/models/response_spec.rb",
|
141
|
+
"spec/models/survey_section_spec.rb",
|
142
|
+
"spec/models/survey_spec.rb",
|
143
|
+
"spec/models/validation_condition_spec.rb",
|
144
|
+
"spec/models/validation_spec.rb",
|
145
|
+
"spec/rcov.opts",
|
146
|
+
"spec/spec.opts",
|
147
|
+
"spec/spec_helper.rb",
|
148
|
+
"surveyor.gemspec",
|
149
|
+
"testbed/Gemfile"
|
151
150
|
]
|
152
151
|
s.homepage = %q{http://github.com/breakpointer/surveyor}
|
153
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
154
152
|
s.require_paths = ["lib"]
|
155
|
-
s.rubygems_version = %q{1.
|
153
|
+
s.rubygems_version = %q{1.6.2}
|
156
154
|
s.summary = %q{A rails (gem) plugin to enable surveys in your application}
|
157
|
-
s.test_files = [
|
158
|
-
"spec/controllers/surveyor_controller_spec.rb",
|
159
|
-
"spec/factories.rb",
|
160
|
-
"spec/helpers/surveyor_helper_spec.rb",
|
161
|
-
"spec/lib/common_spec.rb",
|
162
|
-
"spec/lib/parser_spec.rb",
|
163
|
-
"spec/lib/redcap_parser_spec.rb",
|
164
|
-
"spec/lib/unparser_spec.rb",
|
165
|
-
"spec/models/answer_spec.rb",
|
166
|
-
"spec/models/dependency_condition_spec.rb",
|
167
|
-
"spec/models/dependency_spec.rb",
|
168
|
-
"spec/models/question_group_spec.rb",
|
169
|
-
"spec/models/question_spec.rb",
|
170
|
-
"spec/models/response_set_spec.rb",
|
171
|
-
"spec/models/response_spec.rb",
|
172
|
-
"spec/models/survey_section_spec.rb",
|
173
|
-
"spec/models/survey_spec.rb",
|
174
|
-
"spec/models/validation_condition_spec.rb",
|
175
|
-
"spec/models/validation_spec.rb",
|
176
|
-
"spec/spec_helper.rb"
|
177
|
-
]
|
178
155
|
|
179
156
|
if s.respond_to? :specification_version then
|
180
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
181
157
|
s.specification_version = 3
|
182
158
|
|
183
159
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
data/testbed/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
source :rubygems
|
2
|
+
|
3
|
+
gem 'rails', '2.3.10'
|
4
|
+
gem 'rspec', '~> 1.3'
|
5
|
+
gem 'rspec-rails', '1.3.3'
|
6
|
+
gem 'sqlite3-ruby', '1.2.5' # Using this version for ruby 1.8.7 compatibility reasons
|
7
|
+
gem 'webrat'
|
8
|
+
gem 'cucumber', '0.10.3'
|
9
|
+
gem 'cucumber-rails', '0.3.2'
|
10
|
+
gem 'database_cleaner'
|
11
|
+
gem 'factory_girl'
|
12
|
+
gem 'uuid'
|
13
|
+
|
14
|
+
gem 'surveyor', :path => ".."
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: surveyor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 89
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 19
|
9
|
-
-
|
10
|
-
version: 0.19.
|
9
|
+
- 5
|
10
|
+
version: 0.19.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Brian Chamberlain
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-
|
19
|
+
date: 2011-06-03 00:00:00 -05:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -98,7 +98,6 @@ extensions: []
|
|
98
98
|
extra_rdoc_files:
|
99
99
|
- README.md
|
100
100
|
files:
|
101
|
-
- .gitignore
|
102
101
|
- .rvmrc
|
103
102
|
- CHANGELOG
|
104
103
|
- MIT-LICENSE
|
@@ -236,8 +235,8 @@ homepage: http://github.com/breakpointer/surveyor
|
|
236
235
|
licenses: []
|
237
236
|
|
238
237
|
post_install_message:
|
239
|
-
rdoc_options:
|
240
|
-
|
238
|
+
rdoc_options: []
|
239
|
+
|
241
240
|
require_paths:
|
242
241
|
- lib
|
243
242
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -261,27 +260,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
261
260
|
requirements: []
|
262
261
|
|
263
262
|
rubyforge_project:
|
264
|
-
rubygems_version: 1.
|
263
|
+
rubygems_version: 1.6.2
|
265
264
|
signing_key:
|
266
265
|
specification_version: 3
|
267
266
|
summary: A rails (gem) plugin to enable surveys in your application
|
268
|
-
test_files:
|
269
|
-
|
270
|
-
- spec/factories.rb
|
271
|
-
- spec/helpers/surveyor_helper_spec.rb
|
272
|
-
- spec/lib/common_spec.rb
|
273
|
-
- spec/lib/parser_spec.rb
|
274
|
-
- spec/lib/redcap_parser_spec.rb
|
275
|
-
- spec/lib/unparser_spec.rb
|
276
|
-
- spec/models/answer_spec.rb
|
277
|
-
- spec/models/dependency_condition_spec.rb
|
278
|
-
- spec/models/dependency_spec.rb
|
279
|
-
- spec/models/question_group_spec.rb
|
280
|
-
- spec/models/question_spec.rb
|
281
|
-
- spec/models/response_set_spec.rb
|
282
|
-
- spec/models/response_spec.rb
|
283
|
-
- spec/models/survey_section_spec.rb
|
284
|
-
- spec/models/survey_spec.rb
|
285
|
-
- spec/models/validation_condition_spec.rb
|
286
|
-
- spec/models/validation_spec.rb
|
287
|
-
- spec/spec_helper.rb
|
267
|
+
test_files: []
|
268
|
+
|
data/.gitignore
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
## MAC OS
|
2
|
-
.DS_Store
|
3
|
-
|
4
|
-
## TEXTMATE
|
5
|
-
*.tmproj
|
6
|
-
tmtags
|
7
|
-
|
8
|
-
## EMACS
|
9
|
-
*~
|
10
|
-
\#*
|
11
|
-
.\#*
|
12
|
-
|
13
|
-
## VIM
|
14
|
-
*.swp
|
15
|
-
|
16
|
-
## PROJECT::GENERAL
|
17
|
-
coverage
|
18
|
-
rdoc
|
19
|
-
pkg
|
20
|
-
|
21
|
-
## PROJECT::SPECIFIC
|
22
|
-
testbed/log/*.log
|
23
|
-
testbed/db/*
|
24
|
-
testbed/.bundle
|
25
|
-
testbed/*
|
26
|
-
surveys/fixtures/*.yml
|