helena 1.1.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -2
- data/.rubocop.yml +4 -0
- data/.travis.yml +5 -4
- data/Appraisals +12 -0
- data/Gemfile +8 -11
- data/Gemfile.lock +217 -200
- data/README.md +2 -3
- data/Rakefile +2 -0
- data/app/controllers/helena/sessions_controller.rb +2 -2
- data/app/models/helena/answer.rb +5 -3
- data/app/models/helena/concerns/application_model.rb +1 -1
- data/app/models/helena/question.rb +1 -1
- data/app/models/helena/question_group.rb +1 -1
- data/app/models/helena/questions/checkbox_group.rb +1 -1
- data/app/models/helena/session.rb +3 -3
- data/app/models/helena/version.rb +1 -1
- data/config/initializers/simple_form_bootstrap.rb +1 -1
- data/db/seeds.rb +7 -6
- data/gemfiles/rails_4.2.gemfile +22 -0
- data/gemfiles/rails_4.2.gemfile.lock +295 -0
- data/gemfiles/rails_5.1.gemfile +24 -0
- data/gemfiles/rails_5.1.gemfile.lock +305 -0
- data/helena.gemspec +7 -7
- data/lib/helena/engine.rb +2 -2
- data/lib/helena/survey_importer.rb +1 -1
- data/lib/helena/version.rb +1 -1
- data/lib/helena/version_publisher.rb +2 -2
- data/spec/controllers/helena/sessions_controller_spec.rb +5 -5
- data/spec/dummy/app/views/layouts/application.html.haml +1 -3
- data/spec/dummy/bin/rails +1 -1
- data/spec/dummy/config/environments/development.rb +2 -0
- data/spec/dummy/config/environments/test.rb +0 -4
- data/spec/dummy/config.ru +1 -1
- data/spec/factories/helena/answers.rb +7 -7
- data/spec/factories/helena/labels.rb +3 -2
- data/spec/factories/helena/question_groups.rb +3 -2
- data/spec/factories/helena/questions.rb +3 -2
- data/spec/factories/helena/sessions.rb +6 -2
- data/spec/factories/helena/sub_questions.rb +3 -2
- data/spec/factories/helena/survey_details.rb +4 -3
- data/spec/factories/helena/surveys.rb +2 -2
- data/spec/factories/helena/versions.rb +3 -1
- data/spec/features/helena/manage_session_spec.rb +5 -5
- data/spec/lib/version_publisher_spec.rb +1 -1
- data/spec/models/helena/answer_spec.rb +1 -1
- data/spec/models/helena/label_spec.rb +1 -1
- data/spec/models/helena/question_group_spec.rb +1 -1
- data/spec/models/helena/question_spec.rb +1 -1
- data/spec/models/helena/questions/bipolar_radio_matrix_spec.rb +1 -1
- data/spec/models/helena/questions/checkbox_group_spec.rb +1 -1
- data/spec/models/helena/questions/radio_group_spec.rb +1 -1
- data/spec/models/helena/questions/radio_matrix_spec.rb +1 -1
- data/spec/models/helena/questions/short_text_spec.rb +1 -1
- data/spec/models/helena/session_spec.rb +3 -3
- data/spec/models/helena/sub_question_spec.rb +1 -1
- data/spec/models/helena/survey_spec.rb +1 -1
- data/spec/models/helena/version_spec.rb +1 -1
- data/spec/spec_helper.rb +4 -7
- data/spec/support/rails_compatibility.rb +4 -0
- metadata +38 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b5b95b3b6d187cebba9c31106e9ac76acb613d8
|
4
|
+
data.tar.gz: 0b69229e5fea12ca3ef9316af916e9b37fc7daab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8da55f5c0c370d6c41798d5279ae39dae1b5d126068683e14ef7b204817792cec5f43991571b2fb494963398de391911320bbb4d149d1fb4e4c7f9c615f864d4
|
7
|
+
data.tar.gz: 80bccc9d6207c9a626980a69131419ac505233fc5ef05c79b481f63835dc7b16846fbaa680c4fd9f8c063668b75a36a3c9e19f77f871685915d39d89597279c4
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
data/Appraisals
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
appraise 'rails-4.2' do
|
2
|
+
gem 'rails', '4.2'
|
3
|
+
gem 'mongoid-rspec', group: %i[development test]
|
4
|
+
gemspec
|
5
|
+
end
|
6
|
+
|
7
|
+
appraise 'rails-5.0' do
|
8
|
+
gem 'rails', '5.0'
|
9
|
+
gem 'mongoid', '>= 6.0'
|
10
|
+
gem 'mongoid-rspec', git: 'https://github.com/mongoid-rspec/mongoid-rspec.git', group: %i[development test]
|
11
|
+
gemspec
|
12
|
+
end
|
data/Gemfile
CHANGED
@@ -12,19 +12,16 @@ gemspec
|
|
12
12
|
|
13
13
|
# To use debugger
|
14
14
|
group :development, :test do
|
15
|
-
gem 'pry'
|
16
|
-
gem 'pry-byebug'
|
17
|
-
gem 'ruby-progressbar'
|
18
|
-
gem 'mongoid-rspec'
|
19
|
-
gem 'quiet_assets'
|
20
15
|
gem 'better_errors'
|
21
|
-
gem 'launchy'
|
22
16
|
gem 'binding_of_caller'
|
23
|
-
gem 'selenium-webdriver'
|
24
|
-
gem 'simple_form'
|
25
|
-
gem 'jquery-rails'
|
26
17
|
gem 'bootstrap-sass'
|
27
|
-
gem '
|
28
|
-
gem '
|
18
|
+
gem 'jquery-rails'
|
19
|
+
gem 'launchy'
|
20
|
+
gem 'mongoid-rspec', git: 'https://github.com/mongoid-rspec/mongoid-rspec'
|
21
|
+
gem 'pry'
|
22
|
+
gem 'pry-byebug'
|
23
|
+
gem 'rubocop-rails'
|
24
|
+
gem 'selenium-webdriver'
|
29
25
|
gem 'shoulda-matchers'
|
26
|
+
gem 'simple_form'
|
30
27
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,18 +1,26 @@
|
|
1
|
+
GIT
|
2
|
+
remote: https://github.com/mongoid-rspec/mongoid-rspec
|
3
|
+
revision: f392d24abc6853895bd959b4916cd82a1b12f6f4
|
4
|
+
specs:
|
5
|
+
mongoid-rspec (4.0.0.pre.alpha1)
|
6
|
+
activesupport (>= 4.0.0)
|
7
|
+
mongoid (~> 6.0)
|
8
|
+
rspec (~> 3.3)
|
9
|
+
|
1
10
|
PATH
|
2
11
|
remote: .
|
3
12
|
specs:
|
4
|
-
helena (1.
|
13
|
+
helena (1.3.0)
|
5
14
|
bootstrap-sass (~> 3.2)
|
6
|
-
breadcrumbs_on_rails (~> 2.3)
|
7
15
|
browser (~> 2.0)
|
8
|
-
haml-rails (~> 0
|
16
|
+
haml-rails (~> 1.0)
|
9
17
|
jquery-rails (~> 4.0)
|
10
|
-
mongoid (>= 4.0
|
11
|
-
mongoid-simple-tags (
|
18
|
+
mongoid (>= 4.0)
|
19
|
+
mongoid-simple-tags (>= 0.1.3)
|
12
20
|
mongoid-tree (~> 2.0)
|
13
21
|
mongoid_orderable (~> 4.1)
|
14
|
-
rails (
|
15
|
-
rails-i18n (
|
22
|
+
rails (>= 4.2)
|
23
|
+
rails-i18n (>= 4.0)
|
16
24
|
responders (~> 2.0)
|
17
25
|
sass-rails (~> 5.0)
|
18
26
|
simple_form (~> 3.2)
|
@@ -21,282 +29,291 @@ PATH
|
|
21
29
|
GEM
|
22
30
|
remote: https://rubygems.org/
|
23
31
|
specs:
|
24
|
-
|
25
|
-
actionpack (=
|
26
|
-
|
27
|
-
|
32
|
+
actioncable (5.1.4)
|
33
|
+
actionpack (= 5.1.4)
|
34
|
+
nio4r (~> 2.0)
|
35
|
+
websocket-driver (~> 0.6.1)
|
36
|
+
actionmailer (5.1.4)
|
37
|
+
actionpack (= 5.1.4)
|
38
|
+
actionview (= 5.1.4)
|
39
|
+
activejob (= 5.1.4)
|
28
40
|
mail (~> 2.5, >= 2.5.4)
|
29
|
-
rails-dom-testing (~>
|
30
|
-
actionpack (
|
31
|
-
actionview (=
|
32
|
-
activesupport (=
|
33
|
-
rack (~>
|
34
|
-
rack-test (
|
35
|
-
rails-dom-testing (~>
|
41
|
+
rails-dom-testing (~> 2.0)
|
42
|
+
actionpack (5.1.4)
|
43
|
+
actionview (= 5.1.4)
|
44
|
+
activesupport (= 5.1.4)
|
45
|
+
rack (~> 2.0)
|
46
|
+
rack-test (>= 0.6.3)
|
47
|
+
rails-dom-testing (~> 2.0)
|
36
48
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
37
|
-
actionview (
|
38
|
-
activesupport (=
|
49
|
+
actionview (5.1.4)
|
50
|
+
activesupport (= 5.1.4)
|
39
51
|
builder (~> 3.1)
|
40
|
-
|
41
|
-
rails-dom-testing (~>
|
42
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.
|
43
|
-
activejob (
|
44
|
-
activesupport (=
|
45
|
-
globalid (>= 0.3.
|
46
|
-
activemodel (
|
47
|
-
activesupport (=
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
52
|
+
erubi (~> 1.4)
|
53
|
+
rails-dom-testing (~> 2.0)
|
54
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
55
|
+
activejob (5.1.4)
|
56
|
+
activesupport (= 5.1.4)
|
57
|
+
globalid (>= 0.3.6)
|
58
|
+
activemodel (5.1.4)
|
59
|
+
activesupport (= 5.1.4)
|
60
|
+
activerecord (5.1.4)
|
61
|
+
activemodel (= 5.1.4)
|
62
|
+
activesupport (= 5.1.4)
|
63
|
+
arel (~> 8.0)
|
64
|
+
activesupport (5.1.4)
|
65
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
54
66
|
i18n (~> 0.7)
|
55
|
-
json (~> 1.7, >= 1.7.7)
|
56
67
|
minitest (~> 5.1)
|
57
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
58
68
|
tzinfo (~> 1.1)
|
59
|
-
addressable (2.
|
60
|
-
|
61
|
-
|
69
|
+
addressable (2.5.2)
|
70
|
+
public_suffix (>= 2.0.2, < 4.0)
|
71
|
+
appraisal (2.2.0)
|
72
|
+
bundler
|
73
|
+
rake
|
74
|
+
thor (>= 0.14.0)
|
75
|
+
arel (8.0.0)
|
76
|
+
ast (2.3.0)
|
77
|
+
autoprefixer-rails (7.1.6)
|
62
78
|
execjs
|
63
|
-
better_errors (2.
|
79
|
+
better_errors (2.4.0)
|
64
80
|
coderay (>= 1.0.0)
|
65
|
-
|
81
|
+
erubi (>= 1.0.0)
|
66
82
|
rack (>= 0.9.0)
|
67
|
-
binding_of_caller (0.7.
|
83
|
+
binding_of_caller (0.7.3)
|
68
84
|
debug_inspector (>= 0.0.1)
|
69
|
-
bootstrap-sass (3.3.
|
85
|
+
bootstrap-sass (3.3.7)
|
70
86
|
autoprefixer-rails (>= 5.2.1)
|
71
87
|
sass (>= 3.3.4)
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
capybara (2.7.1)
|
88
|
+
browser (2.5.2)
|
89
|
+
bson (4.2.2)
|
90
|
+
builder (3.2.3)
|
91
|
+
byebug (9.1.0)
|
92
|
+
capybara (2.15.4)
|
78
93
|
addressable
|
79
|
-
|
94
|
+
mini_mime (>= 0.1.3)
|
80
95
|
nokogiri (>= 1.3.3)
|
81
96
|
rack (>= 1.0.0)
|
82
97
|
rack-test (>= 0.5.4)
|
83
98
|
xpath (~> 2.0)
|
84
|
-
childprocess (0.
|
99
|
+
childprocess (0.8.0)
|
85
100
|
ffi (~> 1.0, >= 1.0.11)
|
86
|
-
coderay (1.1.
|
87
|
-
concurrent-ruby (1.0.
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
thor (~> 0.19.1)
|
93
|
-
tins (~> 1.6.0)
|
94
|
-
debug_inspector (0.0.2)
|
95
|
-
diff-lcs (1.2.5)
|
96
|
-
docile (1.1.5)
|
101
|
+
coderay (1.1.2)
|
102
|
+
concurrent-ruby (1.0.5)
|
103
|
+
crass (1.0.2)
|
104
|
+
debug_inspector (0.0.3)
|
105
|
+
diff-lcs (1.3)
|
106
|
+
erubi (1.7.0)
|
97
107
|
erubis (2.7.0)
|
98
108
|
execjs (2.7.0)
|
99
|
-
|
109
|
+
factory_bot (4.8.2)
|
100
110
|
activesupport (>= 3.0.0)
|
101
|
-
|
102
|
-
|
111
|
+
factory_bot_rails (4.8.2)
|
112
|
+
factory_bot (~> 4.8.2)
|
103
113
|
railties (>= 3.0.0)
|
104
|
-
faker (1.
|
114
|
+
faker (1.8.4)
|
105
115
|
i18n (~> 0.5)
|
106
|
-
ffi (1.9.
|
107
|
-
globalid (0.
|
108
|
-
activesupport (>= 4.
|
109
|
-
haml (
|
116
|
+
ffi (1.9.18)
|
117
|
+
globalid (0.4.1)
|
118
|
+
activesupport (>= 4.2.0)
|
119
|
+
haml (5.0.4)
|
120
|
+
temple (>= 0.8.0)
|
110
121
|
tilt
|
111
|
-
haml-rails (0.
|
122
|
+
haml-rails (1.0.0)
|
112
123
|
actionpack (>= 4.0.1)
|
113
124
|
activesupport (>= 4.0.1)
|
114
|
-
haml (>= 4.0.6, <
|
125
|
+
haml (>= 4.0.6, < 6.0)
|
115
126
|
html2haml (>= 1.0.1)
|
116
127
|
railties (>= 4.0.1)
|
117
|
-
html2haml (2.
|
128
|
+
html2haml (2.2.0)
|
118
129
|
erubis (~> 2.7.0)
|
119
|
-
haml (
|
120
|
-
nokogiri (
|
130
|
+
haml (>= 4.0, < 6)
|
131
|
+
nokogiri (>= 1.6.0)
|
121
132
|
ruby_parser (~> 3.5)
|
122
|
-
i18n (0.
|
123
|
-
|
133
|
+
i18n (0.9.1)
|
134
|
+
concurrent-ruby (~> 1.0)
|
135
|
+
jquery-rails (4.3.1)
|
124
136
|
rails-dom-testing (>= 1, < 3)
|
125
137
|
railties (>= 4.2.0)
|
126
138
|
thor (>= 0.14, < 2.0)
|
127
|
-
json (1.8.
|
139
|
+
json (1.8.6)
|
128
140
|
launchy (2.4.3)
|
129
141
|
addressable (~> 2.3)
|
130
|
-
loofah (2.
|
142
|
+
loofah (2.1.1)
|
143
|
+
crass (~> 1.0.2)
|
131
144
|
nokogiri (>= 1.5.9)
|
132
|
-
mail (2.
|
133
|
-
|
134
|
-
method_source (0.
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
activemodel (~> 4.0)
|
144
|
-
mongo (~> 2.1)
|
145
|
-
origin (~> 2.2)
|
146
|
-
tzinfo (>= 0.3.37)
|
147
|
-
mongoid-rspec (3.0.0)
|
148
|
-
mongoid (~> 5.0)
|
149
|
-
rake
|
150
|
-
rspec (~> 3.3)
|
145
|
+
mail (2.7.0)
|
146
|
+
mini_mime (>= 0.1.1)
|
147
|
+
method_source (0.9.0)
|
148
|
+
mini_mime (1.0.0)
|
149
|
+
mini_portile2 (2.3.0)
|
150
|
+
minitest (5.10.3)
|
151
|
+
mongo (2.4.3)
|
152
|
+
bson (>= 4.2.1, < 5.0.0)
|
153
|
+
mongoid (6.2.1)
|
154
|
+
activemodel (~> 5.1)
|
155
|
+
mongo (>= 2.4.1, < 3.0.0)
|
151
156
|
mongoid-simple-tags (0.1.3)
|
152
157
|
json (~> 1.8)
|
153
158
|
mongoid (>= 3.0.3)
|
154
|
-
mongoid-tree (2.0
|
155
|
-
mongoid (>= 4.0, <
|
159
|
+
mongoid-tree (2.1.0)
|
160
|
+
mongoid (>= 4.0, < 7.0)
|
156
161
|
mongoid_orderable (4.1.1)
|
157
162
|
mongoid
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
163
|
+
nio4r (2.1.0)
|
164
|
+
nokogiri (1.8.1)
|
165
|
+
mini_portile2 (~> 2.3.0)
|
166
|
+
parallel (1.12.0)
|
167
|
+
parser (2.4.0.0)
|
168
|
+
ast (~> 2.2)
|
169
|
+
powerpack (0.1.1)
|
170
|
+
pry (0.11.2)
|
164
171
|
coderay (~> 1.1.0)
|
165
|
-
method_source (~> 0.
|
166
|
-
|
167
|
-
|
168
|
-
byebug (~> 9.0)
|
172
|
+
method_source (~> 0.9.0)
|
173
|
+
pry-byebug (3.5.0)
|
174
|
+
byebug (~> 9.1)
|
169
175
|
pry (~> 0.10)
|
170
|
-
|
171
|
-
|
172
|
-
rack (
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
actionmailer (=
|
177
|
-
actionpack (=
|
178
|
-
actionview (=
|
179
|
-
activejob (=
|
180
|
-
activemodel (=
|
181
|
-
activerecord (=
|
182
|
-
activesupport (=
|
183
|
-
bundler (>= 1.3.0
|
184
|
-
railties (=
|
185
|
-
sprockets-rails
|
186
|
-
rails-
|
187
|
-
activesupport (>= 4.2.0
|
188
|
-
|
189
|
-
activesupport (>= 4.2.0.beta, < 5.0)
|
190
|
-
nokogiri (~> 1.6.0)
|
191
|
-
rails-deprecated_sanitizer (>= 1.0.1)
|
176
|
+
public_suffix (3.0.1)
|
177
|
+
rack (2.0.3)
|
178
|
+
rack-test (0.7.0)
|
179
|
+
rack (>= 1.0, < 3)
|
180
|
+
rails (5.1.4)
|
181
|
+
actioncable (= 5.1.4)
|
182
|
+
actionmailer (= 5.1.4)
|
183
|
+
actionpack (= 5.1.4)
|
184
|
+
actionview (= 5.1.4)
|
185
|
+
activejob (= 5.1.4)
|
186
|
+
activemodel (= 5.1.4)
|
187
|
+
activerecord (= 5.1.4)
|
188
|
+
activesupport (= 5.1.4)
|
189
|
+
bundler (>= 1.3.0)
|
190
|
+
railties (= 5.1.4)
|
191
|
+
sprockets-rails (>= 2.0.0)
|
192
|
+
rails-dom-testing (2.0.3)
|
193
|
+
activesupport (>= 4.2.0)
|
194
|
+
nokogiri (>= 1.6)
|
192
195
|
rails-html-sanitizer (1.0.3)
|
193
196
|
loofah (~> 2.0)
|
194
|
-
rails-i18n (
|
197
|
+
rails-i18n (5.0.4)
|
195
198
|
i18n (~> 0.7)
|
196
|
-
railties (~>
|
197
|
-
railties (
|
198
|
-
actionpack (=
|
199
|
-
activesupport (=
|
199
|
+
railties (~> 5.0)
|
200
|
+
railties (5.1.4)
|
201
|
+
actionpack (= 5.1.4)
|
202
|
+
activesupport (= 5.1.4)
|
203
|
+
method_source
|
200
204
|
rake (>= 0.8.7)
|
201
205
|
thor (>= 0.18.1, < 2.0)
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
206
|
+
rainbow (2.2.2)
|
207
|
+
rake
|
208
|
+
rake (12.2.1)
|
209
|
+
rb-fsevent (0.10.2)
|
210
|
+
rb-inotify (0.9.10)
|
211
|
+
ffi (>= 0.5.0, < 2)
|
212
|
+
responders (2.4.0)
|
213
|
+
actionpack (>= 4.2.0, < 5.3)
|
214
|
+
railties (>= 4.2.0, < 5.3)
|
215
|
+
rspec (3.7.0)
|
216
|
+
rspec-core (~> 3.7.0)
|
217
|
+
rspec-expectations (~> 3.7.0)
|
218
|
+
rspec-mocks (~> 3.7.0)
|
219
|
+
rspec-collection_matchers (1.1.3)
|
210
220
|
rspec-expectations (>= 2.99.0.beta1)
|
211
|
-
rspec-core (3.
|
212
|
-
rspec-support (~> 3.
|
213
|
-
rspec-expectations (3.
|
221
|
+
rspec-core (3.7.0)
|
222
|
+
rspec-support (~> 3.7.0)
|
223
|
+
rspec-expectations (3.7.0)
|
214
224
|
diff-lcs (>= 1.2.0, < 2.0)
|
215
|
-
rspec-support (~> 3.
|
216
|
-
rspec-mocks (3.
|
225
|
+
rspec-support (~> 3.7.0)
|
226
|
+
rspec-mocks (3.7.0)
|
217
227
|
diff-lcs (>= 1.2.0, < 2.0)
|
218
|
-
rspec-support (~> 3.
|
219
|
-
rspec-rails (3.
|
220
|
-
actionpack (>= 3.0
|
221
|
-
activesupport (>= 3.0
|
222
|
-
railties (>= 3.0
|
223
|
-
rspec-core (~> 3.
|
224
|
-
rspec-expectations (~> 3.
|
225
|
-
rspec-mocks (~> 3.
|
226
|
-
rspec-support (~> 3.
|
227
|
-
rspec-support (3.
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
228
|
+
rspec-support (~> 3.7.0)
|
229
|
+
rspec-rails (3.7.1)
|
230
|
+
actionpack (>= 3.0)
|
231
|
+
activesupport (>= 3.0)
|
232
|
+
railties (>= 3.0)
|
233
|
+
rspec-core (~> 3.7.0)
|
234
|
+
rspec-expectations (~> 3.7.0)
|
235
|
+
rspec-mocks (~> 3.7.0)
|
236
|
+
rspec-support (~> 3.7.0)
|
237
|
+
rspec-support (3.7.0)
|
238
|
+
rubocop (0.51.0)
|
239
|
+
parallel (~> 1.10)
|
240
|
+
parser (>= 2.3.3.1, < 3.0)
|
241
|
+
powerpack (~> 0.1)
|
242
|
+
rainbow (>= 2.2.2, < 3.0)
|
243
|
+
ruby-progressbar (~> 1.7)
|
244
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
245
|
+
rubocop-rails (1.1.1)
|
246
|
+
rubocop (~> 0.49)
|
247
|
+
ruby-progressbar (1.9.0)
|
248
|
+
ruby_parser (3.10.1)
|
249
|
+
sexp_processor (~> 4.9)
|
250
|
+
rubyzip (1.2.1)
|
251
|
+
sass (3.5.3)
|
252
|
+
sass-listen (~> 4.0.0)
|
253
|
+
sass-listen (4.0.0)
|
254
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
255
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
256
|
+
sass-rails (5.0.6)
|
257
|
+
railties (>= 4.0.0, < 6)
|
235
258
|
sass (~> 3.1)
|
236
259
|
sprockets (>= 2.8, < 4.0)
|
237
260
|
sprockets-rails (>= 2.0, < 4.0)
|
238
261
|
tilt (>= 1.1, < 3)
|
239
|
-
selenium-webdriver (
|
262
|
+
selenium-webdriver (3.7.0)
|
240
263
|
childprocess (~> 0.5)
|
241
264
|
rubyzip (~> 1.0)
|
242
|
-
|
243
|
-
|
244
|
-
shoulda-matchers (3.1.1)
|
265
|
+
sexp_processor (4.10.0)
|
266
|
+
shoulda-matchers (3.1.2)
|
245
267
|
activesupport (>= 4.0.0)
|
246
|
-
simple_form (3.
|
247
|
-
actionpack (> 4, < 5.
|
248
|
-
activemodel (> 4, < 5.
|
249
|
-
|
250
|
-
|
251
|
-
json (~> 1.8)
|
252
|
-
simplecov-html (~> 0.10.0)
|
253
|
-
simplecov-html (0.10.0)
|
254
|
-
slim (3.0.7)
|
255
|
-
temple (~> 0.7.6)
|
268
|
+
simple_form (3.5.0)
|
269
|
+
actionpack (> 4, < 5.2)
|
270
|
+
activemodel (> 4, < 5.2)
|
271
|
+
slim (3.0.8)
|
272
|
+
temple (>= 0.7.6, < 0.9)
|
256
273
|
tilt (>= 1.3.3, < 2.1)
|
257
|
-
|
258
|
-
sprockets (3.6.2)
|
274
|
+
sprockets (3.7.1)
|
259
275
|
concurrent-ruby (~> 1.0)
|
260
276
|
rack (> 1, < 3)
|
261
|
-
sprockets-rails (3.
|
277
|
+
sprockets-rails (3.2.1)
|
262
278
|
actionpack (>= 4.0)
|
263
279
|
activesupport (>= 4.0)
|
264
280
|
sprockets (>= 3.0.0)
|
265
|
-
temple (0.
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
tilt (2.0.5)
|
271
|
-
tins (1.6.0)
|
272
|
-
tzinfo (1.2.2)
|
281
|
+
temple (0.8.0)
|
282
|
+
thor (0.20.0)
|
283
|
+
thread_safe (0.3.6)
|
284
|
+
tilt (2.0.8)
|
285
|
+
tzinfo (1.2.4)
|
273
286
|
thread_safe (~> 0.1)
|
274
|
-
|
275
|
-
|
287
|
+
unicode-display_width (1.3.0)
|
288
|
+
websocket-driver (0.6.5)
|
289
|
+
websocket-extensions (>= 0.1.0)
|
290
|
+
websocket-extensions (0.1.2)
|
291
|
+
xpath (2.1.0)
|
276
292
|
nokogiri (~> 1.3)
|
277
293
|
|
278
294
|
PLATFORMS
|
279
295
|
ruby
|
280
296
|
|
281
297
|
DEPENDENCIES
|
298
|
+
appraisal
|
282
299
|
better_errors
|
283
300
|
binding_of_caller
|
284
301
|
bootstrap-sass
|
285
|
-
breadcrumbs_on_rails
|
286
302
|
capybara (~> 2.3)
|
287
|
-
|
288
|
-
factory_girl_rails (~> 4.4)
|
303
|
+
factory_bot_rails
|
289
304
|
faker (~> 1.4)
|
290
305
|
helena!
|
291
306
|
jquery-rails
|
292
307
|
launchy
|
293
|
-
mongoid-rspec
|
308
|
+
mongoid-rspec!
|
294
309
|
pry
|
295
310
|
pry-byebug
|
296
|
-
quiet_assets
|
297
311
|
rspec-collection_matchers (~> 1)
|
298
312
|
rspec-rails (~> 3)
|
299
|
-
|
313
|
+
rubocop-rails
|
300
314
|
selenium-webdriver
|
301
315
|
shoulda-matchers
|
302
316
|
simple_form
|
317
|
+
|
318
|
+
BUNDLED WITH
|
319
|
+
1.16.0.pre.3
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
[![Build Status](https://img.shields.io/travis/gurix/helena/master.svg?style=flat)](https://travis-ci.org/gurix/helena)
|
2
2
|
[![Code Climate](https://img.shields.io/codeclimate/github/gurix/helena.svg?style=flat)](https://codeclimate.com/github/gurix/helena)
|
3
|
-
[![Dependency Status](https://img.shields.io/gemnasium/gurix/helena.svg?style=flat)](https://gemnasium.com/gurix/helena)
|
4
3
|
[![Rubygems Version](https://img.shields.io/gem/v/helena.svg?style=flat)](https://rubygems.org/gems/helena)
|
5
|
-
[![Coverage Status](https://coveralls.io/repos/gurix/helena/badge.svg?branch=master&service=github)](https://coveralls.io/github/gurix/helena?branch=master)
|
6
4
|
# Helena
|
7
5
|
Helena is an online survey/test framework designed for agile survey/test development, longitudinal studies and instant feedback.
|
8
6
|
|
@@ -10,7 +8,8 @@ Helena is an online survey/test framework designed for agile survey/test develop
|
|
10
8
|
|
11
9
|
Demo: http://helena-demo.herokuapp.com (https://github.com/gurix/helena-demo)
|
12
10
|
## Requirements
|
13
|
-
*
|
11
|
+
* Ruby (2.3.1 or higher)
|
12
|
+
* Rails (4.2 or higher)
|
14
13
|
* Mongoid (4.0.0 or higher)
|
15
14
|
* MongoDB (2.4.10 or higher)
|
16
15
|
|
data/Rakefile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Helena
|
2
2
|
# TODO: Needs refactoring, is really ugly atm :-(
|
3
3
|
class SessionsController < ApplicationController
|
4
|
-
before_action :load_session, only: [
|
4
|
+
before_action :load_session, only: %i[edit update]
|
5
5
|
before_action :update_answers, only: :update
|
6
6
|
before_action :answer_errors, only: :update
|
7
7
|
after_action :update_last_question_group_id, only: :update
|
@@ -41,7 +41,7 @@ module Helena
|
|
41
41
|
@session = Helena::Session.find_by token: params[:token]
|
42
42
|
@survey = @session.survey
|
43
43
|
@version = @survey.versions.find @session.version_id
|
44
|
-
render
|
44
|
+
render plain: 'Version not active', status: '404' unless @version && @version.active
|
45
45
|
@question_group = question_group
|
46
46
|
end
|
47
47
|
|