mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 03:46:39 +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 'i18n-js', '~> 3.0' # Localization in javascript files
|
||||
gem 'roo', '~> 2.7.1' # Spreadsheet parser
|
||||
gem 'creek'
|
||||
gem 'wicked_pdf'
|
||||
gem 'silencer' # Silence certain Rails logs
|
||||
gem 'wkhtmltopdf-heroku'
|
||||
|
@ -59,7 +58,7 @@ gem 'remotipart', '~> 1.2' # Async file uploads
|
|||
gem 'faker' # Generate fake data
|
||||
gem 'auto_strip_attributes', '~> 2.1' # Removes unnecessary whitespaces from ActiveRecord or ActiveModel attributes
|
||||
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 'rails_autolink', '~> 1.1', '>= 1.1.6'
|
||||
gem 'delayed_paperclip',
|
||||
|
|
12
Gemfile.lock
12
Gemfile.lock
|
@ -123,9 +123,6 @@ GEM
|
|||
commit_param_routing (0.0.1)
|
||||
concurrent-ruby (1.0.5)
|
||||
crass (1.0.3)
|
||||
creek (1.1.2)
|
||||
nokogiri (~> 1.6.0)
|
||||
rubyzip (>= 1.0.0)
|
||||
cucumber (3.1.0)
|
||||
builder (>= 2.1.2)
|
||||
cucumber-core (~> 3.1.0)
|
||||
|
@ -247,7 +244,7 @@ GEM
|
|||
mime-types (1.25.1)
|
||||
mimemagic (0.3.0)
|
||||
mini_mime (1.0.0)
|
||||
mini_portile2 (2.1.0)
|
||||
mini_portile2 (2.3.0)
|
||||
minitest (5.10.3)
|
||||
minitest-reporters (1.1.19)
|
||||
ansi
|
||||
|
@ -263,8 +260,8 @@ GEM
|
|||
jquery-rails
|
||||
rails (>= 3.2.0)
|
||||
newrelic_rpm (4.6.0.338)
|
||||
nokogiri (1.6.8.1)
|
||||
mini_portile2 (~> 2.1.0)
|
||||
nokogiri (1.8.1)
|
||||
mini_portile2 (~> 2.3.0)
|
||||
nokogumbo (1.4.13)
|
||||
nokogiri
|
||||
oj (2.18.5)
|
||||
|
@ -482,7 +479,6 @@ DEPENDENCIES
|
|||
byebug
|
||||
capybara
|
||||
commit_param_routing
|
||||
creek
|
||||
cucumber-rails
|
||||
database_cleaner
|
||||
deface (~> 1.0)
|
||||
|
@ -511,7 +507,7 @@ DEPENDENCIES
|
|||
momentjs-rails (>= 2.9.0)
|
||||
nested_form_fields
|
||||
newrelic_rpm
|
||||
nokogiri
|
||||
nokogiri (~> 1.8.1)
|
||||
omniauth
|
||||
paperclip (~> 4.3)
|
||||
pg
|
||||
|
|
|
@ -20,8 +20,8 @@ class SpreadsheetParser
|
|||
when '.xlsx'
|
||||
# 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.
|
||||
# Roo::Excelx.new(file_path)
|
||||
Creek::Book.new(file_path).sheets[0]
|
||||
Roo::Excelx.new(file_path)
|
||||
# Creek::Book.new(file_path).sheets[0]
|
||||
else
|
||||
raise TypeError
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue