svg_guardian 0.0.3-x86_64-linux-musl → 0.0.4-x86_64-linux-musl
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 766c08bffb8d0d175c1296cf70f581e6078ae8d19faa49f656a4bfb9c7c80982
|
4
|
+
data.tar.gz: b17bd2635d6dc4962282bb747eaa3ce4152cc264148aa2e117bb6813d40767fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cf323791fac11e5d6315e3c27a30c547e7f40425c63146ace479027318b65bc10f76f613a15b78ed5aa2b6c9de32374789d810674d9dbcf83470cde10359cad
|
7
|
+
data.tar.gz: e7ea5f4b76a38911d9e2441f9e9212b8e101c69ddf82410455484cc0a46e9e747ec91b3ccebe0dde5b65a1915dab27c70869634daa21144a068b7b5260d6eb74
|
Binary file
|
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
|