svg_guardian 0.0.3-x64-mingw-ucrt → 0.0.4-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/svg_guardian/3.1/svg_guardian.so +0 -0
- data/lib/svg_guardian/3.2/svg_guardian.so +0 -0
- data/lib/svg_guardian/version.rb +1 -1
- data/lib/svg_guardian.rb +8 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 244992e3877e7e31a2ae375c64cc60d39bc18c05cd1e80682e4cbf483f5c69b6
|
4
|
+
data.tar.gz: 58d7a66e02bb2ba4b4d48f2949b7a1f027233216daafe1276251dc1a353ce8e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fafa1ecd28775f703df75d8251bb4367e56001613615732f643eab4da02c4fac06713df4fea5db9b9203ec203b38433b486acf134d5122f418b6ef4dbb656c2a
|
7
|
+
data.tar.gz: 0e3871cabc41a1927ba565f35140497640a0cb8410a0d3eccef41158ce945347d92359fb505fa167c6a51cc98d785018a2d476e91153202dbd735743f82ca83c
|
Binary file
|
Binary file
|
data/lib/svg_guardian/version.rb
CHANGED
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
|