svg_guardian 0.0.3-x86_64-linux → 0.0.4-x86_64-linux
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: f87abfcff0d7855a58ce402aa98f4c00fa79524b213f890cc8d2025820d6f4d1
|
4
|
+
data.tar.gz: d3e866c6bb06ba0fb6b32ce4cc73bff6d8d860bbc70d561e2348b38470e83f50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3573bd34032081b73f4f38e91e6027382dc6ffe4fd4542d52d52a6230842fe3029d58fe4d8fb1f4921836288bd57e54288b17f7c98ef0df4fc3527b5d1f97aa
|
7
|
+
data.tar.gz: 918e96d72c92d218f5a98a770106f3c27311b817e0ba701b1347172ad69cf641d97318602c7b63a92d7fdcdb8cc910f79d78409c66d25786828e748afc98ad45
|
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
|