svg_guardian 0.0.3-x64-mingw-ucrt → 0.0.4-x64-mingw-ucrt

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d459f43bde8551d2270719eae14e5dad4eaae9e0ac65a696f1157d640583978
4
- data.tar.gz: 29ecd791827fb6174507e5a3bf4946de33ce7670f05b2b262dfdeed7fa327a47
3
+ metadata.gz: 244992e3877e7e31a2ae375c64cc60d39bc18c05cd1e80682e4cbf483f5c69b6
4
+ data.tar.gz: 58d7a66e02bb2ba4b4d48f2949b7a1f027233216daafe1276251dc1a353ce8e8
5
5
  SHA512:
6
- metadata.gz: 58cc0aa06df36b5bf8946da2dad401727aaca02b9cce492376087f3b8d9c30b2e2b9e48871ece622abbdf0dbb6583b8ac0a3c7ec3603a20d855644c21297bb62
7
- data.tar.gz: 47a24960e24d9da13074ad236ff55e589a6ac7b7e69fd18548d8d31407e1bb756de36cf0d27f1545599125bf739e5d2b189673541ac262eb5c82b95aaf2e9249
6
+ metadata.gz: fafa1ecd28775f703df75d8251bb4367e56001613615732f643eab4da02c4fac06713df4fea5db9b9203ec203b38433b486acf134d5122f418b6ef4dbb656c2a
7
+ data.tar.gz: 0e3871cabc41a1927ba565f35140497640a0cb8410a0d3eccef41158ce945347d92359fb505fa167c6a51cc98d785018a2d476e91153202dbd735743f82ca83c
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SvgGuardian
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.4"
5
5
  end
data/lib/svg_guardian.rb CHANGED
@@ -1,7 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ begin
4
+ # load the precompiled extension file
5
+ ruby_version = /(\d+\.\d+)/.match(::RUBY_VERSION)
6
+ require_relative "svg_guardian/#{ruby_version}/svg_guardian"
7
+ rescue LoadError
8
+ require "svg_guardian/svg_guardian"
9
+ end
10
+
3
11
  require_relative "svg_guardian/version"
4
- require_relative "svg_guardian/svg_guardian"
5
12
 
6
13
  module SvgGuardian
7
14
  class SanitizeError < StandardError; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svg_guardian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: x64-mingw-ucrt
6
6
  authors:
7
7
  - Alex Beznos