svg_guardian 0.0.3-aarch64-linux → 0.0.4-aarch64-linux

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: fe1753f565c0eff2fdfcead2fb0c485456bdb5b31f4ee88472fe8bfc38f853a2
4
- data.tar.gz: 89225f744391b1779c783f21e9c845ed3fddd1f9ab02e8a0519675acb2f7abbf
3
+ metadata.gz: f22be2bc045b2f0ffaddd59b8d3ca566c3b22fa346d2aed478aface21be446a1
4
+ data.tar.gz: 3f89043817c75e68d5c41eaefb826441bfbab7aaba312154b902b87bef9b1888
5
5
  SHA512:
6
- metadata.gz: a8c67ea35c328c55688c13298af29d5e63287bbf65484b930e288bfe2be74451e09a3446836d92d0870924f2e38ffcd2eede9342c3c7c20b4d9b2407ca213fe0
7
- data.tar.gz: 62524998b6ded43cea0dd9be71458fb7897f9a35dfe485ca1418cf037b194a17a45e063a011d7c8969e77412d776ce463eb6c9ed269ec77d0d9eb370d8551414
6
+ metadata.gz: 6a49b155cea46f2afbd233e2e12522ffb87b02690ecbf6a694934c965a3d651e23b95b11c987dec9d6531d0178a7d018df720bd5af962adf97bc2e291fcac3c2
7
+ data.tar.gz: 95cffa8cc101847397ef4d441d4d512029b183076156054514aed8386ddd56ef0d251ee998a42257098b00bfb6f8716363c8820e564f553e5793bf7a85cecb20
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: aarch64-linux
6
6
  authors:
7
7
  - Alex Beznos