helena_administration 0.3.3 → 0.3.4
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.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/Gemfile.lock +67 -67
- data/app/controllers/helena_administration/sessions_controller.rb +2 -2
- data/lib/helena_administration/version.rb +1 -1
- data/spec/controllers/sessions_controller_spec.rb +6 -5
- data/spec/support/rails_compatibility.rb +4 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c986ee5c0a3057f2fb4af474d37e1e503ed1647
|
|
4
|
+
data.tar.gz: f21d2639d664d440c7f2ae3605205bc2a9d4f790
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7a88c84af4b3e278e3df67d59927fdb3ebbeaf1e8f0aabf666d10122221c0cf594c153721bd3e854031f83fb0e4c00db484ede7a974b1da2375f03626f07e67e
|
|
7
|
+
data.tar.gz: 3d9a3be512654b879c2cc2ccb54f75f3c2abbdb38c908309ef072b2e366300140d92629cff2b3c8c3a1938bd667f8b6bc78c32bc4dcc984e17d5319bb2f67bba
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
helena_administration (0.3.
|
|
4
|
+
helena_administration (0.3.4)
|
|
5
5
|
bootstrap-sass (~> 3.2)
|
|
6
6
|
breadcrumbs_on_rails (>= 3.0.1)
|
|
7
7
|
codemirror-rails (>= 5)
|
|
@@ -26,43 +26,46 @@ PATH
|
|
|
26
26
|
GEM
|
|
27
27
|
remote: https://rubygems.org/
|
|
28
28
|
specs:
|
|
29
|
-
|
|
30
|
-
actionpack (=
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
actioncable (5.1.4)
|
|
30
|
+
actionpack (= 5.1.4)
|
|
31
|
+
nio4r (~> 2.0)
|
|
32
|
+
websocket-driver (~> 0.6.1)
|
|
33
|
+
actionmailer (5.1.4)
|
|
34
|
+
actionpack (= 5.1.4)
|
|
35
|
+
actionview (= 5.1.4)
|
|
36
|
+
activejob (= 5.1.4)
|
|
33
37
|
mail (~> 2.5, >= 2.5.4)
|
|
34
|
-
rails-dom-testing (~>
|
|
35
|
-
actionpack (
|
|
36
|
-
actionview (=
|
|
37
|
-
activesupport (=
|
|
38
|
-
rack (~>
|
|
39
|
-
rack-test (
|
|
40
|
-
rails-dom-testing (~>
|
|
38
|
+
rails-dom-testing (~> 2.0)
|
|
39
|
+
actionpack (5.1.4)
|
|
40
|
+
actionview (= 5.1.4)
|
|
41
|
+
activesupport (= 5.1.4)
|
|
42
|
+
rack (~> 2.0)
|
|
43
|
+
rack-test (>= 0.6.3)
|
|
44
|
+
rails-dom-testing (~> 2.0)
|
|
41
45
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
42
|
-
actionview (
|
|
43
|
-
activesupport (=
|
|
46
|
+
actionview (5.1.4)
|
|
47
|
+
activesupport (= 5.1.4)
|
|
44
48
|
builder (~> 3.1)
|
|
45
|
-
|
|
46
|
-
rails-dom-testing (~>
|
|
49
|
+
erubi (~> 1.4)
|
|
50
|
+
rails-dom-testing (~> 2.0)
|
|
47
51
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
|
48
|
-
activejob (
|
|
49
|
-
activesupport (=
|
|
50
|
-
globalid (>= 0.3.
|
|
51
|
-
activemodel (
|
|
52
|
-
activesupport (=
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
activejob (5.1.4)
|
|
53
|
+
activesupport (= 5.1.4)
|
|
54
|
+
globalid (>= 0.3.6)
|
|
55
|
+
activemodel (5.1.4)
|
|
56
|
+
activesupport (= 5.1.4)
|
|
57
|
+
activerecord (5.1.4)
|
|
58
|
+
activemodel (= 5.1.4)
|
|
59
|
+
activesupport (= 5.1.4)
|
|
60
|
+
arel (~> 8.0)
|
|
61
|
+
activesupport (5.1.4)
|
|
62
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
59
63
|
i18n (~> 0.7)
|
|
60
64
|
minitest (~> 5.1)
|
|
61
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
|
62
65
|
tzinfo (~> 1.1)
|
|
63
66
|
addressable (2.5.2)
|
|
64
67
|
public_suffix (>= 2.0.2, < 4.0)
|
|
65
|
-
arel (
|
|
68
|
+
arel (8.0.0)
|
|
66
69
|
autoprefixer-rails (7.1.6)
|
|
67
70
|
execjs
|
|
68
71
|
better_errors (2.4.0)
|
|
@@ -183,20 +186,18 @@ GEM
|
|
|
183
186
|
mail (2.7.0)
|
|
184
187
|
mini_mime (>= 0.1.1)
|
|
185
188
|
method_source (0.9.0)
|
|
186
|
-
mini_mime (0.
|
|
189
|
+
mini_mime (1.0.0)
|
|
187
190
|
mini_portile2 (2.3.0)
|
|
188
191
|
minitest (5.10.3)
|
|
189
192
|
mongo (2.4.3)
|
|
190
193
|
bson (>= 4.2.1, < 5.0.0)
|
|
191
|
-
mongoid (
|
|
192
|
-
activemodel (~>
|
|
194
|
+
mongoid (6.2.1)
|
|
195
|
+
activemodel (~> 5.1)
|
|
193
196
|
mongo (>= 2.4.1, < 3.0.0)
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
mongoid-rspec (3.0.0)
|
|
197
|
-
mongoid (~> 5.0)
|
|
197
|
+
mongoid-rspec (1.10.0)
|
|
198
|
+
mongoid (>= 3.0.1)
|
|
198
199
|
rake
|
|
199
|
-
rspec (
|
|
200
|
+
rspec (>= 2.14)
|
|
200
201
|
mongoid-simple-tags (0.1.3)
|
|
201
202
|
json (~> 1.8)
|
|
202
203
|
mongoid (>= 3.0.3)
|
|
@@ -204,46 +205,43 @@ GEM
|
|
|
204
205
|
mongoid (>= 4.0, < 7.0)
|
|
205
206
|
mongoid_orderable (4.1.1)
|
|
206
207
|
mongoid
|
|
208
|
+
nio4r (2.1.0)
|
|
207
209
|
nokogiri (1.8.1)
|
|
208
210
|
mini_portile2 (~> 2.3.0)
|
|
209
|
-
origin (2.3.1)
|
|
210
211
|
pry (0.11.2)
|
|
211
212
|
coderay (~> 1.1.0)
|
|
212
213
|
method_source (~> 0.9.0)
|
|
213
214
|
pry-byebug (3.5.0)
|
|
214
215
|
byebug (~> 9.1)
|
|
215
216
|
pry (~> 0.10)
|
|
216
|
-
public_suffix (3.0.
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
rails-dom-testing (1.0.8)
|
|
236
|
-
activesupport (>= 4.2.0.beta, < 5.0)
|
|
237
|
-
nokogiri (~> 1.6)
|
|
238
|
-
rails-deprecated_sanitizer (>= 1.0.1)
|
|
217
|
+
public_suffix (3.0.1)
|
|
218
|
+
rack (2.0.3)
|
|
219
|
+
rack-test (0.7.0)
|
|
220
|
+
rack (>= 1.0, < 3)
|
|
221
|
+
rails (5.1.4)
|
|
222
|
+
actioncable (= 5.1.4)
|
|
223
|
+
actionmailer (= 5.1.4)
|
|
224
|
+
actionpack (= 5.1.4)
|
|
225
|
+
actionview (= 5.1.4)
|
|
226
|
+
activejob (= 5.1.4)
|
|
227
|
+
activemodel (= 5.1.4)
|
|
228
|
+
activerecord (= 5.1.4)
|
|
229
|
+
activesupport (= 5.1.4)
|
|
230
|
+
bundler (>= 1.3.0)
|
|
231
|
+
railties (= 5.1.4)
|
|
232
|
+
sprockets-rails (>= 2.0.0)
|
|
233
|
+
rails-dom-testing (2.0.3)
|
|
234
|
+
activesupport (>= 4.2.0)
|
|
235
|
+
nokogiri (>= 1.6)
|
|
239
236
|
rails-html-sanitizer (1.0.3)
|
|
240
237
|
loofah (~> 2.0)
|
|
241
|
-
rails-i18n (
|
|
238
|
+
rails-i18n (5.0.4)
|
|
242
239
|
i18n (~> 0.7)
|
|
243
|
-
railties (~>
|
|
244
|
-
railties (
|
|
245
|
-
actionpack (=
|
|
246
|
-
activesupport (=
|
|
240
|
+
railties (~> 5.0)
|
|
241
|
+
railties (5.1.4)
|
|
242
|
+
actionpack (= 5.1.4)
|
|
243
|
+
activesupport (= 5.1.4)
|
|
244
|
+
method_source
|
|
247
245
|
rake (>= 0.8.7)
|
|
248
246
|
thor (>= 0.18.1, < 2.0)
|
|
249
247
|
rake (12.2.1)
|
|
@@ -318,6 +316,9 @@ GEM
|
|
|
318
316
|
tilt (2.0.8)
|
|
319
317
|
tzinfo (1.2.4)
|
|
320
318
|
thread_safe (~> 0.1)
|
|
319
|
+
websocket-driver (0.6.5)
|
|
320
|
+
websocket-extensions (>= 0.1.0)
|
|
321
|
+
websocket-extensions (0.1.3)
|
|
321
322
|
xpath (2.1.0)
|
|
322
323
|
nokogiri (~> 1.3)
|
|
323
324
|
|
|
@@ -337,7 +338,6 @@ DEPENDENCIES
|
|
|
337
338
|
mongoid-rspec
|
|
338
339
|
pry
|
|
339
340
|
pry-byebug
|
|
340
|
-
quiet_assets
|
|
341
341
|
responders (~> 2.0)
|
|
342
342
|
rspec-collection_matchers (~> 1)
|
|
343
343
|
rspec-rails (~> 3)
|
|
@@ -5,8 +5,8 @@ module HelenaAdministration
|
|
|
5
5
|
|
|
6
6
|
respond_to :html, :json, :csv
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
before_action :load_survey, :add_breadcrumbs
|
|
9
|
+
before_action :load_session, only: %i[edit update destroy]
|
|
10
10
|
|
|
11
11
|
def index
|
|
12
12
|
respond_to do |format|
|
|
@@ -25,7 +25,7 @@ describe HelenaAdministration::SessionsController do
|
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
it 'return json result of all sessions' do
|
|
28
|
-
get :index, survey_id: survey, format: :json
|
|
28
|
+
get :index, parametrize(survey_id: survey, format: :json)
|
|
29
29
|
|
|
30
30
|
first_result = ActiveSupport::JSON.decode(response.body).first
|
|
31
31
|
|
|
@@ -43,7 +43,7 @@ describe HelenaAdministration::SessionsController do
|
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
it 'return json result of all sessions' do
|
|
46
|
-
get :index, survey_id: survey, format: :json
|
|
46
|
+
get :index, parametrize(survey_id: survey, format: :json)
|
|
47
47
|
|
|
48
48
|
first_result = ActiveSupport::JSON.decode(response.body).first
|
|
49
49
|
|
|
@@ -61,7 +61,7 @@ describe HelenaAdministration::SessionsController do
|
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
it 'return csv result of all sessions' do
|
|
64
|
-
get :index, survey_id: survey, format: :csv
|
|
64
|
+
get :index, parametrize(survey_id: survey, format: :csv)
|
|
65
65
|
|
|
66
66
|
csv = CSV.parse(response.body)
|
|
67
67
|
%w(string_answer_2 integer_answer_2 string_answer_1 integer_answer_1).each do |code|
|
|
@@ -84,7 +84,7 @@ describe HelenaAdministration::SessionsController do
|
|
|
84
84
|
build(:boolean_answer, code: 'completed', value: true),
|
|
85
85
|
build(:string_answer, code: 'token', value: 'abcdefghijklmnopqrstuvwxyz')
|
|
86
86
|
]
|
|
87
|
-
get :index, survey_id: survey, format: :csv
|
|
87
|
+
get :index, parametrize(survey_id: survey, format: :csv)
|
|
88
88
|
|
|
89
89
|
csv = CSV.parse(response.body)
|
|
90
90
|
%w(answer_token answer_completed).each do |code|
|
|
@@ -108,7 +108,8 @@ describe HelenaAdministration::SessionsController do
|
|
|
108
108
|
build(:string_answer, code: 'bla', value: 'yyy'),
|
|
109
109
|
build(:string_answer, code: 'bli', value: 'asdfasdfasdf')
|
|
110
110
|
]
|
|
111
|
-
|
|
111
|
+
|
|
112
|
+
get :index, parametrize(survey_id: survey, format: :csv)
|
|
112
113
|
|
|
113
114
|
csv = CSV.parse(response.body)
|
|
114
115
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: helena_administration
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Markus Graf
|
|
@@ -495,6 +495,7 @@ files:
|
|
|
495
495
|
- spec/helpers/applicatin_helper_spec.rb
|
|
496
496
|
- spec/spec_helper.rb
|
|
497
497
|
- spec/support/.keep
|
|
498
|
+
- spec/support/rails_compatibility.rb
|
|
498
499
|
homepage: https://github.com/gurix/helena_administration
|
|
499
500
|
licenses:
|
|
500
501
|
- GPL3
|