summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZsolt Kozaroczy <[email protected]>2023-07-04 09:37:20 +0200
committerGitHub <[email protected]>2023-07-04 09:37:20 +0200
commitec65a1586ab1a4ffaac15578fa19ff04b3caed25 (patch)
tree0b823b9ed98fddcd2a20037ed90b7b4b4331d4e9
parent76e9342020e5f2a97501b8e157fad7f043200da6 (diff)
parent4bf0ab60682324873bbd250499c1de09fcf93b12 (diff)
downloadcaxlsx-ec65a1586ab1a4ffaac15578fa19ff04b3caed25.tar.gz
caxlsx-ec65a1586ab1a4ffaac15578fa19ff04b3caed25.zip
Merge pull request #289 from tagliala/chore/282-require-cgi-at-module-level
Require 'cgi' at module level
-rw-r--r--lib/axlsx.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/cell.rb1
2 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx.rb b/lib/axlsx.rb
index 814900fd..71c0ca1c 100644
--- a/lib/axlsx.rb
+++ b/lib/axlsx.rb
@@ -30,6 +30,7 @@ require 'zip'
# core dependencies
require 'bigdecimal'
+require 'cgi'
require 'set'
require 'time'
diff --git a/lib/axlsx/workbook/worksheet/cell.rb b/lib/axlsx/workbook/worksheet/cell.rb
index b8b4fea5..2ff3a3cc 100644
--- a/lib/axlsx/workbook/worksheet/cell.rb
+++ b/lib/axlsx/workbook/worksheet/cell.rb
@@ -1,6 +1,5 @@
# frozen_string_literal: true
-require 'cgi'
module Axlsx
# A cell in a worksheet.
# Cell stores inforamation requried to serialize a single worksheet cell to xml. You must provde the Row that the cell belongs to and the cells value. The data type will automatically be determed if you do not specify the :type option. The default style will be applied if you do not supply the :style option. Changing the cell's type will recast the value to the type specified. Altering the cell's value via the property accessor will also automatically cast the provided value to the cell's type.