diff options
| author | Weston Ganger <[email protected]> | 2022-10-12 23:23:31 -0700 |
|---|---|---|
| committer | Weston Ganger <[email protected]> | 2022-10-12 23:26:55 -0700 |
| commit | d5db40a886e6675214b247b8eb8c649f30a84f18 (patch) | |
| tree | 407703060450fa81aea3ff7c1008f7844396838c /lib/axlsx.rb | |
| parent | 28d59a1dba55a9d98ceed26ac3bed6267cf18481 (diff) | |
| download | caxlsx-d5db40a886e6675214b247b8eb8c649f30a84f18.tar.gz caxlsx-d5db40a886e6675214b247b8eb8c649f30a84f18.zip | |
Add example images, Fix axlsx_styler check
Diffstat (limited to 'lib/axlsx.rb')
| -rw-r--r-- | lib/axlsx.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/axlsx.rb b/lib/axlsx.rb index e02256e6..23082b71 100644 --- a/lib/axlsx.rb +++ b/lib/axlsx.rb @@ -32,13 +32,11 @@ require 'set' require 'time' begin - require "axlsx_styler" - - if defined?(AxlsxStyler) + if Gem.loaded_specs.has_key?("axlsx_styler") raise StandardError.new("Please remove `axlsx_styler` from your Gemfile, the associated functionality is now built-in to `caxlsx` directly.") end -rescue LoadError - # Do nothing, all good +rescue + # Do nothing end # xlsx generation with charts, images, automated column width, customizable styles |
