File tree 3 files changed +14
-11
lines changed
3 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 1
1
script : bundle exec rspec spec
2
2
env :
3
3
matrix :
4
- - RAILS=5.2.4.3
5
- - RAILS=6.0.3.2
4
+ - RAILS=5.2.4.6
5
+ - RAILS=6.0.3.7
6
6
rvm :
7
- - 2.4.5
8
- - 2.5.5
9
- - 2.6.5
10
- - 2.7.0
11
- - 2.7 .1
7
+ - 2.4.10
8
+ - 2.5.9
9
+ - 2.6.7
10
+ - 2.7.3
11
+ - 3.0 .1
12
12
jobs :
13
13
exclude :
14
- - rvm : 2.4.5
15
- env : RAILS=6.0.3.2
14
+ - rvm : 2.4.10
15
+ env : RAILS=6.0.3.7
16
+ - rvm : 3.0.1
17
+ env : RAILS=5.2.4.6
Original file line number Diff line number Diff line change 8
8
group :test do
9
9
default_rails_version = "~> 5.2.4"
10
10
rails_version = ENV [ 'RAILS' ] || default_rails_version
11
+ gem 'sassc-rails'
11
12
gem 'rails' , rails_version
12
13
gem 'rspec-rails'
13
14
gem 'coveralls' , require : false # Test coverage website. Go to https://coveralls.io
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ def file
37
37
end
38
38
39
39
def cycle ( lines )
40
- @csv_lines = CSV . parse ( lines . join , @csv_options )
40
+ @csv_lines = CSV . parse ( lines . join , ** @csv_options )
41
41
import_result . add ( batch_import , lines . count )
42
42
end
43
43
@@ -115,7 +115,7 @@ def process_file
115
115
batch_size = options [ :batch_size ] . to_i
116
116
File . open ( file . path ) do |f |
117
117
# capture headers if not exist
118
- prepare_headers { CSV . parse ( f . readline , @csv_options ) . first }
118
+ prepare_headers { CSV . parse ( f . readline , ** @csv_options ) . first }
119
119
f . each_line do |line |
120
120
lines << line if line . present?
121
121
if lines . size == batch_size || f . eof?
You can’t perform that action at this time.
0 commit comments