svg_guardian 0.0.3-arm64-darwin → 0.0.4-arm64-darwin
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: 504ea1995287d757f073e3d404c01e4bb68e62ff9f3f5c4b0f34c30d45e63e5f
|
4
|
+
data.tar.gz: 13a90fc3e8f0c61f3583f54224474fbd33952b5304fcf328fd55482a057ecfa9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50876baa3b44d42f09276f400695b96029126a7d718aa954283354e2a663b65d069241c31fdab103d7d9ddb45c9bd0c3169422177e8c3ada01e6ee8e10f30055
|
7
|
+
data.tar.gz: ee3cef091664c5bf23f98a7636441ab173c3414a6575ce0fcf58f1bc875d729c63c0b697c85eb4a478b7660eae6d4fe75564c108ed27249f16b035e4f3317bee
|
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
|