helena 1.3.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +1 -0
  3. data/.rubocop.yml +17 -10
  4. data/.travis.yml +16 -5
  5. data/Gemfile +6 -3
  6. data/Gemfile.lock +189 -211
  7. data/README.md +4 -5
  8. data/Rakefile +1 -2
  9. data/app/assets/javascripts/helena/application.js +0 -1
  10. data/app/assets/stylesheets/helena/{application.css.sass → application.scss} +0 -8
  11. data/app/controllers/helena/sessions_controller.rb +7 -1
  12. data/app/helpers/helena/application_helper.rb +18 -0
  13. data/app/models/helena/concerns/questions/validates_one_label.rb +1 -0
  14. data/app/models/helena/question.rb +1 -0
  15. data/app/models/helena/question_group.rb +8 -0
  16. data/app/models/helena/questions/static_text.rb +4 -0
  17. data/app/models/helena/session.rb +2 -20
  18. data/app/models/helena/sub_question.rb +1 -0
  19. data/app/models/helena/version.rb +4 -0
  20. data/app/views/helena/questions/_bipolar_radio_matrix.html.slim +36 -0
  21. data/app/views/helena/questions/{_checkbox_group.html.haml → _checkbox_group.html.slim} +6 -8
  22. data/app/views/helena/questions/_long_text.html.slim +9 -0
  23. data/app/views/helena/questions/{_radio_group.html.haml → _radio_group.html.slim} +5 -6
  24. data/app/views/helena/questions/_radio_matrix.html.slim +27 -0
  25. data/app/views/helena/questions/_short_text.html.slim +9 -0
  26. data/app/views/helena/questions/_static_text.html.slim +2 -4
  27. data/app/views/helena/sessions/_error_messages.html.slim +8 -0
  28. data/app/views/helena/sessions/edit.html.slim +11 -7
  29. data/app/views/helena/sessions/end_message.html.slim +1 -1
  30. data/config/locales/en.yml +13 -12
  31. data/config/locales/views/sessions/en.yml +1 -0
  32. data/db/seeds.rb +1 -1
  33. data/helena.gemspec +15 -20
  34. data/lib/helena.rb +0 -3
  35. data/lib/helena/engine.rb +1 -1
  36. data/lib/helena/survey_importer.rb +4 -1
  37. data/lib/helena/version.rb +1 -1
  38. data/spec/controllers/helena/sessions_controller_spec.rb +2 -2
  39. data/spec/dummy/Rakefile +1 -1
  40. data/spec/dummy/app/assets/config/manifest.js +2 -0
  41. data/spec/dummy/app/views/layouts/{application.html.haml → application.html.slim} +10 -10
  42. data/spec/dummy/bin/bundle +1 -1
  43. data/spec/dummy/bin/rails +1 -1
  44. data/spec/dummy/config/application.rb +1 -2
  45. data/spec/dummy/config/boot.rb +2 -2
  46. data/spec/dummy/config/environment.rb +1 -1
  47. data/spec/factories/helena/surveys.rb +1 -1
  48. data/spec/factories/helena/versions.rb +2 -2
  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. metadata +63 -141
  56. data/.coveralls.yml +0 -2
  57. data/Appraisals +0 -12
  58. data/app/assets/stylesheets/helena/forms.css.sass +0 -13
  59. data/app/assets/stylesheets/helena/layout.css.sass +0 -3
  60. data/app/assets/stylesheets/helena/question_groups.css.sass +0 -4
  61. data/app/views/helena/questions/_bipolar_radio_matrix.html.haml +0 -56
  62. data/app/views/helena/questions/_long_text.html.haml +0 -8
  63. data/app/views/helena/questions/_radio_matrix.html.haml +0 -53
  64. data/app/views/helena/questions/_short_text.html.haml +0 -8
  65. data/config/initializers/simple_form_bootstrap.rb +0 -132
  66. data/gemfiles/rails_4.2.gemfile +0 -22
  67. data/gemfiles/rails_4.2.gemfile.lock +0 -295
  68. data/gemfiles/rails_5.1.gemfile +0 -24
  69. data/gemfiles/rails_5.1.gemfile.lock +0 -305
