svg_guardian 0.0.3-x64-mingw32 → 0.0.4-x64-mingw32
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.0/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: 6c79598c60c87a4aba1a9e415ed1bf68451eb80ae285225c3b9a8706af6a14f3
|
4
|
+
data.tar.gz: cc7359e9c01e35ac764e66a9871e8a1b2fcf449bab68c2840e660485f1f5989a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91026f5ad8cdd5d3cc45e684ea19359b0c2dcdc5a2c0c9f1b32ea16b2bd95dd438595674a3fb4ba37eded7536558650b14608972a6a47c65602d9f051fe0dae0
|
7
|
+
data.tar.gz: 42bf132a69e4d383f2daae761626978e7fd15f5bd034794c220f731e95be1b747b5ae9a296c5c59dd35b7c0d700cc68b6cffbeca80cdc2b93e33f2d9081d26d2
|
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
|