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: 0d012012d2d77a40ebf43120cee143ee409a8b12c5753f46a974f1ce31fcb7f3
4
- data.tar.gz: 8f325fbfe25bfb69ef99a83fd265005dd386961b73e8dd6c651d491c5be43d88
3
+ metadata.gz: 766c08bffb8d0d175c1296cf70f581e6078ae8d19faa49f656a4bfb9c7c80982
4
+ data.tar.gz: b17bd2635d6dc4962282bb747eaa3ce4152cc264148aa2e117bb6813d40767fc
5
5
  SHA512:
6
- metadata.gz: 7a60f6b81d948f1b96659912e838e66f8107b50f3180f350546d1dc25b71ca522b9e30775d159520f3f595805c6ceb1ca16d6413aa6ea14e268627f6cbabe1f1
7
- data.tar.gz: fc654db94c87250befc29ae4f66e9b06bb6e69a5f8ed440c440bc96ef0ce9704ea4e3794f5582e62690b3f4e4efeec02d587b35d679147fc057b4b9c114622d8
6
+ metadata.gz: 5cf323791fac11e5d6315e3c27a30c547e7f40425c63146ace479027318b65bc10f76f613a15b78ed5aa2b6c9de32374789d810674d9dbcf83470cde10359cad
7
+ data.tar.gz: e7ea5f4b76a38911d9e2441f9e9212b8e101c69ddf82410455484cc0a46e9e747ec91b3ccebe0dde5b65a1915dab27c70869634daa21144a068b7b5260d6eb74
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SvgGuardian
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.4"
5
5
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svg_guardian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: x86_64-linux-musl
6
6
  authors:
7
7
  - Alex Beznos