helena_administration 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5e0ac662485d78277bb161b3978ddab585d2c90
4
- data.tar.gz: 7497a47944396b67eb99528cd99139393c586c14
3
+ metadata.gz: 4c986ee5c0a3057f2fb4af474d37e1e503ed1647
4
+ data.tar.gz: f21d2639d664d440c7f2ae3605205bc2a9d4f790
5
5
  SHA512:
6
- metadata.gz: 0d0c6d3b83216929d03bd0d675703ee720474acaacfe20c2772dba21f6ae7750104a1d1e947bda183e4f66e23aae1e454a384aad3630a7bb1734d4c6a1a73bfc
7
- data.tar.gz: b70ea7b401c88b5ac1701ad6920dc59e4e8c3967a1acabd4958bc37352a58a1c94e821c50891d6c5d66e48b049ac8ea7ae1f3e02bf8e835ade6f064cfdc40032
6
+ metadata.gz: 7a88c84af4b3e278e3df67d59927fdb3ebbeaf1e8f0aabf666d10122221c0cf594c153721bd3e854031f83fb0e4c00db484ede7a974b1da2375f03626f07e67e
7
+ data.tar.gz: 3d9a3be512654b879c2cc2ccb54f75f3c2abbdb38c908309ef072b2e366300140d92629cff2b3c8c3a1938bd667f8b6bc78c32bc4dcc984e17d5319bb2f67bba
data/Gemfile CHANGED
@@ -22,7 +22,6 @@ group :development, :test do
22
22
  gem 'mongoid-rspec'
23
23
  gem 'pry'
24
24
  gem 'pry-byebug'
25
- gem 'quiet_assets'
26
25
  gem 'responders', '~> 2.0'
27
26
  gem 'simplecov'
28
27
  end
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- helena_administration (0.3.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
- actionmailer (4.2.10)
30
- actionpack (= 4.2.10)
31
- actionview (= 4.2.10)
32
- activejob (= 4.2.10)
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 (~> 1.0, >= 1.0.5)
35
- actionpack (4.2.10)
36
- actionview (= 4.2.10)
37
- activesupport (= 4.2.10)
38
- rack (~> 1.6)
39
- rack-test (~> 0.6.2)
40
- rails-dom-testing (~> 1.0, >= 1.0.5)
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 (4.2.10)
43
- activesupport (= 4.2.10)
46
+ actionview (5.1.4)
47
+ activesupport (= 5.1.4)
44
48
  builder (~> 3.1)
45
- erubis (~> 2.7.0)
46
- rails-dom-testing (~> 1.0, >= 1.0.5)
49
+ erubi (~> 1.4)
50
+ rails-dom-testing (~> 2.0)
47
51
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
48
- activejob (4.2.10)
49
- activesupport (= 4.2.10)
50
- globalid (>= 0.3.0)
51
- activemodel (4.2.10)
52
- activesupport (= 4.2.10)
53
- builder (~> 3.1)
54
- activerecord (4.2.10)
55
- activemodel (= 4.2.10)
56
- activesupport (= 4.2.10)
57
- arel (~> 6.0)
58
- activesupport (4.2.10)
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 (6.0.4)
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.1.4)
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 (5.2.1)
192
- activemodel (~> 4.0)
194
+ mongoid (6.2.1)
195
+ activemodel (~> 5.1)
193
196
  mongo (>= 2.4.1, < 3.0.0)
194
- origin (~> 2.3)
195
- tzinfo (>= 0.3.37)
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 (~> 3.3)
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.0)
217
- quiet_assets (1.1.0)
218
- railties (>= 3.1, < 5.0)
219
- rack (1.6.8)
220
- rack-test (0.6.3)
221
- rack (>= 1.0)
222
- rails (4.2.10)
223
- actionmailer (= 4.2.10)
224
- actionpack (= 4.2.10)
225
- actionview (= 4.2.10)
226
- activejob (= 4.2.10)
227
- activemodel (= 4.2.10)
228
- activerecord (= 4.2.10)
229
- activesupport (= 4.2.10)
230
- bundler (>= 1.3.0, < 2.0)
231
- railties (= 4.2.10)
232
- sprockets-rails
233
- rails-deprecated_sanitizer (1.0.3)
234
- activesupport (>= 4.2.0.alpha)
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 (4.0.9)
238
+ rails-i18n (5.0.4)
242
239
  i18n (~> 0.7)
243
- railties (~> 4.0)
244
- railties (4.2.10)
245
- actionpack (= 4.2.10)
246
- activesupport (= 4.2.10)
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
- before_filter :load_survey, :add_breadcrumbs
9
- before_filter :load_session, only: %i[edit update destroy]
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|
@@ -1,3 +1,3 @@
1
1
  module HelenaAdministration
2
- VERSION = '0.3.3'.freeze
2
+ VERSION = '0.3.4'.freeze
3
3
  end
@@ -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
- get :index, survey_id: survey, format: :csv
111
+
112
+ get :index, parametrize(survey_id: survey, format: :csv)
112
113
 
113
114
  csv = CSV.parse(response.body)
114
115
 
@@ -0,0 +1,4 @@
1
+ # As in rails 5.1 we can no longer accept direct hashes as parameters so we ned to cast it
2
+ def parametrize(params)
3
+ Rails.version.to_f >= 5 ? { params: params } : params
4
+ end
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.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