@@ -1,24 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rake"
6
- gem "rails", "5.1"
7
- gem "mongoid", ">= 6.0"
8
- gem "mongoid-rspec", :git => "https://github.com/mongoid-rspec/mongoid-rspec.git", :group => [:development, :test]
9
-
10
- group :development, :test do
11
- gem "pry"
12
- gem "pry-byebug"
13
- gem "ruby-progressbar"
14
- gem "better_errors"
15
- gem "launchy"
16
- gem "binding_of_caller"
17
- gem "selenium-webdriver"
18
- gem "simple_form"
19
- gem "jquery-rails"
20
- gem "bootstrap-sass"
21
- gem "shoulda-matchers"
22
- end
23
-
24
- gemspec :path => "../"
@@ -1,305 +0,0 @@
1
- GIT
2
- remote: https://github.com/mongoid-rspec/mongoid-rspec.git
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
-
10
- PATH
11
- remote: ..
12
- specs:
13
- helena (1.3.0)
14
- bootstrap-sass (~> 3.2)
15
- browser (~> 2.0)
16
- haml-rails (~> 1.0)
17
- jquery-rails (~> 4.0)
18
- mongoid (>= 4.0)
19
- mongoid-simple-tags (~> 0.1)
20
- mongoid-tree (~> 2.0)
21
- mongoid_orderable (~> 4.1)
22
- rails (>= 4.2)
23
- rails-i18n (>= 4.0)
24
- responders (~> 2.0)
25
- sass-rails (~> 5.0)
26
- simple_form (~> 3.2)
27
- slim (~> 3.0)
28
-
29
- GEM
30
- remote: https://rubygems.org/
31
- specs:
32
- actioncable (5.1.0)
33
- actionpack (= 5.1.0)
34
- nio4r (~> 2.0)
35
- websocket-driver (~> 0.6.1)
36
- actionmailer (5.1.0)
37
- actionpack (= 5.1.0)
38
- actionview (= 5.1.0)
39
- activejob (= 5.1.0)
40
- mail (~> 2.5, >= 2.5.4)
41
- rails-dom-testing (~> 2.0)
42
- actionpack (5.1.0)
43
- actionview (= 5.1.0)
44
- activesupport (= 5.1.0)
45
- rack (~> 2.0)
46
- rack-test (~> 0.6.3)
47
- rails-dom-testing (~> 2.0)
48
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
49
- actionview (5.1.0)
50
- activesupport (= 5.1.0)
51
- builder (~> 3.1)
52
- erubi (~> 1.4)
53
- rails-dom-testing (~> 2.0)
54
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
55
- activejob (5.1.0)
56
- activesupport (= 5.1.0)
57
- globalid (>= 0.3.6)
58
- activemodel (5.1.0)
59
- activesupport (= 5.1.0)
60
- activerecord (5.1.0)
61
- activemodel (= 5.1.0)
62
- activesupport (= 5.1.0)
63
- arel (~> 8.0)
64
- activesupport (5.1.0)
65
- concurrent-ruby (~> 1.0, >= 1.0.2)
66
- i18n (~> 0.7)
67
- minitest (~> 5.1)
68
- tzinfo (~> 1.1)
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
- autoprefixer-rails (7.1.6)
77
- execjs
78
- better_errors (2.4.0)
79
- coderay (>= 1.0.0)
80
- erubi (>= 1.0.0)
81
- rack (>= 0.9.0)
82
- binding_of_caller (0.7.3)
83
- debug_inspector (>= 0.0.1)
84
- bootstrap-sass (3.3.7)
85
- autoprefixer-rails (>= 5.2.1)
86
- sass (>= 3.3.4)
87
- browser (2.5.2)
88
- bson (4.2.2)
89
- builder (3.2.3)
90
- byebug (9.1.0)
91
- capybara (2.15.4)
92
- addressable
93
- mini_mime (>= 0.1.3)
94
- nokogiri (>= 1.3.3)
95
- rack (>= 1.0.0)
96
- rack-test (>= 0.5.4)
97
- xpath (~> 2.0)
98
- childprocess (0.8.0)
99
- ffi (~> 1.0, >= 1.0.11)
100
- coderay (1.1.2)
101
- concurrent-ruby (1.0.5)
102
- crass (1.0.2)
103
- debug_inspector (0.0.3)
104
- diff-lcs (1.3)
105
- erubi (1.7.0)
106
- erubis (2.7.0)
107
- execjs (2.7.0)
108
- factory_bot (4.8.2)
109
- activesupport (>= 3.0.0)
110
- factory_bot_rails (4.8.2)
111
- factory_bot (~> 4.8.2)
112
- railties (>= 3.0.0)
113
- faker (1.8.4)
114
- i18n (~> 0.5)
115
- ffi (1.9.18)
116
- globalid (0.4.1)
117
- activesupport (>= 4.2.0)
118
- haml (5.0.4)
119
- temple (>= 0.8.0)
120
- tilt
121
- haml-rails (1.0.0)
122
- actionpack (>= 4.0.1)
123
- activesupport (>= 4.0.1)
124
- haml (>= 4.0.6, < 6.0)
125
- html2haml (>= 1.0.1)
126
- railties (>= 4.0.1)
127
- html2haml (2.2.0)
128
- erubis (~> 2.7.0)
129
- haml (>= 4.0, < 6)
130
- nokogiri (>= 1.6.0)
131
- ruby_parser (~> 3.5)
132
- i18n (0.9.1)
133
- concurrent-ruby (~> 1.0)
134
- jquery-rails (4.3.1)
135
- rails-dom-testing (>= 1, < 3)
136
- railties (>= 4.2.0)
137
- thor (>= 0.14, < 2.0)
138
- json (1.8.6)
139
- launchy (2.4.3)
140
- addressable (~> 2.3)
141
- loofah (2.1.1)
142
- crass (~> 1.0.2)
143
- nokogiri (>= 1.5.9)
144
- mail (2.7.0)
145
- mini_mime (>= 0.1.1)
146
- method_source (0.9.0)
147
- mini_mime (0.1.4)
148
- mini_portile2 (2.3.0)
149
- minitest (5.10.3)
150
- mongo (2.4.3)
151
- bson (>= 4.2.1, < 5.0.0)
152
- mongoid (6.2.1)
153
- activemodel (~> 5.1)
154
- mongo (>= 2.4.1, < 3.0.0)
155
- mongoid-simple-tags (0.1.3)
156
- json (~> 1.8)
157
- mongoid (>= 3.0.3)
158
- mongoid-tree (2.1.0)
159
- mongoid (>= 4.0, < 7.0)
160
- mongoid_orderable (4.1.1)
161
- mongoid
162
- nio4r (2.1.0)
163
- nokogiri (1.8.1)
164
- mini_portile2 (~> 2.3.0)
165
- pry (0.11.2)
166
- coderay (~> 1.1.0)
167
- method_source (~> 0.9.0)
168
- pry-byebug (3.5.0)
169
- byebug (~> 9.1)
170
- pry (~> 0.10)
171
- public_suffix (3.0.0)
172
- rack (2.0.3)
173
- rack-test (0.6.3)
174
- rack (>= 1.0)
175
- rails (5.1.0)
176
- actioncable (= 5.1.0)
177
- actionmailer (= 5.1.0)
178
- actionpack (= 5.1.0)
179
- actionview (= 5.1.0)
180
- activejob (= 5.1.0)
181
- activemodel (= 5.1.0)
182
- activerecord (= 5.1.0)
183
- activesupport (= 5.1.0)
184
- bundler (>= 1.3.0, < 2.0)
185
- railties (= 5.1.0)
186
- sprockets-rails (>= 2.0.0)
187
- rails-dom-testing (2.0.3)
188
- activesupport (>= 4.2.0)
189
- nokogiri (>= 1.6)
190
- rails-html-sanitizer (1.0.3)
191
- loofah (~> 2.0)
192
- rails-i18n (5.0.4)
193
- i18n (~> 0.7)
194
- railties (~> 5.0)
195
- railties (5.1.0)
196
- actionpack (= 5.1.0)
197
- activesupport (= 5.1.0)
198
- method_source
199
- rake (>= 0.8.7)
200
- thor (>= 0.18.1, < 2.0)
201
- rake (12.2.1)
202
- rb-fsevent (0.10.2)
203
- rb-inotify (0.9.10)
204
- ffi (>= 0.5.0, < 2)
205
- responders (2.4.0)
206
- actionpack (>= 4.2.0, < 5.3)
207
- railties (>= 4.2.0, < 5.3)
208
- rspec (3.7.0)
209
- rspec-core (~> 3.7.0)
210
- rspec-expectations (~> 3.7.0)
211
- rspec-mocks (~> 3.7.0)
212
- rspec-collection_matchers (1.1.3)
213
- rspec-expectations (>= 2.99.0.beta1)
214
- rspec-core (3.7.0)
215
- rspec-support (~> 3.7.0)
216
- rspec-expectations (3.7.0)
217
- diff-lcs (>= 1.2.0, < 2.0)
218
- rspec-support (~> 3.7.0)
219
- rspec-mocks (3.7.0)
220
- diff-lcs (>= 1.2.0, < 2.0)
221
- rspec-support (~> 3.7.0)
222
- rspec-rails (3.7.1)
223
- actionpack (>= 3.0)
224
- activesupport (>= 3.0)
225
- railties (>= 3.0)
226
- rspec-core (~> 3.7.0)
227
- rspec-expectations (~> 3.7.0)
228
- rspec-mocks (~> 3.7.0)
229
- rspec-support (~> 3.7.0)
230
- rspec-support (3.7.0)
231
- ruby-progressbar (1.9.0)
232
- ruby_parser (3.10.1)
233
- sexp_processor (~> 4.9)
234
- rubyzip (1.2.1)
235
- sass (3.5.3)
236
- sass-listen (~> 4.0.0)
237
- sass-listen (4.0.0)
238
- rb-fsevent (~> 0.9, >= 0.9.4)
239
- rb-inotify (~> 0.9, >= 0.9.7)
240
- sass-rails (5.0.6)
241
- railties (>= 4.0.0, < 6)
242
- sass (~> 3.1)
243
- sprockets (>= 2.8, < 4.0)
244
- sprockets-rails (>= 2.0, < 4.0)
245
- tilt (>= 1.1, < 3)
246
- selenium-webdriver (3.7.0)
247
- childprocess (~> 0.5)
248
- rubyzip (~> 1.0)
249
- sexp_processor (4.10.0)
250
- shoulda-matchers (3.1.2)
251
- activesupport (>= 4.0.0)
252
- simple_form (3.5.0)
253
- actionpack (> 4, < 5.2)
254
- activemodel (> 4, < 5.2)
255
- slim (3.0.8)
256
- temple (>= 0.7.6, < 0.9)
257
- tilt (>= 1.3.3, < 2.1)
258
- sprockets (3.7.1)
259
- concurrent-ruby (~> 1.0)
260
- rack (> 1, < 3)
261
- sprockets-rails (3.2.1)
262
- actionpack (>= 4.0)
263
- activesupport (>= 4.0)
264
- sprockets (>= 3.0.0)
265
- temple (0.8.0)
266
- thor (0.20.0)
267
- thread_safe (0.3.6)
268
- tilt (2.0.8)
269
- tzinfo (1.2.4)
270
- thread_safe (~> 0.1)
271
- websocket-driver (0.6.5)
272
- websocket-extensions (>= 0.1.0)
273
- websocket-extensions (0.1.2)
274
- xpath (2.1.0)
275
- nokogiri (~> 1.3)
276
-
277
- PLATFORMS
278
- ruby
279
-
280
- DEPENDENCIES
281
- appraisal
282
- better_errors
283
- binding_of_caller
284
- bootstrap-sass
285
- capybara (~> 2.3)
286
- factory_bot_rails
287
- faker (~> 1.4)
288
- helena!
289
- jquery-rails
290
- launchy
291
- mongoid (>= 6.0)
292
- mongoid-rspec!
293
- pry
294
- pry-byebug
295
- rails (= 5.1)
296
- rake
297
- rspec-collection_matchers (~> 1)
298
- rspec-rails (~> 3)
299
- ruby-progressbar
300
- selenium-webdriver
301
- shoulda-matchers
302
- simple_form
303
-
304
- BUNDLED WITH
305
- 1.16.0.pre.3