svg_guardian 0.0.3-arm64-darwin → 0.0.4-arm64-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: 5648f4c22ddf0bbed7f314b17e2eab67b7c16ab3b053b79ea4938da1475936fc
4
- data.tar.gz: 44cc6761d3b18b991de14d44be5eeac7ab109f34afecfa2684935d8a26069c73
3
+ metadata.gz: 504ea1995287d757f073e3d404c01e4bb68e62ff9f3f5c4b0f34c30d45e63e5f
4
+ data.tar.gz: 13a90fc3e8f0c61f3583f54224474fbd33952b5304fcf328fd55482a057ecfa9
5
5
  SHA512:
6
- metadata.gz: 288907c3db056bff2c63e095191201a094dc942330bccece42f186773b3bcb7f49d3eedd0a4aec3b3ec35b75459f149c6fd00a7dd5eb8102acedd1163cbcd807
7
- data.tar.gz: c1f7e058bce82ac8066203e53ae1240cffebf2728148d2eeb56e5e6f2fda61690d8c0ab88ca831802ac930d23c1c03389ab0b4926e2f1713a51e39dbd3e24b2c
6
+ metadata.gz: 50876baa3b44d42f09276f400695b96029126a7d718aa954283354e2a663b65d069241c31fdab103d7d9ddb45c9bd0c3169422177e8c3ada01e6ee8e10f30055
7
+ data.tar.gz: ee3cef091664c5bf23f98a7636441ab173c3414a6575ce0fcf58f1bc875d729c63c0b697c85eb4a478b7660eae6d4fe75564c108ed27249f16b035e4f3317bee
@@ -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: arm64-darwin
6
6
  authors:
7
7
  - Alex Beznos