helena 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -2
  3. data/.rubocop.yml +4 -0
  4. data/.travis.yml +5 -4
  5. data/Appraisals +12 -0
  6. data/Gemfile +8 -11
  7. data/Gemfile.lock +217 -200
  8. data/README.md +2 -3
  9. data/Rakefile +2 -0
  10. data/app/controllers/helena/sessions_controller.rb +2 -2
  11. data/app/models/helena/answer.rb +5 -3
  12. data/app/models/helena/concerns/application_model.rb +1 -1
  13. data/app/models/helena/question.rb +1 -1
  14. data/app/models/helena/question_group.rb +1 -1
  15. data/app/models/helena/questions/checkbox_group.rb +1 -1
  16. data/app/models/helena/session.rb +3 -3
  17. data/app/models/helena/version.rb +1 -1
  18. data/config/initializers/simple_form_bootstrap.rb +1 -1
  19. data/db/seeds.rb +7 -6
  20. data/gemfiles/rails_4.2.gemfile +22 -0
  21. data/gemfiles/rails_4.2.gemfile.lock +295 -0
  22. data/gemfiles/rails_5.1.gemfile +24 -0
  23. data/gemfiles/rails_5.1.gemfile.lock +305 -0
  24. data/helena.gemspec +7 -7
  25. data/lib/helena/engine.rb +2 -2
  26. data/lib/helena/survey_importer.rb +1 -1
  27. data/lib/helena/version.rb +1 -1
  28. data/lib/helena/version_publisher.rb +2 -2
  29. data/spec/controllers/helena/sessions_controller_spec.rb +5 -5
  30. data/spec/dummy/app/views/layouts/application.html.haml +1 -3
  31. data/spec/dummy/bin/rails +1 -1
  32. data/spec/dummy/config/environments/development.rb +2 -0
  33. data/spec/dummy/config/environments/test.rb +0 -4
  34. data/spec/dummy/config.ru +1 -1
  35. data/spec/factories/helena/answers.rb +7 -7
  36. data/spec/factories/helena/labels.rb +3 -2
  37. data/spec/factories/helena/question_groups.rb +3 -2
  38. data/spec/factories/helena/questions.rb +3 -2
  39. data/spec/factories/helena/sessions.rb +6 -2
  40. data/spec/factories/helena/sub_questions.rb +3 -2
  41. data/spec/factories/helena/survey_details.rb +4 -3
  42. data/spec/factories/helena/surveys.rb +2 -2
  43. data/spec/factories/helena/versions.rb +3 -1
  44. data/spec/features/helena/manage_session_spec.rb +5 -5
  45. data/spec/lib/version_publisher_spec.rb +1 -1
  46. data/spec/models/helena/answer_spec.rb +1 -1
  47. data/spec/models/helena/label_spec.rb +1 -1
  48. data/spec/models/helena/question_group_spec.rb +1 -1
  49. data/spec/models/helena/question_spec.rb +1 -1
  50. data/spec/models/helena/questions/bipolar_radio_matrix_spec.rb +1 -1
  51. data/spec/models/helena/questions/checkbox_group_spec.rb +1 -1
  52. data/spec/models/helena/questions/radio_group_spec.rb +1 -1
  53. data/spec/models/helena/questions/radio_matrix_spec.rb +1 -1
  54. data/spec/models/helena/questions/short_text_spec.rb +1 -1
  55. data/spec/models/helena/session_spec.rb +3 -3
  56. data/spec/models/helena/sub_question_spec.rb +1 -1
  57. data/spec/models/helena/survey_spec.rb +1 -1
  58. data/spec/models/helena/version_spec.rb +1 -1
  59. data/spec/spec_helper.rb +4 -7
  60. data/spec/support/rails_compatibility.rb +4 -0
  61. metadata +38 -39
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a6db9f46cd390548ed2c511bea733e62127d3f6
4
- data.tar.gz: 01aaffba5e1dfc35327128999a22551d32774932
3
+ metadata.gz: 5b5b95b3b6d187cebba9c31106e9ac76acb613d8
4
+ data.tar.gz: 0b69229e5fea12ca3ef9316af916e9b37fc7daab
5
5
  SHA512:
