mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-09 21:36:44 +08:00
Remove Creek XLSX parser gem as it causes conflicts [SCI-1891]
This commit is contained in:
parent
99de5550b0
commit
1a81a99ff0
3 changed files with 7 additions and 12 deletions
3
Gemfile
3
Gemfile
|
@ -51,7 +51,6 @@ gem 'commit_param_routing' # Enables different submit actions in the same form t
|
||||||
gem 'kaminari'
|
gem 'kaminari'
|
||||||
gem 'i18n-js', '~> 3.0' # Localization in javascript files
|
gem 'i18n-js', '~> 3.0' # Localization in javascript files
|
||||||
gem 'roo', '~> 2.7.1' # Spreadsheet parser
|
gem 'roo', '~> 2.7.1' # Spreadsheet parser
|
||||||
gem 'creek'
|
|
||||||
gem 'wicked_pdf'
|
gem 'wicked_pdf'
|
||||||
gem 'silencer' # Silence certain Rails logs
|
gem 'silencer' # Silence certain Rails logs
|
||||||
gem 'wkhtmltopdf-heroku'
|
gem 'wkhtmltopdf-heroku'
|
||||||
|
@ -59,7 +58,7 @@ gem 'remotipart', '~> 1.2' # Async file uploads
|
||||||
gem 'faker' # Generate fake data
|
gem 'faker' # Generate fake data
|
||||||
gem 'auto_strip_attributes', '~> 2.1' # Removes unnecessary whitespaces from ActiveRecord or ActiveModel attributes
|
gem 'auto_strip_attributes', '~> 2.1' # Removes unnecessary whitespaces from ActiveRecord or ActiveModel attributes
|
||||||
gem 'deface', '~> 1.0'
|
gem 'deface', '~> 1.0'
|
||||||
gem 'nokogiri' # HTML/XML parser
|
gem 'nokogiri', '~> 1.8.1' # HTML/XML parser
|
||||||
gem 'sneaky-save', git: 'https://github.com/einzige/sneaky-save'
|
gem 'sneaky-save', git: 'https://github.com/einzige/sneaky-save'
|
||||||
gem 'rails_autolink', '~> 1.1', '>= 1.1.6'
|
gem 'rails_autolink', '~> 1.1', '>= 1.1.6'
|
||||||
gem 'delayed_paperclip',
|
gem 'delayed_paperclip',
|
||||||
|
|
12
Gemfile.lock
12
Gemfile.lock
|
@ -123,9 +123,6 @@ GEM
|
||||||
commit_param_routing (0.0.1)
|
commit_param_routing (0.0.1)
|
||||||
concurrent-ruby (1.0.5)
|
concurrent-ruby (1.0.5)
|
||||||
crass (1.0.3)
|
crass (1.0.3)
|
||||||
creek (1.1.2)
|
|
||||||
nokogiri (~> 1.6.0)
|
|
||||||
rubyzip (>= 1.0.0)
|
|
||||||
cucumber (3.1.0)
|
cucumber (3.1.0)
|
||||||
builder (>= 2.1.2)
|
builder (>= 2.1.2)
|
||||||
cucumber-core (~> 3.1.0)
|
cucumber-core (~> 3.1.0)
|
||||||
|
@ -247,7 +244,7 @@ GEM
|
||||||
mime-types (1.25.1)
|
mime-types (1.25.1)
|
||||||
mimemagic (0.3.0)
|
mimemagic (0.3.0)
|
||||||
mini_mime (1.0.0)
|
mini_mime (1.0.0)
|
||||||
mini_portile2 (2.1.0)
|
mini_portile2 (2.3.0)
|
||||||
minitest (5.10.3)
|
minitest (5.10.3)
|
||||||
minitest-reporters (1.1.19)
|
minitest-reporters (1.1.19)
|
||||||
ansi
|
ansi
|
||||||
|
@ -263,8 +260,8 @@ GEM
|
||||||
jquery-rails
|
jquery-rails
|
||||||
rails (>= 3.2.0)
|
rails (>= 3.2.0)
|
||||||
newrelic_rpm (4.6.0.338)
|
newrelic_rpm (4.6.0.338)
|
||||||
nokogiri (1.6.8.1)
|
nokogiri (1.8.1)
|
||||||
mini_portile2 (~> 2.1.0)
|
mini_portile2 (~> 2.3.0)
|
||||||
nokogumbo (1.4.13)
|
nokogumbo (1.4.13)
|
||||||
nokogiri
|
nokogiri
|
||||||
oj (2.18.5)
|
oj (2.18.5)
|
||||||
|
@ -482,7 +479,6 @@ DEPENDENCIES
|
||||||
byebug
|
byebug
|
||||||
capybara
|
capybara
|
||||||
commit_param_routing
|
commit_param_routing
|
||||||
creek
|
|
||||||
cucumber-rails
|
cucumber-rails
|
||||||
database_cleaner
|
database_cleaner
|
||||||
deface (~> 1.0)
|
deface (~> 1.0)
|
||||||
|
@ -511,7 +507,7 @@ DEPENDENCIES
|
||||||
momentjs-rails (>= 2.9.0)
|
momentjs-rails (>= 2.9.0)
|
||||||
nested_form_fields
|
nested_form_fields
|
||||||
newrelic_rpm
|
newrelic_rpm
|
||||||
nokogiri
|
nokogiri (~> 1.8.1)
|
||||||
omniauth
|
omniauth
|
||||||
paperclip (~> 4.3)
|
paperclip (~> 4.3)
|
||||||
pg
|
pg
|
||||||
|
|
|
@ -20,8 +20,8 @@ class SpreadsheetParser
|
||||||
when '.xlsx'
|
when '.xlsx'
|
||||||
# Roo Excel parcel was replaced with Creek, but it can be enabled back,
|
# Roo Excel parcel was replaced with Creek, but it can be enabled back,
|
||||||
# just swap lines below. But only one can be enabled at the same time.
|
# just swap lines below. But only one can be enabled at the same time.
|
||||||
# Roo::Excelx.new(file_path)
|
Roo::Excelx.new(file_path)
|
||||||
Creek::Book.new(file_path).sheets[0]
|
# Creek::Book.new(file_path).sheets[0]
|
||||||
else
|
else
|
||||||
raise TypeError
|
raise TypeError
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue