svg_guardian 0.0.3-x86_64-linux → 0.0.4-x86_64-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 004b9bfcf063d417af17d89101a1e0fc8ed4aaf02b2a2420e868ff486f9be44c
4
- data.tar.gz: ebaaf084a4a9acb4c0d585ac7dc2badde795707b845a4d000095624314ad0271
3
+ metadata.gz: f87abfcff0d7855a58ce402aa98f4c00fa79524b213f890cc8d2025820d6f4d1
4
+ data.tar.gz: d3e866c6bb06ba0fb6b32ce4cc73bff6d8d860bbc70d561e2348b38470e83f50
5
5
  SHA512:
6
- metadata.gz: cb0db5ec9a32a73a6f7f9091b3cbb0f5f73ac1621f0e39cad002064f65ceb98226ed3b3c65a95c5f8498bcb83a3802bbc2d557ff66989d72bce8d41816546b02
7
- data.tar.gz: 2d85286b5cd854af50b953e314193e30cea456771e331ce59df7491a595e3129e199c73fad0911b1ba13faeb44b430bb2cfc61234e1bdd84eef86f6531a060c3
6
+ metadata.gz: f3573bd34032081b73f4f38e91e6027382dc6ffe4fd4542d52d52a6230842fe3029d58fe4d8fb1f4921836288bd57e54288b17f7c98ef0df4fc3527b5d1f97aa
7
+ data.tar.gz: 918e96d72c92d218f5a98a770106f3c27311b817e0ba701b1347172ad69cf641d97318602c7b63a92d7fdcdb8cc910f79d78409c66d25786828e748afc98ad45
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
6
6
  authors:
7
7
  - Alex Beznos