6
- metadata.gz: 0718ba9b0e62a15bb8299d3febb0cd0eb407e1fa6957e29fcc105922ca79353a3779212b69940a24b2edd4239d9c1d707dc4f50703b489c4d389b11b723e66bd
7
- data.tar.gz: 99b48aea01533d7a6e7167f363169473e754da893bde5016cf910e2e58b74521b50e20fde1ec6e5f5a8426087697ffef0e1261b36c6d64c0d69005e295da9dad
6
+ metadata.gz: 8da55f5c0c370d6c41798d5279ae39dae1b5d126068683e14ef7b204817792cec5f43991571b2fb494963398de391911320bbb4d149d1fb4e4c7f9c615f864d4
7
+ data.tar.gz: 80bccc9d6207c9a626980a69131419ac505233fc5ef05c79b481f63835dc7b16846fbaa680c4fd9f8c063668b75a36a3c9e19f77f871685915d39d89597279c4
data/.gitignore CHANGED
@@ -9,7 +9,7 @@ spec/dummy/tmp/
9
9
  spec/dummy/.sass-cache
10
10
  coverage/
11
11
  **/*.DS_Store
12
-
12
+ spec/dummy/public/uploads/*
13
13
  .DS_Store
14
-
15
14
  .respec_failures
15
+ helena-*.gem
data/.rubocop.yml CHANGED
@@ -2,8 +2,12 @@ AllCops:
2
2
  Include:
3
3
  - '**/Rakefile'
4
4
  - '**/config.ru'
5
+ - '**/Gemfile'
6
+ - '**/Appraisals'
5
7
  Exclude:
6
8
  - bin/**
9
+ - spec/**/**
10
+ - helena.gemspec
7
11
  - spec/dummy/config/initializers/secret_token.rb
8
12
  Documentation:
9
13
  Enabled: false
data/.travis.yml CHANGED
@@ -1,11 +1,12 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0
4
- - 2.1
5
- - 2.2
3
+ - 2.3.1
4
+
5
+ gemfile:
6
+ - gemfiles/rails_4.2.gemfile
7
+ - gemfiles/rails_5.1.gemfile
6
8
 
7
9
  services:
8
10
  - mongodb
9
11
 
10
- cache: bundler
11
12
  sudo: false
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 'breadcrumbs_on_rails'
28
- gem 'coveralls', require: false
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.1.0)
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.9)
16
+ haml-rails (~> 1.0)
9
17
  jquery-rails (~> 4.0)
10
- mongoid (>= 4.0, < 6.0)
11
- mongoid-simple-tags (~> 0.1)
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 (~> 4.2)
15
- rails-i18n (~> 4.0)
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
- actionmailer (4.2.6)
25
- actionpack (= 4.2.6)
26
- actionview (= 4.2.6)
27
- activejob (= 4.2.6)
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 (~> 1.0, >= 1.0.5)
30
- actionpack (4.2.6)
31
- actionview (= 4.2.6)
32
- activesupport (= 4.2.6)
33
- rack (~> 1.6)
34
- rack-test (~> 0.6.2)
35
- rails-dom-testing (~> 1.0, >= 1.0.5)
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 (4.2.6)
38
- activesupport (= 4.2.6)
49
+ actionview (5.1.4)
50
+ activesupport (= 5.1.4)
39
51
  builder (~> 3.1)
