helena 1.3.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +12 -7
  3. data/.travis.yml +11 -0
  4. data/Gemfile +6 -3
  5. data/Gemfile.lock +175 -188
  6. data/README.md +3 -4
  7. data/Rakefile +1 -2
  8. data/app/assets/javascripts/helena/application.js +0 -1
  9. data/app/assets/stylesheets/helena/{application.css.sass → application.scss} +0 -8
  10. data/app/controllers/helena/sessions_controller.rb +7 -1
  11. data/app/helpers/helena/application_helper.rb +18 -0
  12. data/app/models/helena/concerns/questions/validates_one_label.rb +1 -0
  13. data/app/models/helena/question.rb +1 -0
  14. data/app/models/helena/question_group.rb +8 -0
  15. data/app/models/helena/questions/static_text.rb +4 -0
  16. data/app/models/helena/session.rb +1 -19
  17. data/app/models/helena/sub_question.rb +1 -0
  18. data/app/models/helena/version.rb +4 -0
  19. data/app/views/helena/questions/_bipolar_radio_matrix.html.slim +36 -0
  20. data/app/views/helena/questions/{_checkbox_group.html.haml → _checkbox_group.html.slim} +6 -8
  21. data/app/views/helena/questions/_long_text.html.slim +9 -0
  22. data/app/views/helena/questions/{_radio_group.html.haml → _radio_group.html.slim} +5 -6
  23. data/app/views/helena/questions/_radio_matrix.html.slim +27 -0
  24. data/app/views/helena/questions/_short_text.html.slim +9 -0
  25. data/app/views/helena/questions/_static_text.html.slim +2 -4
  26. data/app/views/helena/sessions/_error_messages.html.slim +8 -0
  27. data/app/views/helena/sessions/edit.html.slim +11 -7
  28. data/app/views/helena/sessions/end_message.html.slim +1 -1
  29. data/config/locales/en.yml +13 -12
  30. data/config/locales/views/sessions/en.yml +1 -0
  31. data/gemfiles/rails_4.2.gemfile +18 -15
  32. data/gemfiles/rails_4.2.gemfile.lock +96 -117
  33. data/gemfiles/rails_5.1.gemfile +6 -3
  34. data/gemfiles/rails_5.1.gemfile.lock +127 -146
  35. data/helena.gemspec +16 -20
  36. data/lib/helena.rb +0 -3
  37. data/lib/helena/engine.rb +1 -1
  38. data/lib/helena/survey_importer.rb +4 -1
  39. data/lib/helena/version.rb +1 -1
  40. data/spec/controllers/helena/sessions_controller_spec.rb +2 -2
  41. data/spec/dummy/Rakefile +1 -1
  42. data/spec/dummy/app/views/layouts/{application.html.haml → application.html.slim} +10 -10
  43. data/spec/dummy/bin/bundle +1 -1
  44. data/spec/dummy/bin/rails +1 -1
  45. data/spec/dummy/config/application.rb +1 -2
  46. data/spec/dummy/config/boot.rb +2 -2
  47. data/spec/dummy/config/environment.rb +1 -1
  48. data/spec/factories/helena/surveys.rb +1 -1
  49. data/spec/features/helena/manage_session_spec.rb +40 -36
  50. data/spec/helpers/application_helper_spec.rb +10 -0
  51. data/spec/models/helena/session_spec.rb +1 -8
  52. data/spec/models/helena/sub_question_spec.rb +1 -1
  53. data/spec/spec_helper.rb +3 -1
  54. data/spec/support/rails_compatibility.rb +1 -1
  55. data/test_all_gemfiles.sh +7 -0
  56. metadata +72 -131
  57. data/.coveralls.yml +0 -2
  58. data/Appraisals +0 -12
  59. data/app/assets/stylesheets/helena/forms.css.sass +0 -13
  60. data/app/assets/stylesheets/helena/layout.css.sass +0 -3
  61. data/app/assets/stylesheets/helena/question_groups.css.sass +0 -4
  62. data/app/views/helena/questions/_bipolar_radio_matrix.html.haml +0 -56
  63. data/app/views/helena/questions/_long_text.html.haml +0 -8
  64. data/app/views/helena/questions/_radio_matrix.html.haml +0 -53
  65. data/app/views/helena/questions/_short_text.html.haml +0 -8
  66. data/config/initializers/simple_form_bootstrap.rb +0 -132
