svg_guardian 0.0.3-x86_64-darwin → 0.0.4-x86_64-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: 43e464b6dcf7b643fd6c16e6799bc8ba85b76b569c74b33ecaea8dc2d81e6852
|
4
|
+
data.tar.gz: df370a929b5eb0099b37a1d2eed0b21ee3b298f260fcd6b216a9d8b6da0b7169
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0aa6d9470da380a2ab6a9acd9178133e86ee1567c517741e92bd8c55c0366ba210b9d9c5802cdb90311d7a7786ff22b898e4a47330bdabb2b831e22c9491b9cd
|
7
|
+
data.tar.gz: 3459d62c2e0745001e166e38d6bfbe6c6a3142dca268b1be4c786875481aa98c899a5f90b813e5a7a8e4b388e6f00c90ebdfc4945da5420f2059dbda431ce51d
|
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
|