40
- erubis (~> 2.7.0)
41
- rails-dom-testing (~> 1.0, >= 1.0.5)
42
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
43
- activejob (4.2.6)
44
- activesupport (= 4.2.6)
45
- globalid (>= 0.3.0)
46
- activemodel (4.2.6)
47
- activesupport (= 4.2.6)
48
- builder (~> 3.1)
49
- activerecord (4.2.6)
50
- activemodel (= 4.2.6)
51
- activesupport (= 4.2.6)
52
- arel (~> 6.0)
53
- activesupport (4.2.6)
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.4.0)
60
- arel (6.0.3)
61
- autoprefixer-rails (6.3.6.2)
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.1.1)
79
+ better_errors (2.4.0)
64
80
  coderay (>= 1.0.0)
65
- erubis (>= 2.6.6)
81
+ erubi (>= 1.0.0)
66
82
  rack (>= 0.9.0)
67
- binding_of_caller (0.7.2)
83
+ binding_of_caller (0.7.3)
68
84
  debug_inspector (>= 0.0.1)
69
- bootstrap-sass (3.3.6)
85
+ bootstrap-sass (3.3.7)
70
86
  autoprefixer-rails (>= 5.2.1)
71
87
  sass (>= 3.3.4)
72
- breadcrumbs_on_rails (2.3.1)
73
- browser (2.2.0)
74
- bson (4.1.1)
75
- builder (3.2.2)
76
- byebug (9.0.5)
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
- mime-types (>= 1.16)
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.5.9)
99
+ childprocess (0.8.0)
85
100
  ffi (~> 1.0, >= 1.0.11)
86
- coderay (1.1.1)
87
- concurrent-ruby (1.0.2)
88
- coveralls (0.8.13)
89
- json (~> 1.8)
90
- simplecov (~> 0.11.0)
91
- term-ansicolor (~> 1.3)
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
- factory_girl (4.7.0)
109
+ factory_bot (4.8.2)
100
110
  activesupport (>= 3.0.0)
101
- factory_girl_rails (4.7.0)
102
- factory_girl (~> 4.7.0)
111
+ factory_bot_rails (4.8.2)
112
+ factory_bot (~> 4.8.2)
103
113
  railties (>= 3.0.0)
104
- faker (1.6.3)
114
+ faker (1.8.4)
105
115
  i18n (~> 0.5)
106
- ffi (1.9.10)
107
- globalid (0.3.6)
108
- activesupport (>= 4.1.0)
109
- haml (4.0.7)
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.9.0)
122
+ haml-rails (1.0.0)
112
123
  actionpack (>= 4.0.1)
113
124
  activesupport (>= 4.0.1)
114
- haml (>= 4.0.6, < 5.0)
125
+ haml (>= 4.0.6, < 6.0)
115
126
  html2haml (>= 1.0.1)
116
127
  railties (>= 4.0.1)
117
- html2haml (2.0.0)
128
+ html2haml (2.2.0)
118
129
  erubis (~> 2.7.0)
119
- haml (~> 4.0.0)
120
- nokogiri (~> 1.6.0)
130
+ haml (>= 4.0, < 6)
131
+ nokogiri (>= 1.6.0)
121
132
  ruby_parser (~> 3.5)
122
- i18n (0.7.0)
123
- jquery-rails (4.1.1)
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.3)
139
+ json (1.8.6)
128
140
  launchy (2.4.3)
129
141
  addressable (~> 2.3)
130
- loofah (2.0.3)
142
+ loofah (2.1.1)
143
+ crass (~> 1.0.2)
131
144
  nokogiri (>= 1.5.9)
132
- mail (2.6.4)
133
- mime-types (>= 1.16, < 4)
134
- method_source (0.8.2)
135
- mime-types (3.1)
136
- mime-types-data (~> 3.2015)
137
- mime-types-data (3.2016.0521)
138
- mini_portile2 (2.1.0)
139
- minitest (5.9.0)
140
- mongo (2.2.5)
141
- bson (~> 4.0)
142
- mongoid (5.1.3)
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.1)
155
- mongoid (>= 4.0, < 6.0)
159
+ mongoid-tree (2.1.0)
160
+ mongoid (>= 4.0, < 7.0)
156
161
  mongoid_orderable (4.1.1)
157
162
  mongoid