@@ -1,8 +1,10 @@
1
+ require 'simplecov'
2
+ SimpleCov.start
1
3
  require 'faker'
2
4
 
3
5
  # Configure Rails Envinronment
4
6
  ENV['RAILS_ENV'] = 'test'
5
- require File.expand_path('../dummy/config/environment.rb', __FILE__)
7
+ require File.expand_path('dummy/config/environment.rb', __dir__)
6
8
 
7
9
  require 'rspec/rails'
8
10
  require 'factory_bot_rails'
@@ -1,4 +1,4 @@
1
1
  # As in rails 5.1 we can no longer accept direct hashes as parameters so we ned to cast it
2
2
  def parametrize(params)
3
3
  Rails.version.to_f >= 5 ? { params: params } : params
4
- end
4
+ end
@@ -0,0 +1,7 @@
1
+ # Execute rspec for each gemfile
2
+ for file in gemfiles/*.gemfile
3
+ do
4
+ cmd="BUNDLE_GEMFILE=\"$file\" bundle exec rspec"
5
+ echo $cmd
6
+ eval $cmd
7
+ done
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helena
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Graf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-23 00:00:00.000000000 Z
11
+ date: 2019-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rails
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '4.2'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '4.2'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: mongoid
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -38,20 +24,6 @@ dependencies:
38
24
  - - ">="
39
25
  - !ruby/object:Gem::Version
40
26
  version: '4.0'
41
- - !ruby/object:Gem::Dependency
42
- name: mongoid_orderable
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '4.1'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '4.1'
55
27
  - !ruby/object:Gem::Dependency
56
28
  name: mongoid-simple-tags
57
29
  requirement: !ruby/object:Gem::Requirement
@@ -67,173 +39,145 @@ dependencies:
67
39
  - !ruby/object:Gem::Version
68
40
  version: 0.1.3
69
41
  - !ruby/object:Gem::Dependency
70
- name: haml-rails
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '1.0'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '1.0'
83
- - !ruby/object:Gem::Dependency
84
- name: slim
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '3.0'
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '3.0'
97
- - !ruby/object:Gem::Dependency
98
- name: jquery-rails
42
+ name: mongoid-tree
99
43
  requirement: !ruby/object:Gem::Requirement
100
44
  requirements:
101
- - - "~>"
45
+ - - ">="
102
46
  - !ruby/object:Gem::Version
103
- version: '4.0'
47
+ version: '2.0'
104
48
  type: :runtime
105
49
  prerelease: false
106
50
  version_requirements: !ruby/object:Gem::Requirement
107
51
  requirements:
108
- - - "~>"
52
+ - - ">="
109
53
  - !ruby/object:Gem::Version
110
- version: '4.0'
54
+ version: '2.0'
111
55
  - !ruby/object:Gem::Dependency
112
- name: sass-rails
56
+ name: mongoid_orderable
113
57
  requirement: !ruby/object:Gem::Requirement
114
58
  requirements:
115
- - - "~>"
59
+ - - ">="
116
60
  - !ruby/object:Gem::Version
117
- version: '5.0'
61
+ version: '5.2'
118
62
  type: :runtime
119
63
  prerelease: false
120
64
  version_requirements: !ruby/object:Gem::Requirement
121
65
  requirements:
122
- - - "~>"
66
+ - - ">="
123
67
  - !ruby/object:Gem::Version
124
- version: '5.0'
68
+ version: '5.2'
125
69
  - !ruby/object:Gem::Dependency
126
- name: bootstrap-sass
70
+ name: rails
127
71
  requirement: !ruby/object:Gem::Requirement
128
72
  requirements:
129
- - - "~>"
73
+ - - ">="
130
74
  - !ruby/object:Gem::Version
131
- version: '3.2'
75
+ version: '4.2'
132
76
  type: :runtime
133
77
  prerelease: false
134
78
  version_requirements: !ruby/object:Gem::Requirement
135
79
  requirements:
136
- - - "~>"
80
+ - - ">="
137
81
  - !ruby/object:Gem::Version
138
- version: '3.2'
82
+ version: '4.2'
139
83
  - !ruby/object:Gem::Dependency
140
- name: simple_form
84
+ name: rails-i18n
141
85
  requirement: !ruby/object:Gem::Requirement
142
86
  requirements:
143
- - - "~>"
87
+ - - ">="
144
88
  - !ruby/object:Gem::Version
145
- version: '3.2'
89
+ version: '4.0'
146
90
  type: :runtime
147
91
  prerelease: false
148
92
  version_requirements: !ruby/object:Gem::Requirement
149
93
  requirements:
150
- - - "~>"
94
+ - - ">="
151
95
  - !ruby/object:Gem::Version
152
- version: '3.2'
96
+ version: '4.0'
153
97
  - !ruby/object:Gem::Dependency
154
- name: rails-i18n
98
+ name: responders
155
99
  requirement: !ruby/object:Gem::Requirement
156
100
  requirements:
157
101
  - - ">="
158
102
  - !ruby/object:Gem::Version
159
- version: '4.0'
103
+ version: '2.0'
160
104
  type: :runtime
161
105
  prerelease: false
162
106
  version_requirements: !ruby/object:Gem::Requirement
163
107
  requirements:
164
108
  - - ">="
165
109
  - !ruby/object:Gem::Version
166
- version: '4.0'
110
+ version: '2.0'
167
111
  - !ruby/object:Gem::Dependency
168
- name: responders
112
+ name: sass-rails
169
113
  requirement: !ruby/object:Gem::Requirement
170
114
  requirements:
171
- - - "~>"
115
+ - - ">="
172
116
  - !ruby/object:Gem::Version
173
- version: '2.0'
117
+ version: '5.0'
174
118
  type: :runtime
175
119
  prerelease: false
176
120
  version_requirements: !ruby/object:Gem::Requirement
177
121
  requirements:
178
- - - "~>"
122
+ - - ">="
179
123
  - !ruby/object:Gem::Version
180
- version: '2.0'
124
+ version: '5.0'
181
125
  - !ruby/object:Gem::Dependency
182
- name: browser
126
+ name: simple_form
183
127
  requirement: !ruby/object:Gem::Requirement
184
128
  requirements:
185
- - - "~>"
129
+ - - ">="
186
130
  - !ruby/object:Gem::Version
187
- version: '2.0'
131
+ version: '4'
188
132
  type: :runtime
189
133
  prerelease: false
190
134
  version_requirements: !ruby/object:Gem::Requirement
191
135
  requirements:
192
- - - "~>"
136
+ - - ">="
193
137
  - !ruby/object:Gem::Version
194
- version: '2.0'
138
+ version: '4'
195
139
  - !ruby/object:Gem::Dependency
196
- name: mongoid-tree
140
+ name: slim
197
141
  requirement: !ruby/object:Gem::Requirement
198
142
  requirements:
199
- - - "~>"
143
+ - - ">="
200
144
  - !ruby/object:Gem::Version
201
- version: '2.0'
145
+ version: '3.0'
202
146
  type: :runtime
203
147
  prerelease: false
204
148
  version_requirements: !ruby/object:Gem::Requirement
205
149
  requirements:
206
- - - "~>"
150
+ - - ">="
207
151
  - !ruby/object:Gem::Version
208
- version: '2.0'
152
+ version: '3.0'
209
153
  - !ruby/object:Gem::Dependency
210
- name: rspec-rails
154
+ name: appraisal
211
155
  requirement: !ruby/object:Gem::Requirement
212
156
  requirements:
213
- - - "~>"
157
+ - - ">="
214
158
  - !ruby/object:Gem::Version
215
- version: '3'
159
+ version: '0'
216
160
  type: :development
217
161
  prerelease: false
218
162
  version_requirements: !ruby/object:Gem::Requirement
219
163
  requirements:
220
- - - "~>"
164
+ - - ">="
221
165
  - !ruby/object:Gem::Version
222
- version: '3'
166
+ version: '0'
223
167
  - !ruby/object:Gem::Dependency
224
- name: rspec-collection_matchers
168
+ name: capybara
225
169
  requirement: !ruby/object:Gem::Requirement
226
170
  requirements:
227
- - - "~>"
171
+ - - ">="
228
172
  - !ruby/object:Gem::Version
229
- version: '1'
173
+ version: '2.3'
230
174
  type: :development
231
175
  prerelease: false
232
176
  version_requirements: !ruby/object:Gem::Requirement
233
177
  requirements:
234
- - - "~>"
178
+ - - ">="
235
179
  - !ruby/object:Gem::Version
236
- version: '1'
180
+ version: '2.3'
237
181
  - !ruby/object:Gem::Dependency
238
182
  name: factory_bot_rails
239
183
  requirement: !ruby/object:Gem::Requirement
@@ -252,44 +196,44 @@ dependencies:
252
196
  name: faker
253
197
  requirement: !ruby/object:Gem::Requirement
254
198
  requirements:
255
- - - "~>"
199
+ - - ">="
256
200
  - !ruby/object:Gem::Version
257
201
  version: '1.4'
258
202
  type: :development
259
203
  prerelease: false
260
204
  version_requirements: !ruby/object:Gem::Requirement
261
205
  requirements:
262
- - - "~>"
206
+ - - ">="
263
207
  - !ruby/object:Gem::Version
264
208
  version: '1.4'
265
209
  - !ruby/object:Gem::Dependency
266
- name: capybara
210
+ name: rspec-collection_matchers
267
211
  requirement: !ruby/object:Gem::Requirement
268
212
  requirements:
269
- - - "~>"
213
+ - - ">="
270
214
  - !ruby/object:Gem::Version
271
- version: '2.3'
215
+ version: '1'
272
216
  type: :development
273
217
  prerelease: false
274
218
  version_requirements: !ruby/object:Gem::Requirement
275
219
  requirements:
276
- - - "~>"
220
+ - - ">="
277
221
  - !ruby/object:Gem::Version
278
- version: '2.3'
222
+ version: '1'
279
223
  - !ruby/object:Gem::Dependency
280
- name: appraisal
224
+ name: rspec-rails
281
225
  requirement: !ruby/object:Gem::Requirement
282
226
  requirements:
283
227
  - - ">="
284
228
  - !ruby/object:Gem::Version
285
- version: '0'
229
+ version: '3'
286
230
  type: :development
287
231
  prerelease: false
288
232
  version_requirements: !ruby/object:Gem::Requirement
289
233
  requirements:
290
234
  - - ">="
291
235
  - !ruby/object:Gem::Version
292
- version: '0'
236
+ version: '3'
293
237
  description: |-
294
238
  Helena is an online survey/test framework designed for agile
295
239
  survey/test development, longitudinal studies and instant feedback.
@@ -299,11 +243,9 @@ executables: []
299
243
  extensions: []
300
244
  extra_rdoc_files: []
301
245
  files:
302
- - ".coveralls.yml"
303
246
  - ".gitignore"
304
247
  - ".rubocop.yml"
305
248
  - ".travis.yml"
306
- - Appraisals
307
249
  - Gemfile
308
250
  - Gemfile.lock
309
251
  - LICENSE
@@ -314,10 +256,7 @@ files:
314
256
  - app/assets/images/helena/swissmadesoftware.png
315
257
  - app/assets/javascripts/helena/application.js
316
258
  - app/assets/javascripts/helena/survey.js
317
- - app/assets/stylesheets/helena/application.css.sass
318
- - app/assets/stylesheets/helena/forms.css.sass
319
- - app/assets/stylesheets/helena/layout.css.sass
320
- - app/assets/stylesheets/helena/question_groups.css.sass
259
+ - app/assets/stylesheets/helena/application.scss
321
260
  - app/controllers/helena/application_controller.rb
322
261
  - app/controllers/helena/concerns/questions/matrix_questions.rb
323
262
  - app/controllers/helena/sessions_controller.rb
@@ -344,20 +283,20 @@ files:
344
283
  - app/models/helena/survey.rb
345
284
  - app/models/helena/survey_detail.rb
346
285
  - app/models/helena/version.rb
347
- - app/views/helena/questions/_bipolar_radio_matrix.html.haml
348
- - app/views/helena/questions/_checkbox_group.html.haml
349
- - app/views/helena/questions/_long_text.html.haml
350
- - app/views/helena/questions/_radio_group.html.haml
351
- - app/views/helena/questions/_radio_matrix.html.haml
352
- - app/views/helena/questions/_short_text.html.haml
286
+ - app/views/helena/questions/_bipolar_radio_matrix.html.slim
287
+ - app/views/helena/questions/_checkbox_group.html.slim
288
+ - app/views/helena/questions/_long_text.html.slim
289
+ - app/views/helena/questions/_radio_group.html.slim
290
+ - app/views/helena/questions/_radio_matrix.html.slim
291
+ - app/views/helena/questions/_short_text.html.slim
353
292
  - app/views/helena/questions/_static_text.html.slim
293
+ - app/views/helena/sessions/_error_messages.html.slim
354
294
  - app/views/helena/sessions/_progressbar.html.slim
355
295
  - app/views/helena/sessions/edit.html.slim
356
296
  - app/views/helena/sessions/end_message.html.slim
357
297
  - bin/rails
358
298
  - config/i18n-tasks.yml
359
299
  - config/initializers/simple_form.rb
360
- - config/initializers/simple_form_bootstrap.rb
361
300
  - config/locales/en.yml
362
301
  - config/locales/models/label/en.yml
363
302
  - config/locales/models/question/en.yml
@@ -395,7 +334,7 @@ files:
395
334
  - spec/dummy/app/mailers/.keep
396
335
  - spec/dummy/app/models/.keep
397
336
  - spec/dummy/app/models/concerns/.keep
398
- - spec/dummy/app/views/layouts/application.html.haml
337
+ - spec/dummy/app/views/layouts/application.html.slim
399
338
  - spec/dummy/bin/bundle
400
339
  - spec/dummy/bin/rails
401
340
  - spec/dummy/bin/rake
@@ -430,6 +369,7 @@ files:
430
369
  - spec/factories/helena/surveys.rb
431
370
  - spec/factories/helena/versions.rb
432
371
  - spec/features/helena/manage_session_spec.rb
372
+ - spec/helpers/application_helper_spec.rb
433
373
  - spec/lib/survey_importer_spec.rb
434
374
  - spec/lib/version_publisher_spec.rb
435
375
  - spec/models/helena/answer_spec.rb
@@ -447,9 +387,10 @@ files:
447
387
  - spec/models/helena/version_spec.rb
448
388
  - spec/spec_helper.rb
449
389
  - spec/support/rails_compatibility.rb
390
+ - test_all_gemfiles.sh
450
391
  homepage: https://github.com/gurix/helena
451
392
  licenses:
452
- - GPL-3
393
+ - GPL-3.0+
453
394
  metadata: {}
454
395
  post_install_message:
455
396
  rdoc_options: []
@@ -1,2 +0,0 @@
1
- service_name: travis-ci
2
- repo_token: eiMZVVK9qTM8cTOFC5MLLmgVkVcQb2nvw
data/Appraisals DELETED
@@ -1,12 +0,0 @@
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