158
- nokogiri (1.6.8)
159
- mini_portile2 (~> 2.1.0)
160
- pkg-config (~> 1.1.7)
161
- origin (2.2.0)
162
- pkg-config (1.1.7)
163
- pry (0.10.3)
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.8.1)
166
- slop (~> 3.4)
167
- pry-byebug (3.4.0)
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
- quiet_assets (1.1.0)
171
- railties (>= 3.1, < 5.0)
172
- rack (1.6.4)
173
- rack-test (0.6.3)
174
- rack (>= 1.0)
175
- rails (4.2.6)
176
- actionmailer (= 4.2.6)
177
- actionpack (= 4.2.6)
178
- actionview (= 4.2.6)
179
- activejob (= 4.2.6)
180
- activemodel (= 4.2.6)
181
- activerecord (= 4.2.6)
182
- activesupport (= 4.2.6)
183
- bundler (>= 1.3.0, < 2.0)
184
- railties (= 4.2.6)
185
- sprockets-rails
186
- rails-deprecated_sanitizer (1.0.3)
187
- activesupport (>= 4.2.0.alpha)
188
- rails-dom-testing (1.0.7)
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 (4.0.8)
197
+ rails-i18n (5.0.4)
195
198
  i18n (~> 0.7)
196
- railties (~> 4.0)
197
- railties (4.2.6)
198
- actionpack (= 4.2.6)
199
- activesupport (= 4.2.6)
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
- rake (11.2.2)
203
- responders (2.2.0)
204
- railties (>= 4.2.0, < 5.1)
205
- rspec (3.4.0)
206
- rspec-core (~> 3.4.0)
207
- rspec-expectations (~> 3.4.0)
208
- rspec-mocks (~> 3.4.0)
209
- rspec-collection_matchers (1.1.2)
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.4.4)
212
- rspec-support (~> 3.4.0)
213
- rspec-expectations (3.4.0)
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.4.0)
216
- rspec-mocks (3.4.1)
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.4.0)
219
- rspec-rails (3.4.2)
220
- actionpack (>= 3.0, < 4.3)
221
- activesupport (>= 3.0, < 4.3)
222
- railties (>= 3.0, < 4.3)
223
- rspec-core (~> 3.4.0)
224
- rspec-expectations (~> 3.4.0)
225
- rspec-mocks (~> 3.4.0)
226
- rspec-support (~> 3.4.0)
227
- rspec-support (3.4.1)
228
- ruby-progressbar (1.8.1)
229
- ruby_parser (3.8.2)
230
- sexp_processor (~> 4.1)
231
- rubyzip (1.2.0)
232
- sass (3.4.22)
233
- sass-rails (5.0.4)
234
- railties (>= 4.0.0, < 5.0)
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 (2.53.4)
262
+ selenium-webdriver (3.7.0)
240
263
  childprocess (~> 0.5)
241
264
  rubyzip (~> 1.0)
242
- websocket (~> 1.0)
243
- sexp_processor (4.7.0)
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.2.1)
247
- actionpack (> 4, < 5.1)
248
- activemodel (> 4, < 5.1)
249
- simplecov (0.11.2)
250
- docile (~> 1.1.0)
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
- slop (3.6.0)
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.1.1)
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.7.7)
266
- term-ansicolor (1.3.2)
267
- tins (~> 1.0)
268
- thor (0.19.1)
269
- thread_safe (0.3.5)
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
- websocket (1.2.3)
275
- xpath (2.0.0)
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
- coveralls
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
- ruby-progressbar
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
- * Rails (4.1 or higher)
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,3 +1,5 @@
1
+
2
+ require 'rubygems'
1
3
  begin
2
4
  require 'bundler/setup'
3
5
  rescue LoadError
@@ -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: [:edit, :update]
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 text: 'Version not active', status: '404' unless @version && @version.active
44
+ render plain: 'Version not active', status: '404' unless @version && @version.active
45
45
  @question_group = question_group
46
46
  end
47
47